apex_item only not corrent value picking...

Hi all..

I have a strange issue with the apex_item.
Don't know what I'm doing wrong.

Please check the following example.

http://Apex.Oracle.com/pls/Apex/f?p=64999:1

In my case the "no column" can be null or not null, but the name"" column.
always have the value.

My top report has the following code...
select APEX_ITEM.CHECKBOX(1,test_name,'UNCHECKED')||
 APEX_ITEM.hidden(2,test_NAME_NO)||APEX_ITEM.hidden(3,test_NAME) test_name_no_check,
 test_name_no,test_name
  from test_src
The problem is...

Please select "' 2nd or 3rd registration (only 1)'" with a null value in the "no column" and click on submit.

surpriseingly... It becomes the bad no value to the target. Whenever this is by default the "'no value' ' to 1.

He is picking up ""no incorrect value ""...

This is the process code I have...
please consider this..
I cannot change my table structure and i cannot use rowid
these are the limitations that i have
begin
delete from test_tgt;
commit;
FOR i IN 1..APEX_APPLICATION.G_F01.COUNT
  LOOP
    
    INSERT
    INTO test_tgt
         (
        test_name_no,
        test_name
      )
      VALUES
      (
        APEX_APPLICATION.G_F02(i),
        APEX_APPLICATION.G_F03(i)
      );
  END LOOP;
commit;
end;
Please check the code with the following credentials...

Application name: apex_item Test
Workspace: kumar2003
username:test_user
password: jari

Please help with this question...

Kumar, Excsue me. I'm not close enough.

I would say that the code I posted is correct, but you'd also a change of the checkbox item in your query

FROM
select APEX_ITEM.CHECKBOX(1,test_name,'UNCHECKED')||
 APEX_ITEM.hidden(2,test_NAME_NO)||APEX_ITEM.hidden(3,test_NAME) test_name_no_check,
 test_name_no,test_name
  from test_src

TO

select APEX_ITEM.CHECKBOX(1,rownum,'UNCHECKED')||
 APEX_ITEM.hidden(2,test_NAME_NO)||APEX_ITEM.hidden(3,test_NAME) test_name_no_check,
 test_name_no,test_name
  from test_src

Note the change from test_name to rownum in the 2nd query.

It is only verified because lines manual tabular form will be in the order of dense as you treat but actually checked lines wiil not.

Example 3 lines, check row 2 and 3

APEX_APPLICATION. G_F01. NUMBER will be equal to 2, however the values that you want for your insert are found in rows 2 and 3. I use G_F02 and G_F03 index, you get 1 and 2, not 2 and 3, you need. By configuring rownum in your creation of the checkbox, you now have the possibility of obtaining 2 and 3 by referring to APEX_APPLICATION. G_F02 (apex_application_g_f01 (i))

apex_application_g_f01 (i) = 2 in this example when I = 1.

Here is another simple example reference.
http://www.DBA-Oracle.com/HTMLDB/t_htmldb_check_boxes_reports_regions.htm

Also in this manual in the form of table example, you cannot sort the records using the column header sort. If you need to sort, you would in the query with the Order By statement. This is from my experience using manual tabular to the point 3.2. In 4.1, I always use tabular shapes Apex.

Forms tabular apex 4.1 removes this restriction.

Published by: Bob37 on March 29, 2012 12:19

Tags: Database

Similar Questions

  • Keeping the description of the table on the evolution and not displaying only not NULL values

    I have the table grouped by MPV and then showing by Fund. I can't get the description section appears for the first Fund and then when he changes nothing only shows funds. When the year changes once again it appears so.
    ex.
    MPV: 2005: 0100AXXXXD
    but when changes in Fund 0100AXXXXD... nothing appears.

    Also, I wanted to not include any funds/years that have the value null. I had the following code in, but it does not prevent null values.
    <? If: SEC_ZERO_INDICATOR! = 0 ? >

    Thanks for any help.

    Need to see your xml data structure. Can you send me the xml and the RTF file to [email protected]? I'll take a look.

    Thank you
    Bipuser

  • How the LED lights up when a threshold is reached, then turns off only when the value does not reach the threshold for a while?

    Hi, I want to write a program that can turn on the LED when a range of value, this is the threshold and only when the value does not reach the threshold for a period of time, say 5 seconds, then the LED will turn off, otherwise it will remain. How can I achieve this in labview? Can someone help me? Really thanks!

    I assume that you use a while loop to keep the updated value.

    Add a record to offset to your looping it initialize with a U32 (time in ms)

    Add the registry to offset to your loop that keeps the previous value of your bool

    When your reaches the threshold value => the light and set the current time in your shift register.

    In the next iteration of the loop weather check value is still above threshold

    => Y-online previous set to true?

    => Y-online the next iteration

    -Online N => turn switch on and set the current time in your shift register.

    -Online N => subtract the time current less time shift record-online more then 5 seconds?

    => Is => keep turning on

    -Online N => turn given

  • Only accepts only custom not UID values. What is the range in ESXi IUD?

    I am trying to create a new user from the console and wants to assign UIDS above 1024, but it is automatically assign 1000 and is incremented for each new user and it does not accept custom UID values.

    I updated in/etc/group, but only reflecting only not in the GUI. Is it the right place to update? How to change?

    Also is it possible to change the UID range, it can accept?

    Please visit: http://pubs.vmware.com/vsphere-51/topic/com.vmware.ICbase/PDF/vsphere-esxi-vcenter-server-51-storage-guide.pdf. NFS has always been behind compared to the block on ESX/ESXi. Even in vSphere 5.1 only NFS v3 is supported. I hope one day they will support NFS v4 and/or pNFS.

  • APEX_ITEM. SELECT_LIST_FROM_LOV does not assigned value

    Hello.

    I use Apex 4.1.0 on 10.2.0.5 Oracle and Oracle application server (mod_plsq).

    I've manually created a tabular presentation (in other words, it is not through the Assistant to the Apex) from the collections. This is the query:
    select apex_item.checkbox2(10,
                               seq_id,
                               'onclick="radio_highlight_row(this,' || '#ROWNUM#' || ')"',
                               null,
                               ':',
                               'f10_' || '#ROWNUM#'
                              ) delete_row,
            apex_item.hidden (11, seq_id) || apex_item.text (12, c006, 30, 30, 'style="width:140px"', 'f12_' || '#ROWNUM#') display_text,
            apex_item.checkbox (13, '#ROWNUM#', null, decode(c007,'CHECKED','#ROWNUM#'),':','f13_' || '#ROWNUM#') defaulted,
            apex_item.hidden (14, c014) || apex_item.hidden (15, c020) || apex_item.select_list(16, null, 'Active;Y,InActive;N', 'style="color:darkred;"', 'NO', '%NULL%', '%', 'f16_' || '#ROWNUM#', NULL, 'NO') active_status
      from apex_collections
    where collection_name = 'COL_CHOICES'
    union all
    select apex_item.checkbox2(10,
                               null,
                               'onclick="radio_highlight_row(this,' || '#ROWNUM#' || ')"',
                               null,
                               ':',
                               'f10_' || '#ROWNUM#'
                              ) delete_row,
            apex_item.hidden (11, null) || apex_item.text (12, null, 30, 30, 'style="width:140px"', 'f12_' || '#ROWNUM#') display_text,
            apex_item.checkbox (13, '#ROWNUM#', null, null, ':','f13_' || '#ROWNUM#') defaulted,
            apex_item.hidden (14, null) || apex_item.hidden (15, null) || apex_item.select_list(16, null, 'Active;Y,InActive;N', 'style="color:darkred;"', 'NO', '%NULL%', '%', 'f16_' || '#ROWNUM#', NULL, 'NO') active_status
      from dual
     where :P86_RADIO_ADD_ROW = '1'
    CONNECT BY LEVEL <= 1
    The column titled "active_status" is defined using the APEX_ITEM function. SELECT_LIST.

    I have a button 'Add a line' set which sets the variable to the P86_RADIO_ADD_ROW page to '1'. Clicking causes button submit a page which in turn causes a new line to appear in my tabular form/report.

    Clicking the button causes submit a page that is running a plsql process that records the data of my tabular form to the COL_CHOICES collection. The tabular presentation is then rendered again with a new line appears.

    This new line is displayed with 'active_status', 'active', as it should.

    Unfortunately, every time I change this field to 'Inactive' in an existing line and then click on my button 'Add Row', the tabular presentation is displayed again with a new line, but the modified line was still 'Active' for the parameter.

    I checked the values in my collection of COL_CHOICES to ensure that the field "active_status" actually changed from 'Active' to 'Inactive' for the existing line or modified. And he did. The row changed in the collection shows 'Inactive' as a value, even if the page displays "Active" for the value.

    So, how can I make this menu drop-down see the real value?

    I have looked at the APEX_ITEM docs and have tried different combinations of the parameters but nothing works.

    Cruelly, I'd appreciate any help on this.

    Thank you.

    Elijah

    EEG wrote:
    Hello.

    I use Apex 4.1.0 on 10.2.0.5 Oracle and Oracle application server (mod_plsq).

    Unfortunately, every time I change this field to 'Inactive' in an existing line and then click on my button 'Add Row', the tabular presentation is displayed again with a new line, but the modified line was still 'Active' for the parameter.

    I checked the values in my collection of COL_CHOICES to ensure that the field "active_status" actually changed from 'Active' to 'Inactive' for the existing line or modified. And he did. The row changed in the collection shows 'Inactive' as a value, even if the page displays "Active" for the value.

    So, how can I make this menu drop-down see the real value?

    I have looked at the APEX_ITEM docs and have tried different combinations of the parameters but nothing works.

    The second parameter to apex_item.select_list is the value of the control. Your code has

    apex_item.select_list(16, null, 'Active;Y,InActive;N', 'style="color:darkred;"', 'NO', '%NULL%', '%', 'f16_' || '#ROWNUM#', NULL, 'NO') active_status
    

    This will always be the NULL value and default to the first option 'active '. You must use the appropriate column of the collection here instead of NULL:

    apex_item.select_list(16, c021, 'Active;Y,InActive;N', 'style="color:darkred;"', 'NO', '%NULL%', '%', 'f16_' || '#ROWNUM#', NULL
    
  • return only the decimal value

    What function can I use to return only the decimal value of a formula

    (97 * 2.2) / 14 value returns 15.24

    I only want to use le.24

    Salvation is

    Use the formula - INT (formula)

    In the special case above:

    =(97*2.2)/14 - INT ((97*2.2)/14)

    You see two places to the right of the decimal separator in reason to be rounded off to the value real, in the shape of the cell to only show as two decimal places, either by setting the width of the cell close enough to force the rounding of the displayed value.

    Note that if the result is rounded (using the ROUND function) the actual value of the cell will be the rounded value. For the other two cases, the value displayed indicates only two decimal places, but the real value in the cell (and the additional calculations used by referring to this cell) is 0.242857142857144, which could lead to surprises in the results of the calculations downstream.

    Kind regards

    Barry

  • win xp pro Re: why does search in my doc &#62; downloads search not numeric values

    GI production of labels for specimens of plants of a model in excellent and storing labels in my doc... search does very well with the words/phrases

    (as indicated in the search pane) but why he can't find the dates, number of collection, lat/lon?

    Are you referring to research within the Excel or your operating system?

    If I think correctly, Windows will not numeric values look. It will search only a file or a folder.

    See: http://support.microsoft.com/kb/308895

  • Search if not exit value?

    I'm creating a trigger to insert a value in a column only if this value does not exist in this column, for example

    Name

    Ahmad

    Mohammad

    Lubna

    If Lubna didn't come out in the name column, add Lubna in the name column. !

    Something like that?

    CREATE OR REPLACE TRIGGER exists_or_not

    BEFORE INSERT ON revenue

    FOR EACH LINE

    DECLARE

    v_cnt NUMBER;

    BEGIN

    SELECT COUNT (*) IN v_cnt

    Work

    WHERE job_id =: NEW.job_id;

    IF v_cnt = 0 THEN

    INSERT INTO jobs (job_id) VALUES(:new.job_id)

    END IF;

    END;

  • I am trying to replace my iphone 6 s model n °: A1688, FCC ID: BCG-E2946A, IC: 579C-E2946A. but I can get the serial number because its doesn't turn only not on how can I replace it?

    I am trying to replace my iphone 6 s model n °: A1688, FCC ID: BCG-E2946A, IC: 579C-E2946A. but I can get the serial number because its doesn't turn only not on how can I replace it?

    Take it to your local Apple store. They will find it for you.

  • I do not see any video like youtube, vimeo, facebook even site. My flash player is installed and it is a job because I still can see the video in Internet Explorer only on Firefox it audio only not working, the video is blank (black) all, someone can help

    I don't update or download anything, so today, I can't see any video like youtube, vimeo, facebook even site. My flash player is installed and it is a job because I still can see the video in Internet Explorer only on Firefox it audio only not work, the video is all blank (black).
    When I restart my PC again the video can work just first video, then when I see another video site it's all black... (but its still working)
    can someone help me?

    Hi splingun,

    We have a section of fixing Facebook and YouTube. The black screen seems expressly included in the list of the articles I linked to you.

    Hope this helps!

  • Satellite L350-262 - you see only not WiFi

    Satellite L350-262, you see only not the wireless networks in any place. Can get access to the Internet via LAN. Has suddenly stopped working. Suggestions gratefully received

    Thank you
    Nick

    Can any of you provide the most relevant information?
    Wireless network card is listed in the Device Manager?
    Wireless network card is installed correctly it?
    Can you turn on/off wireless card using the FN + F8 key combination?

    Have you tried to do something to fix this? If so what exactly?

    Hey guys how to discuss something like this if your description of the problem is one sentence only.

  • is it possible to print the formulas (and not the values) in numbers

    is it possible to print the tables with formulas (not with values)?

    N °

  • Auto-Indice only shows 9 values instead of 91

    I'm pretty new to LabVIEW and I try to see a cluster of 91 value retrieved from a text file.  Just for a test without the help of the actual values passed, I created a text file with numbers ranging from 1-91 (1 number per line up to 91).  When I left auto index and try to unbundle it after converting a table to a cluster, it only shows 9 values instead of 91.  You happen to know how I can fix this?

    I have attached the base files.

    you have to right click on your "table of cluster" and select "cluster size...". "in the menu. Set it to 91. It is currently set at 9.

    Sebster.

  • "Messenger Service, or the Net send command not working only not on the service remote computerhe.

    Messenger Service, or the Net send command not working only not on the remote computer, despite the messenger service is started "it works only if I restart the service.
    operating system is windows xp
    service pack 3

    Hi Charbel,

    Have you done a recent software or hardware changes to the system?

    This problem occurs because the Messenger service is disabled. The Messenger service must run on the destination computer to activate the NET SEND command.

    Because the service is already started, and you must restart the service, you can try to stop the service, change the startup type to automatic and start the service. Check if it helps.

    Please refer to the article to define the service as automatic:

    Programs or services that use the alerts service or the Messenger service do not work as expected after you install Windows XP Service Pack 2

    For more information, see the article:

    The NET SEND command may not work correctly on a computer that is running Windows XP Service Pack 2

    Hope the helps of information.

    Let us know if you need help with Windows related issues. We will be happy to help you.

  • Filmmaker, not accepting only not the .mp4 files

    Filmmaker, not accepting only not the .mp4 files

    He can't stand not MP4 files that is why. You will need to convert to a format that it can charge

Maybe you are looking for

  • 32DV504B - TV Firmware does not load/display on TV

    Hi all I downloaded the latest update of firmware for my TV (x 2) - 32DV504B. I copied the file downloaded on a USB and connected to the TV. I can't get the file loaded at all. I tried many readers USB, many formats (FAT, FAT32, etc.) - exe on it's o

  • data and text work fine, but I can't make or receive phone calls. How can I solve this problem?

    I can use my data and it works perfectly fine but the only problem is that I can't call someone or receive phone calls. I don't know what's the matter with him so I would if anyone can help e telling me how to fix it...

  • Black screen boot, light works.

    Hi, I have a 2011 end pro 15 "macbook. Two days after leaving a program that my screen went black, the lighting of the screen does not work. Whenever I reboot the screen becomes black. I also tried to reset the NVRAM and SMC memory and installed the

  • Photosmart B209a more: with the Scanner B209a problem...

    I've already read so many threads on the HP forum. No and then save me. I have win7 64 bit and B209a Photo Plus... My is simple: I have this pop up: "the HP imaging device is not found. Try the following steps. "etc. The steps do not work. Extended e

  • What is LogonSC, exe?

    It seems that when I look in my task manager, a process called LogonSC.exe takes about 50% of my CPU, Whatis it.  It is malware or do I need?