Pl sql Code To count how max checkboxes are checked In the Report Region

I am developing a APEX report where I put check boxes to row row of the report result . So I checked Some of this check box. Now I need a code to count how many checkboxes are checked during the runtime

there is a forum for APEX: Oracle Application Express (APEX)

Similar Messages

  • How can I find out how many checkboxes are checked, please!

    Hello everyone,
    I have been at it for hours and pretty much cannot think straight and would highly apprecaite your help on this. I have an array called myArr which has 5 elements in it. I then generate checkboxes and the number of checkboxes are matched with the myArr.length(); I would like to be able to find out what checkboxes are check/selected before moving to the next screen. User will need to click on a "NEXT' button in order to move to the next screen. Next button is disabled until user selects the checkbox(s).
    here is the code:
    var cb:CheckBox;
    captionArr:Array = new Array('img1' , 'img2', 'img3', 'img4', 'img5');
    myArr:Array = new Array('c1', 'c2', 'c3', 'c4', 'c5');
    for(var i:Number=0; i < myArr.length; i++)
       cb = new CheckBox();
      cb.y = i * 25;
      cb.label = captionArr[i];         //  CHECKBOX LABELS
      addChild(cb);
      cb.addEventListener(MouseEvent.CLICK, clickHandler);
    function clickHandler(e:MouseEvent):void
         if(e.target.selected)
             trace(''SELECTED");
        else if(!e.target.selected)
         trace("NOT SELECTED");
    Thanks.

    use checkCBF():
    var cb:CheckBox;
    captionArr:Array = new Array('img1' , 'img2', 'img3', 'img4', 'img5');
    myArr:Array = new Array('c1', 'c2', 'c3', 'c4', 'c5');
    var cbA:Array=[];
    for(var i:Number=0; i < myArr.length; i++)
       cb = new CheckBox();
      cb.y = i * 25;
      cb.label = captionArr[i];         //  CHECKBOX LABELS
    cbA.push(cb);
      addChild(cb);
      cb.addEventListener(MouseEvent.CLICK, clickHandler);
    function clickHandler(e:MouseEvent):void
         if(e.target.selected)
             trace(''SELECTED");
        else if(!e.target.selected)
         trace("NOT SELECTED");
    function checkCBF(){
    for(var i:Number=0; i < cbA.length; i++){
    if(cbA[i].selected){
    //cbA[i] selected
    } else {
    //cbA[i] not selected

  • How do I count how many songs are on my iPod?

    How do I count how many songs are on my iPod? Also, how do I figure out how much space I have left on it?

    Hi.
    in the ipod under settings>about it says how much room is available. how many songs are on the ipod. other things to.

  • Find how many users are connected in the Oracle Server

    Hi,
    I am using Oracle 10g. My question is, is it possible to find how many users are connected in the Oracle Server. We are having one Server and we are having many client machines which will connect the Oracle.
    And one more question in the meanwhile i want to take Backup of one database which client as connected. Is it get any problem to the client machine which is accessing the server. And How to take the backup from the server machine. Any commands to process.
    Thank u...!

    Hi there.
    If You run
    select count(*) from v$session where username is not null;you'll get the number of users connected to Oracle server,
    and yes , you could do backup while users are connect to db you are backing up.
    cheers

  • How to integrate conditional colors to the Report

    <!--Hi all APEX gurus,
    I would like to ask if you could help me with the problem how to integrate conditional COLORS to the Report. I need to display Severity field in RED but how to include the multiple "quotation marks" and 'apostrophs' to the query below?
    I need to replace i."Severity" field in the query below with the DECODE like this:
    DECODE (i."Severity", 1, '<span style="color:red;font-weight:bold">' || i."Severity" || '</span>', i."Severity") "Severity"
    Original Query:
    DECLARE
    q varchar2(4000);
    BEGIN
    q := ' select ';
    q := q || ' i."ID" "ID", ';
    q := q || ' i."Task_ID" "Task ID", ';
    q := q || ' i."Severity" "Severity", ';
    q := q || ' i."Priority" "Priority", ';
    q := q || ' i."Task" "Task Name", ';
    q := q || ' p."Project_Name" "Project" ';
    q := q || ' from ';
    q := q || ' "IDEAS" i, ';
    q := q || ' "PROJECT_LOOKUP" p ';
    q := q || ' where ';
    q := q || ' p."Project_ID" = i."Project_ID" ';
    if :P1_Show != 'ALL' then
    q := q || ' and i."Project_ID" = :P1_Show';
    end if;
    RETURN q;
    END;
    I have tried many variants but still have problem with the " " and ' ' included in the DECODE command together with the q-variable.
    Thank you for any tips and
    Happy New Year!
    AB
    -->

    Hi user487406,
    What about a select like this:
    select i.id,
           i.task_id,
           case i.severity
             when 1 then '&#60;span style="color:red;font-weight:bold"&#62;' || i.severity || '&#60;/span&#62;'
           else
             to_char(i.severity)
           end severity,
           i.priority,
           i.task,
           p.project_name
      from ideas i,
           project_lookup p
    where p.project_id = i.project_id;
    And PL/SQL like this:
    q :=
    ' select i.id, ' ||
    '        i.task_id, ' ||
    '        case i.severity ' ||
    '          when 1 then ''&#60;span style="color:red;font-weight:bold"&#62;'' || i.severity || ''&#60;/span&#62;'' ' ||
    '          else ' ||
    '            to_char(i.severity) ' ||
    '        end severity, ' ||
    '        i.priority, ' ||
    '        i.task, ' ||
    '        p.project_name ' ||
    '   from ideas i, ' ||
    '        project_lookup p ' ||
    '  where p.project_id = i.project_id; '; Regards Pete

  • How to put a check with the date

    Hi,
    I have created a ztable with 3 fields .
    clientcode(3),
    date,--date geneated
    version--- fileversion
    i need to update this table everytime i execute the data. Every time version shd get incremented when i execute the program.  When i excute the program next day version shd be updated by '1'.
    i wrote the code for version updated i'm not getting the logic how to put a check with the date.
      SELECT *
       FROM zfi_enetflver
       INTO TABLE gt_flver.
      SORT gt_flver DESCENDING.
      CLEAR: gv_dt, v_file.
      CONCATENATE sy-datum6(2) sy-datum4(2) INTO gv_dt.
      READ TABLE gt_flver WITH KEY client_code = gv_clcd.
      IF sy-subrc = 0.
        idx = sy-tabix.
        IF gt_flver-zdate = ' '.
          gt_flver-zdate = sy-datum.
        ENDIF.
        IF gt_flver-version = ' '.
          gt_flver-version = '001'.
          gv_filever = gt_flver-version.
          MODIFY gt_flver INDEX idx TRANSPORTING zdate version.
          MODIFY zfi_enetflver FROM TABLE gt_flver. "TRANSPORTING version.
          CONCATENATE 'E:\' 'ENET\' gv_clcd gv_dt '.' gt_flver-version INTO v_file.
        ELSE.
          gt_flver-version = gt_flver-version + 1.
          gv_filever = gt_flver-version.
          MODIFY gt_flver INDEX idx TRANSPORTING version.
          MODIFY zfi_enetflver FROM TABLE gt_flver .
          CONCATENATE 'E:\' 'ENET\' gv_clcd gv_dt '.' gt_flver-version INTO v_file.
        ENDIF.
      ENDIF.
    clientcode is the key field in ztable do i need to make date field key ??
    please help me with the logic

    You need to implement below logic:
    1. check if field_date = sy-datum. in this case do nothing.
    2. else . move sy-datum to field_date .
    3. modify your internal table with field_date .
    4. populate final table to database table .
    hope you get it.

  • How to call a package from the Report in Oracle Application Express

    How to call a package from the Report in Oracle Application Express

    Hello,
    What do you mean? Something like SELECT mypackage.function( par1, par2) from dual?
    Or do you want to execute a procedure when something happens on the page, like clicking a button?
    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    You can reward this reply by marking it as either Helpful or Correct ;-)

  • How do I reference items in a report region

    I've created a report. You can view the region attributes at http://i3.tinypic.com/wcn59h.jpg.
    I've changed the "Display As" attribute of one of the items (QUAN_ID) to 'Select List (query based LOV)'. I've set the "LOV Query" attribute on this item to the following.
    select quan.answer_txt
    , quan.id
    from vug_question_answers quan
    , vug_survey_questions suqu
    where suqu.id = quan.suqu_id
    and suqu.surv_id = :p33_surv_id
    --and    suqu.id = :suqu_id
    order by quan.question_answer_seq_no
    The purpose of this LOV is to return QUESTION_ANSWERS that have a foreign key to the SURVEY_QUESTIONS record identified by the sufu_id. The bind-variable ":p33_surv_id" is a page item. I THOUGHT the bind-variable ":suqu_id" (referenced in the commented-out line) would be the name of a column item in my report region. However, the LOV doesn't return correct values if I uncomment the line containing :SUQU_ID.
    How do I determine the name of the report region column item so that I can reference it within the LOV of another item in the same region?
    Thanks,
    -Ken

    Ivo,
    That's it!
    My original tabular form query read as follows.
    select rean.id,
    rean.resp_id,
    suqu.surv_id,
    suqu.question_txt,
    quan.suqu_id,
    rean.quan_id, --this is the column I was adding an LOV to
    rean.entered_by,
    rean.entered_on,
    rean.updated_by,
    rean.updated_on
    from vug_respondent_answers rean
    , vug_question_answers quan
    , vug_survey_questions suqu
    where rean.resp_id = :p33_resp_id
    and quan.id = rean.quan_id
    and suqu.id = quan.suqu_id
    and suqu.surv_id = :p33_surv_id
    I've changed it to the following.
    select rean.id,
    rean.resp_id,
    suqu.surv_id,
    suqu.question_txt,
    quan.suqu_id,
    htmldb_item.select_list_from_query
    ( 6
    , rean.quan_id
    , 'select quan.answer_txt, quan.id from vug_question_answers quan, vug_survey_questions suqu where suqu.id = quan.suqu_id and suqu.surv_id = :p33_surv_id and suqu.id = '|| suqu.id ||' order by quan.question_answer_seq_no') quan_id,
    rean.entered_by,
    rean.entered_on,
    rean.updated_by,
    rean.updated_on
    from vug_respondent_answers rean
    , vug_question_answers quan
    , vug_survey_questions suqu
    where rean.resp_id = :p33_resp_id
    and quan.id = rean.quan_id
    and suqu.id = quan.suqu_id
    and suqu.surv_id = :p33_surv_id
    My screen now looks as found at http://i3.tinypic.com/wgq4g9.jpg. (Note that I've also changed the question since a previous post.)

  • Firefox is suddenly not remembering or filling in any of my passwords. All of the appropriate boxes are checked in the options/security tab, but it won't remember any passwords and shows none saved. How do I get it to remember and fill in my passwords a

    Firefox is suddenly not remembering or filling in any of my passwords. All of the appropriate boxes are checked in the options/security tab, but it won't remember any passwords and shows none saved. How do I get it to remember and fill in my passwords again?

    Do you mean names and passwords in the Password Manager or do you mean that you are no longer logged on to (remembered by) websites after closing and restarting Firefox?
    If the latter happens then you have a problem with cookies that are not kept or the file that stores the cookies is corrupted.
    Websites remembering you and automatically log you in is stored in a cookie that you must allow: Tools > Options > Privacy > Cookies: "Exceptions"
    Make sure that you do not use [[Clear Recent History]] to clear the 'Cookies' and the 'Site Preferences'.
    Make sure that you not run Firefox in [[Private Browsing]] mode.
    In Private Browsing mode some menu items are disabled (grayed) and some features like visited links and others are disabled and not working.
    You are in Private Browsing mode if you see "Tools > Stop Private Browsing".
    See [[Private Browsing]] and http://kb.mozillazine.org/Issues_related_to_Private_Browsing
    See also http://kb.mozillazine.org/Password_Manager (Troubleshooting)

  • I want to check that how many users are connected to the wifi which i m using at present

    i want to check that how many users are connected to the wifi which i m using at present???

    Go to Utilities > Airport Utillity
    If you click on your router it should show you the "wireless clients" that are connected

  • How many characters are allowed in the memo field?

    how many characters are allowed in the memo field? In iTunes in the get info section to add data to this field.

    It is 255, as are most text fields. Use the lyrics field if you want to record a large amount of information.
    tt2

  • How many calls are held in the call log for the iPhone 3g?

    How many calls are held in the call log for the iPhone 3g?

    Creating a separate CSQ is the way to do it. Keep in mind that depending on your error handling, a single request could still generate more than one call into the CSQ. You would want to look at the CCDR table for the call ID or write the ImplementationID into one of the Enterprise Data variables that gets stored to the DBA to act as a UID. 

  • How many gb are actually on the 16 gb model

    How many gb are actually on the 16 gb model new iPad is it the same as the iPad 2

    On your iPod menu, Settings>About. Click the centre button to move through the screens until you get to the one that tells you how many songs, videos etc. you have. You can also see the information by connecting your iPod to iTunes. Connect your iPod and when it shows in the iTunes 7 source list click on the chevron (the little triangle) to the left of the iPod icon This will display the various icons for the iPod itself, Music, Movies, TV Shows and Playlists. Click on Music and you'll see the usual song list, on the grey bar at the bottom you'll see how many songs are there.

  • How many songs are checked in Your Music?

    I am wondering if there is a quick way to know how many songs are checked in "Your Music"? I tried to select all (ctrl+a) but didnt see a number. I have heard there is a 10,000 song limit. Is this still the case? I use the check feature to denote preffered songs on albums, and keep track of what I have listened too. I do not want to invest this time if I am going to hit the 10,000 mark and I wont let me add any more or worse yet remove an old check to add a new one! Thanks  

    Hello:
    When you use the ctrl+a and all songs are highlighted, if you start to drag all tracks as you would when adding to a playlist, does a small context window open next to your mouse pointer informing you how many tracks you are dragging?
    And sadly yes currently there is a 10,000 track limit in YOUR MUSIC. I still use playlists to add stuff and keep me aware of new things I add by date added to playlists and to know when something needs listening to next.
    Now you can always uncheck content added under either SONGS or ALBUMS under YOUR MUSIC. And add new content each time if you are wanting to use it as a way to keep up with new stuff not listened to yet. Just click on either the tracks or albums check marks and click on the X on mouse hover to change them from a check mark to an X to remove those items, and you should be able to change out content that way.

  • How to keep track of which checkboxes are checked

    I have 21 checkboxes on a scene and want a user to have to
    pick at least four of them, i will then use the ticked checkboxes
    to bring data back from a database. My question is how do i keep
    track of which checkboxes are clicked so i can put them in to a sql
    statement like this?
    select * from table where title in (checkbox1, checkbox2,
    checbox13);
    And how do i make sure the user has picked four boxes before
    being allowed to leave the current frame?
    EDIT: sorry this is probably in the wrong forum it should go
    under basics, but instead of posting the thread there can someone
    please reply to it here, thank you.

    i am using flash component checkboxes, i tried to come up
    with my own way to do this i am doing different:
    on CheckBoxState -- name of custom handler
    TickedBoxes = [] -- a empty list will be filled where ever a
    checkbox is ticked
    CheckBoxNames = ["dr no", "from russia","goldfinger",
    "thunderball", "you only live" ]
    -- the above is a list containing the names of all my
    checkboxes
    repeat with i = 1 to 5 - repeat for each checkbox
    CurrentCheckbox = CheckBoxNames
    -- used to keep track of which box is checked this sets
    currentcheckbox to value of i, i is a checkbox from checkboxname
    list
    if the hilite of member(CurrentCheckbox) then -- if
    currentcheckbox hilite is true (checked)...
    append(TickedBoxes, CurrentCheckbox) -- ... add
    currentcheckbox to the tickedboxes list
    end if
    end repeat -- end repeat
    return TickedBoxes -- return the list of checked boxes
    end
    on mouseUp me -- on mouse click
    choosenBoxes = me.CheckBoxState() -- chosenboxes is a
    variable calls the handler on it
    -- will put sql here
    end
    this is the only script i have which is attahced to my
    submit button, but for some reason when i try to trace the results
    in the message window it always return void can anybody tell me
    what i am doing wrong?

Maybe you are looking for

  • Can't receive mail from external domains (hotmail, gmail, etc)

    Hi, I have a new problem I can't receive external email. The receive connector that i have is the following: Default Frontend NAME.NL TlS, Basic verification, Basic after TLS, Intergrated, Exchange verification. groups: Exchange-server, exchange-user

  • SAP r/3 flat file upload for KP26

    Hi all, Any help would be appreciated. I am uploading data for SAP transaction KP26 from a flat file. The structure file requires a BDC_OKCODE.  What is the code for the Screen Overview button (F5) ? If nobody knows, could you tell me how to find thi

  • Image in header disappears when document is opened with iPad Pages

    I'm trying to create company templates for standard files that can be both accessed from my Mac and iPad via iCloud. Howerver, I can't get the iPad version to include the image that was added within the Mac version and saved to iCloud. Here is what's

  • Re-using old phones

    There is more computing power in even a basic mobile than was used to put man on the moon (they mostly used slide rules). It occurs to me that they could be put to use in a variety of applications as remote controlling or monitoring devices.  Indeed,

  • How to sort the new records when you input them in a Forms bloc?

    Hi, I have a multi-record data block, how can I do to sort the records in this block when you enter some new records? for instance, you have a table(emp), 3 coloumns(empid, empname, deptno). when you enter new records, how can you do to make records