Check boxes that keep their value after a refresh

Hello

I'm working with checkboxes in an HTML region that will make another region appear or disappear when they are registered or not. If I understand correctly, I need to send the page so that the regions appear or disappear - but when I do the remember checkbox default value.

My box is based on static love: STATIC2:; Y that should be checked when the value is 'Y' and unchecked when it is 'n'. I put its value by default for Y.

I read online about how to make a checkbox to remember its value by putting a calculation on it that will define the value of the checkbox for "n" when it is null. Unfortunately, when I refresh the page, if the box is checked, then fine (as before) - but if it is unchecked, then I suddenly get two boxes - which are checked and a "n".

Someone has an idea what I am doing wrong? It's driving me crazy trying to achieve something that I expect a little work without any effort.

I use Apex 4.1.1.00.23

Thank you

Dan

Dan CondonJones wrote:

Is there a a way to make the default check mark without her checking those unchecked when I submit the page? Or would I need to create some process that sets the items manually when I navigate to the page?

This is a common situation. The usual approach is to use another page to report whether it's really the first time that the page was accessed. I find it awkward and unsatisfactory. I would probably be the default checkbox value in a calculation before header with a query SQL NOT Exists condition to check if the page has previously accessed in the current session:

select
    null
from
    apex_workspace_activity_log
where
    apex_session_id = :app_session
and application_id = :app_id
and page_id = :app_page_id

Tags: Database

Similar Questions

  • Clear the check box according to the value of column DB

    Hello
    My requirement is to disable the check box according to the value of a column DB. Say for example my report displays the following. Check box, the name of the EMP, Dept. If the Department is the checkbox should be disabled and user should not be able to select the check box.
    Ask your help for a solution.
    Thank you
    Prasanth

    You must use the parameter p_attributes of the apex_item.checkbox API to make the boxes off (readonly do not work with the checkboxes)

    SELECT ..
    CASE WHEN  THEN APEX_ITEM.CHECKBOX(1,)
                         ELSE APEX_ITEM.CHECKBOX(1,,'disabled="disabled"')
              END 
      ..
    
  • How can I get rid of the server box that keeps popping up every 2 seconds?

    The area of the server is a small box that has my server, the user name and the password.  Then has the small checkbox next to save this password in your password list.  Then has 2 small boxes under this sentence that says ok and cancel.  Upward into the left corner of the small box is a button key and tag or readio symbol.  With the sentence next to the symbol that says enter your user name and password for the following server.

    I can't get this box to stop religiously coming every 3 to 5 seconds.  I need help. If someone feels that he can call you my 775 800 1956 number to give me the answer.  Thank you.

    Crystal Geng

    Contact your server administrator / system administrator.

    Unplug any network drive shares.

    Check your Outlook (if you use) configuration.  Solve all the problems.

    Restart the computer.

  • analog output while keeping the value after the program

    I use a USB 6001 output a simple analog voltage. Right now I'm still in the process of experimenting to see how to control my blood pressure when I noticed that, after I complete my program, data acquisition is always show the last analog value.

    My VI is attached. I use the stop and remove commands at the end of the program so I don't understand why he continues to keep the last value. I used a breakpoint, so I know that program happened to stop and clear commands.

    How to exit back to 0 when I close the program, assuming that there is some other way than the writing of 0 at the end of the program.

    I did not find the related items, but if it don't just answer with a link.

    I thank very you much for any assistance.

    Tommy

    The DAQ hardware is supposed to retain the last value so write a 0 before deleting the task is the right method.

  • APEX_ITEM. Check box that does not have a

    This may sound strange, but in my case I need to render the checkboxes in a report that will respond and work the client side (Javascript onChange triggers) but do not submit on the server. I have a massive selection report, I have built where I am told to show no less than all the lines, but I am struck a strict limit of 2000 settings on the page (error 400 too many arguments passed. At 3143 parameters. Upper limit is 2000). I know that this could be increased, but I have no idea what the maximum absolute value could be attached to and this is possible with my active beyond the absolute limit of the maximum parameter dataset. It seems that the best would be to sort so the boxes only worked on the client side and did not provide with the page I submit their State if AJAX anyway. With the help of a redirect is not an option that I have other areas of the page that should be treated as part of the mailing.

    Any suggestions?

    David:

    Before you submit the form, you could mark all disable checkboxes is disabled. Disabled does not get submitted.

    CITY

  • Check box to change the value of the field and reveal hidden text

    Hello

    I need to change a value in a field when you press a checkbox

    the default value can be $ 10 in 'formfield1 '.

    But when the checbox is checked, the value of 'formfield1' must spend $ 8

    I also need a reval text function in "textfield2' of the text hidden to visible.

    Is it still possible to combine in a box?

    I found a code on the forum and changed it, but it does not work as expected, it affects the field, it shouldn't and it behaves a bit funny, here is the code to calculate.

    I also tried to change the value of Off to On, but who has not reversed the procedure than I hoped.

    Well its a start, maybe someone can understand a give me help on the way?

    ________________________________

    custom for the discount calculation

    var nDiscount = 2;

    name of the Sub total field

    var cSubTotal = "formfield1";

    name of the non-Discount checkbox

    var cbNonDiscount = "CheckBox1";

    default value for the non-Discount

    Event.Value = 10;

    see if the purchase is with discount or not non-Discount

    If (this.getField ("cbNonDiscount") .value == 'Off') {}

    Event.Value = this.getField ("cSubTotal") .value - nDiscount;

    }

    put an end to a custom calculation

    Ah, if you want the calculation to take place when the box is checked, use this:

    If (this.getField (cbNonDiscount) .value! = "Off") {}

    Instead:

    If (this.getField ("cbNonDiscount") .value == 'Off') {}

  • How to stop a vi with a dialogue box that keeps popping up?

    This is a really stupid question and a vi still dumber than for demonstration purposes.

    Runs how can the Task Manager, you stop a vi that is running something like that? The only thing that comes to mind call abandonment using VI server.

    Hold down the CTRL +. (command-period) by clicking on the OK from the dialog box.

  • I have a problem with a box that keeps going on my menu when it scrolls down, and I tried everything. "Send backward", recreate the box, etc. Help, please

    The box continues to go on the menu when you scroll, I sent the box back and the bar menu at the front, etc.. Help, please!

    Hi Emily,.

    Please check the placement of this box in the layers panel.

    Kind regards

    Akshay

  • Copy and paste Images that keep their white background. Help!

    Hello.

    I am currently inking on an old comic I made.

    To save time and cut corners, I created a bunch of images pre drawn like faces, contours of the body, eyes, etc.

    These presets are all saved in a file with each different image on its own layer, and everything was fine.

    Then I you merge all layers (because it starts to get too many of them) and now when I copy an image

    and paste on my BD I get black lines (inks) but I also get the underlying layer blackened by white background.

    Y at - it a bet on, when I copy and paste, paste only the black lines and not the white background?

    Set the layer mode to darken.

  • the value of a check box using javascript

    Hi experts.

    I have a button that displays or hide a region (which is actually a form of data entry with a couple of boxes and text areas). I can't send the form on this button is clicked, I chose the redirect URL and URL target, I used according
      javascript: $('#AddActivity').show();               // used to show the region. works perfectly
      javascript: $x(P3_Emp_Name).value = '' ;       //  used to set value of Emp Name text box to empty for new entry
      javascript: $x(P3_Emp_FullTime).value = NULL; // used to show check box 'unchecked'.............here is the problem. dont get an unchecked check box
    
      if tried following also
    
     javascript: $x(P3_Emp_FullTime).value = 'N' ; and
     javascript: $x(P3_Emp_FullTime).value = N;
    
     but nothing works. check box retains what ever value last was selected.
    
      
     
    Please tell me how can I set the value of the checkbox to use 'unchecked' above excerpt of code.

    Concerning

    Try

    javascript: $x('P3_Emp_FullTime_0').checked = false;
    instead of
    javascript: $x(P3_Emp_FullTime).value = NULL;
    

    CITY

    Published by: Anderson city on April 22, 2011 05:05

    Published by: Anderson city on April 22, 2011 05:10

  • Automatically select the correct check box based on choices made in the previous section?

    With the help of LiveCycle to create a form that contains a table. This table has 3 columns with 15 boxes in each column.

    Here are these 15 rows 3 more boxes that have calculated values. In each row of the table one of the checkboxes can be active at a time.

    Based on the majority of choices in a column of some, the calculated corresponding checkbox must be verified. (If most of the choices are made in column 1, then the 1st calculated box must be marked, etc...)

    The sentence that I am writing the JavaScript code that selects the checkbox correctly calculated. Currently, I'm just trying to understand it with only 3 first lines and I can reproduce the template after.

    Table e.g.: ("BOLD" is calculated)

    CheckBox20CheckBox35CheckBox50
    CheckBox21CheckBox36CheckBox51
    CheckBox22CheckBox37CheckBox52
    [CheckBox66][CheckBox67]

    [CheckBox68]

    Here's the code I came up with that day, but it does not just anyone, although when I used it it worked just to 2 columns. (just added the part about the third column in the instructions 'or')

    (In the script for the calculation of box 66)

    //larger values than other columns
    if ((Row1.CheckBox20.rawValue == "") + (Row2.CheckBox21.rawValue == "") + (Row3.CheckBox22.rawValue == "") > (Row1.CheckBox35.rawValue == "") + (Row2.CheckBox36.rawValue == "") + (Row3.CheckBox37.rawValue == "") || (Row1.CheckBox50.rawValue == "") + (Row2.CheckBox51.rawValue == "") + (Row3.CheckBox52.rawValue == ""))
     {this.rawValue = "0";}
    
    //smaller values than other columns
    if ((Row1.CheckBox35.rawValue == "") + (Row2.CheckBox36.rawValue == "") + (Row3.CheckBox37.rawValue == "") || (Row1.CheckBox50.rawValue == "") + (Row2.CheckBox51.rawValue == "") + (Row3.CheckBox52.rawValue == "") > (Row1.CheckBox20.rawValue == "") + (Row2.CheckBox21.rawValue == "") + (Row3.CheckBox22.rawValue == ""))
     {this.rawValue = "1";}
    

    I'm new to JavaScript for all advice is appreciated.

    Looking at the conditions, it seems you are trying to say "If column 1 column 2 or column 3, then do something." JavaScript cannot read conditions like that. It's playback "if (column 1 column 2) GOLD (column 3), ' and he doesn't know what to do with this issue of column 3, except if it is 0 or 1.

    Here is an example of use of only two lines and three columns. The rawValues are 0 and 1 for each check box. I have it set so that if column 1 has several checkboxes, then Col1 gets checked. Similarly, the col2 or 3 boxes will be checked if their columns are the most populated. I don't get the opportunity to have several boxes marked if there are two columns that have the same number of boxes checked. (You can do this by just changing > to > = in the conditions.)

  • Check box to hide the subform does not

    I have what I think it's a pretty simple dilemma. I have a check box that will be used to show/hide a subform when checked/unchecked.

    However, any code that I have written seems to work. The box is an object in page1 and not wrapped in subforms. The subform has simply two inside text fields. the properties of the box have been defined for bind values are 1 for archiving, 0 for uncontrolled. The fields in the subform exploit the value "invisible" because I don't want to see these fields in the form (unless the box is checked).

    My code is:

    Form1. Page1.newspaper::click - (JavaScript, client)

    If (this.rawValue == 0) {}

    xfa.resolveNode ("form1..") Presence Page1.Newspaper_Subform") ="hidden ";

    }

    else {}

    xfa.resolveNode ("form1..") Presence Page1.Newspaper_Subform") ="visible ";

    }

    This code is located in the under JavaScript click event. The form is saved in a dynamic XML form to Adobe. I use Adobe Pro XI and LC ss4

    I can do this work in the generator of the action, but I want the subform back to hidden when unchecked.

    Obviously, a beginner in Java script, ideas/help you might have would be appreciated.

    What exactly is the problem?  Is this not not showing or hiding not when you change the box?  According to your description, you have two text boxes the invisible value but your script changes only the presence of the subform.  If you show the subform without changing the presence of text boxes, they will remain invisible.  If you want all show/hide together, set the presence visible text boxes and simply change the subform presence as you are now.

  • Creation of check boxes

    Hello:

    I have a page in an application where users will search based on organization and sponsor ID.

    The research will produce a report with the appropriate information. The purpose of this report is to display characters that are NOT currently assigned to this organization.

    My users would like to have the ability to assign traits of the Organization on a need basis.

    To do this, they would like to have a check box appears next to each line. In addition, they would like to have a check box that allows them to select ALL if necessary.

    Once the appropriate boxes are checked, they would click a "submit" button and have the data inserted into a table.

    Is it possible that I can change the report to display a check box next to each feature, as well as a checkbox to select all?

    Currently, the page has been setup as a 'report '. I should create another page and implemented as a form or can I include checkboxes in a report?

    Thank you in advance.

    Good good :)

    So the first insertion works now.

    As for the other, when you run this insert in SQL Developer, what value do you use to: P21_global_traittype?

  • my laptop keeps turn off after my free trail of windows 7? How can I fix it__

    I installed the free trial version of windows 7 to see if I wanted, I decieded to stay with vista at the moment but my laptop that keeps sutting off after 1 hour of use, I can not stop it how can I recover my vista and keep my old information on it?

    I had more time then 90 days

    He said that my time of assessment ended

    I installed in front of him before this happpened

    How to uninstall Windows 7:
    http://support.Microsoft.com/kb/971762 ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • I connect to outlook and put my email address and full security in when I disconnect and reconnect I must sign in everyntime even after checking the box to keep me connected?

    e-mail Outlook for windows 7does won't keep me signed in, I save my e-mail and security question to keep me signed in but after that I have close and open later he always wants me to re sign in? ... Joseph thanks, even after signing, constantly checking the box to keep me in...

    Hi Joseph,

    1. what browser do you use on your computer?

    2. is the specific question to Outlook.com or all web mail?

    I suggest you follow the steps described in the link if you are using Internet Explorer and let us know the State of the question below.

    Automatically fill in website forms and passwords:

    http://Windows.Microsoft.com/en-in/Windows7/fill-in-website-forms-and-passwords-automatically

    I hope this helps.

Maybe you are looking for