Populate LOV on page load

Hi,
I have a requirement that when the OA page is first time invoked, there is an Account ID request parameter that will be passed. I need to set the Id in LOV so that it will display the value on page load.
Example: AccountID=123 is passed as request param. Then LOV should display "Account123" on page load. Account123 is display value and 123 is key value.
Thanks,
Bhavnesh.
Edited by: bhavnesh_p on Feb 25, 2009 3:49 PM

Hi
u can do in this way in processRequest method
String Account_ID =(String) pageContext.getParameter("Account ID ");
OAMessageLOVInputBean mtiBean = (OAMessageTextInputBean)table.findIndexedChildRecursive("LovField_ID");
mtiBean.setText( pageContext,Account_ID );
Thanx
Pratap

Similar Messages

  • Display lov when page load

    hi i have a situation where i what lov to popup when the page load.my situation is i what a lov to popup with , the list of organisation when the page load and when the page load it must display only information for that selected organisation,has anyone done that.am in jdeveloper 11.1.1.6.0

    ok the organisation is selected in the first page which load,i what to select organisation and navigate to next page whare there is only that organisation details
    my first page is below
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
              xmlns:f="http://java.sun.com/jsf/core">
      <af:panelSplitter id="ps1" orientation="vertical" splitterPosition="148">
        <f:facet name="first"/>
        <f:facet name="second">
          <af:panelStretchLayout id="psl1" startWidth="126px" endWidth="124px">
            <f:facet name="bottom"/>
            <f:facet name="center">
              <af:panelStretchLayout id="psl2" endWidth="137px" startWidth="220px">
                <f:facet name="center">
                  <af:panelGroupLayout id="pgl1" layout="vertical" valign="middle"
                                       halign="center">
                    <af:panelStretchLayout id="psl3"
                                           inlineStyle="width:732px; height:340px;"
                                           bottomHeight="100px">
                      <f:facet name="bottom">
                        <af:panelGroupLayout id="pgl2" layout="vertical"
                                             valign="middle" halign="center">
                          <af:panelHeader text="Select Organisation To Update" id="ph1"
                                          inlineStyle="border-style:ridge; border-color:Blue; height:57px;">
                            <f:facet name="context">
                              <af:toolbar id="t1">
                                <af:commandButton text="UpdateOrganisation" id="cb1"
                                                  action="UpdOrg"/>
                              </af:toolbar>
                            </f:facet>
                            <f:facet name="menuBar"/>
                            <f:facet name="toolbar"/>
                            <f:facet name="legend"/>
                            <f:facet name="info"/>
                          </af:panelHeader>
                          <af:panelFormLayout id="pfl1"
                                              inlineStyle="border-color:Blue; border-style:ridge; height:24px; width:720px;">
                            <af:selectOneChoice value="#{bindings.OrgName.inputValue}"
                                                label="OrganisationName"
                                                required="#{bindings.OrgName.hints.mandatory}"
                                                shortDesc="#{bindings.OrgName.hints.tooltip}"
                                                id="soc1">
                              <f:selectItems value="#{bindings.OrgName.items}"
                                             id="si1"/>
                            </af:selectOneChoice>
                          </af:panelFormLayout>
                        </af:panelGroupLayout>
                      </f:facet>
                      <f:facet name="start"/>
                      <f:facet name="end"/>
                      <f:facet name="top"/>
                    </af:panelStretchLayout>
                  </af:panelGroupLayout>
                </f:facet>
                <f:facet name="top"/>
              </af:panelStretchLayout>
            </f:facet>
            <f:facet name="start"/>
            <f:facet name="end"/>
            <f:facet name="top"/>
          </af:panelStretchLayout>
        </f:facet>
      </af:panelSplitter>
    </jsp:root>Edited by: adf009 on 2013/02/06 5:12 PM

  • How to set Lov item property (Action type,event,parameter etc) in PR when page load

    Hi gurus
    I am new to OAF, First I need to explain my scenerio.
    I need to make some field mandatory or non mandatory based on one LOV item (Pick list or message choice list).
    for this i extended the controler and apply the changes, but in this case what heppen, It will effect only when i open the list (pop list) and click on more (Available in poplist) and it will open a new form and i select value from that form. But when I open the poplist and select the value from the same list rather going to more option (it does not open new form), then there are no effect. I though the issue with refreshing when selecting value from the same list.
    To resolving this issue what i did
    1. go to page == > the same LOV
    2. Change the Client Action properties (
         Action type  = fireAction
         event          = xxevent
        submit = true.
    After doing this when i run the page from my OAF enviroement , every thing is OK. Then I transfer the Controler to Server machine and change the controller and run the same page from the server, it has the same refreshing issue, Then I thought because I did not transfer LOV such properties so this is hepening,
    Now I want to initilize such properties in Page load or what I need to do, Please advise me.
    Regards,
    Haq

    Edward,
    Thank you for the suggestion! It directly lead to my solution wherein I used CASE statements for the column in my Region SELECT such as the following:
    WHEN (:P2_GRADING_METHOD = 'CR/NC' OR scs.scs_pass_audit = 'P') AND GET_GRADE_B93 (sac.stc_final_grade, sac.stc_verified_grade) IS NULL THEN htmldb_item.select_list_from_lov (5, 'Enter Grade', 'GRADE_LOV_CRNC','onBlur="return validate_grade(this,''FW_DATE_'||ROWNUM||''')"','NO',NULL,NULL,'GRADE_'||ROWNUM)
    When the column is NULL, the Select List (LOV) contains the entry 'Enter Grade' and that is the value displayed on page load. I bypass the value 'Enter Grade' during Submit Processing where database updating occurs.
    I did not find the need to enter values for p_null_value and p_null_text since I don't believe that it would cause the 'Enter Grade' value to display on page load for null value columns but rather would enable the user to select 'Enter Grade' from the list and have a specified return value stored in htmldb_item array.
    Again, thank you for the help!

  • Skillbuilders Super LOV - map values on page load?

    Hi,
    I'm passing an ID from one page into a SuperLOV item on another.
    Is there any way to make it perform the defined column mappings immediately to populate the other page items as if the ID had been selected manually?
    Regards
    Mark

    Execute javascript on load:
    $('#P53_COMPROD_ID').apex_super_lov('setValuesByReturn', $('#P53_COMPROD_ID_HIDDENVALUE').val());Is what i usually do. Second parameter is the return item value.
    >
    The getValuesByReturn and setValuesByReturn methods can be used to programmatically fetch return values and set the item using the return values. getValuesByReturn will return a JSON object with the results from the fetch. setValuesByReturn goes a step further using the return values to set the display and return values for the item. Example(s):
    $('#P1_ITEM_NAME').apex_super_lov('getValuesByReturn', '101');
    $('#P1_ITEM_NAME').apex_super_lov('setValuesByReturn', '999');

  • Populate some  Data after loading Seach Page

    Hi,
    I am using Jdeveloper 11.1.1.3, ADF BC. I have made an Application with search pages. As when the page loads ; inputtexts, LOVs, etc are not displayed, but only the labels are displayed. So when we click for search button then , text fields get displayed.
    Is there a way by which when the search page is loaded; i.e some data is already populated in the Fields.
    Thanks,
    NL

    Here is what I understand from your question[correct me if I am wrong]:
    You want to create a search page with table to show the result.
    1. I hope you have created a VO and added that VO to Application module.
    2. From data control expand AM -- VO -- Named Criteria
    3. Drag and drop any query criteria to the page as Query --> ADF Query Panel with Table
    for defaulting values in query criteria you do need to create a custom query criteria and drop that on to the page
    http://naive-amseth.blogspot.com/2010/08/how-to-default-data-on-search-criteria.html
    Amit

  • Pages load in juxtaposition --i.e. verbiage is on top of verbiage -not so on Safari - I love Firefox, is this fixable?

    Site pages load in juxtaposition --i.e. verbiage is on top of verbiage rendering an unreadable experience in many cases. I compared same sites with Safari to see whether problem was site (too many sites to mention)-- or Firefox's. Is it a settings thing - or ...?
    I LOVE Firefox. Any chance it is fixable?
    A million thanks,
    Suzy

    Well got this sorted, i managed to pick out the 'help' section on my desktop when i opened Firefox (not an easy task as you can see from my screen shoot) saw 'check for updates' mouse clicked all around this statement (as there were no buttons) and was advised to update to ver: 3.6.16 now everything is ok, still dont know what the problem was but hey its fixed, put a system restore point in just in case. thanks all.

  • Slowness on page load with LOVs

    Hi people
    I am on APEX 3.2 and Oracle database 11.2.0.2.0
    I have a page where I have to display 6 list boxes
    2 of the 6 list boxes show 10,000 records each
    2 od the 6 show 5000 each
    final 2 show 1500 each
    I have noticed that sometime (not always) this page would take about 3 minutes to fully load and other time it takes 5 seconds to load. The data in the list boxes is coming from SQL queries on some tables. There tables have indexes. Also note that when I run these queries in PL/SQL Developer or SQL-Plus they return records within seconds. Its just on the APEX page where "sometimes" it will just wait for several minutes.
    What could be the problem and are there any suggestions to fix this?. I have just read somewhere that I should change shared_server parameter to 5. Right now its 1. I will test this tomorrow morning.
    But this has really puzzled me. I have looked at the memory and cpu usage and nothing is happening while it waits for 3 minutes to open the page.
    Thanks for your suggestions

    Hi there..
    Peter is right... Creating a page that has select lists that are that large will rarely be performant. I'm surprised that you get an acceptable result as often as you do.
    You have to be careful when comparing the results you're getting in APEX with the results you get in other GUI interfaces to ORACLE. Often these GUI interfaces introduce array fetch processing behind the scenes without you even knowing it. For instance SQL Developer by default will only bring back the first 50 rows and only retrieve more as you scroll through the result set. This makes it SEEM like the query ran fast when in reality it was fast bringing back 50 rows.
    A more proper comparison would be to run the query in command line SQL*PLUS, which does no array fetch processing by default.
    As Peter said, DEBUG MODE is one way of looking at the what is actually happen in APEX when the page loads. If you're familiar with 10046 SQL Trace files, you can produce one of these for the page rendering by appending '&P_TRACE=YES' to the end of the URL for your page. W
    WARNING: If you're uninitiated, SQL Trace files are not for the faint of heart! Seek help from a DBA or Tuning Analyst...
    Hope this helps
    Doug Gault
    www.sumneva.com

  • Clear data in sql report region on page load....

    I have a sql report region.when i run the page the data getting populate on the screen because of the sql query. On page load i dont want to populate the data in screen.
    i have created the page process to clear cahe the page. but the data is not clearing from the screen.
    How to resolve this?
    Thanks & regards,
    Skud.

    Skud,
    you can create condition in report region query e.g. where 1 = :PXX_ITEM, and populate that item on click and then refresh report.
    Bt,
    Marko

  • No data found in report csv or pdf output on first page load

    No data found in report csv output on first page load. Report shows up on page, but no data found in csv or pdf output. I always need to submit the page and then it shows data in downloads. The page contains a form (read-only) with a report that references 4 page items by using something like the following:
    and b.employee_no = v('P5_EMPLOYEE_NO')
    and c.fisc_year_pk = v('P5_FISC_YEAR_PK')
    and b.job_class = v('P5_JOB_CLASS')
    and b.organization = v('P5_ORGANIZATION')
    Again, report in the page shows up except there is no data in downloads. Can anyone help me solve this problem? I'm running Oracle APEX 4.2.1 in Oracle database 11gR2.
    Thanks.

    Sounds like a classic session state issue.
    You need to populate you page items using page rendering computations to ensure they're set to session state.
    Or if the download is triggered from a button press, you need to ensure those page items are submitted to session state, perhaps via a PL/SQL action.
    Scott

  • Place default checkbox value "in SESSION" on initial page load

    Oracle 11.2
    Apex 4.1
    Desire outcome: Chart renders on inital page load using default value of checkbox in query.
    I have a checkbox with a default (checked) value. It shows checked when the page renders for the first time but the value is not in the SESSION state. I use this value in a query for a chart. I do not want to use a Submit button so I have a dynamic action submitting the value for the checkbox and the chart refreshes as desired when I check and uncheck the box.
    I tried "Fire on Page Load" in the DA Execution Options, as well, but that caused a loop where the page renders and immmediately renders, and immediately renders, etc.
    Is there a declarative solution that submits the current, in this case default, values when the page is loaded? I only need and want the default values used the first time the page is accessed. This is the initial page of the application but I need the same behavior on all pages for the separate checkbox selections found there.
    May God Bless,
    Howard

    Howard (DBA in Training) wrote:
    If I remove the Default Value and add a Before Header page computation for the item with static assignment to
    a:bI get the 2 A/B checkboxes, both checked, and the value is set in session state.If you log in here, you can see it up close and personal!
    http://apex.oracle.com/pls/apex/f?p=21997:3 Login: Dever / Ima9Dever
    The Default Value colon-delimited string must contain the checkbox values, not the labels. In a static LOV the checkbox options are specified as <tt>label;value</tt> pairs. Thus in your checkbox LOV the labels are A/B, whilst the values are a/b. The values are case-sensitive.
    The Default Value should therefore be:
    a:bwhereas you've specified:
    A:BWith the checkbox item LOV Display Extra Values property set to Yes, APEX displays these extra values that are not included in the LOV definition as additional checkboxes. You can see this if you inspect the rendered checkbox elements in the HTML source:
    <input type="checkbox" id="P3_CHECKBOX_0" name="p_v01" value="a">
    <input type="checkbox" id="P3_CHECKBOX_1" name="p_v01" value="b">
    <input type="checkbox" id="P3_CHECKBOX_2" name="p_v01" value="A" checked="checked">
    <input type="checkbox" id="P3_CHECKBOX_3" name="p_v01" value="B" checked="checked">You get the a/b values defined in the LOV, plus the extra A/B values the LOV knows nothing about.
    ==== ) How do you keep it from setting/resetting these values each time the
    page is rendered?  The need is to do it only the very first time?  ( ====Put a Value of Item / Column in Expression 1 Is NULL condition on the Computation. Problem then is that the computation will be run if the user can [legitimately] deselect all of the checkboxes, either leaving you back where you started, or requiring the use of a further item to flag whether it is the really "the very first time" (which I find intellectually deeply unsatisfactory). This may be a sign that the control should really be a radio group that always has one option set, rather than a check box.

  • How To Pupulate A Combobox on Page Load in JSP

    Hi All,
    How to populate a combobox on a JSP Page load.
    Please help.
    Regards,
    Dinesh

    Thanks,
    My current coding in jsp is :
    To get the ArrayList from my DAOImpl class.
    <%
    newAppDAOImpl dao = new newAppDAOImpl();
    dao.populateCombo(request);
    ArrayList filetypes = (ArrayList)request.getAttribute("FILETYPES");
    if(filetypes==null)
    filetypes=new ArrayList();
    pageContext.setAttribute("vecFileType" ,filetypes) ;
    %>
    For populating the combo:
    <html:select property="retailer" onclick="/search">
    <html:option value="----Select----"/>
    <html:options collection="vecFileType" property="value"
    labelProperty="label"/>
    </html:select>
    The above code is working for me.
    Regards,
    Dinesh

  • Status bar with opera style page loading statistics?

    Anyone ever seen an app or terminal code or something that allows us to see page loading stats (seconds taken, # images loaded, speed, etc) like the status bar in Opera or one you can load in FF? I would love to have this ability in Safari. I found one that gives instant feedback on W3C compliance of the loaded page, but not about page loading stats.

    I want simple and quick view of time took page to load, how many images, speed, etc...
    Load times can be found under Develop > Show Network Timeline, or by clicking on the Network icon located in the left-side column of the main Web Inspector window.
    I use it sometimes BUT it is a stand alone window...
    You might try clicking on the window-merge toggle button found in the extreme lower left corner of the Web Inspector window, directly underneath the Network icon. Good luck.

  • Oracle ADF refresh as deferred does not execute query on page load

    In the oracle ADF page I have two panel boxes. (Oracle ADF 11.1.1.4)
    a) Personal information panel box with PanelFormLayout (PersonalInfoViewObj) - ReadOnly View Object
    b) Address information panel box with Table (AddressInfoViewObj) - Read Only View Object
    For the iterators in a) and b) I have kept refresh condition as deferred and cacheResult=false. Also in b) for af:table, I have kept contentDelivery="immediate"
    When page loads it fires SQL query for a) and populate the data in Personal information panel box. However for b) it does not execute the SQL query and the data is not getting populated ( in AddressInformation panel with the tables. Please note data is there in the DATABASE......)
    Becasue with the refresh as deferred it was not executing the sql query for Panel b) (panel with Table and table iterator). I have tried refresh as always and refresh ifNeeded/renderModel/prepareModel however in that case it is executing the SQL query two times (twice).
    Please let me know the best way to fix this issue.

    Hi,
    I think you need a method in an application module to init your data.
    In your AM : create a method like :
    public void init(){
    getViewObject().executeQuery();
    }In your adfc-config.xml create a methodCall from this method and a "control flow case" from the methodCall to your page.
    and keep refresh as "deferred " in your pageDef.
    Clément

  • All my content appears on page load - is this Spry related?

    I remember having this issue when using Spry in the past. I changed the padding settings I think, and all the Accordions were open on page load - for only a second - and then closed.
    I'm working with a new site, and the template seemed fine but when I populate, all tabbed-content and a scroller content appear on page load. Then snap shut. Is it related? or a similar issue... I'm pretty desperate to be posting here but I it looks like the same sort of problem I had with Spry... maybe the template has been built with some of the same technology (?)
    http://bit.ly/ptaBVN
    Please help!

    Try this:
    1. Set a class that sets visibiliity to hidden:
    .hideGroup{visibility:hidden;}
    2. Add this class to your content group:
    <div class="SlidingPanelsContentGroup hideGroup">
    3. Add a line to sp_unobtrusive.js to remove this new class
    after the widget made.
    Spry.$$(".SlidingPanelsContentGroup").removeClassName("hideGroup");
    Add that right under the addEventListener lines.
    That should do it.
    Don

  • How to Auto Select some RadioButton on page load using ADF/JSF

    Hi,
    I am learning ADF and need some help. I have multiple radio buttons and couple of text boxes on my page. How can I make some radio button be selected based on some value from a database table and also populate the text boxes with the corrosponding value when a page loads. Any tips on how it can be done using ADF. Any sample tutorial will be helpful.
    Thanks

    Hi,
    when you e.g. use ADF BC then the radio button should be selected automatically based on the value of the attribute. If the row is new then you can have a default value specified in the ADF BC ViewObject attribute.
    However, if you just dragged the radio button and checkboxes onto the page - not using any ADF binding - then you will have to create a managed bean with a field variable (incl. setter/getter methods) to link the radio button's value property to it using Expression Language
    Frank

Maybe you are looking for