ClearPreviousQueryString only clears SmartDatasetChildAdapter
 
Forums / SmartComponent Library - Developer Forum / ClearPreviousQueryString only clears SmartDatasetChildAdapter

ClearPreviousQueryString only clears SmartDatasetChildAdapter

2 posts, 0 answered
  1. Bert Strobbe
    Bert Strobbe avatar
    19 posts
    Registered:
    25 Oct 2018
    15 Jul 2019
    Link to this post
    The ClearPreviousQueryString method in SmartDatasetAdapter check whether theSmartDataTarget is of type SmartDatasetChildAdapter. Is there any reason why SmartBusinessEntityAdapters wouldn't be cleared also? 
    The use case is: we have a parent and child form with SmartBusinessEntityAdapters that are linked to each other and want to force the child form to be refreshed. We now invoke the InvokeParentPositionChanged method, but this only refreshes the child form the first time as the PreviousQueryString doesn't change the second time.
    Is there another way to force the child form to be refreshed?
  2. Mike Fechner
    Mike Fechner avatar
    342 posts
    Registered:
    14 Sep 2016
    15 Jul 2019 in reply to Bert Strobbe
    Link to this post
    Have you tried calling RetrieveData?

    What exactly are you trying to achieve? The parent form's query is reopened (why ever) and the foreign key values of the child form's SmartBusinessEntityAdapter haven't changed? In that case it's a feature, that the SmarBusinessEntityAdapter does not retrieve data by himself. 

    Weren't you always concerned about Performance? 
2 posts, 0 answered