Core approach
Oaadvancedtablebean table = (Oaadvancedtablebean) webbean.findchildrecursive ("Timeentrytbl"); = (Oamessagechoicebean) table.findchildrecursive ("Elementselect"); Elepoplist.setlistvoboundcontainercolumn (0, table, "Employeegroupname"); Elepoplist.setlistvoboundcontainercolumn (1, table, "Periodenddate"); Elepoplist.setlistvoboundcontainercolumn (2, table, "AssignmentID"); Elepoplist.setpicklistcacheenabled (false
Problem extension.
There is an action on the page that adds a new row, and how to make the value set of poplist in the new row added changes as the value returned by the Lov of the current row changes.
Core ideas:
Do not use dependent poplist when binding poplist source in Messagechoice, but instead use view Instance.
Some association lists are context-sensitive, such as a selection of provinces and cities, or even in a table. 2 poplist through PVO instantiation, in accordance with the event, the refresh Vo is not possible, because it is more than a row, and the local event is earlier than the Poplist value obtained, so there is no way to add restrictions. "Excerpt from Oraclearea51 's Sudhakar Mani article"
View definition
Control settings
Code control
ProcessRequest
Processformrequest
Am
//View definitioncountryvoselect meaning, lookupcode from FND_LOOKUP_VALUES_VL where Lookup_type= ' Chola_country 'statevoselect meaning, lookupcode from FND_LOOKUP_VALUES_VL where Lookup_type= ' Chola_state ' and tag=: 1//Control SettingsID countrypicklist View Definition:chola.oracle.apps.fnd.poplist.server.CountryVOPicklist view Instance: Countryvo1picklist Display attribute:meaningpicklist Value attribute:lookupcodeactiontype-fireparialactionevent-Countryid statepicklist View Definition:chola.oracle.apps.fnd.poplist.server.StateVOPicklist view Instance: Statevo1picklist Display attribute:meaningpicklist Value attribute:lookupcodeactiontype-fireparialaction//Code Control//ProcessRequestOaadvancetablebean advtable= (Oaadvancetablebean) webbean.findchildrecursive ("Resultadvtable"); Oamessagechoicebean statepoplist= (Oamessagechoicebean) advtable.findchildrecursive ("state")); Statepoplist.setlistvoboundcontainercolumn (0,advtable, "Country");//processformrequestif("Country". Equals (Pagecontext.getparameter (Oawebbeanconstants.event_param))) {Am.invokemethod (initstatevoquery);}//AM Public voidstatepoplist () {Statevoimpl vo=(Statevoimpl) getStateVO1 (); if(vo==NULL) {messagetoken[] Errortokens= {NewMessagetoken ("object_name", "CountryVO1")}; Throw NewOaexception ("AK", "Fwk_tbx_object_not_found", Errortokens); } vo.executequery ();}
Reference article:
Poplist Dependent on a LOV not working in Advtable-add another row
The Dependent poplist section
Dynamic poplist Empty when Setlistvoboundcontainercolumn is called.
The value of dynamic set poplist in table changes dynamically with some columns of the current row