Skip to Content
0
Mar 10, 2016 at 11:02 AM

Select dialog fragment with values from different Odata nodes

296 Views

Hello,

I am facing a binding problem when refering to subnodes in a dialog fragment F4 help on input field.

The columns for firstname and lastname are empty... (see screenshot)

binding in dialog fragment:

<TableSelectDialognoDataText="No Products Found"title="Select UserID"class="sapUiPopupWithPadding"items="{path : '/USER_CREATESet'}"search="_handleValueHelpSearch"confirm="_handleValueHelpClose"close="_handleValueHelpClose"><ColumnListItem><cells><ObjectIdentifiertitle="{Username}" /><Text text="{/Address/Firstname}" /><Text text="{Address/Lastname}" /></cells></ColumnListItem>

The Username is found as it's at the root of the User "Set"

Subnode address connot be found in relative nor absolute path

I am using the below Odata service format :

<content type="application/xml"><m:properties><d:Username>ALTOBELLIA</d:Username>

<d:Address m:type="ZGW_CREATE_USER_SRV.Address">

<d:PersNo>729635</d:PersNo>

<d:AddrNo>8322</d:AddrNo>

<d:TitleP/>

<d:Firstname>ALICE</d:Firstname>

<d:Lastname>ALTOBELLI</d:Lastname>

</d:Address>

</m:properties>

</content>


Can i bind the subnode elements? or do i have to create a json model especially for this dialog fragment?


Thanks,

Laurent.


Attachments