cancel
Showing results for 
Search instead for 
Did you mean: 

MDK: Rule to get the value of a specific field in Object Table control.

FranciscoSAP
Advisor
Advisor

Greetings MDK developers:

I found myself in the need of retrieving the value of a specific field in an Object Table control from a previous page and then using that value as a custom query filter to match the key property of one of my entities in the page where the rule was executed. I checked the documentation over at Client API References but it doesn't really specify which parameters the object methods are expecting.

I would appreciate some guidance on how to write this rule (or point me in the direction of a code example I could use), and then using the value retrieved by said rule as a custom filter in the Target property of my control.

Looking forward to reading from you!

Accepted Solutions (0)

Answers (1)

Answers (1)

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

If you are navigating from Page A (Object Table) to Page B through the OnPress event on the Object Table then the default binding for Page B will be the selected object from the Object Table. You will have access to all properties of the selected entity, not just the displayed properties. You can then use that property to construct your query filter on Page B accordingly.