The value of dynamic set poplist in table changes dynamically with some columns of the current row

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.