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');

Similar Messages

  • Skillbuilders - Super LOV plugin

    Hi,
    I am using Oracle APEX 4.2, I recently installed Skillbuilders - Super LOV plugin into my APEX instance. Everything worked fine.
    But later, I used jQuery grid plugin to show the result. and somehow the Super LOV plugin doens't work.
    The "Open Dialog" and "Clear Content" button disappeared.
    What i have done is inclued the following files at the page edit page
    Javascript
    File URLs
    http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js
    http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js
    /i/javascript/grid/pqgrid.min.js
    CSS
    File URLs
    http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/themes/base/jquery-ui.css
    /i/javascript/grid/pqgrid.min.css
    Can someone help me with this? I think maybe there is a confliction between SuperLOV plugin and the jQuery grid plugin?

    Max,
    I took a quick look and confirmed your findings. There is a solution, but it's a little complex. I've modified your application to do the first part, which is to "safely" add a new version of jQuery and jQuery UI to APEX:
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
    <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js"></script>
    <script>
       var jQ_1_8_3 = jQuery.noConflict(true);
       (function($) {
          $(document).ready(function() {
             alert ('Look at me, new version with the old $ reference: ' + $.fn.jquery);
       })(jQ_1_8_3);
    </script>The first 2 lines here bring in the new version of jQuery and then jQuery UI into the new jQuery object. The second part does two things. First, it uses noConflict to put the new version of jQuery in a custom variable named jQ_1_8_3 (while returning the previous value of jQuery and $ as they were). Second, I use "self-executing anonymous function/expression" to show you how you can still use the $ to refer to the new variable.
    Now, the next thing you would need to learn to do is to safely bring in the newer CSS file - that is if bringing it in now breaks something which may happen. That involves CSS scoping, which is an option you see when downloading jQuery UI (at the bottom): http://jqueryui.com/download/
    However, to do this, you would need to move to the file system and away from the hosted CDN files. I hope some of this makes sense...
    Regards,
    Dan
    blog: http://DanielMcghan.us/
    work: http://SkillBuilders.com/APEX/

  • How to remove an LOV Mapping in iProcurement Page..

    Hi All,
    In the iProcurement page, there is an LOV mapping for the LOV Expenditure Type. I need to remove the criteria item for one of the LOV mapping. Can any one please help me on how to remove Criteria Item in the LOV mapping.
    Regards,
    Ramakrishnan

    Hi Amit,
    Requirement:
    I have to display the LOV Expenditure Type in iProcurement screen based on the value entered by user in the LOV Task Number. I worte the following SQL statement in the VO of the expenditure type
    SELECT et.expenditure_type, et.sys_link_start_date_active, et.sys_link_end_date_active, 1 AS dummy_number FROM xxpa_exp_types_expend_v et WHERE et.system_linkage_function = 'VI' AND (SYSDATE BETWEEN et.sys_link_start_date_active AND NVL (et.sys_link_end_date_active, SYSDATE)) AND DECODE (et.billable_flag, 'No', 'N', 'Yes', 'Y', 'Both', 'Y') = (SELECT billable_flag FROM pa_tasks WHERE task_id = :2 AND project_id = :1)
    I am passing the value of parameter 1 and 2 from CO of the LOV region. But the LOV mapping 'Expenditure Type' has an criteria which gets added to the above query and does not display any row in runtime.
    SELECT * FROM (SELECT et.expenditure_type, et.sys_link_start_date_active, et.sys_link_end_date_active, 1 AS dummy_number FROM xxpa_exp_types_expend_v et WHERE et.system_linkage_function = 'VI' AND (SYSDATE BETWEEN et.sys_link_start_date_active AND NVL (et.sys_link_end_date_active, SYSDATE)) AND DECODE (et.billable_flag, 'No', 'N', 'Yes', 'Y', 'Both', 'Y') = (SELECT billable_flag FROM pa_tasks WHERE task_id = :2 AND project_id = :1)) QRSLT WHERE (( UPPER(EXPENDITURE_TYPE) like UPPER( :3) ))
    There is an similar functionality available in iSupplier-->Banking Details page where the bank branch LOV dsiplays value based on the Bank Name entered by user in Bank Name LOV.
    Now I have to use the same functionality available in isupplier page in my requirement to pass value from Task LOV to Expenditure Type LOV. Please let me know how to solve the issue.
    Regards,
    Ramakrishnan

  • Adding a LOV MAP in a Page resulting page (invalid name space error) error

    Hi,
    I am trying to add a new LOV to a region in one of the oracle product self service pages.
    I am getting the LOV region displayed, but the moment I add lov mappings I am gettting the invalid name space error.
    Your help on this is highly appreciated. For your reference I am attaching the error below.
    ElementData.java:103) at oracle.adf.mds.internal.Cache.cacheElement(Cache.java:645) at oracle.adf.mds.internal.BaseCache.create(BaseCache.java:157) at oracle.adf.mds.internal.parse.ElementParser.startElement(ElementParser.java:222) at oracle.cabo.share.xml.TreeBuilder$Handler.startElement(Unknown Source) at oracle.cabo.share.xml.ParserAdapter.startElement(Unknown Source) at oracle.xml.parser.v2.XMLContentHandler.startElement(XMLContentHandler.java:167) at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1182) at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:301) at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:268) at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:149) at oracle.cabo.share.xml.ParserAdapter.parse(Unknown Source) at oracle.cabo.share.xml.TreeBuilder.parse(Unknown Source) at oracle.cabo.share.xml.TreeBuilder.parse(Unknown Source) at oracle.adf.mds.internal.parse.ParserUtils.createNode(ParserUtils.java:283) at oracle.adf.mds.internal.parse.ParserUtils.createNode(ParserUtils.java:115) at oracle.adf.mds.adapters.DBAdapter.getElementData(DBAdapter.java:324) at oracle.adf.mds.internal.MetadataManagerBase.findElement(MetadataManagerBase.java:1237) at oracle.adf.mds.MElement.findElement(MElement.java:97) at oracle.apps.fnd.framework.webui.JRAD2AKMapper.getRootMElement(JRAD2AKMapper.java:493) at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getWebBeanTypeDataFromJRAD(OAWebBeanFactoryImpl.java:3783) at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getRootApplicationModuleClass(OAWebBeanFactoryImpl.java:3460) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:988) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:497) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:418) at oa_html._OA._jspService(_OA.java:88) at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119) at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417) at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267) at oracle.jsp.JspServlet.internalService(JspServlet.java:186) at oracle.jsp.JspServlet.service(JspServlet.java:156) at javax.servlet.http.HttpServlet.service(HttpServlet.java:588) at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456) at org.apache.jserv.JServConnection.run(JServConnection.java:294) at java.lang.Thread.run(Thread.java:534) oracle.adf.mds.exception.MDSRuntimeException: Invalid namespace: The namespace "null" has not been registered with the MetadataManager at oracle.adf.mds.internal.MetadataManagerBase.getElementDef(MetadataManagerBase.java:330) at oracle.adf.mds.internal.ElementData.(ElementData.java:103) at oracle.adf.mds.internal.Cache.cacheElement(Cache.java:645) at oracle.adf.mds.internal.BaseCache.create(BaseCache.java:157) at oracle.adf.mds.internal.parse.ElementParser.startElement(ElementParser.java:222) at oracle.cabo.share.xml.TreeBuilder$Handler.startElement(Unknown Source) at oracle.cabo.share.xml.ParserAdapter.startElement(Unknown Source) at oracle.xml.parser.v2.XMLContentHandler.startElement(XMLContentHandler.java:167) at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1182) at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:301) at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:268) at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:149) at oracle.cabo.share.xml.ParserAdapter.parse(Unknown Source) at oracle.cabo.share.xml.TreeBuilder.parse(Unknown Source) at oracle.cabo.share.xml.TreeBuilder.parse(Unknown Source) at oracle.adf.mds.internal.parse.ParserUtils.createNode(ParserUtils.java:283) at oracle.adf.mds.internal.parse.ParserUtils.createNode(ParserUtils.java:115) at oracle.adf.mds.adapters.DBAdapter.getElementData(DBAdapter.java:324) at oracle.adf.mds.internal.MetadataManagerBase.findElement(MetadataManagerBase.java:1237) at oracle.adf.mds.MElement.findElement(MElement.java:97) at oracle.apps.fnd.framework.webui.JRAD2AKMapper.getRootMElement(JRAD2AKMapper.java:493) at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getWebBeanTypeDataFromJRAD(OAWebBeanFactoryImpl.java:3783) at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getRootApplicationModuleClass(OAWebBeanFactoryImpl.java:3460) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:988) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:497) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:418) at oa_html._OA._jspService(_OA.java:88) at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119) at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417) at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267) at oracle.jsp.JspServlet.internalService(JspServlet.java:186) at oracle.jsp.JspServlet.service(JspServlet.java:156) at javax.servlet.http.HttpServlet.service(HttpServlet.java:588) at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456) at org.apache.jserv.JServConnection.run(JServConnection.java:294) at java.lang.Thread.run(Thread.java:534) ">
    oracle.apps.fnd.framework.OAException: No data found for region (/oracle/apps/gl/controls/webui/ControlAssociationsPG).
         at oracle.apps.fnd.framework.webui.JRAD2AKMapper.getRootMElement(JRAD2AKMapper.java:527)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getWebBeanTypeDataFromJRAD(OAWebBeanFactoryImpl.java:3783)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getRootApplicationModuleClass(OAWebBeanFactoryImpl.java:3460)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:988)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:497)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:418)
         at _oa__html._OA._jspService(_OA.java:88)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    oracle.adf.mds.exception.MDSRuntimeException: Invalid namespace: The namespace "null" has not been registered with the MetadataManager
         at oracle.adf.mds.internal.MetadataManagerBase.getElementDef(MetadataManagerBase.java:330)
         at oracle.adf.mds.internal.ElementData.<init>(ElementData.java:103)
         at oracle.adf.mds.internal.Cache.cacheElement(Cache.java:645)
         at oracle.adf.mds.internal.BaseCache.create(BaseCache.java:157)
         at oracle.adf.mds.internal.parse.ElementParser.startElement(ElementParser.java:222)
         at oracle.cabo.share.xml.TreeBuilder$Handler.startElement(Unknown Source)
         at oracle.cabo.share.xml.ParserAdapter.startElement(Unknown Source)
         at oracle.xml.parser.v2.XMLContentHandler.startElement(XMLContentHandler.java:167)
         at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1182)
         at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:301)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:268)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:149)
         at oracle.cabo.share.xml.ParserAdapter.parse(Unknown Source)
         at oracle.cabo.share.xml.TreeBuilder.parse(Unknown Source)
         at oracle.cabo.share.xml.TreeBuilder.parse(Unknown Source)
         at oracle.adf.mds.internal.parse.ParserUtils.createNode(ParserUtils.java:283)
         at oracle.adf.mds.internal.parse.ParserUtils.createNode(ParserUtils.java:115)
         at oracle.adf.mds.adapters.DBAdapter.getElementData(DBAdapter.java:324)
         at oracle.adf.mds.internal.MetadataManagerBase.findElement(MetadataManagerBase.java:1237)
         at oracle.adf.mds.MElement.findElement(MElement.java:97)
         at oracle.apps.fnd.framework.webui.JRAD2AKMapper.getRootMElement(JRAD2AKMapper.java:493)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getWebBeanTypeDataFromJRAD(OAWebBeanFactoryImpl.java:3783)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getRootApplicationModuleClass(OAWebBeanFactoryImpl.java:3460)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:988)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:497)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:418)
         at _oa__html._OA._jspService(_OA.java:88)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:534)
    oracle.adf.mds.exception.MDSRuntimeException: Invalid namespace: The namespace "null" has not been registered with the MetadataManager
         at oracle.adf.mds.internal.MetadataManagerBase.getElementDef(MetadataManagerBase.java:330)
         at oracle.adf.mds.internal.ElementData.<init>(ElementData.java:103)
         at oracle.adf.mds.internal.Cache.cacheElement(Cache.java:645)
         at oracle.adf.mds.internal.BaseCache.create(BaseCache.java:157)
         at oracle.adf.mds.internal.parse.ElementParser.startElement(ElementParser.java:222)
         at oracle.cabo.share.xml.TreeBuilder$Handler.startElement(Unknown Source)
         at oracle.cabo.share.xml.ParserAdapter.startElement(Unknown Source)
         at oracle.xml.parser.v2.XMLContentHandler.startElement(XMLContentHandler.java:167)
         at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1182)
         at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:301)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:268)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:149)
         at oracle.cabo.share.xml.ParserAdapter.parse(Unknown Source)
         at oracle.cabo.share.xml.TreeBuilder.parse(Unknown Source)
         at oracle.cabo.share.xml.TreeBuilder.parse(Unknown Source)
         at oracle.adf.mds.internal.parse.ParserUtils.createNode(ParserUtils.java:283)
         at oracle.adf.mds.internal.parse.ParserUtils.createNode(ParserUtils.java:115)
         at oracle.adf.mds.adapters.DBAdapter.getElementData(DBAdapter.java:324)
         at oracle.adf.mds.internal.MetadataManagerBase.findElement(MetadataManagerBase.java:1237)
         at oracle.adf.mds.MElement.findElement(MElement.java:97)
         at oracle.apps.fnd.framework.webui.JRAD2AKMapper.getRootMElement(JRAD2AKMapper.java:493)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getWebBeanTypeDataFromJRAD(OAWebBeanFactoryImpl.java:3783)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getRootApplicationModuleClass(OAWebBeanFactoryImpl.java:3460)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:988)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:497)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:418)
         at _oa__html._OA._jspService(_OA.java:88)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:534)

    Which version are you using? I believe that adding regions started from CU2. Confirm this.
    Did you set the profle FND:OA Enable Defaults? This may not be the cause for your error but I got some LOV map errors because of this. There is a thread in the forum on this.
    Ensure that your path and spelling are correct. The error shows ...CostPG. Should it be ...RN perhaps? LOV Regions are usually called RN.
    If all else fails open a tar.

  • Selectboolean Checkbox value on Page load

    Hi,
    My requirement is : I have a Selectbooleancheckbox on a jspx page and I want to display Selectbooleancheckbox[b] "checked" when I run the jspx page...what should I do for this?Should I write some code in the getter method of Selectbooleancheckbox?If yes ,then what is the code?
    Please reply ASAP.
    Thanks,
    Shantala.

    Hey Mike,
    The best way to do this is to use AJAX . I am not sure if the other item you are referencing is an item on the same page or an item from a previous page. The only differenceis that is the that item is on the same page, then you will need few more AJAX code ,to trigger the value of that field ( something like OnItemChange....).
    However, if it is an item on a prvious (other) page, then all what you need to do is to add AJAX code to your page ( On Page Load) that simply preset the checklist checked values based on the passed item value.
    Hope this helps,
    Sam K

  • Retain Values on Page load

    Hello,
    I am using Application Express 4.1.0.00.3.
    I have a page load process- On Load Before header- which loads the values in the page items if :P4_ID is not null. I give the condition as :P4_ID IS NOT NULL : All works fine.
    But I don't want this process to be executed if somebody presses on Upload1 and Upload2 buttons on the same page. So I give this condition under PL/SQL expression :
    :P4_ID IS NOT NULL AND :REQUEST != 'UPLOAD1' AND :REQUEST != 'UPLOAD2'
    --It doesn't  load any values at all.
    I tried with this syntax :
    :P4_ID IS NOT NULL AND :REQUEST < > 'UPLOAD1' AND :REQUEST< > 'UPLOAD2'
    (I have less than and greater than sign in between :REQUEST and UPLOAD1 . Similar way with UPLOAD2. Not sure why it is not displaying here. So editing the message )
    Any idea how the condition should be written so that the process runs when the P4_ID is not null and no UPLOAD1 or UPLOAD2 buttons are pressed.
    Regards,
    Archana
    Edited by: archana2 on Aug 9, 2012 6:32 PM
    Edited by: archana2 on Aug 9, 2012 6:33 PM

    Joe,
    Thank you for the reply.
    I have following fields on the page : P4_ID, P4_Name, P4_details , P4_state
    Buttons : Upload1, Upload2, Submit_Record
    If I am editing the record, P4_ID has a value :say eg : 1234, and on load I am loading values into these fields - P4_ID, P4_Name, P4_details , P4_state - from the table
    This is the scenario where I have problem :
    I edit the record, change the value of P4_details -- Press the button :Upload1 - Page gets submitted.
    Now P4_details has a new value but because of the page load process , it again loads the values from the table. Newly entered value is lost.
    I want the final Submission into the table to happen only when 'Submit_Record' button is pressed. But I want to retain newly entered values after 'Upload1' and 'Upload2' button press.
    So , the condition is -run the process only when P4_ID is not null and button pressed is not UPLOAD1 and button pressed id not Upload2.
    Not sure why my condition given is not working. Any problem in the syntax or anything else i need to change ?
    Regards,
    Archana

  • Issue using Super LOV within Skillbuilders Modal page

    Hi,
    I have an app that has an Interactive Report which opens a form using the Skillbuilders Modal page when you click Create button. Within the Modal Page I have a few items that are using the Skillbuilders Super LOV. It all initially works great but when my validations fire and there are any errors displayed, the Super LOVs stop working. So it won't allow user to search using the LOV.
    I have an example here: http://apex.oracle.com/pls/apex/f?p=70422
    Any help would be appreciated.
    Apex 4.2.0, 11g
    thanks,
    Spaa124

    I am using Firefox 17.0.6.
    It works fine in Chrome

  • 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

  • Dependent field not available on page load

    I have a form on my website to that uses java script to map dependent values. If I set the first value on page load, the values in the second field aren't available. If I cycle the first field, the scripting runs and the dependent options are available.
    The dropdowns work when the first is pre-selected in IE and Safari, this is causing problems for our Firefox users.

    Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox. <br />
    http://forums.mozillazine.org/viewforum.php?f=25 <br />
    You'll need to register and login to be able to post in that forum.

  • 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 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!

  • 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

  • Date Picker has to submit the default value after the page load???

    Hello All,
    I have 2 date pickers 'Start' and 'End' on a screen with report that has a where clause using above values. Start defaults to current date, End defaults to current month end date, I have another radio group with default to Monthly......
    Now when the page loads, I see the default values for 'Start' and 'End' date pickers but the report doesn't reflect those values. I added an on change dynamic action, and so when I change the value of 'End' date picker, it submits the page and now the values are reflected in the report........
    I tried creating another dynamic action > with event On Page Load.....and disable fire on page load, and to submit the page, this is causing an infinite loop of submitions........can you please tell me how to achieve this with out putting an exclusive submit button on the Screen.......
    Thanks for your time.
    DK

    user12296343 wrote:
    Hello All,
    I have 2 date pickers 'Start' and 'End' on a screen with report that has a where clause using above values. Start defaults to current date, End defaults to current month end date, I have another radio group with default to Monthly......
    Now when the page loads, I see the default values for 'Start' and 'End' date pickers but the report doesn't reflect those values. I added an on change dynamic action, and so when I change the value of 'End' date picker, it submits the page and now the values are reflected in the report........
    I tried creating another dynamic action > with event On Page Load.....and disable fire on page load, and to submit the page, this is causing an infinite loop of submitions........can you please tell me how to achieve this with out putting an exclusive submit button on the Screen.......
    Thanks for your time.
    You don't have to submit the page here.
    What version of apex?
    What report is it? i.e. Interactive report/Classic report
    Depending on your version of apex you can simply use the Page Items to Submit attribute to set the session state

  • 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.

  • Setting components values in the ADF page load time

    Hi,
    We are trying to set the components labels dynamically, so each time the page is loaded we are loading the related labels from the database, instead of using the default database column names driven labels.
    We get the labels text okay from the database in the afterPhase method, but we do not have access to the output text UI items then, so a call scuh as this getOutputText1() will return null.
    We have also tried to use value binding for the output text, e.g. value=#{backing_untitled2.verbiage}, where verbiage attribute was set in the afterPhase method. The method is called okay and sets the attribute, but for some reason the attribute is then set back and displayed as null.
    The same code is executed okay in a command button.
    Any idea why is that failing, or how to populate these labels dynamically in the page load time better than the above?
    Thanks in advance
    Mohamed Elmallah

    Hi,
    I think you should re-think your strategy and not read the labels from the database all the time. Instead, read it into a class that extends HashMap one time and put it into the session. Then reference the bean #{sessionScope.beanname['label'], which will call the HashMap's getter method. Use the "label" name to find the label for the particular key
    If you r application becomes big, you may want to think of handling the session bean size through leaning it under specific conditions
    Frank

Maybe you are looking for