How to retrieve the id of a record in a read only field ?

Posted by Rollbase User on 07-Jul-2011 04:18

On an edit page, i put a read-only field linked to a relation.  I need to know the id of the record behind this read-only field in some of my functions. But as it seems, there is no way of retrieving the id of the record. Both the rbf_getFieldContent and rbf_getFieldValue functions allow to retrive the full html of the component, but not its simple id. Is this an error ? I'm guessing that rbf_getFieldContent should retrive the full html, and rbf_getFieldValue should retrieve the id. Looking forward for an answer. Regards, Romain PENNES.

All Replies

Posted by Admin on 07-Jul-2011 11:55

You can use rbf_getRelatedIds client-side API to retrieve ids of related records. Please check Chapter 7 for more info.

This thread is closed