cancel
Showing results for 
Search instead for 
Did you mean: 

Item data list only shows last entry after query

kareem_gaber
Explorer
0 Kudos

I have custom BO with list node under it and I want to query my BO by ID then when I get the result I want to show the items in list node into my data list, it currently only returns the last entry of my list node under custom BO.

import AP.Common.GDT;

businessobject BusinessObject2 {

		[AlternativeKey] element ID:UUID ;

		node list[0,n]
		{
			element Test:LANGUAGEINDEPENDENT_MEDIUM_Text ;
			element Method:LANGUAGEINDEPENDENT_MEDIUM_Text ;
			element UoM:LANGUAGEINDEPENDENT_MEDIUM_Text ;
			element Min:LANGUAGEINDEPENDENT_MEDIUM_Text ;
			element Typical:LANGUAGEINDEPENDENT_MEDIUM_Text ;
			element Max:LANGUAGEINDEPENDENT_MEDIUM_Text ;
			element InspectionResult:LANGUAGEINDEPENDENT_MEDIUM_Text ;
		}
		action check;
}

Accepted Solutions (1)

Accepted Solutions (1)

kareem_gaber
Explorer
0 Kudos

I found that instead of querying my custom BO I needed to Read it and bind the data list to the list node under my custom BO instead of binding it to the custom BO root node.

Answers (0)