Definition of checkbox "checked" or "unchecked" based on earned null or not null

This is probably a simple question, but I can't understand how it works.

I have a form used to display/change a retrieved row in a table. Some fields are check boxes. In the table, the values are either 'x', or null. In my case, it is 'null' or 'not null '. How can I implement the checkbox for show as enabled or disabled once the line is read based on the value of the null or not null field?

Thank you!

Hello

If you are really sure that your value 'not null' will always be 'x', then you can simply create a checkbox field that is bound to the DB column and have the LOV as follows:

STATIC:Checkbox Text;x

If you want to implement on the NULL / NOT NULL test, then configure the LOV in the same way, but add the following code for the calculation of calculation of post for the field:

CASE WHEN :P3_COMM IS NOT NULL
  THEN 'x'
  ELSE NULL
END

where: P3_COMM is the name of the field box on the page.

-Jennifer

Tags: Database

Similar Questions

  • enable and disable a group of checkbox checked and unchecked, a checkbox

    Hello

    I have a form of livecycle. I want to enable and disable a group of checkbox checked and unchecked, a checkbox. can u pls help me?

    Thank you

    Ali

    Please check that you follow the procedure...

    Create a script object to create the toggleAccess function

    LiveCycle ES2 * Adobe LiveCycle Designer ES2 (How to create a script object)

    LiveCycle ES2 * Adobe LiveCycle Designer ES2 (How to reference an object of script PDF Forms)

    You can download the form, you sent me with the script object implemented as explained here:

    936968a098afc8ab320334a2c0ab4c73.PDF - Google Drive

  • Check or uncheck a field messageCheckbox based on a value of field LOV

    Dear gurus,

    Please let me know if we can check or uncheck a checkbox field based on a value in the LOV field in a Page of the OFA. I need to know if we can do this without touching the code to the controller, is it possible? Please provide your valuable thoughts.

    The requirement is something like for example, if X is a value in LOV, please tick else, you have to uncheck the box

    Thanks in advance,

    Valsaint

    Well Yes, stretching from CO is easier than extending VO

    See you soon

    AJ

  • to get the values of database apex CheckBox as checked or unchecked

    Hi gurus
    Apex 4
    Oracle 11g
    How to load data from database for the checkbox if values = 1 then verified and id = 0 then value not controlled.
    can you please help me solve this problem
    Example of table

    En0 empname pack1 pack2 pack3 pack4
    1 1 0 0 1
    2 b 0 1 0 0
    c 3 1 1 1 1
    4 0 1 1 D 0


    my output in APEX should watch for ename 1
    Checkbox checked Pack1
    Pack of 2 box unchecked
    Pack of 3 box unchecked
    Pack4 checked

    and im the new user in the apex can help u
    Thanks in advance

    r

    Published by: on 13 April 2011 19:26

    Please a little patience!

    For a standard report, your SQL would look like this:

    SELECT eno,
           empname,
           apex_item.Checkbox(1, pack1, Decode(pack1, 1, 'CHECKED', NULL)) AS pack1,
           apex_item.Checkbox(1, pack2, Decode(pack1, 1, 'CHECKED', NULL)) AS pack2,
           apex_item.Checkbox(1, pack1, Decode(pack3, 1, 'CHECKED', NULL)) AS pack3,
           apex_item.Checkbox(1, pack1, Decode(pack4, 1, 'CHECKED', NULL)) AS pack4
    FROM   sample_tbl  
    

    Under column attributes, make sure that your box columns are displayed as a Standard report column

    Jeff

  • Highlighted report items when Checkbox checked

    Hi people,

    I have APEX report at the following page:

    ! http://img222.imageshack.us/img222/7448/tradescreen1.jpg!

    The report is based on this query:
    SELECT id,
           ticker,
           deal_date,
           deal_type,
           no_shares,
           price_per_share,
           commision,
           stamp_duty,
           APEX_ITEM.CHECKBOX( 1, id, 'UNCHECKED' ) AS group_ind,
           DECODE( trade_group_id, NULL, 'NO', 'YES' ) AS grouped
      FROM trades
     WHERE account_id = :P2_ACCOUNT_ID
    Whenever I check a box, I would like to than the related line to highlight (in a color light gray or green, ideally). I am aware that I will be on the territory of Javascript here, and I know I have to put the Javascript code in the Page header. I think I know how to do this.

    The question I have is, how would I go about the reference to the line that is associated with the box checked, and where I would put the call to the Javascript method to highlight the line?

    Hello

    You can select the checkbox appears on by entering the the checkbox DOM tree until you get to the TR tag that contains. Because of the hairstyle on an IR, must then change the background color of all the cells on the line. To trigger the highlight, you can add an attribute to the CHECKBOX function call:

    Change:

    APEX_ITEM.CHECKBOX( 1, id, 'UNCHECKED' ) AS group_ind
    

    TO:

    APEX_ITEM.CHECKBOX( 1, id, 'UNCHECKED onclick="hiliteRow(this);"' ) AS group_ind
    

    On your page, in HTML header, add:

    <script type="text/javascript">
    function hiliteRow(x)
    {
     var p;
     var c;
     var cell;
     if (x.checked)
     {
      c = "green";
     }
     else
     {
      c = "#EFEFEF";
     }
     p = x.parentNode;
     while (p.tagName != 'TR')
     {
      p = p.parentNode;
     }
     for (cell = 0; cell < p.cells.length; cell++)
     {
      p.cells[cell].style.backgroundColor = c;
     }
    }
    </script>
    

    Just the 'this' in the javascript code identifies the current object - in this case, the checkbox is checked/unchecked. This script checks whether or not the checkbox is checked and determines the color to use on the line. Then, he starts from the item box (x) and search the node of that parent. If it's not a TR tag, it repeats the process until it reaches the TR tag. Then, he travels all cells with this TR tag and defines the background color.

    As an example of this: [http://htmldb.oracle.com/pls/otn/f?p=267:95]

    Andy

  • Check boxes are displayed incorrectly &lt; input type = "checkbox", "checked" &gt; in 4.0.1 when they are fine for the same page in 3.6.17

    Check boxes are not displayed properly checked < input type = "checkbox", "checked" > in 4.0.1 when they are fine for the same page in 3.6.17

    Maybe you can try to use controlled instead of "checked".

  • How to check or uncheck a group of songs

    Version iMac OS X El Capitan 10.11.2

    ITunes: 12.3.2.35

    How to check or uncheck a group of songs?

    Thank you

    Select the first piece, extend the selection with shift-click, toggle the individual tracks with cmd-click, then click right/option on the selection and use the selection check or uncheck the box on the shortcut menu.

    TT2

  • Msconfig - load startup items is grayed out, cannot check or uncheck

    I have a problem with the internet, not loading pages, internet options opens, very slow computer and the gel to the top. I uninstalled IE and reinstalled. I can now go into internet options, then on the first page I load on IE opens, but goes no further.  I ran virus and anti-malware and it found Trojans.  Free of all this, but noticed that when I go into msconfig, selective startup, load startup items box is grayed out.  Given that the system always works slowly and still the problems with IE, I wonder what else could be wrong? How can I get the Startup box load so I can check or uncheck it?

    Hi Sirenfire,

    · What is the antivirus installed on your computer protection software?

    · What version of Internet explore?

    1/for the problem related to Internet explorer, follow the steps from the link below: Internet Explorer is not responding, stops working, or restarts:http://support.microsoft.com/gp/pc_ie_intro

    Also run the fix of the below link which will help you improve performance and security in Internet Explore:http://support.microsoft.com/mats/ie_performance_and_safety

    2. It also seems that the virus on the computer was not completely removed, I suggest you for online virus scanner:http://onecare.live.com/site/en-us/default.htm

    If the Startup load item is grayed out, the startup group has been customized at any given time. Click on the Startup tab above and save the startup checkees items

    You can also uninstall unwanted programs from Add and remove program that will help you improve the performance of the computer, check out the link below: How do I change or remove a program in Windows XP: http://support.microsoft.com/kb/307895

    With regard to:

    Samhrutha G S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • I got an update a few months ago. He had a box to check and uncheck the box if I wanted to install McAfee. I didn't then he I unchecked the box. It install it anyway. Care to guess how angry I was? I have a new update today, but I don't WANT McAfee

    I got an update a few months ago. He had a box to check and uncheck the box if I wanted to install McAfee. I didn't then he I unchecked the box. It install it anyway.

    Care to guess how angry I was?

    I have a new update today, but I don't WANT installed McAfee AGAIN. I missed the window/page that had the check/uncheck box.

    I want to assure you that I do not get McAfee installed again. How do I do that?

    I'm glad that I don't work for Adobe but I don't know everything that you are angry customers.

  • checked and unchecked exceptions

    public class MyClass{
        public static void main(String[] args) {
             throw new ArithmeticException();
        }
    }
    import java.io.FileNotFoundException;
    
    public class MyClass{
        public static void main(String[] args) throws FileNotFoundException {
             throw new FileNotFoundException();
        }
    }
    When I compile the second code without declaring the throws, I get compilation error "Unhandled exception FileNotFoundException type. Maybe it's because FileNotFoundException is checked.
    How the compiler understand that FileNotFoundException is checked and ArithmeticException is unchecked? I went through the source code of both classes, but could not find something special.
    We're in the package java.lang and java.io.
    Extends a RuntimeException and another extends IOException and both they are extended from the Exception class.

    Caarmel wrote:

    I wrote:
    How the compiler understand that FileNotFoundException is checked and ArithmeticException is unchecked?

    In fact, my doubt is how the compiler to distinguish checked and unchecked exceptions?

    Unchecked exceptions are RuntimeException, Error and their descendants. Checked exceptions are everything. It is part of the rules of the Java language it is written in the compiler. When the compiler detects RuntimeException, Error, or one of their descendants, he knows that he is disabled, if he knows that it is checked.

  • There seems to be a display problem. Please check that your monitor is HDCP and is not mirrored by using Airplay.

    There seems to be a display problem. Please check that your monitor is HDCP and is not mirrored by using Airplay.

    Apparently, you're trying to use AirPlay to display content that is protected in a way that not only allows the copy.

  • I found the track record, when I deleted it I lost all my videos folder, and when I checked in the Recycle Bin that they were not there.is there a way to restore?

    Original title: restore the follow-up case

    am usind windows vista and I found the track record, when I deleted it I lost all my videos folder, and when I checked in the Recycle Bin that they were not there.is there a way to restore?

    Hello

    Once removed the HDD data can't be recovered. However, you can use your favorite search engine to browse third-party data recovery software and use this software to recover data.

    Note: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    You can also view the following link to recover lost or deleted files and try the steps:

    http://Windows.Microsoft.com/en-us/Windows-Vista/recover-lost-or-deleted-files

  • How to check the type of memory installed (ECC or not)?

    all!

    I have some servers Dell PowerEdge R420 and I want to upgrade memory, install more...

    How to check the type of memory installed (ECC or not)?

    Dmidecode output here:

    Drive.google.com/.../View

    Hello.

    Unfortunately, we are not able to open the link you have provided. You can display information about your memory on the web iDRAC under hardware and memory interface. You see the type of error correction (ECC or Non ECC) within the information memory page. You can also view the same information on OpenManage Server Administrator and even make use of the memory part number to find out more information.

  • How to check a timertask calendar is still active or not?

    Hello

    I created the following code:

    class StateTracker extends TimerTask
    {
    Minu private;
            
    public StateTracker()
    {
    Timer = new Timer();
    Timer.Schedule (this, 5000, 150000); begins after 5seconds Repeat task every 150 seconds
    }

    public void run()

    ....

    }

    The code runs allright, unless, in certain circumstances, the task stopped after a few periodic race (I suspect is disconnected network). Y at - there any API I could use to check whether the calendar is still active or not.

    I would like to reschedule the timertask if the original schedule was disrupted.

    timertasks should not be used for the treatment of blocking. I would say to put the actual work load in an own thread.

    as long as the enforcement code is surrounded by exception handling, execution continues. There is no method to check if the timer is running correctly.

  • How can I check if Oracle Enterprise Manager is installed or not?

    Customer uses Oracle 11g DB.

    How can I check if Oracle Enterprise Manager is installed or not?

    If you use EM DB control then you run this command,

    $ORACLE_HOME/bin/emctl status dbconsole

    HTH

    Mani

Maybe you are looking for

  • CarPlay &amp; numbers with Extensions

    Hi all I have a question calling the phone numbers with extensions when connected to CarPlay. I have a lot of contacts with the extensions and phone numbers include a break and post numbers. Normally when you call these numbers using the phone only,

  • Question about application preinstalled Norton

    Hello I had a M70-244 I don't know... If I use a restore CD I own whit Norton System preinstalled, but I'm not and I don't don't uninstall it because Norton is famous for bad application of stripper is. I don't know how I can install a bit clean syst

  • Any option of software CAD on MDD G4 with 10.4 Tiger?

    Wonder about older versions of CAD software available for 10.4 Tiger on a G4 MDD.  I'm interesting in creating a STL file for 3D printing.  I was wondering if I can do this on the MDD ol faithful ', or if I have to use a machine and the latest OS.

  • Re: Satellite L - new BIOS so that BIOS password is set?

    Dear experts I have the password on the BIOS. Can I install the new bios and how can it if possible, and please teach me where I can download and how to boot and install Thank you.

  • I think that my Windows Live Hotmail account has been compromised by a third party.

    I think that my hotmail account has been compromised by a third party. Please help restore my access that I use every day. Thank you. * E-mail address is removed from the privacy *  My home phone is 406-857-2362 call at any time. I can't work without