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.

Similar Messages

  • Execute search programatically during initial page load.

    hi,
    when the page is initially rendered, i have requirement to have the page automatically retrieve rows that belong to the user (ie execute a search programatically)
    to achieve that i did the following -
    1. created search page using autocustomizationcriteria
    2. mapped all search fields to corresponding VO fields ( i intend to not override the default where clause since all my search can directly be mapped to a VO attribute)
    3.populated the userlogin value into the corresponding search field as follows -
    String lg = pageContext.getUserName();
    OAMessageLovInputBean lovBean = (OAMessageLovInputBean)webBean.findChildRecursive("searchLogin"); //the searchfield is a messageLOVInput
    lovBean.setValue(pageContext, lg);
    the behavior i was expecting is for the page to automatically generate the where clause since i populated the search field that is mapped to the VO attribute and execute the query (i did not invoke executequery() per dev guide) BUT instead it is executing a BLIND query with no where clause.
    would appreciate any insight into what i am doing wrong....
    thank you.

    hi, i had initially done the setting of the whereclause and executing programatically. however, when you do that, subsequently, the 'Go' button also needs to be handled programatically (including all search criteria whereclause generation) and then you loose all the features of the queryBean especially the different search options (eg like , starts with etc) on the Advanced Panel unless you code for all those features yourself...... NOTE - the need to handle the 'Go' button yourself happens even though after executeQuery() for just the initial page load, i reset the whereclause and whereclauseparams to NULL....
    i also do not have a formvalue associated with the searchlogin field.
    any other inputs please ?
    thank you.
    Edited by: user8249972 on Jan 28, 2013 10:22 AM

  • Passing checkbox values to popup window on page submit

    Hello,
    I'm using APEX 3.2.
    On one page I have a SQL report with checkboxes that are dynamically created using SQL: select apex_item.checkbox(1, bm_id) as "check", ...
    I now want to add a button to the page and when a user clicks on the button, the page should submit and a popup window should open with some extra fields to fill in. Now, in the popup window, I want to add a PL/SQL process and loop to all the values of the checked checkboxes in the parent page using the APEX_APPLICATION.G_F01() array. Can I do this? I tried it but the array always seems to be empty. Do I have to pass all checked values to the Javascript function which opens the popup window??
    Thanks,
    Matthias

    Matthias:
    The APEX_APPLICATION.G_F01() will have values only after the form has been submitted.
    So,your best bet is to use javascript to make the selected checkbox values available in the pop-up window.
    Varad

  • CSS on some pages is not displaying properly on initial page load.

    I'm running into an issue where a page loads and the styles do not render correctly. After the page loads, I can temporarily fix this by choosing: View->Page Style->No Style, then doing it again with: View->Page Style->Basic Page Style. Though when navigating away from the page and then coming back to it, I will have to do it over again.
    I'm experiencing this issue on v. 36.0.3 for Windows and v. 36.0 for Ubuntu

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    You can check the Net log and the Network log in the Web Console (Firefox/Tools > Web Developer) to see how long it takes for content to arrive.
    *https://developer.mozilla.org/Tools/Network_Monitor
    You can also try to reset (power on/off) the router and maybe check with your ISP if it happens on more than one OS.

  • OCI bowser generates new session with each page load

    Here is a summary of my problem:
    I am trying to implement the SAP Open Catalog Interface (OCI) with our eCommerce software, but I am having issues with the Web browser that OCI uses.
    Our eCommerce software utilizes the browser session id to identify the user. Our issues is that the OCI browser supplies a new session id with each page load.
    The weird part is that if I open a standard instance of IE, access the site, and then access the site though OCI the same session is shared by both the OCI browser and the IE browser. The OCI browser is now able to maintain the session ID as the user browses the site.
    Thanks.

    Thank you for your quick response.
    I understand that session IDs are always unique, and should only last for as long as the instance of the browser is open.
    What I have seen happen is that the session ID will get recreated with each page load with in a single instance of the OCI browser.
    When the site is opened in OCI it logs the user in, and then redirects them to the homepage. The problem is that the load of the login page, and the load of the homepage have different session IDs. If the user then clicks on a link on the homepage that page load will again have a different page load. This causes the eCommerce system to see them as separate users.
    As I described when I open an instance of IE first it seems to work. This leads me to believe that the OCI browser can read the cookie information, but can't write or create. 
    I am trying to figure out why the OCI browser keeps generating new Session IDs.

  • Safari's initial page load delay... where to turn off or change?

    Hi,
    A while back I read that Safari puts a few seconds delay when loading a new webpage, .. and 4.03 still has it. I just can't find where it was that I read how to take it off.. Does any one know?
    Basically I want Safari to start drawing the page as soon as it gets to it, kind of like opera does.
    Just in case Why don't I just use opera? I prefer Safari, but I don't always need the initial page that is loading but a link on it... and I find myself waiting.. and on fast connection, just to load a page I shouldn't have to be waiting until the browser feels the page load is complete.
    Thanks
    Oscar

    HI,
    There's no delay feature that you are referring to in Safari. If you can find the article you read, could you please post it here?
    Have you tried emptying the cache?
    From the Safari Menu Bar, click Safari/Empty Cache
    Also, try using Open DNS
    Carolyn
    Message was edited by: Carolyn Samit

  • How to set the default context value for flexfield in OAFramework pages

    Hi,
    I have a page which contains a contexxt value field i.e Flexfields
    To select the context value we have to select the value from drop down
    So Here we want to display the context value immediately when the page is called
    How to set the default valu in this case
    Regards,
    Krishna

    You can set the Attribute category view attribute to the Flexfield context value and call prepareforRendering in the flex bean. Check the dev guide for details.
    Regards
    Sumit

  • Problem setting variables after initial page load

    So, I'm pretty new to ColdFusion and hoping this is an easy fix.  I have a .cfm page that opens from several different points in a website.  Depen
    ding on which point it opens from, the variables room and activebutton are assigned different values via an onclick event.  Based on these values, the room variable sets a background image for a div and the activebutton sets the textcolor for a different div via a stylesheet in the head of the document.  Now, this part works fine with the following code in the stylesheet in the documents head:
    #fp_r1_c2 {
    background-image:url('images/<cfoutput>#room#</cfoutput>');
    width:599px;
    height:577px;
    float:left;
    #<cfoutput>#activebutton#</cfoutput>
    color:#FFF;
    Heres where things get hairy.  After I have those initial variables set there are 6 divs (the ones that activebutton changes the color attribute of) that the user can click on.  When any div is clicked its color should set to #FFF and whatever div was previously selected should change back to the default color for the page.  In addition, the background-image attribute of the other div that was set by the room variable must change to a new image that corresponds to each button.
    I've tried several methods, most of which I probably messed up anyhow.  But I'm completely stumped how to accomplish this.  Researching online has shown me that I can't include the new values in any kind of onclick command...so how exactly should I go about accomplishing what I need done?
    Tthanks in advance for any assistance!

    You need to understand the underlying premise that ColdFusion is a "server-side" language. Once the page is generated and sent to the client as HTML, everything is in the hands of the client until the next request back to the server. So, if you want to do much in between server calls, a client-side tool such as JavaScript is the answer.

  • ADF method call to fetch data from DB before the initiator page loads

    Hello everyone
    I'm developing an application using Oracle BPM 11.1.1.6.0 and JDeveloper 11.1.1.6.0
    I want to fetch some data from the database before the initiator task, so that when the user clicks on the process name, his/her history will be shown to them before proceeding.
    It was possible to have a service task before the initiator task in JDeveloper 11.1.1.5.0, but I have moved to 11.1.1.6.0 and it clearly mentions this to be an illegal way.
    I came across this thread which suggested to do this using an ADF method call, but I don't know how since I'm new to ADF.
    Re: Using Service Task Activity before Initiator Task issue
    Can anyone show me the way?
    Thanks in advance

    Thanks Sudipto
    I checked that article however I think I might be able to do what I want using ADF BC.
    See, what I'm trying to do is to get a record from a database and show it to the user on the initiator UI.
    I have been able to work with ADF BC and View Objects to get all the rows and show them to the user in a table.
    However, when I try to run the same query in the parameterized form to just return a single row, I hit a wall.
    In short, My problem is like this:
    I have an Application Module which has an entity object and a view object.
    My database is SQL Server 2008.
    when I try to create a new read only view object to return a single row I face the problem.
    The query I have in the query section of my View Object is like this:
    select *
    from dbo.Employee
    where EmployeeCode= 99which works fine.
    However when I define a bind variable, input_code for example, and change the query to the following it won't validate.
    select *
    from dbo.Employee
    where EmployeeCode= :input_codeIt just keeps saying incorrect syntax near ":" I don't know if this has to do with my DB not being Oracle or I'm doing something wrong.
    Can you help me with this problem please?
    thanks again
    bye

  • Slow initia page load

    Hi there,
    I am experiencing another issue where loading the initial
    roboHelp home page can take up to 1-2 minutes. Once this page is
    loaded all subsequentrequests are fine. If I close the browser and
    wait an hour or so, I get the same slow response again. This
    happens even when I request the page on the server itself. I
    noticed on the server (win2000) dllhost.exe goes nuts taking up of
    50% CPU for 1-2 mins. Anyone got any ideas?
    Thanks for your time,
    Cam.

    It might be worth looking at any anti-virus software to see
    if that is the cause of the problem. I've seen instances with
    ordinary webhelp output where the initial load of the help took
    ages. Once the start page was assigned as "trusted" in the
    anti-virus software all was OK.

  • When i try to open a site, i get several new pages open with 4 tabs apiece, 2 index of files pages and 2 server not found pages. i have had as many as 10 of these pop up one after the other. initial page loads but i have to close all the other pages.

    i have an HP with mozilla 4 browser

    Hi,
    Thanks for the reply. I have tried this on another machine running the same version of Blackboard. It works fine.
    Only difference is that the machine that has the JVM crash is running on Fujitsu PrimePower and the OS is Solaris 9 (but twigged for PrimePower).
    The one where it runs and starts up successfully is running on SunFire (OS is Solaris 10).
    I am wondering if there is a problem with the JVM loading required libraries because of the OS being different versions.
    Any leads on this is welcomed. Thank you.
    Regards,
    Hon Peng
    ===================
    On Fujitsu Primepower
    SunOS 5.9 Generic_118558-33 sun4us sparc FJSV,GPUS
    the Dependencies for libjvm.so are as follows:
    ===================
    bash-2.05$ ldd -r libjvm.so
    libsocket.so.1 => /usr/lib/libsocket.so.1
    libsched.so.1 => /usr/lib/libsched.so.1
    libdl.so.1 => /usr/lib/libdl.so.1
    libCrun.so.1 => /usr/lib/libCrun.so.1
    libm.so.1 => /usr/lib/libm.so.1
    libthread.so.1 => /usr/lib/libthread.so.1
    libc.so.1 => /usr/lib/libc.so.1
    libnsl.so.1 => /usr/lib/libnsl.so.1
    libmp.so.2 => /usr/lib/libmp.so.2
    /usr/platform/FJSV,GPUS/lib/libc_psr.so.1
    =====================================
    On SunFire, Sun machine
    SunOS 5.10 Generic_118833-36 sun4u sparc SUNW,Sun-Fire-280R
    the dependencies are different for the libjvm.so:
    =====================================
    bash-2.05$ ldd -r libjvm.so
    libsocket.so.1 => /lib/libsocket.so.1
    libsched.so.1 => /usr/lib/libsched.so.1
    libdl.so.1 => /lib/libdl.so.1
    libCrun.so.1 => /usr/lib/libCrun.so.1
    libm.so.1 => /lib/libm.so.1
    libthread.so.1 => /lib/libthread.so.1
    libc.so.1 => /lib/libc.so.1
    libnsl.so.1 => /lib/libnsl.so.1
    libmp.so.2 => /lib/libmp.so.2
    libmd5.so.1 => /lib/libmd5.so.1
    libscf.so.1 => /lib/libscf.so.1
    libdoor.so.1 => /lib/libdoor.so.1
    libuutil.so.1 => /lib/libuutil.so.1
    /platform/SUNW,Sun-Fire-280R/lib/libc_psr.so.1
    libm.so.2 => /lib/libm.so.2
    /platform/SUNW,Sun-Fire-280R/lib/libmd5_psr.so.1

  • Problem with initial page load

    Hi,
    I have created an interactive guide to Yellowstone:
    http://www.expeditionguides.com/yellowstone/yellowstoneXG.html
    However, when I visit the site for the first time the main menu's background image doesn't show up. Instead, the page is black for 10-15 seconds (when I view it in a Firefox browser on my Galaxy smartphone, it never changes from black).  On my desktop Firefox browser, the main menu's background image eventually shows up and from that point on there is no problem.
    I am guessing that the problem stems from the fact that the page features a video and an extensive virtual tour, both of which are pretty large in size. My objective was to fade the main menu image when either the video or virtual tour buttons are selected, revealing the applicable content below.  Does anyone have a suggestion on how to tweak this to make the main menu image and buttons show up faster?
    Thanks,
    Paul

    I would try using OpenDNS servers. System Preferences>Network>Advanced>DNS. In the left side column click on the + sign and add the following:
    208.67.222.222
    208.67.220.220
    Click OK. Then click Apply.
    Info on OpenDNS is here:
    http://www.opendns.com/

  • 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

  • Designate a tab in a tabbed panel as the default start tab on page load?

    How can I designate a tab in a tabbed panel as the default start tab on page load? Anyone know?

    Hi Lightcatcher,
    By default, the first tab opens when a page loads. You can drag the tabs left/right and make the desired tab first tab.
    Regards,
    Aish

  • Error: Missing initial value for session parameter

    Hi,
    I'm facing a problem while running the ETL process for Complete 11.5.10 Execution Plan in DAC Client. Some tasks are getting failed beacuse of the following error:-
    ERROR : TM_6292 : (5080|4064) Session task instance [SDE_ORA_Product_Category_Derive_Full]: VAR_27026 [Error: Missing initial value for session parameter:[$DBConnection_OLAP].].
    ERROR : TM_6292 : (5080|4064) Session task instance [SDE_ORA_Product_Category_Derive_Full]: CMN_1761 [Timestamp Event: [Mon Nov 19 21:01:52 2007]].
    ERROR : TM_6292 : (5080|4064) Session task instance [SDE_ORA_Product_Category_Derive_Full]: TM_6270 [Error: Variable parameter expansion error.].
    ERROR : TM_6292 : (5080|4064) Session task instance [SDE_ORA_Product_Category_Derive_Full]: CMN_1761 [Timestamp Event: [Mon Nov 19 21:01:52 2007]].
    ERROR : TM_6292 : (5080|4064) Session task instance [SDE_ORA_Product_Category_Derive_Full]: TM_6163 [Error initializing variables and parameters for the paritition.].
    ERROR : TM_6292 : (5080|4064) Session task instance [SDE_ORA_Product_Category_Derive_Full]: CMN_1761 [Timestamp Event: [Mon Nov 19 21:01:52 2007]].
    ERROR : TM_6292 : (5080|4064) Session task instance [SDE_ORA_Product_Category_Derive_Full]: TM_6226 [ERROR:  Failed to initialize session [SDE_ORA_Product_Category_Derive_Full]].
    ERROR : LM_36320 [Mon Nov 19 21:02:08 2007] : (2108|2632) Session task instance [SDE_ORA_Product_Category_Derive_Full]: Execution failed.
    When i checked the parameter file i can see the value assigned to the $DBConnection_OLAP. The same tasks ran successfully when i ran the ETL process for Complete 11.5.10 for the first time. I did not change anything after that and also all these are came built-in with the installation of Oracle BI Applications.
    Please anyone give me an idea what is causing the problem.
    Thanks,

    in DAC > Run History > Task Details, query
    Name = SDE_ORA_Product_Category_Temporary
    Open Status Description, look for string -lpf, the file after it is the actual parameter file DAC send to INFA server. E.g
    -lpf D:\DACTOPUS\Informatica\parameters\SDE_ORAR12_Adaptor.SDE_ORA_Product_Category_Temporary.txt
    Open the parameter file, most likely the [session_name] does not match with SDE_ORA_Product_Category_Derive_Full or some parameters are missing.

Maybe you are looking for

  • Looking for someone to script a Day Planner to a specific size and style.

    Hi, Looking for someone to script a year long Day Planner in Indesign CC. I've tried one or two scripts available out there but none seem to be able to accomplish what I need. I would envisage the rolling requirements. 2015 Day per page Set to a spec

  • Oracle database upgrade from express edition to standard edition

    We purchased Oracle database 11g to upgrade our current primavera oracle database express edition (10g).When we are trying to upgrade through DBUA it getting error message Please provide us a proper advise to solve this issue.

  • WSUS Error code 0x80200013

    Hello all! I thought I would run this by everyone and see what happens. We are trying to set up Solarwinds patch manager. When we try to synchronize the server it works perfectly. It will read if new update are available and try to download them. So

  • Horizontal scrollbar issue

    Dear All Because of my masterpage branding, my scrollbar (horizontal) bar doesnt show properly. Any Idea? Best Regards, Lasantha

  • How to update jTable from user input?

    I create one jTable with 2 rows and 3 columns. the jtable colums contains deviceIP and Status. I am getting device IP from user input through jTextfield. so, when user enter IP and click add button, it must added in the jTable rows one by one. how ca