Edit a master dataset error

Hi i've a master dataset with a wdTOrdORD_RISTO_R: TXDataWebDatasetField; that is a detail dataset i populate in wdTOrdAfterScroll with this :
wdROrd.Close();
wdROrd.SetJsonData(wdTOrdORD_RISTO_R.Value);
wdROrd.Open();

Every time i edit the master dataset like this :

    If Not (wdTOrd.State In [dsEdit,dsInsert])Then
      wdTOrd.Edit();
    wdTOrd.FieldByName('Tot_Doc').AsFloat:=32.2;
    wdTOrd.Post();

i have a error :

Uncaught TypeError: Converting circular structure to JSON
--> starting at object with constructor 'Object'
| property 'ORD_RISTO_R' -> object with constructor 'Array'
| index 0 -> object with constructor 'Object'
--- property 'PK_1' closes the circle

Can you help me ?

SOLVED : was a wrong querystring of dataset

1 Like

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.