Get the selected value in the list drop-down/messagechoice

Hi friends,
App R12.
I create a drop-down list programmatically in the process request:

OAMessageChoiceBean OAMC = oapagecontext.getWebBeanFactory () .createWebBean (OAWebBeanConstants.MESSAGE_CHOICE_BEAN, null, oapagecontext, null) (OAMessageChoiceBean);

oamc.setPickListViewUsageName ("MyVO1");
oamc.setListValueAttribute ("MyId");
oamc.setListDisplayAttribute ("MyDescription");
oamc.setID ("xxMypicklist");
oamc.setRendered (Boolean.TRUE);
oawebbean.addIndexedChild (oamc);

This shows the list of choices and there MyVO1 query search results.

Now, I want retrieve value MyId in the processFromRequest (after pushing a button on the screen). I do the following:

OAApplicationModule am = pageContext.getApplicationModule (webBean);
...
MyVOImpl myvoimpl = (MyVOImpl) am.findViewObject("MyVO1");
MyVORowImpl PicklistRow = myvoimpl.getCurrentRow ((MyVORowImpl));
NUMBER auxId = (NUMBER) PicklistRow.getAttribute ("MyId"); THIS SENTENCE GIVES A NULL POINTER EXCEPTION

Then..., is not enough to find the original Version? and get the rank "perceive"... and then get the desired attribute?

Do I need to load data from MyVO1 into myvoimpl? How? How to get the folder selected on the screen?

Many thanks for any help. It is very urgent for me to solve this problem. Dev guide does not help with this kind of usual problems.
Jose L.

Hello

u can not get the value of this way, becz you try to get the value of the original Version which is used for bean of choice message, to get the value selected in this field of choicebean message, you must get the VO initialized for this page, both would be different VO, you can opt for the following approach

(1.) an another VO wiil be there in your page get implemented to capture the data on this page, the attribute of this VO would be added to your field of beans of choice, need to understand that VO and and capture your selected value.

or the other way is

2.), you can change your code in the same way in the pR method

OAMessageChoiceBean OAMC = oapagecontext.getWebBeanFactory () .createWebBean (oapagecontext, OAWebBeanConstants.MESSAGE_CHOICE_BEAN, null, "XXMypicklistBean) (OAMessageChoiceBean);

and get the selected value in pFR method in this way

OAMessageChoiceBean getCHBean = (OAMessageChoiceBean) (webBean.findIndexedChildRecursive ("XXMypicklistBean"));

String val = (String) getCHBean.getValue (pageContext));

thanx

Pratap

Tags: Oracle Applications

Similar Questions

  • I can't get my calculations right away, even after the selection "commit selected value immediately" on my drop-down menus. Any ideas?

    I can't get my calculations right away, even after the selection "commit selected value immediately" on my drop-down menus. Any ideas?

    The field calculation order is probably not set correctly. The specific configuration procedure it depends on which version of Acrobat you are using. Acrobat 11, you would go first in forms editing mode (Tools > forms > change), and then select:

    Tasks > other tasks > set field calculation order

  • ADD ITEMS TO THE LIST DROP-DOWN LIST TO A TEXT FIELD (USER ENTERS THE ITEM) AND ALSO RELATED TO VALUE

    Untitled.jpg

    I have WANTED to ADD of ELEMENTS from the list drop-DOWN OF THE AREA of TEXT (the ELEMENT NAME) WHERE the USER BETWEEN of THE DESCRIPTION of POINT

    AND RELATED value SHOULD ALSO BE ADDED to THE SAME ELEMENT.

    LIKEWISE REMOVE ITEMS IN THE DROP-DOWN LIST

    PLEASE GIVE SHAPE TO SAMPLE OR JAVASCRIPT FOR THE ABOVE SCENARIO...

    INDEED USEFUL FOR MY PROJECT PLEASE SEND PDF FORM

    Hi Praveen,

    You can add items to the list in a specific order, which would be to load the elements in an array, sorting and then load in the dropdown list drop-down list.  This would be in the click event of the button Add.

    Create a table to hold all the list items, table drop-down list contains objects with a property 'displayItem' and 'value '.

    dropDownItems var = [];

    Add the new

    dropDownItems.push ({displayItem: ItemName.rawValue, value: BoundValue.rawValue});

    Add existing ones

    for (var i = 0; i)< dropdownlist1.length;="">

    {

    dropDownItems.push ({displayItem: DropDownList1.getDisplayItem (i), value: DropDownList1.getSaveItem (i)})

    }

    Sort by ascending order of displayed text

    () dropDownItems.sort

    function (a, b)

    {

    If (a.displayItem< b.displayitem)="" return="">

    If (a.displayItem > b.displayItem) return 1;

    return 0;

    });

    clear all items

    DropDownList1.clearItems ();

    load the sorted items

    for (var i = 0; i)< dropdownitems.length;="">

    {

    var dropDownItem = [i] dropDownItems;

    DropDownList1.addItem (dropDownItem.displayItem, dropDownItem.value);

    }

    clear the fields of the source

    ItemName.rawValue = null;

    BoundValue.rawValue = null;

    I added a button 'Add' sorted in my sample https://workspaces.acrobat.com/?d=OwysfJa-Q3HhPtFlgRb62g

    Concerning

    Bruce

  • Is there an extension that will show you the list drop down bookmarks in the location bar?

    I wish the menu drop-down arrow in the address bar to show my favorites instead of show what I typed recently. I use the menu drop-down to go to my most visited sites, so this would be the prefect. Is there an extension that will do this, or something similar?

    You can change a setting: Options > privacy > section of the address bar, change of "bookmarks"; which will display only your bookmarks.

  • linking two fields and fill in the two field based on the list drop-down selection box 1

    I work for a small social service agency VERY small non-profit and I try to get our paperwork until the twentieth century. I hope someone here can help me. I have adobe acrobat, but not of other adobe products. I converted our word document that we use for client notes in fillable pdf format and so far everyone is excited to try it. I have a huge problem that I can't understand. I have a customer named created drop-down list box that contains a list of 300 customers. Box 2 is named customer ID and will contain a unique identification code assigned to each customer.

    For example:

    CUSTOMER ID customer JANE DOE 12345678

    So here is my question how can I ensure that when Unetelle is selected 12345678 is already filled in the second field?

    I fill the drop-down list with the names of customer and then enter the customer ID as the value of exports. Note You must have a unique name for each client.

    If your customer ID starts at zero, then you must use a custom JavaScript, so you can keep the zero non significant.

    For the customer ID field, you can use the following custom JavaScript code:

    Event.Value = this.getField("DropBoxFieldName').valueAsString;

    You will need to change DropBoxFieldName name of the drop-down list.

    You will need a mechanism for updating the new customer form and IDs names.

  • Alignment to the left of the lists drop-down/dates

    Is it possible to align the drop-down list or a date picker (assume that without label) to the left as opposed to the default is good?

    Thanks in advance!

    Give it the style FIELD_LEFT by the manufacturer.

  • Why Twitter's Web site is not working properly; for example, the list drop-down settings?

    Many links on Twitter's Web site do not work in Firefox for Mac OS. For example, the 'gear' at the top of the page icon will not produce a drop-down menu so that I can disconnect. Instead, clicking on it sometimes produces basic account settings, but nothing else. The button "Compose a new Tweet" does nothing.

    I gave permission to Twitter to do anything and everything under "subject: permissions. I deleted all cookies on Twitter about the possibility that one of them has been altered. I can log into the twitter website and see other tweets.

    I'm running the most recent versions of the operating system Mac and Firefox and am not having problems with other sites I visit.

    Hello

    The reset Firefox feature can solve a lot of problems in restaurant Firefox to its factory default condition while saving your vital information.

    Note: This will make you lose all the Extensions, open Web sites and preferences.

    To reset Firefox, perform the following steps:

    1. Go to Firefox > help > troubleshooting information.
    2. Click on the button 'Reset Firefox'.
    3. Firefox will close and reset. After Firefox is finished, it will display a window with the imported information. Click Finish.
    4. Firefox opens with all the default settings applied.

    Information can be found in the article Firefox Refresh - reset the settings and Add-ons .

    This solve your problems? Please report to us!

    Thank you.

  • When I right click on the desktop I no lnger didn't get the menu drop-down normal.

    Y at - it a shortcut or another way to trigger this menu, or repair my right click?

    Hello

    ·         You will remember to do recent changes on the computer before this problem?

    ·         What exactly happens when you right click?

    I would say that are you talking about follow the steps below:

    Method 1:

    Run the System File Checker tool to troubleshoot missing or corrupted system files.  Follow the steps in the link:

    http://support.Microsoft.com/kb/929833

    Method 2:

    If the previous step fails, create new user account. Follow the steps in the link:

    http://Windows.Microsoft.com/en-us/Windows-Vista/create-a-user-account

  • When I right click on the desktop and get the menu drop down and go again, the 'Record' option is not available. How can I get that back?

    I tried to solve this problem with "Folder Options" in the control panel of Windows 7 but I did help and I "' reset all the original settings, which did not help either.

    I can't create new folders in any other folder either. Even the "New folder" option in the toolbar does not have what it is supposed to do, namely to create a new folder.

    You have installed chrome? It's looking like a recent update of chromium may be the cause. Here are two patches.

    How to remove and restore the default context Menu items 'New' in Windows 7 and Windows 8
    http://www.SevenForums.com/tutorials/28677-new-context-menu-remove-restore-default-menu-items.html

    If still no joy, see the 'response' by Linda Yan in this thread.
    http://social.technet.Microsoft.com/forums/en-us/w7itprogeneral/thread/97de8a2a-12f2-4381-A409-a78f4ae551cf/#99395761-56de-4a76-8C2A-eab498ad735a

    Tip: When you save the text in Notepad, the default file format is .txt. Replace all files.

  • When I open FirefoxI get a small window to sync list drop-down which is empty and crashes firefox.

    Firefox opens ok, but has quickly fall down, small window focused on the top that says "Sync", but quickly empties and reduces the right at the top of the wind. When this happens, it freezes Firefox and the only way out is to leave Firefox. I installed Firefox to the latest version on a Mac OS 10.9.3 of an earlier version.

    One last thing. You want or need to sync? Can I call someone to
    help you address them.

  • Is there a way to return to the menu drop-down button "return"?

    It's a giant pain click back several times when before I could just look in the menu to find the page I wanted to come back.

    Is there a way to do this somewhere else perhaps?

    You can get the menu drop-down by clicking on the previous/next buttons or now the left key pressed until the list is displayed.

    If you want the drop-down arrow, you can add it with the add-on of dropmarker rear - https://addons.mozilla.org/firefox/addon/backforward-dropmarker

  • Y at - it an option to activate the menu drop-down overview of the policies?

    Until about a week ago, I could type in the menu and the box of selection taking place and I could select fonts. (as in the image below) Now, it only goes to the exact police that I type, and there is no drop down with it. It's really make things more difficult for me. I can get the menu drop-down appears, but only if I click on the arrow and use the mouse. The second, that I start typing it disappears.

    Does anyone know how to recover my preview? I'm worried that I hit a weird keyboard shortcut.

    Untitled.jpg

    There are two search modes. Maybe you changed it. Read about it in this article.

    New features of Illustrator CC Type | Design of Type and layout in Adobe Illustrator | Peachpit

  • Try to change the menu drop-down

    I created a form that uses a lot of drop-down menus and trying to get the menu drop-down see the descriptions and have actually filled area with a number of coin instead of the description. I am not against XML encoding if necessary I am new to it but played around a little bit. Ideas or direction would be greatly appreciated thanks.

    Yes. To descriptions in the menu drop down and then specify values in the binding tab. In the event for the menu output drop-down put the code (in formcalc):

    If ($.rawValue == 1) then

    $.formattedValue = "109323" / / put all part number is here

    ElseIf ($.rawValue == 2) then

    $.formattedValue = "109324" / / etc

    endif

    the rawValue is the value of the option, the person has chosen in the menu and the formattedValue is what the box displays the exit event has run.

  • I created a PDF form with several drop downs, all with the same drop-down values. When I select a value of 1 in the drop-down list fields, it breeds in all others - which I don't want. How can I fix?

    I created a PDF form with several drop downs, all with the same drop-down values. When I select a value of 1 in the drop-down list fields, it breeds in all others - which I don't want. Can I fix?

    I am fairly new to this, but I think it has to do with the way you have drop them downs named. Copy you a then keep stick in each area? If so, that's the problem. You must rename each with a different number: Dropdown1, Dropdown2, etc. I think this might solve the problem.

  • How to fill out a drop-down list on the selection of items in another drop-down list using adf 12.1.3

    Hello

    I have a page that has the load drop-down lists and a "submit" button. The first drop down menu got filled using query based VO (IE read only VO) for LOV. The requirement is as below

    -on the selection of an element any in the first drop-down list, the user must fill the second dropdown.

    -Once the second dropdown is completed, the user can select element in the second drop-down list.

    -capture the second drop down menu items value selected in the method of action of the click on the submit button.

    Any help in this scenario will be useful.

    ---

    Rabindranath

    Sameh salvation,

    Thanks for the reply. Your code

    1. DCIteratorBinding iter is BindingContext.getCurrent () .getCurrentBindingsEntry () .get ("iteratorNameInPageDef") (DCIteratorBinding);.
    2. Object secondDropdownValue = iter.getCurrentRow () .getAttribute ("AttributeName");  has been really helpful to get the selected value.

    Thank you very much.

    ---

    Rabindranath

Maybe you are looking for