Forum Post: RE: Relationship Query

  • Thread starter Thread starter Orchid Corpin
  • Start date Start date
Status
Not open for further replies.
O

Orchid Corpin

Guest
Hi, To get the related object's fields you can use rbf_getFields. If the record has multiple child you can use Loop_begin / loop_end if it is only one child then you use directly the rbf_getFields with the id of your related record. script /* Assumes you are in the parent objects view page R56036 - this is the related field product1 - will be the object name of R56036 */ '{!#LOOP_BEGIN.R56036}' rbf_getFields("product1", parseInt("{!id}"), "name, product_code, unit_price", function(relName, objId, values) { console.log(values['name']); console.log(values['product_code']); console.log(values['unit_price']); }); '{!#LOOP_END.R56036}' /script Hope this may help. Regards, Orchid

Continue reading...
 
Status
Not open for further replies.
Back
Top