In Report "Row Selector"

Hi
I have a report and added a Row Selector to it.
Now I am trying to select the individual rows by selecting the Checkboxes
My Report query is like below
select empno from emp
For this report I have added a row selecor.
And I have added a process which will execute on pressing of a button.
By processes code is like below
declare
lRow NUMBER;
BEGIN
FOR i in 1..apex_application.g_f01.count LOOP
lRow := apex_application.g_f01(i);
insert into xxtemp values(apex_application.g_f02(lRow));
END LOOP;
END;
For above code I am getting ORA-01403: no data found Error
I have gone the through the examples in this forum. But, still I am not sure where exactly I am doing mistake.
Is there any other properties I need to set up to make this code work?
Appreciate your help.
Regards
Kiran Akkiraju

Kiran Akkiraju,
Assumption: Your report type is 'SQL Query (updateable report) and you added a row selector by clicking 'Add Row Selector' from the tasks pane on the right (not by using the apex api's).
If this assumption is correct, just go to your report attributes for your report region, click on the edit EMPNO column, then set the following:
Tabular Form Element > Display As = Display as Text (saves state).
That should do it.
(By default, this is set to 'Standard Report Column' when creating a report and is not stored in the 'apex_application.g_f02' array you were trying to reference (in fact this wouldn't even exist which is why you were getting 'No data found'.))
Anthony
http://anthonyrayner.blogspot.com

Similar Messages

  • Apex 3.0 to 3.2, Updateable Reports & Row Selector Column?

    Good afternoon,
    (I searched the forum for both of these topics but didn't find an answer, it may be there and I missed it. If so, just point me in the right direction if you don't mind.)
    We just upgraded from 3.0.1.00.07 to 3.2.0.00.27.
    In 3.0 there was the option to select 'SQL Query (updateable report)' as a report type. I don't see that available now. What am I doing wrong?
    Also in 3.0, I would add a Row Selector column to a report by selecting 'SQL Query (updateable report)' as a report type, then clicking Row Selector in a side region to the right to add a row selector column, then I would change the report type back to SQL Query and the row selector column would remain. In 3.2 how do I get a row selector column added to a report?
    Thx, Tony

    But, yes, it can be installed with Forms & Reports Standalone. The http server with F&R ships with modplsql; that's all you need. Just configure a DAD as described in the documentation for setting it up with App Server.
    Anton

  • Row Selector column on Interactive Report

    Hi all,
    I have an interactive report based on a custom SQL query. How do I add a row selctor column so I cans select individual rows? I have also tried using a tabular form which also does not display a row selctor column. This is odd as my other tabular forms display a row selctor column.
    Many thanks for you help,
    Chris

    Chris,
    Usually when someone wants a row selector, it's to choose a few rows by clicking a checkbox, then doing something with them. I'm guessing that's what you're looking for?
    Martin Giffy D'Souza's [blog post|http://apex-smb.blogspot.com/2009/01/apex-report-with-checkboxes-advanced.html] explains one way to do that which should work for you. I haven't tried, it, but it looks pretty comprehensive.
    Good luck,
    Stew

  • How to create a report region which the first colomn is row selector column

    I want to create a report region and its first column is a row selector column. I have used select sentence to select some columns. But I do not know how set the first column to row selector column. I mean I want to do as follow. When a radio which is first column is chosen, it will return it's value of the column in the chosen row. Please help me! Thanks

    Hi unnamed,
    Suppose you have an id that identifies your record.
    Go to Report definiton, tab report attirbutes.
    Select the id of your record.
    Create a link to the page you want to go to.
    Hope this helps.
    If not, I suggest you to create a from with report, and analyze the way the wizard has generated it.
    Leo

  • How to add a row-selector to an existing SQL Query (updatable report)

    Hi,
    I screwed up an extensive updatable report in Apex 4.2 region by one time indicating the page may be parsed at run time.
    After setting this back (to validate query) a lot of the columns setting were gone, and also the row-selector
    I actually don't kno how to simply add this row-selector back into place.
    Anyone who can point me in the right direction?
    Thanks a lot
    Wim

    Wim,
    >
    Hi,
    I screwed up an extensive updatable report in Apex 4.2 region by one time indicating the page may be parsed at run time.
    After setting this back (to validate query) a lot of the columns setting were gone, and also the row-selector
    I actually don't kno how to simply add this row-selector back into place.
    Anyone who can point me in the right direction?Have you been able to recover all your other configuration and this is the last thing you need to fix? Or are all those other things needing to be fixed as well?
    The reason I ask is that you may want to consider just starting from scratch, if you haven't put lots of effort into recovering everything else just yet.
    On the other hand, if you just want to add a checkbox back into the SQL statement then you can add this, substituting your column name for empno of course:
    APEX_ITEM.CHECKBOX2(1,empno,'CHECKED') "Select"When you do this you'll get a warning that you're changing the interactive report, which you should accept. Then you need to make sure that the column is actually shown in the interactive report by making sure it's in the displayed columns list. And you may also need to change the display type of the column to "Standard Report Column"
    Hope that helps.
    Earl

  • SQL Query updateable report with row selector. Update process.

    I have a SQL Query updateable report with the row selector(s).
    How would I identify the row selector in an update process on the page.
    I would like to update certain columns to a value of a select box on the page.
    Using the basic:
    UPDATE table_name
    SET column1=value
    WHERE some_column=some_value
    I would need to do:
    UPDATE table_name
    SET column1= :P1_select
    WHERE [row selector] = ?
    Now sure how to identify the [row selector] and/or validate it is checked.
    Thanks,
    Bob

    I don't have the apex_application.g_f01(i) referenced in the page source...In the page source you wouldn't find anything by that name
    Identify the tabular form's checkbox column in the page(firebug/chrome developer panel makes this easy)
    It should be like
    <input id="..." value="" type="checkbox" name="fXX" >we are interested in the name attribute , get that number (between 01 and 50)
    Replace that number in the code, for instance if it was f05 , the code would use
    apex_application.g_f05
    --i'th checked record' primary keyWhen you loop through a checkbox array, it only contains the rows which are checked and it is common practice to returns the record's primary key as the value of the checkbox(available as the the i'th array index as apex_application.g_f05(i) , where i is sequence position of the checked row) so that you can identify the record.

  • Report Break on Form with Row Selector

    Hi!
    I have just upgraded to 4.1 and created a new page with a Tabular Form (insert, Update and Delete capable).
    The first column in the report is the row selector, so when I set the "Report Break on first column", it breaks on the row selector. In previous releases, the row selector could be moved down in the Report Attributes, but in 4.1, there are now up/down arrows next to the row selector, so I can't move it to the second column!
    Help.. anyone have a solution to this?
    Thanks!
    Jodie

    Hello.
    We have exactly the same problem. Only we are using apex 4.2.
    We have a tabular form with row selector and a break column. We want to break on that break column.
    But we can't move it above row selector.
    How can we solve that problem?
    Thanks.
    Regards,
    Dejan

  • Set check in row selector checkbox of report via javascript

    This may be a stupid question. I thought I saw the answer here before. I just can't seem to find it.
    I have an updateable report that allows users to enter data. The issue is unless they check the row selector checkbox, when they submit, the row is not processed. I want to put an onchange event on the columns to automatically check the rowselector box when something is changed on the row. Any ideas? Possibly a link to a previous post.
    Thanks
    Kevin
    Message was edited by:
    kdpar

    On the field that you update set the onchange event to call a function similar to the following: onchange=setRowSelectorState(this);
    In the HTML Header section put a function definition similar to the following:
    <script type="text/javascript">
    function setRowSelectorState(pThis){
    -- get current row number
    -- thanks Patrick Wolf (http://www.inside-oracle-apex.com/2007/01/accessing-tabular-form-cell-with.html)
    var vRow = pThis.id.substr(pThis.id.indexOf('_')+1); -- gets current row number
    -- get row selector for current row assuming its field 'f01_'
    var cbxField = html_GetElement('f01_' + vRow);
    -- add some logic if need be
    var mytest = 0;
    if (mytest == 0) {
    cbxField.checked = true;
    } else {
    cbxField.checked = false;
    </script>
    Simple example but it works. See Patrick's link above to a more detailed example.
    Brent

  • Is it possible to create a multi row selector in Regular report?

    I have to add multi row selector into my reoprt for manipulating with data?
    What is the best way to do this?
    Regards, Kostya

    Hi there,
    If anyone is still here in perticular Denes. Denes i have been using your sample application for a while now. it just helps in every problem.
    I was looking at your page 38 to update an editable report. i see that your region is of type "SQL Query". how did you include the row selector to show up ??
    row selector comes up only if the region is of type Tabular form (updataable). i cant use tabular form as my results comes from a complex query after the user provides some column values and presses search.
    In short, i am done with update to the fields but i dont know how i can perform delete as they needs to be something to select the rows to be deleted.
    Please helpp!!!

  • Interactive report with row selector?

    I've just upgraded to APEX 3.1. I've been playing with all those amazing new features of interactive report but I miss one very important for me - a row selector. I used to have the traditional reports based on updatable queries with row selector that enabled multi-row-delete operations. Is it still possible to include a row selector to IRR so as to accomplish MRD?
    Thanks,
    Zdenek

    Hi,
    this circumstance --> "missing row selector" raises another big problem.
    My Question now:
    I can't do row-specific processes now as in v3.0 where i could start a single process for every marked row.
    Is there any feature (that i don't know yet) to integrate process-buttons for every row in a report? Mean this button should start a process for the row, where the button was pressed.
    I didn't find any information about this feature.
    Thank you!

  • More tha one report with row selector in the same page,

    I want to have 2 reports in my page, the two reports must have a row selector.
    1/ In the first report, some pl/sql is executed when the user click in a row, so I am using :
    for i in 1..wwv_flow.g_f01.count loop
    my pl/sql using wwv_flow.g_f01(i)
    end loop;
    2/ In the second report, the user will check rows in order to delete them.
    HTMLDB automaticaly gives f01 to the column "row selector" for any report in the page : how can I manage this please ?
    Thanks for any help!
    Jina.

    See
    http://htmldb.oracle.com/pls/otn/f?p=24317:54
    The region query is
    select
    htmldb_item.checkbox(1,empno,'onClick="highlight_row(this,#ROWNUM#);"') chk,
    ename, job, sal, comm
    from emp
    The Javascript function highlight_row() is "stolen" from the page HTML DB generates when it puts the builtin row selector. Put the function in the region header. The function is
    <script type="text/javascript">
    function highlight_row(checkBoxElemement,currentRowNum) {
        if(checkBoxElemement.checked==true) {
            for( var j = 0; j < checkBoxElemement.parentNode.parentNode.childNodes.length; j++ ) {
                if (checkBoxElemement.parentNode.parentNode.childNodes[j].tagName=='TD') {
                    if(rowActive=='Y') {
                        rowStyle[currentRowNum] = rowStyleHover[currentRowNum];
                    } else {
                        rowStyle[currentRowNum] = checkBoxElemement.parentNode.parentNode.childNodes[j].style.backgroundColor;                     
                    checkBoxElemement.parentNode.parentNode.childNodes[j].style.backgroundColor = '#ededd6';
            rowStyleHover[currentRowNum] =  '#ededd6';
        } else {
            for( var j = 0; j < checkBoxElemement.parentNode.parentNode.childNodes.length; j++ ) {
                if (checkBoxElemement.parentNode.parentNode.childNodes[j].tagName=='TD') {                     
                    checkBoxElemement.parentNode.parentNode.childNodes[j].style.backgroundColor =  rowStyle[currentRowNum];
                    rowStyleHover[currentRowNum] =  rowStyle[currentRowNum];
                    document.wwv_flow.x02.checked=false;
    </script>I have no idea how that Javascript works, it seems to be doing some DOM black magic, but it works! :)
    Hope this helps

  • How to create a custom row selector

    I am using APEX_ITEM.CHECKBOX in a form. How can I add a row selector checkbox to the heading of the table to select/deselect all of my custom checkboxes? I tried to simply add the build-in row selector function to the report but that just added an additional column of checkboxes. I just need the header row checkbox added.
    This is Apex 3.2.x
    Edited by: user9108091 on Oct 14, 2010 1:32 PM

    Hello,
    >> How can I add a row selector checkbox to the heading of the table to select/deselect all of my custom checkboxes?
    Please check the following. I believe it’s simpler than the hijacking business.
    Re: How to add row selector column attribute to report region?
    Regards,
    Arie.
    &diams; Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    &diams; Author of Oracle Application Express 3.2 – The Essentials and More

  • HTMLDB_item.Date with row selector

    Hi :
    In my application i am using htmldb_item.datepicker and row selector to insert the date object wise
    the problem wht i am facing is if suppose 10 rows are generated when i select 3rd row date and insert date picker date get populated in 2nd row similarly 2nd rows to 1st and so on
    please try this query
    SELECT
    HTMLDB_ITEM.DISPLAY_AND_SAVE(2,NULL) "Project Objects",
    HTMLDB_ITEM.DATE_POPUP(3,rownum,null,'dd-mon-yyyy',12,15) "date"
    FROM
    DUAL
    UNION
    SELECT
    HTMLDB_ITEM.DISPLAY_AND_SAVE(2,SYSDATE) "Project Objects",
    HTMLDB_ITEM.DATE_POPUP(3,rownum,null,'dd-mon-yyyy',12,15) "date"
    FROM
    DUAL
    first change this query to sql updatable report and add row selector then try to select date from 2nd row ull find the problem wht i am facing
    please suggest how to resolve this
    thanks
    sudhir

    ya we it wont update when we use a rownum when we resort and update i did like this see if you can understand the code
    DECLARE
    vRow binary_integer;
    BEGIN
    for i in 1..htmldb_application.g_f01.count
    loop
    vRow := htmldb_application.g_f01(i);
    UPDATE SCHEDULE_VARIANCES
    SET
    REVISED_START = htmldb_application.g_f02(vRow),
    REVISED_END = htmldb_application.g_f03(vRow),
    ACTUAL_START = htmldb_application.g_f04(vRow),
    ACTUAL_END = htmldb_application.g_f05(vRow),
    STATUS = htmldb_application.g_f06(vRow),
    -- ACCEPTANCE = htmldb_application.g_f07(vRow),
    COMMENTS = htmldb_application.g_f08(vRow)
    where
    PROJECT_NAME = :P25_PROJECTS AND
    OBJECT_NAME = htmldb_application.g_f09(vRow) ;
    end loop;
    End;
    here i am relating object name to row selector that is the check box so that when u sort the row also based on the object name that u select it will update this worked for me
    thanks
    sudhir

  • How to update records marked by [row selector] ?

    Hello,
    I have a small table (PK=record_id) from which I send mail to a user of informational reasons. At the moment I can only send all records in a mail, but I want to be more 'selective', send only marked records.
    The table is shown in a APEX-report defined as an updateable report.
    I added a column [record selector] to it, allowing me to put a mark before the record to be send.
    I did not succeed however sending the user only the marked records....
    I tried something like
    BEGIN
    -- Loop through the rows that have been checked.
    FOR I IN 1..HTMLDB_APPLICATION.G_F01.COUNT
    LOOP
    SELECT record_id
    INTO to_be_send_record
    FROM meldingen_voor_postverzending
    where HTMLDB_APPLICATION.G_F01(I) = 'Y' ;
    -- place the record with record_id = to_be_send_record
    -- into a mail (via a self-made package) ...
    END LOOP;
    -- send the mail (using HTMLDB_MAIL)
    END ;
    It looks as if the records marked are not selected, but I can't find the reasopn why.
    Maybe the = 'Y' is not correct, but I also tried "is not null" , '!= NULL" and other things.
    Can anybody help me getting opnly the checked records into the mail-body?
    Thanks and regard,
    Jan.

    Hi Jan,
    try the following code:
    DECLARE
       vRow BINARY_INTEGER;
    BEGIN
       :p95_text := NULL;
       FOR i IN 1 .. apex_application.g_f01.COUNT
       LOOP
          vRow := apex_application.g_f01(i);
          :p95_text :=
                :p95_text
             || CHR (10)
             || vRow
             || '. '
             || apex_application.g_f02 (vRow)
             || ' / '
             || apex_application.g_f03 (vRow)
             || ' / '
             || apex_application.g_f04 (vRow)
             || ' / '
             || apex_application.g_f05 (vRow)
             || ' / '
             || apex_application.g_f06 (vRow)
             || ' / '
             || apex_application.g_f07 (vRow);
       END LOOP;
    END;The APEX row selector returns the row number of the selected row. Not the primary key or whatsoever. So you have to use that value to access the arrays of the other columns.
    Hope that helps
    Patrick
    Check out my APEX-blog: http://inside-apex.blogspot.com

  • How can i add row selector

    Hi,
    i want to add row selector in my reports. as we do in sql command promt.
    i want to create select list with values like 500,1000,2000,6000 and so on. if i choose 500 in select list it show 500 records in report,if i choose 1000 then show 1000 rows in report.how can i do this.
    is it possible? if it is then how can i do this.
    Thanks & Regards
    nisha

    In the Report pagination Settings( report Attributes ->pagination" ) , there is a field by the name "*Number of Rows (Item)*" , Choose your item there.

Maybe you are looking for