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

Similar Messages

  • 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

  • Tabular Form - Read only condition for certain users

    Is it possible to make a select list field in a tabular form read-only to certain users? Here's the situation:
    The tabular form lists the users who need to select "Approve" or "Reject" in that field (they are approving or rejecting an engineering change)
    I want all of them to see the approval/rejection of their team, but only have access to edit the select list associated with their record.
    Thanks in advance.
    Apex 4.0.0.00.46

    You could use either "authorisations" tab or "conditional display" for the relevant column attribute.
    Report Attributes->Column Attributes->authorisationsIt would be better to have some more detail about what you are trying to get (maybe a quick mock up of the form, for example) but, I can envision something along the lines of the following:
    For each approval/rejection field:
    1. Create an authorisation appropriate for access to to each approval/rejection field e.g. authorisation scheme "FOO"
    2. In the relevant fields column attributes, set the authorisation to "FOO"
    3. now create a read only "public" copy of the above field, using the "display as text (based on LOV does not save state)" - set the authorisation for this field as "{NOT FOO}"
    (if you don't want to use authorisations, you could build an equivalent using "conditional display" instead, which is basically the same thing, except column specific)
    The downside is of course that you're duplicating fields in your query, which creates a bit of redundancy. There may be better ways to achieve this (maybe you could make use of the APEX_ITEM api, for example) but this is fairly easy to set up IMO.

  • Hide row values for certain column in GRR2

    Hi Experts,
    Looking for some help in report painter. I need to hide row values for certain columns in report painter. The requirement is I have 5 columns in the report, the 5 th column is the sum of col 1 to 4 and in my row i have a formula setup to sum of values for each column, what i would like to do is for column 1 thru 4 i didnt want to display the total values in row total but i wanted to dispaly value for column 5 in row total. I have been trying my best with putting formula, but couldnt succeed.
    Could somebody let me know is there an way to get this addressed.
    Thanks in advance
    Best Regards,
    gj

    How was it achieved ? Did you use sections for the columns for which rows needed to be hidden?
    I have a smiliar issue of hiding certain rows for few columns.

  • How to hide edit link for  some rows in report? (according to value of col)

    Helo,
    How to hide edit link for some rows in report? (according to value of column)
    regards
    siyavuş

    Hi siyavuş
    You can do this by taking the edit link off the report and putting it into your report SQL.
    Use something like Select CASE WHEN (condition)  THEN
    'Put your edit link in here as an html Anchor like<a href="(target)">Edit</a>'
    ELSE
    tt.value
    END edit_link
    FROM test_table tthope it helps,
    Gus..
    You can reward this reply (and those of other helpers) by marking it as either Helpful or Correct.
    This allows forum users to quickly find the correct answer.
    ;-)

  • Enable hide/show only for selected rows for table in table

    I have an advanced table with a detail table connected by a view link. This adds a "Details" column of Hide/Show links on the left of the table to expand the inner-table for each row of the outer-table. The goal is to have the hide/show in the outer table, only when there is data for the outer row in the detail region.
    Normally, hide/show appears for all rows in the outer table.
    Thanks!

    In the processRequest method of the controller execute the query of the Outer table region and check is there any row or not.
    If yes then do nothing else hide the bean i.e. hide/show bean. You need to do PPR for this.
    Thanks
    --Anil                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Disable row selection for certain column in JTable

    I have a JTable with several columns, one of which contains an "Info" button. I already have it worked out that when I click on the "Info" button, that event gets passed from the JTable to the button. I have multi-select enabled for the JTable, but I don't want clicking on the "Info" button to change the current selection. I have a klugy "fix" working where I save off the current selection, and then restore it after the user presses the "Info" button. However, this results in "flashing" - the row containing the selected "Info" button becomes selected briefly, then the original selection is restored. How can I avoid this? I would like to just ignore selection events on the "Info" column, but still pass the mouse click event through to the button.
    Any suggestions?

    try this
            JTable table = new JTable() {
                public void changeSelection(int rowIndex, int columnIndex, boolean toggle, boolean extend) {
                    if (!getColumnModel().getColumn(columnIndex).getIdentifier().equals("Info")) {
                        super.changeSelection(rowIndex, columnIndex, toggle, extend);
                    }//else

  • How to create a growing table  with hierarchical increasing of rows Eg. For each row there must be a subRow i can add like for 1 i can add 1.1

    i  can increase the row but how to make it hirarchical  so tha i can add rows under rows?

    You have the right link to get started on adding authentication to your Mobile service app. But for security reasons the MobileServiceUser class only exposes the authenticated UserId and MobileServiceAuthenticationToken properties. You can save these
    two values in your client application.
    Getting the user name and email address isn't available through this medium. You would have to call into the respective APIs for the service (Facebook or Twitter APIs).
    Abdulwahab Suleiman

  • Custom Adobe forms do not display for Certain users

    Custom forms were created and the majority of users can
    display them. Some users are not able to display forms
    unless you give them a new user ID. Role for all forms are
    attached to position, if the role is attached to the temporary user ID it works.  I am looking solutions or possible causes.
    Using ECC 6.0.

    Lolanda,
    Do you know if your users that cannot use the forms have access to the ADSCerts view in the Key Storage service?  Check out slide 26 in the below link:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b08aaa7b-b2f3-2a10-5591-f472a273b90a
    -Matt

  • Possible to hide Grouping name for certain tracks only?

    I am organising my classical music library and using the Grouping column with good success.
    However, it would be visually better to be able to hide the Grouping name for the subsequent movements of a piece. For example in a Dvorak album:
    ..Grouping*.............................*Name
    1.Cello Concerto in B minor.1.Allegro
    2...........................................2.Adagio
    3...........................................3.Allegro moderato - Finale
    4.New World Symphony........1.Adagio
    5...........................................2.Largo
    6...........................................3.Scherzo
    7...........................................4.Allegro con fuoco

    I have never used the shuffle by groupings feature, but I would think it would be affected.
    You need to experiment and decide how important shuffle by grouping is compared to the appearance in the iTunes Library.
    iTunes is not good at dealing with classical music and you will find a lot of discussion of the problem with Google.
    Here is an example:
    http://www.till.com/blog/archives/2008/09/classical_itune.html

  • Tabular: set measure to blank() for certain dimensions

    Hi, I know there is no scope() equivalent in dax but i'm hoping there's some other combination of functions that will give me the same result
    I have a stock movement fact table and I have two running totals on it. One is is a 'stock to date' value while the other is a 'season to date' that resets to 0 at the start of each season (ie a custom YTD running total)
    The season to date value is created using a second date dim because the season start and end dates aren't static and change year to year.
    Here is the DAX for the season to date measure
    Season to Date:=[Sum Quantity](ALL(dimDate),
    FILTER(
    ALL(dimTransactionSeason),
    dimTransactionSeason[DayOfSeasonID]<=MAX(dimTransactionSeason[DayOfSeasonID])
    VALUES(dimTransactionSeason[TransactionSeasonID])
    I've set the date dim to be ignored, but that just means that the current season to date value is repeated. I'd rather the result be blank.
    Is there a dax function or combination of functions that will allow me to check whether the measure is being sliced by dimDate and replace it with BLANK()?
    I though i could use some kind of logic like countrows(dimdate)<>countrows(all(dimdate)) but i'm too new to DAX to figure this out by myself..
    Am I on the right track or is this not possible with tabular at the moment?
    thanks
    Jakub @ Adelaide, Australia

    Hi Jakub,
    In your scenario, you add a season to date measure to calculate the running total for each season, and now what you want to is that reset the measure to blank at the beginning of each season, right? Generally, the season start and end dates are static, so
    the running total aggregate automatically resets itself at the beginning of each season. In your scenario, what do you mean the season start and end dates aren't static and change year to year? Please refer to the link below which might helpful for you.
    Running Total Techniques in DAX
    Hope this helps.
    Regards,
    Charlie Liao
    TechNet Community Support

  • How to set  row height  for  each row

    Hi
    i am trying to set rowheight of row in a JTable using setRowHeight(row,rowheight)
    it is not affecting on Table.but if i use setRowheight(rowheight) it applying
    entire table ,please help me to solve this problem
    after setRowHeight(row,rowheight), i am calling firechanged() method also ,i t will not affecting please hemp me
    how to set row height at runtime in a JTable

    Ok fine... do one thing... post ur code here let me check and tell u....
    Ciya.....

  • Form can not work for certain user.

    We have one customized request search form. We meet ‘'ORA-01403: no data found’ for ONLY one users. It works fine for all other users. I checked the user responsibilities. All users have the same responsibilities. And other function and form works fine for this user. So only this form failed for this user. Any comments?

    The important thing to work out is what query is giving the ORA-1403? Without knowing that, it could be caused by anything. My guess would be that there is some data condition that is false for the user that is failing but true for all other users. However, without knowing the query giving the error, you don't know which data to look at.

  • Hide login page for certain site

    Hello, I have a jsf project which I have implemented with NetBeans. What I want to do is add a login page before my first page is viewed that would have a specific username and password. But the tricky part is that I want the project to be inserted as a link or an iframe into another website, but since this website already has a login page, I want all the users that have logined into this website to be able to view my project directly, without showing the login page. Is that possible and how?

    Maybe this can be a solution: in the action associated to the <h:commandLink> in the page of the first website redirecting to your project you can access your backing bean of scope session which contains the authentication data of your user and create the logic with two different navigation rules. Example:
    public String goToTheProject(){
    //retrieve the bean with scope session
    if(myUser.isAuthenticated()){
      return "first_page";
    else{
      return "login";
    }

  • 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

Maybe you are looking for

  • Help with error in code

    Hello I'm a fairly new to Dreamweaver. I am having trouble with my page. I keep getting the following error: unterminated string constant I don't have anything fancy in my code, not sure why this is happening. Any advice is greatly appreciated. Thank

  • Found a bug? Adding alot of resources to a task creates a local resource on the server.

    Hi Guys, I'm working with a client on building a Project Server 2013 environment and I came cross something that struck me as odd. I hope some of you will be able to reproduce the issue and maybe point me into the direction of a hotfix or a report th

  • Line width in J2ME

    Hi all, How can I draw a line/polyline with a given width. I am looking for something similar to Stroke with with in Swing. If I am not wrong there is no direct API to achieve this. Can anyone help me do it in some way. Thanks in advance D M

  • Multiple zones

    I have a mac mini with all my media connected through my amp and then to my tv. I want to run a second zone, but the problem is the wireless speaker I have only uses rca plugs and the amp won't support digital (from the mini) to rca (out to the wirel

  • I deleted adobe and now files won't open with preview automatically like they use to. How do I fix this?

    I deleted adobe and now files won't open with preview automatically like they use to. How do I fix this?