Hi
I'm using locial chain to display content from xData (Aurelius) to DBLabel
- XDataWebConnection
- XDataWebDataSet = XDataWebDataSet_Detail
- WebDataSource = WebDataSource_Detail
- WebDBLabel bind to "nom" field from xData
To adapt content of DBLabel to context I'm using string temp_name to retrieve value
XDataWebDataSet_Detail.QueryString := '$filter=nom eq '''+temp_name+'''';
XDataWebDataSet_Detail.Load;
First call, displays the right selected value in WebDBLabel (OK)
If I change the context with temp_name value, browser debug network shows there is a call to xData server retrieving the right JSON but update of WebDBLabel isn't no more applied and stays with previous value.
(same with a WebDBEdit)
Not sure if it's due to a missing action forcing to refresh display value, but I doubt as if I set a string = "--" in WebDBLabel before calling XDataWebDataSet query+load, first value is well displayed not the second and next.
WebDBLabel1.Caption := '--';
ShowMessage('Nom = '+temp_name);
XDataWebDataSet_Detail.QueryString := '$filter=nom eq '''+temp_name+'''';
XDataWebDataSet_Detail.Load;
Please do you get an idea about way to fix or to investigate?
Thanks