cancel
Showing results for 
Search instead for 
Did you mean: 

How to get data from expand fields in SAP BUILD APPS?

2367835
Explorer
0 Kudos
978

we are having a requirement to display the expand fields' data. we have enable the required expand field( here parentNav) but unable to find a way to get the data of the field.

Could you please suggest how to get the data.

Accepted Solutions (1)

Accepted Solutions (1)

MarcHuber
Product and Topic Expert
Product and Topic Expert
0 Kudos

You need to follow these steps:

1. define a data variable based on our data entity

2. drag for example a "list item" component to your UI

3. In the properties of this list item set Repeat with to your data variable

4. afterwards you can use all the individual fields of the data variable, like the expanded fields in the texts of this list item

2367835
Explorer
0 Kudos

Hi Marc

Thank you so much for your support.

We are getting the data of all records in the expanded field, but we need only the expanded field value of a particular record only.

We tried ways to apply filter to achieve this, but unable to apply filters.

Could you please guide us to get only the required expanded field value .

Best Regards

Prasad

Answers (1)

Answers (1)

MarcHuber
Product and Topic Expert
Product and Topic Expert
0 Kudos

yes you can use them directly in the formulas. For example the field you would like to display is called customerNumber.

You have a list item that is repeated for every item of Goal_23 and you have expanded the Goal_23 with parentNav.

The formula would then be repeated.current.parentNav.customerNumber

Best regards,
Marc

2367835
Explorer
0 Kudos

Hi Marc

Thank you so much for your quick response, really appreciate it!

I am facing issue while accessing the formula, like this way repeated.current.parentNav.customerNumber

It shows that repeated is an unknown reference.

Can you please help regarding this issue.

Best Regards

Prasad