Below code sample search the component on a page. Replaces the default VO with new/custom VO. Then maps the VO attribute to the identified component.
OAMessageStyledTextBean oamessagestyledtextbean = (OAMessageStyledTextBean)oawebbean.findIndexedChildRecursive("ProjectNum");
oamessagestyledtextbean.setViewUsageName("VOInstanceName");
oaformvaluebean4.setViewAttributeName("XXProjectNum");
OAMessageStyledTextBean oamessagestyledtextbean = (OAMessageStyledTextBean)oawebbean.findIndexedChildRecursive("ProjectNum");
oamessagestyledtextbean.setViewUsageName("VOInstanceName");
oaformvaluebean4.setViewAttributeName("XXProjectNum");
No comments:
Post a Comment