[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: JSDO 6.0 is now available

  • Thread starter Thread starter braun_h
  • Start date Start date
Status
Not open for further replies.
B

braun_h

Guest
Hi Edsel, thanks for your answer. The following code works for me now: jsdo.useRelationships = true; jsdo.fill(); let mData: DataResult = jsdo["ttDM_ChildTableOne"].getData(); with a dataset defined in the ABL-BAckend like: define dataset dsVS_CallLine for ttVS_CallLine, ttDM_ChildTableOne data-relation drRecord for ttVS_CallLine,ttDM_ChildTableOne relation-fields (vst_callposition_obj,Owning_Obj) nested. But in my application the dataset actually is defined like this: define dataset dsVS_CallLine for ttVS_CallLine, ttDM_ChildTableOne, ttDM_ChildTableTwo data-relation drRecord for ttVS_CallLine,ttDM_ChildTableOne relation-fields (vst_callposition_obj,Owning_Obj) nested . data-relation drRecord for ttVS_CallLine,ttDM_ChildTableTwo relation-fields (viewId,iewId) . Then the code only works, if I leave out the "nested" keyword in the dataset definition. Despite which value the useRelationships property has. Is this expected to work only with one relation? Additionally, with useRelationships = true und a nested relation I expect a call to jsdo["ttDM_ParentTable"].getData() to retrieve both the parent record and the child record in a nested array. Am I wrong? Regards, Hans

Continue reading...
 
Status
Not open for further replies.
Back
Top