By using ParentBusComp Method you can get Parent BC field value from Child BC server script, given that in BO there must be link between Parent and Child BC. (ParentBusComp returns the parent (master) business component when given the child (detail) business component of a Link.)
I have written below eScript on Child BC for getting Parent BC field value, Parent BC fields should be forced active or you have to active them in eScript using ActivateField().
var ParBC = TheApplication().ActiveBusObject().GetBusComp("ChildBC Name").ParentBusComp();
var FCASE_ID = ParBC.GetFieldValue("Id");
Source:
https://docs.oracle.com/cd/B40099_02/books/OIRef/OIRefInterfaceRef117.html
I have written below eScript on Child BC for getting Parent BC field value, Parent BC fields should be forced active or you have to active them in eScript using ActivateField().
var ParBC = TheApplication().ActiveBusObject().GetBusComp("ChildBC Name").ParentBusComp();
var FCASE_ID = ParBC.GetFieldValue("Id");
Source:
https://docs.oracle.com/cd/B40099_02/books/OIRef/OIRefInterfaceRef117.html
Comments
Post a Comment