Problem with checkboxes in IR report mainly for update process please help

Hello,
Can anyone please help me out with this issue.
I have an interactive report with 3 checkbox item for a single column named status. Based on the value of the column status the check box should be checked. For example:
DECODE(status,'DEV',1,0) as DEV,
DECODE(status,'RVW',1,0) as RVW,
DECODE(status,'PRD',1,0) as PROD,
So for this I have used the apex_item.checkbox item. Below is my report query
SELECT APEX_ITEM.HIDDEN(30,0,'','f30_' || ROWNUM)
     || APEX_ITEM.HIDDEN(31,0,'','f31_' || ROWNUM)
        || APEX_ITEM.HIDDEN(01,ROWNUM,'','f01_' || ROWNUM)
     || APEX_ITEM.HIDDEN(04,CHF_DATASTORE||CHF_SCHEMA||CHF_TABLE||CHF_COLUMN,'','f04_' || ROWNUM)
        || APEX_ITEM.HIDDEN(05,CHF_STATUS,'','f05_' || ROWNUM)
     || APEX_ITEM.HIDDEN(06,CHF_STATUS,'','f06_' || ROWNUM)
        || APEX_ITEM.HIDDEN(08,CHF_STATUS,'','f08_' || ROWNUM)
     || APEX_ITEM.HIDDEN(09,CHF_STATUS,'','f09_' || ROWNUM)
        || APEX_ITEM.HIDDEN(11,CHF_STATUS,'','f11_' || ROWNUM)
     || APEX_ITEM.HIDDEN(12,CHF_STATUS,'','f12_' || ROWNUM)
        || APEX_ITEM.CHECKBOX (32,ROWNUM,'onClick="javascript:ToggleValue(this,' || ROWNUM || ','||'''f30'');"'
     ,DECODE (0,1, ROWNUM),':','f32_' || ROWNUM) DELETE
        ,CHF_COLUMN
        ,CHF_STATUS
        ,APEX_ITEM.CHECKBOX (07,ROWNUM,'onClick="javascript:ToggleValue(this,' || ROWNUM || ','||'''f05'');"',DECODE (CHF_STATUS,'DEV',ROWNUM),':','f07_' || ROWNUM) 
          DEV_EDIT
     ,APEX_ITEM.CHECKBOX (10,ROWNUM,'onClick="javascript:ToggleValue(this,' || ROWNUM || ','||'''f08'');"',DECODE (CHF_STATUS,'RVW',ROWNUM),':','f10_' || ROWNUM) 
          RVW_EDIT
        ,APEX_ITEM.CHECKBOX (13,ROWNUM,'onClick="javascript:ToggleValue(this,' || ROWNUM || ','||'''f11'');"',DECODE (CHF_STATUS,'PRD',ROWNUM),':','f13_' || ROWNUM) 
          PRD_EDIT
        FROM CHF_COLUMN WHERE
CHF_DATASTORE  = 'DOMAIN_DEV' AND
CHF_SCHEMA     = 'SCHEMA_DEV' AND
CHF_TABLE      = 'EMPLOYEEE'
ORDER BY 1;  And I have a button for the update process so that the users can check the checkboxes option for the status column either 'DEV', 'RVW', 'PRD'. The status of the column can be in either of these states or can be null.
I have a update process, its having some problem - I don't understand whats causing the problem. Below is the error message which I encountered when trying to update.
ORA-06502: PL/SQL: numeric or value error: character to number conversion error
My Update process.
DECLARE
l_cnt BINARY_INTEGER := 0;
l_stepid number := 10;
l_date DATE := SYSDATE;
BEGIN
FOR i IN 1 .. apex_application.g_f01.COUNT
LOOP
IF APEX_APPLICATION.G_f05 (i)  = 1 THEN
      UPDATE  CHF_COLUMN
           SET      CHF_STATUS = 'DEV'
         WHERE CHF_DATASTORE||CHF_SCHEMA||CHF_TABLE||CHF_COLUMN = APEX_APPLICATION.G_f04 (i)
          l_cnt := l_cnt + SQL%ROWCOUNT;
apex_application.g_print_success_message := apex_application.g_print_success_message ||
'Successfully updated'||l_cnt ||'<br><br>';
END IF;
IF APEX_APPLICATION.G_f08 (i)  = 1 THEN
      UPDATE  CHF_COLUMN
           SET      CHF_STATUS = 'RVW'
         WHERE CHF_DATASTORE||CHF_SCHEMA||CHF_TABLE||CHF_COLUMN = APEX_APPLICATION.G_f04 (i)
          l_cnt := l_cnt + SQL%ROWCOUNT;
apex_application.g_print_success_message := apex_application.g_print_success_message ||
'Successfully updated'||l_cnt ||'<br><br>';
END IF;
IF APEX_APPLICATION.G_f11 (i)  = 1 THEN
      UPDATE  CHF_COLUMN
           SET      CHF_STATUS = 'PRD'
         WHERE CHF_DATASTORE||CHF_SCHEMA||CHF_TABLE||CHF_COLUMN = APEX_APPLICATION.G_f04 (i)
          l_cnt := l_cnt + SQL%ROWCOUNT;
apex_application.g_print_success_message := apex_application.g_print_success_message ||
'Successfully updated'||l_cnt ||'<br><br>';
END IF;
END LOOP;
COMMIT;
END;If you can please have a look at the app, you can get a better understanding of my problem.
Workspace : orton_workspace
username : [email protected]
password : sanadear
Application No: 15089 SAMPLE_CHECKBOX_APP
Thanks,
Orton
Edited by: orton607 on Aug 4, 2010 9:28 AM

I could be wrong but maybe change the hidden items to be like:
APEX_ITEM.HIDDEN(05,DECODE(CHF_STATUS,'DEV',1,0),'','f05_' || ROWNUM)
APEX_ITEM.HIDDEN(08,DECODE(CHF_STATUS,'RVW',1,0),,'','f08_' || ROWNUM)
APEX_ITEM.HIDDEN(11,DECODE(CHF_STATUS,'PRD',1,0),,'','f11_' || ROWNUM)so that the values are 0/1?
Also, you have
DECODE (CHF_STATUS,'DEV',ROWNUM)instead of
DECODE (CHF_STATUS,'DEV',0,1)in the checkboxes, as I would expect.
I'm also not sure why you need to duplicate the checkboxes (f07,f10,f13) as hidden items (f05, f08, f11) if they are both 0/1 values.

Similar Messages

  • I have been trying to put some of my music and artwork, on youtube. Youtube says you need an encoder to upload music. But the problem is the only encoders available are for windows. Please help, thank you

    I have been trying to put some of my music and artwork, on youtube. Youtube says you need an encoder to upload music. But the problem is the only encoders available are for windows. Please help, thank you

    The formats YouTube supports can be found here:
    http://www.google.com/support/youtube/bin/answer.py?answer=55744
    Since YouTube supports AAC, the file format iTunes uses by default, it's probable you don't need any sort of converter.
    If you continue to have problems with uploading to YouTube, I'd suggest you ask for assistance in their forums:
    http://www.google.com/support/forum/p/youtube?hl=en
    Regards.

  • Why can't i downgrade to mavericks? i have got some problem with yosmite. i would like to downgrade to mavericks.please help me how to get it ? thanks

    why can't i downgrade to mavericks? i have got some problem with yosmite. i would like to downgrade to mavericks.please help me how to get it ? thanks

    Hi here are a couple of links you may find useful, the first is if you have made a time machine backup, the second if you have not.
    http://osxdaily.com/2014/10/22/downgrade-os-x-yosemite-to-mavericks/
    http://www.macworld.co.uk/how-to/mac-software/revert-back-mavericks-from-yosemit e-3581872/

  • Problem with file download option in ALV via ITS. Please help!

    Hi Experts,
           I have a ALV report which I have web enabled using ITS service. In the ALV there is a delivered functionality for file download. It works fine when the report is run in the SE80. But when I run the ITS service for the report and choose file download option it displays a page saying "this page has been diaplayed due to technical reasons" with title "File properties". In addition it looks for Java runtime in the browser. After all this it opens a popup window for selecting path and file name.
    This is not user friendly and many customers have rasied their concerns on it.
    My question is that,
    Q1: What is the need of this "File properties page"? Why ITS calls this while ABAP editor does not?
    Q2: Is there any way we can suppress this so that it directly opens a popup window for selecting path and file name?
    Please help me.
    Thanks
    Gopal

    Hello Klaus,
    i have also the problem with these intermediate screens!
    We have in between installed patch 22 for ITS 6.20 and SP18 at SAP Netweaver 2004!
    But they are still not processed invisible for the users.
    Are there any additional parameters, which controls this behaviour(~webgui_updown_make_visible is not used!)?
    How can i check, if i have really a.ex. the actual ws.jar-file or other related files of the patch?
    We are using the standalone ITS with an own (modified) IAC with an own CI-design for the webpages. The intermediate screens are displayed with the "normal" SAPGUI-design because of the parameter ~generatedynpro. Without this it does not work, because the template SAPLSIT_0100 is missing!
    Or do you have an example for such a intermediate template with the applet for an upload of a file?
    Thanks in advance
    Felix

  • Major Problems WIth Iphone 3G and Quality is not very good please help?

    ok everyone this month i bought an iphone 3G and have experienced lots of problems,dropped calls phone turns off by itself for no reason and restarts,sometimes phone will be locked and music controls will show on the screen,i do have a dead pixel on the screen also, screen does not seem level like its not even or something, lock unlock button on top is uneven,i had the original iphone and it was built with quality this phone ***** really bad, well i made an appointment with a macgenuis to replace the phone, but today i accidently dropped it and no there is a two scratches in each corner and there seems to be a small gap between the screen and the metal on one side, this phone is really cheap quality, what i wanted to know if apple will still exchange the phone under warranty or now will they question it becuase i dropped it, but its not fair becuase the problem was before i dropped it and it was horrible and also i turn off 3G becuase sometimes i hear myself echoing and not the other person and sometimes also i hear a crackling noise.... please help what should i do
    Message was edited by: dreydey

    This is a user to user help forum only so no one here can answer regarding what AppleCare or an Apple Store will do in this situation. Every warranty claim is on a case by case basis. If a fellow user tells you - sure Apple will exchange your iPhone and Apple doesn't exchange it due to the accidental damage, what you are told here carries no weight in this regard.

  • Problems with downloading videos from the internet....please help

    sorry if this the wrong forum to post but I don't know where else to post my issue.
    Normally when I download videos from the internet I click on "window" then "activity" then the largest file ie ? of ? (which is the MB file) and it downloads then I use isquint to put it to mp4 format. However now when I do that the file I download says that "video _ts folders can't be directly converted" and there is a button that says "Inadequacy". I can't even download videos from youtube. Any help would be great.
    thank you

    Other than the videos on YouTube, can you post a link or URL of the videos you having problems with for us to test out for you?
    I use Firefox which has quite a few video converter add ons that allows downloads of any type of video from the net. The one I use is called +Flash Video Downloader.+
    "Is there anything else I need to have installed in order to be able to download videos?"
    The latest versions of the following:
    QuickTime
    RealPlayer
    Flip4Mac
    VLC Media Player
    Perian (AVI and FLV support)
    "I also have divx and 3ivx installed"
    You can get rid of those if you have any of the above installed.
    " Mac OS X (10.5.2)"
    Use Software Update to update your OS which is seriously out of date. The last version of Leopard I believe was either v5.6 or v5.8. Also, update all the other things listed that pertain to the OS & your model computer if applicable to your needs.
    !http://i50.tinypic.com/izvwo1.gif!

  • I'm having trouble with the raise to speak feature for siri. Please help

    So I just got the Iphone 4s the other day and looked at a bunch of forums on how to use the raise to speak option but none of them have worked for me. I tried slowly raising it to my ear from a viewing position on the lock screen but it doesn't work. I tried the same thing from the home screen but it still doesn't work. Please help me. I would really like to learn how to use this feature.
    Kellie

    Activating Siri this way is tricky, and not at all intuitive.
    You have to start with the phone in front of you, held parallel to the floor (ie. held flat horizontally), then bring it up to your ear so it's vertical with a normal, smooth motion. Your hand must rotate from the horizontal to vertical position of the phone.
    If you start with the phone vertically in front of your face, then move it over to your ear Siri will NOT activate.
    They key is starting with the phone held horizontally. The motion from horizontal to vertical is necessary. It uses the motion sensor as well as the proximity sensor.
    This is illustrated on page 39 of the iPhone User Manual. I recommend you download the manual and look at the illustration and it will be crystal clear:
    http://manuals.info.apple.com/en_US/iphone_user_guide.pdf

  • I'm having big problems with my K72N-Delta-L and Apacer ram! Please help!

    Well, on almost every boot, the system hangs, starts beeping wildly, and my LEDs tell me that the system is in "early memory detection" .... What now? I have APACER 512mb ddr(266mhz) ... I just can't understand what's going on here... I've tried almost everything! could someone please help out?
    Thanks
    -M

    Acording to Msi test report that this ram is not certified.  But this may not be the problem.  Have you check to see if the ram is seated properly, Also provide the amps on each rails, this will be stated on the psu cover, and the power size of the psu.
    I know these boards are power eaters.

  • HT1725 I am still having problems with my download of Flicka 2 for 2.99 rental )Help!

    I have used the resume download it still does not download= it says error at 50

    Perhaps try the "Error -50," "-5000," "8003," "8008," or "-42023" section in the Specific Conditions and Alert Messages: (Mac OS X / Windows) section of the following document:
    iTunes: Advanced iTunes Store troubleshooting

  • Problems with a while loop within a method... (please help so I can sleep)

    Crud, I keep getting the wrong outputs for the reverseArray. I keep getting "9 7 5 7 9" instead of "9 7 5 3 1". Can you guys figure it out? T.I.A (been trying to figure this prog out for quite some time now)
    * AWT Sample application
    * @author Weili Guan
    * @version 1999999999.2541a 04/02/26
    public class ArrayMethods{
       private static int counter, counter2, ndx, checker, sum, a, size, zero;
       private static int length;
       private static int [] output2, output3, reverse, array;
       private static double output;
       private static double dblsum, dblchecker, average;
       public static void main(String[] args) {
          //int
          //int [] reverse;
          System.out.println("Testing with array with the values [1,3,5,7,9]");
          size = 5;
          array = new int [size];
          reverse = new int [size];
          array[0] = 1;
          array[1] = 3;
          array[2] = 5;
          array[3] = 7;
          array[4] = 9;
          System.out.println("Testing with sumArray...");
          output = sumArray(array);
          System.out.println("Sum of the array: " + sum);
          System.out.println();
          System.out.println("Testing with countArray...");
          output = countArray(array);
          System.out.println("Sum of the elements : " + checker);
          System.out.println();
          System.out.println("Testing with averageArray...");
          output = averageArray(array);
          System.out.println("The average of the array : " + average);
          System.out.println();
          System.out.println("Testing with reverseArray...");
          output2 = reverseArray(array);
          output3 = reverseArray(reverse);
          //System.out.print(reverse[4]);
          System.out.print("The reverse of the array : ");
          for(ndx = 0; ndx < array.length; ndx++){
             System.out.print(reverse[ndx] + " ");
       private ArrayMethods(){
       public static int sumArray(int[] array){
          checker = 0;
          ndx = 0;
          counter = 0;
          sum = 0;
          while(counter < array.length){
             if (array[ndx] > 0){
                checker++;
             counter++;
          if(array.length > 0 && checker == array.length){
             while(ndx < array.length){
                sum += array[ndx];
                ndx++;
             return sum;
          else{
             sum = 0;
             return sum;
        /*Computes the sum of the elements of an int array. A null input, or a
        zero-length array are summed to zero.
        Parameters:
            array - an array of ints to be summed.
        Returns:
            The sum of the elements.*/
       public static int countArray(int[] array){
          checker = 0;
          ndx = 0;
          counter = 0;
          sum = 0;
          while(counter < array.length){
             if(array[ndx] > 0 && array[ndx] != 0){
                checker++;
             counter++;
          return checker;
        /*Computes the count of elements in an int array. The count of a
        null reference is taken to be zero.
        Parameters:
            array - an array of ints to be counted.
        Returns:
            The count of the elements.*/
       public static double averageArray(int[] array){
          dblchecker = 0;
          ndx = 0;
          counter = 0;
          dblsum = 0;
          while(counter < array.length){
             if(array[ndx] > 0){
                dblchecker++;
             counter++;
          if(array.length > 0 && checker == array.length){
             while(ndx < array.length){
                dblsum += array[ndx];
                ndx++;
             average = dblsum / dblchecker;
             return (int) average;
          else{
             average = 0;
             return average;
        /*Computes the average of the elements of an int array. A null input,
        or a zero-length array are averaged to zero.
        Parameters:
            array - an array of ints to be averaged.
        Returns:
            The average of the elements.*/
       public static int[] reverseArray(int[] array){
          ndx = 0;
          counter = 0;
          counter2 = 0;
          if(array.length == 0){
             array[0] = 0;
             return array;
          else{
                //reverse = array;
             while(ndx <= size - 1){
                   reverse[ndx] = array[4 - counter];
                   counter++;
                   ndx++;
                   System.out.print("H ");
          return reverse;
        /*Returns a new array with the same elements as the input array, but
        in reversed order. In the event the input is a null reference, a
        null reference is returned. In the event the input is a zero-length array,
        the same reference is returned, rather than a new one.
        Parameters:
            array - an array of ints to be reversed.
        Returns:
            A reference to the new array.*/
    }

    What was the original question? I thought it was
    getting the desired output, " 9 7 5 3 1."
    He didn't ask for improving the while loop or the
    reverseArray method, did he?
    By removing "output3 = reverseArray(reverse):," you
    get the desired output.Okay, cranky-pants. Your solution provides the OP with the desired output. However, it only addresses the symptom rather than the underlying problem. If you'd bother yourself to look at the overall design, you might see that hard-coding magic numbers and returning static arrays as the result of reversing an array passed as an argument probably isn't such a great idea. That's why I attempted to help by providing a complete, working example of a method that "reverses" an int[].
    Removing everything and providing "System.out.println("9 7 5 3 1");" gets him the desired output as well, but (like your solution) does nothing to address the logic problems inherent in the method itself and the class as a whole.

  • Problem with Server It would not start up again .. please help

    Hi All,
    I recently decided to download a copy of the solaris patch, started the installation and then went home, next morning, I saw that the server would not boot up again.
    One thing I must say is that I think i played around with the mount point and partitions as I wanted to get a big chunk of drive space free for the Oracle database which I was looking to install. Now after rebooting, this is that happens.
    an out of sync boot archive was detected on /dev/dsk/c1t0d0s0 The boot archive is a cache if files used during boot and should be kept in sync to ensure proper system operation
    Do you wish to automatically update this boot archive ?
    If i choose yes
    ** /dev/rdsk/c1t0d0s0
    ** LAst Mounted on /
    ** Phase 1 Check Blocks and Sizes
    ** Phase 2 Check pathnames
    After this
    The screen comes up with
    UNREF DIR I = 379564 OWNER = ROOT MODE = 40755
    SIZE = 512 MTIME = SEP 18 09:06 2008
    If i type in Y, the screen keeps coming up with similar lines but different numbers again and again.
    Can someone help me here, I am quite new to Solaris.
    Thanks in advance

    Hello bhar.suman,
    Thank you for using Apple Support Communities.
    For more information, take a look at:
    iOS: Not responding or does not turn on
    http://support.apple.com/kb/ts3281
    Have a nice day,
    Mario

  • Problem with Arabic character in Servlet !!!! please help

    hi all ,
    this is my servlet code
    ====================================
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class P extends HttpServlet
         public void doGet ( HttpServletRequest rq , HttpServletResponse rs)
         throws ServletException, IOException
              PrintWriter pw = rs.getWriter();
              pw.write("<Html> <Head> <Title> Hello </Title> </Head>"+
              " <Body> Arabic text </Body> </Html>");
    but when i try to see it in the browser ( if i replace "Arabic text" with arabic word) i just see ??????
    instead of the arabic characters !
    can y help please ...
    Ibrahim >>

    Hi,
    May this forum will help or try poting at the website below.
    http://forums.java.sun.com/forum.jsp?forum=16
    Website:
    http://www.thesoftwareobjects.com

  • I have problems with my nano.......PLEASE HELP

    well i bught an ipod nano this week and today when i tried to adjust the volume it didnt show it on the screen (i can lower and raise the volume but i cant see it on the screen )
    i dont speak english(just spanish) so i hope you can understand....................

    What do you see on the screen? If it's stuck on the artwork or rating screen, see this.
    iPod stuck on the ratings screen.
    If it's not that, try these.
    The Five Rs.

  • Problem with checkbox group in row popin of table.

    In table row popin I have kept Check Box Group.I have mapped  the texts property of checkbox group to the attribute which is under the subnode of the table.the subnode properties singleton=false,selectioncardinality=0-n,and cardinality=0-n.
    if there are 'n' number of records in the table.each record will have its own row popin and in the row popin there is check box group.
    the check box group in the row popin  belongs to that perticular row.
    but the checkboxegroup values in row popins of all the  rows are getting changed to the row which is lead selected.
    The same scenario  (table in the row popin is showing the values corresponding to its perticular row and all the table values in popin are not getting changed to the one lead selected in the main table)is working fine with the table in place of  checkbox group in row popin with datasource property of table  binded to the subnode
    I cant trace out the problem with checkbox group in place of table.
    Please help me in this regard.I have to place check box group in place of table in row popin.
    Thanks and Regards
        Kiran Kumar K

    I have done the same thing successfully with normal check box ui element. Try using check box in your tabel cell editor instead of check box group.

  • Problem with checkbox column in matrix

    Hello.
    I have a little problem with checkbox column in matrix.
    Column is binded to the UserData.
    It has ValOn="Y", ValOff="N".
    I use C++. It is wird problem. In matrix I have 10 columns - scrollbar role and if You want see checkbox column, You must role to the right. If this column is on the screen, and I use:
    checkcell->PutChecked(VARIANT_TRUE);
    then the checkbox is cheched, and if the checkbox isn`t on the screen and I use this comment - it nothing happening.
    I tried to use ValOn="Y", PutChecked...
    The problem i solved if the column is on the screen - if the column is first in matrix or second, but if it`s last I have a big problem.
    My column with checkbox is not editable, but I tried to make it editable, check it, and then make it uneditable - the same efect.
    How can I solve it ?
    Sorry for my english.
    Kamil Wydra

    Hello Kamil,
    I am not sure about your problem, but here is an example of how to use checkbox in UI API.
    First, create the matrix with checkbox column in Screen painter, and the output is an xml file, like this. Type as 121 indicates that it is a check box.
    - <column AffectsFormMode="0" backcolor="-1" description="" disp_desc="0" editable="0" right_just="0" title="Rented" type="121" uid="Rented" val_off="N" val_on="Y" visible="1" width="41">
      <databind alias="U_RENTED" databound="1" table="@VIDS" />
      <ExtendedObject />
    Second, bind the column to table from DB. This is a bug of 2004 Screen Painter, so if you are using 2005 Screen Painter, there is no problem.
    Third, when you open the form, you can check and uncheck the cell.
    BTW, please set the editable of the column to true.
    Hope this helps,
    Nick

Maybe you are looking for

  • Copy Control for Billing Header Partner.

    Hi All, Need advice and guidance from all. As below are the explanation of the future and current scenario. I also have did some research on my own. Please advice and thanks in advance. Future Scenario: A new partner determination is necessary during

  • How do you copy photos to a new iMac?

    I am migrating from a PC to a new iMac Intel, and I need to know how to move the 100's of photos from the Windows machine to the iMac.  I have an external USB HD and I have copied all photos to this.  When I plug the USB HD into the iMac, the drive w

  • Photo orientation wrong when synched back to iPhone

    Hi, I take photos on my iPhone, then I put them into a folder and I keep that folder synched to the iPhone. That folder contains other photos from my Nikon cameras too. Mostly all the photos I take on the iPhone are in the portrait orientation (1200x

  • "email contents" applescript in Safari

    I would like to know how to use in applescript with Safari the "email contents", I' tried it a script and nothing happens, I couldn't find documentation on it. Thanks. hdr

  • Systemd and bootchart

    Greetings, I'm using systemd as default init system and before I'm buying a solid state disk, I want to know some information about the boot time with my hdd, so I installed bootchart from the AUR. The wiki says, I should add init=/bin/bootchartd to