Using Row Selector

I have an updatable report in which I have added a row selector. I can not find the information anywhere where I can reference which columns have been selected. What I would like to do is the user selects certain rows and then click a button. Then update a field on each of the selected rows.
I feel this is probably a simple act, I just cannot find documentation on how.
Thank you.

Ben,
Denes' example here should get you started:
http://apex.oracle.com/pls/otn/f?p=31517:95
Regards,
Dan
Blog: http://DanielMcGhan.us/
Work: http://SkillBuilders.com/

Similar Messages

  • Use Row Selector in PL/SQL Function

    Hi all!
    I want to use the ROW SELECTOR from a Tabular Form in a PL/SQL Function or Anonymous Block.
    In Detail I want to find out which Rows got checked and then do specific operations to them.
    Thanks in Advance.
    Regards
    Kai Eilert

    Hi,
    I have a similar requirement. Need to add a Row selector in a report based on SQL query(PL/SQL function body returning SQL query). How do I do this?
    TIA

  • Update Multiple Rows using Row Selector

    Hi,
    I want to update multiple rows using a tabular form with row selector, and an item in another region of the page, using an update expression and a button.
    The syntax would be like this:
    update MY_TABLE set UPDATABLE_COLUMN = :P10_NEW_VALUE where {row selector = true}
    What is the syntax for the WHERE clause, anyone knows? In the manual there is no information at all for doing this.
    PD. I added the row selector after creating the form, so I don't have any wizard-created MRU processes in the page.
    HTMLDB version is 1.6
    Thanks.

    Hi,
    I want to update multiple rows using a tabular form with row selector, and an item in another region of the page, using an update expression and a button.
    The syntax would be like this:
    update MY_TABLE set UPDATABLE_COLUMN = :P10_NEW_VALUE where {row selector = true}
    What is the syntax for the WHERE clause, anyone knows? In the manual there is no information at all for doing this.
    PD. I added the row selector after creating the form, so I don't have any wizard-created MRU processes in the page.
    HTMLDB version is 1.6
    Thanks.

  • Insert data using row selector

    Hi :
    In my applicaion i need to insert only the selected data ie row
    the query i am using is
    select
    html_db_item.text(1,pobj.name,20,25) "object Name",
    html_db_item.text(1,null,20,25) "Incomming Hours ",
    html_db_item.text(1,null,20,25) "Design Hours "
    from projects pro.
    project_objects pobj
    where pro.id = pobj.pro_id and
    pro.id = :p10_projects
    here p10_projects is the project where for each project there would be 10 to 100 objects ie pobj.name
    here i need to insert these object names and hours into anothere table where i need a row selector to select only selected objects and insert please suggest me
    so as i select the rows only that need to be inserted
    Thanks
    Sudhir

    Randy :
    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 the query to sql updatable form and then add row selector to this report and try to select the 2nd row date picker ull find the problem wht i am facing
    i need row selector becouse to select the date indivisually and insert them
    please give me some soloution
    thanks
    sudhir

  • Disable Row Selector

    Alright, so I have a tabular form (no editable fields) used to delete records using [row selector] and a delete (Apply MRD).
    What I would like to do is have the [row selector] hidden/disabled based on a column value.
    Is this possible? If so, how do I go about doing this? thanks Trey

    Hi Trey,
    The Tabular Form is somewhat notorious for being a tricky to customise! There are some enterprising developers out there who have designed "widgets" to let you customise the Tabular Form - have a search around on the forums for "tabular form customise" and other similar search strings.
    Alternatively you could look at re-doing the form using APEX collections - these let you build your own tabular form with a PL/SQL generated query, and then you can do what you like with it. Again, have a search for "collections" on this forum and you should find some helpful info.
    Cheers,
    Colin

  • Multi Row Selector using Generic Column Names (parse query at runtime only)

    Hi,
    I created a tabular report which had a multi row select in it - got the deleting working fine.
    Am now creating a second tabular report, but because of the SQL:
    select
    "ID",
    "ID" ID_DISPLAY,
    "RESNUMBER",
    "RESDESCRIPTION",
    decode(RESTYPE,'R','Right Party','W','Wrong Party'),
    decode(DMCFLAG,'Y','Yes','N','No'),
    decode(SALEFLAG,'Y','Yes','N','No')
    from "CALL_RESULTS"
    I have to select the option Use Generic Column Names (parse query at runtime only) otherwise I cannot save the form.
    My problem is I am now unable to add a multi row selector to the tabular form. If I do and run the form I get the following error - failed to parse SQL query: ORA-00904: "COL11": invalid identifier. Also when I go back and edit the form the multi row selector has been removed.
    Can anyone tell me why I can't add a row selector like I previously could?
    Regards
    Simon

    Arie,
    I added aliases and to the decode columns, and I can now add a row selector to the form without any problems.
    Thank you very much for your help.
    Regards
    Simon

  • 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 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.
    ♦ Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    ♦ 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

  • JQuery and the row selector column.

    I have a tabular form which i'm running some validation against.
    I'm using the row selector to indicate rows which are to be deleted.
    Now i've deleted rows using the method below, that's fine.
    DECLARE
    rows_int integer;
    Err_message varchar2(50);
    BEGIN
    FOR i IN 1..apex_application.g_f01.COUNT LOOP
    DELETE
    FROM com_transactions
    WHERE ID = apex_application.g_f02(NVL(apex_application.g_f01(i),0));
    END LOOP;
    END;
    However when i try to use JQUERY for the validation things go awry.
    $('input[name="f01"]').each(function(j)
    if($(this).val().length > 0)
    {   row_var = $(this).val();
    $('input[name=f06]:eq('+(row_var)+')').val(' DELETE ROW '+ row_var);
    Now there's a mis allignement on the returned values j = 0 returns the values in row 1 when using pl sql, but that's fine.
    The problem is that in the plsql block only the rows with a tick against them are returned but in the jquery every row is returned regardless of if it's been ticked or not.
    Any ideas please folks?
    Thankyou
    JH.

    Having done a bit more research i was accessing the item incorrectly and needed to use the following syntax.
    $('input[name=f01]:checked').each( function(){
    JH.

  • 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.

  • Tabular Form Hide Row Selector for certain rows?

    Hi,
    I was curious if it is possible to hide the row selector checkbox for certain items? For instance
    if a certain value is in a certain column in a row I want to hide the checkbox and in other cases show it...
    Thanks in advance!

    Hi,
    That setting does only work for an entire column.
    There are at least three possibilities:
    1 - Create the checkbox using APEX_ITEM.CHECKBOX (see: [http://download.oracle.com/docs/cd/E10513_01/doc/apirefs.310/e12855/apex_item.htm#CHDDCHAF])
    2 - Create a custom "Named Column (row template)" report template - where you can define the layouts for each row based on up to 4 conditions
    3 - Use javascript to scan data in the other columns and disable or remove the checkboxes where required
    Option 1 is probably easiest but you would need to remove the Row Selector from the report as that is no longer required
    Andy

  • 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

Maybe you are looking for