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

Similar Messages

  • 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

  • ALV disable row selection

    Hai gurus,
    In my ALV output I want to disable the left most button (Row selector) for some reasons Dynamically.
    The user should not select the entire row for some condition.
    loop at itab.
         If itab-field1 eq 'AA'.
             Disable row for selection.
         endif.
    endloop.
    Thanks in advance .....

    Hi Shridhar,
    I think it is difficult to have selection boxes on some condition.
    We can have only one type of selection mode for alv.
    Kindly refer following link for your solution
    http://help.sap.com/saphelp_47x200/helpdata/en/ef/a2e9eff88311d2b48d006094192fe3/frameset.htm
    I have tried it in many ways but not able to have its solution.
    Kindly share it with all of us if you get the solution.
    Hope it helps,
    Pratik Vora
    Edited by: Pratik Vora on Feb 23, 2009 11:23 AM

  • Is there a way to programmatically check the Row Selector for a row?

    Greetings,
    I have a report that has the Row Selector column. I am processing the rows that are checked by the user when they click a button, so I am already looping thru FOR ii IN 1 .. Apex_Application.g_f01.COUNT.
    I need some of the rows to always be processed in the loop, so I would like to:
    1. have certain rows checked automatically. Is that possible?
    2. using the same logic that automatically checks certain rows I would also like to insure they stay checked, or are process in the loop. (You know, I may automatically check certain rows, but the user may uncheck them.) So, even if the user doesn't check them, I would like to programmatically check them before the FOR ii IN 1 .. Apex_Application.g_f01.COUNT looping occurs.
    3. If it is possible to prevent the unchecking of a row that is automatically checked it would be awesome and would mean that requirement 2 is moot. If that's possible let me know. That would be sweet. :-)
    I hope that makes sense, and that you understand what I need to do. If not, let me know.
    Thanks in advance for your help, Tony

    Hi Shunt,
    That's a great help ! ! ! Thanks much ! ! ! :-)
    I did some additional research from what you told me, and I found out that the apex_item.checkbox is a page item and it is included in the SQL that builds a report. Your code got me on the right track. That's great. Also, it's great to know I can do what I need. My next question is 'How do I get there from here?' :-)
    I built my current report using the report builder, then used the trick to change it to a type of 'SQL Quey (updatable report)' just so I could click the setting to add the checkbox column, then I set the type back to 'SQL Query'. So, I don't have apex_item.checkbox in my SQL. I guess Apex (thru its magic) prepends it to the SQL somewhere along the way. What do I need to do now?
    Do I need to rebuild the report without using the above 'trick' and code the checkbox into my SQL myself? Or, can I just add it to the existing SQL? Or, with that cause 2 checkboxs to be on the report (mine and the one Apex generates)? That's one set of questions. :-)
    Also, whether the checkbox is checked (and disabled) is based on a value in the table the SQL is running over. Would it be possible to put a subselect, or something along those lines, in the main SQL (that has the checkbox item) that would programmatically check the checkbox?
    Sorry for my newbie questions, but I'm relatively new to Apex and PL/SQL, so there's still a lot I have to learn. All you need to do is point me in the general direction and I'll take it from there. I just want to know the right way to go about this before I start coding. :-)
    To give you and idea of what I'm doing now and want to do I have my simple SQL below:
    = = =
    select
    ecn_approval_master_id, mandatory, approval_type,
    htmldb_item.hidden(50,ecn_approval_master_id) idalias
    from
    ecn_approval_master
    where ecn_plant_master_id = :P0_PLANT
    order by mandatory DESC, approval_type
    = = =
    The 'mandatory' column contains 'Y' or 'N'. If it is 'Y' I want the checkbox to be checked and disabled. If it would help in the coding I could have the values of the mandatory column 'Y' and NULL. But, I'm not sure if it will help, because it looks like the checked rows are listed in parm 4. Then, when the htmldb_application.g.f10.count.... routine processes the selected they mandatory ones will automatically be processed. Course, you probably figured that out already.
    Thanks, Tony

  • 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

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

  • 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

  • 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

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

  • 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

Maybe you are looking for

  • Quality level

    Hi, We are migrating QM related master data from 4.6C to ECC6. We have loaded inspection plan. Please let me know the importatnt fields that we have to check in inspection plan. When we try to load quality level, it gives an error stating inspection

  • Why does object frame style change when I re-size the object?

    I am creating a catalog with lots of images that I anchor amidst text.  I have created a simple style that just adds a 1pt black stroke frame, and apply to each. When I later decide to re-size one of the images (primarily by dragging with mouse with

  • Problem with Top Sites in Safari 8.0.4

    Hello: I just bought a macbook pro, updated all software patches that needed to be done and tried to add my personal top sites in safari. I like to browse visually with them. The problem is that I have a 12 icon grid. I have successfully done most of

  • HELP, Black with white Apple

    Hi there, I just bought my 30gb video ipod yesterday (have an old 3rd generation 20gb one ... needed a new one)and plugged it into the pc today. I dowloaded this ephed2 (sorry for the spelling, can´t remember it) programme an dowloaded the songs from

  • Acrobat 3D Tryout refuses to open

    Wondering if anyone out there has had/is having problems using the Tryout version. I am running a dual boot XP and Xpx64 system, loading the trial in the XP side. I have unloaded all Adobe software to avoid versioning problems between Adobe products