Set DISPLAY ONLY based on privilege

Hello. I'm using Apex 4.0. I'm trying to enable the Read Only function based on a Privilege assigned to a User. For instance, I have several users where their privilege is set to 'View' in the Access Control List. How do I code for this. On the "Read Only Condition Type" I've selected "Request = Expression 1". I've tried several Expressions like: Role = 'View'
Thanks for your help.

Hi Jari,
Thanks for the response. It pointed me in the right direction. Since I created the Access Control based on the APEX template, the field names were a little bit different. Here's what worked for me:
Select 1
From APEX_ACCESS_CONTROL
Where upper(ADMIN_USERNAME) = :APP_USER
and ADMIN_PRIVILEGES = 'VIEW'
Thanks again for your help.
Edited by: PhilMan2 on Oct 17, 2010 4:11 PM

Similar Messages

  • How to set Display Only for some records in CAT2 Worklist

    Hi,
    I have a requirement to modify an attributes for some records in the Worklist of CAT2.
    We have an external system where we book our time. Weekly we import data from that external system into CATSDB using BAPI for every single employee.
    We would like when the user wants to modify his time sheet to be able to add/modify all records except those which were imported from the external system. Which means that those records should be in Display only mode / grayed out / before release.
    Is there any user exit or BADI that could help to modify that attribute and that will be triggered before displaying the Worklist ?
    Please advise !
    Thanks,
    Stefan

    I've solved the problem.
    First I've added customer field in CI_CATSDB structure and when I am importing the data I am populating that field with 'X', which means that this is record from the external application.
    I've created enhancement implementation in Function group->CATS, screen->2003 MODULE->D2000_MODIFY_LOOP, subroutine->modify_d2000_loop where I am checking the field mentioned above if it is 'X' I am modifying the screnn-output = off.
    It works, thak you for your help.
    Regards,
    Stefan

  • Need to make Batch Number (CHARG) display only on MSC1N

    Hi, we have a requirement to make batch number field (DFBATCH-CHARG) display only based on user authorization. I have tried implemented BADI BATCH_MASTER and tried to change the screen field property in method SINGLE_FIELD_CONTROL but batch number (CHARG) is not part of the loop for this method.
    Does anybody know BADI or Screen exit for MSC1N that can make the batch number display only?
    Thanks,

    Hi
    Although it's for older releases, see Note 562690 - BAdI BATCH_MASTER: Field selection control, perhaps it helps you
    Regards
    Eduardo
    PD: Other thing, see that it refers to T148F and T148G. Try to add the field CHARG in customizing menu. Ask your MM consultant about implications.
    Edited by: E_Hinojosa on Jul 13, 2011 9:48 AM

  • Battery , time , signal strength bar is not getting displayed in home screen , these will be displayed only when i click on any app. Can u let me know the setting change ?

    Battery , time , signal strength bar is not getting displayed in home screen , these will be displayed only when i click on any app. Can u let me know the setting change ?

    Did you check the Zoom setting?
    Have you tried a reset (reboot)? Hold HOME and SLEEP until an Apple logo appears.
    If it isn't Zoom and a reboot doesn't help try Settings/General/Reset - Reset all settings

  • Setting values to Display Only item during AJAX request

    Hello,
    Good Morning!
    In a master-detail form, in the detail report, I am populating two columns SERVICE_TAX_PCT and SERVICE_TAX_AMOUNT by making an AJAX request after selection of ACCOUNT_CODE.  Values are populated with out any issue. 
    However, as soon as I make those two fields as Display Only, the values are not getting set.  Is there a way to set the values to a field in the same time it should be restricted for user to change it?
    (APEX 4.2.6)
    Thanks,
    -Anand

    Hi Anand,
    anand_gp wrote:
    Hello,
    Good Morning!
    In a master-detail form, in the detail report, I am populating two columns SERVICE_TAX_PCT and SERVICE_TAX_AMOUNT by making an AJAX request after selection of ACCOUNT_CODE.  Values are populated with out any issue.
    However, as soon as I make those two fields as Display Only, the values are not getting set.  Is there a way to set the values to a field in the same time it should be restricted for user to change it?
    (APEX 4.2.6)
    check the example
    Step 1: Edit your page
    under CSS->Inline put the code given below
    .row_item_disabled {
       cursor: default;
       opacity: 0.5;
       filter: alpha(opacity=50);
       pointer-events: none;
    Step 2 : I guess you have Javascript function similar like given below
    you have to extract rowid first, for which you want to set the percentage , see line 6
    and see line 18, for disabling the column of that row.
    <script type="text/javascript">
       function f_fetch_tax_percentage(pThis) {
       var ajaxRequest;
       var ajaxResult;
       var row_id = pThis.id.substr(4);
       var percentage    = 'f05_' + row_id;   // replace f05 with the rowid of percentage column
       ajaxRequest = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=TAX_DTLS',0);
       ajaxRequest.addParam('x01',$v(pThis));
       ajaxResult = ajaxRequest.get();
       if ( ajaxResult.length > 0 ) {
       // set percentage
       $('#'+percentage).val(parseFloat(ajaxResult));
       // disable percentage column
       $("#f05_" + row_id).attr("readonly", true).addClass('row_item_disabled');        
    </script>
    Hope this helps you,
    Regards,
    Jitendra

  • Set value of a display only item using javascript

    I was trying to find an answer in the forum but my searches gave me no results. How do
    I set a value of a display only item using javascript (ajax)?
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

    Vikas,
    Thanks for a fast responding. The type is Saves State. However, I tried to set the value
    of a display only item using:
    <script>
      function f_setDisplayOnly ()
        {$x('P80_X').parentNode.childNodes[4].nodeValue = 1;
    </script>without a result (or error). What am I doing wrong?
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Problem with a Display Only field based on a dynamic LOV

    I have a field/item which is based on a dynamic LOV:
    select DESCRIPTION display_value, STATUSID return_value
    from CTCXFRREQS_STATUS_LOV
    order by 1
    ...and I need it to be display-only on the page. However, if I make it a display-only field, the return value is displayed, not the display value. If I change it to be a select list field, the display value is shown, as I expect and need.
    The field was based on a static LOV before, and it worked perfectly then.
    Has anyone seen this before, and have any suggestions on how to work around it?

    Hi,
    In edit item
    Display As: Display Only
    Save Session State: Yes
    Based On: Display Value of List of Values
    Named LOV: YOUR_LOV
    Regards,
    Kartik Patel
    http://patelkartik.blogspot.com/
    http://apex.oracle.com/pls/apex/f?p=9904351712:1

  • Set List ONLY .??? IN Display/Performance  Window...

    Im using Sets as SONGS, as Ive 20 patch changes per song.... the Sets/Songs make up the concert...
    I would like to ONLY display the Sets in a list when in performance mode....
    at the moment I can only display BOTH .Sets and Patches....
    Can I only display the Sets in a selectable list.?????????
    thanks...
    ROB..
    P>S>
    Another problem Im having is when I copy/paste or duplicate a patch to use the copy as a template ( say it has 3 channel strips ) and I want to add another channel strip to the copy....
    IT Adds it to the original as well???????
    Its a pain having to start from scratch again building the patch >?????

    Rob,
    Wow - you must have some interesting songs and parts to play!
    So the patch selector first. Go to the layout view and hightlight the box in the patch selector "SetName...Patch Name...PatchName". You have a few options you can play with there, but I think that Apple is thinking that you would want to display your patches always, so it looks like you're stuck with those if you want to use the selector.
    However, you probably have your pedals or buttons mapped to change patches, yes? So you can keep those two buttons mapped and then create a new way to display your set. Sound good?
    Drag a 'Parameter Text' out from the screen controls palette while in Layout view. Then switch to Edit view. Highlight that Parameter Text and down below in the Screen Control Inspector, click the 'Current Set' tab. Highlight the actions folder - now you can pick 'Current Set' to display only your current set in a nice little compact box.
    Hope that works for you!
    Your second problem - that's an easier fix. When you copy/paste by normal means, you are actually creating an alias. You've found out what that means - it also means your computer doesn't have to work as hard and load another set of samples, so it's a good thing when you need it. Look under the Edit menu and try Duplicate (command-D) to get the behavior you are looking for.
    Best Wishes
    Sam
    Message was edited by: sam squarewave

  • Awesomebar suggests bookmarks despite being set to display only history

    Running Firefox 3.6.8 on Windows 7
    I currently have Firefox set to only display History in the location bar - however it continues to show bookmarked pages (which I have not visited). I have attempted clearing all history/cache/etc and closed Firefox (making sure that the process was killed) - yet the bookmarked pages are still suggested in the location bar.
    I have checked in about:config
    browser.urlbar.default.behavior is set to 1 (which is the appropriate setting for only showing history).
    Please help~

    This can be a problem with the file places.sqlite that stores the bookmarks and the history.
    * http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox

  • Setting certain fiels to display only in Life and work events

    Hello gurus,
        we are implementing life and work events and are requesting you to give some suggestions, if possible. We have a globl version of the life and work events and in the similar lines, there are life and work events for other countries like singapore, India, Now, the requirement is that certain fields in these countries should be disabled for input. For example, I do not want the date of birth to be editable. Where and how do I go about making changes like these on the life and work events for certain fields to become "display only"?
    Could anybody please suggest?
    thank you,
    Maria Kutty

    Maria I tried what you asked for...but It came as a surprise to me that UI personalization for applications under "L&W Events" with "Ctrl+Right Click" Technique is not possible !!
    Thus according to my understanding... In order to make few fields readonly under "L&W Events" you have to go for NWDI level changes....
    Now as per your specific question "That you want same application to appear differently based on whether it is accessed from L&W Events OR it is accessed from ESS Overview section"... you can follow any of below approach :
    Approach 1:
    1. Modify your application (make fields read only) in NWDI...as per your L&W Events requirement.
    2. Now you can use this modified application as base...to make further changes with "Ctrl+Right click" technique...as then they will be applicable when user access this application from ESS Overview section...
    Approach 2:
    Create 2 separate applications useing NWDI....one for L&W Events...and another one for ESS Overview section....
    For application to be used in L&W Events you make changes using NWDI...
    And for application to be used in ESS Overview section...you can make changes using "Ctrl+Right Click" approach....
    Maria, i have not tried on what I am suggesting you....So please try it at your end and let us know.....if this works.....
    I would be glad if some Expert can comment on this approach further........
    Moreover a very strange part which I found is.....changes made to an application using "Ctrl+Right Click" approach are not visible/applicable when application is accessed from "L&W Events"....
    Which means if you have to make any UI changes under "L&W Events" applications you have to go for NWDI level changes.......

  • How to set one layout to display only?

    Hello, Expers,
    I want to display only one layout. The scenario is: when the user input some data in a layout and click on one 'input finish' function button which means that the user has finished input data in that layout, then the system will set that layout to display only. I don't want to use the variable with comparion column because that will also cause all the layout to display only. What I want to do is just set only one layout to display only. Anyone know how to do?

    Dear guqing,
    please take a look at
    http://help.sap.com/saphelp_nw70/helpdata/en/45/9d0fbe42c40063e10000000a11466f/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/43/174720c5dd3db4e10000000a422035/frameset.htm
    You can use the command SET_INPUT_MODE or SET_DATA_ENTRY_MODE
    Regards
    Matthias Nutt
    SAP Consulting Switzerland

  • I have restored my iphone 3gs after having only the apple logo, it took me through all the restore, a page saying 'congrats your phone is now unlocked', and allowed me to chose to set up from new or back up....yet still displays only the apple logo.

    I have restored my iphone 3gs after having only the apple logo, it took me through all the restore, a page saying 'congrats your phone is now unlocked', and allowed me to chose to set up from new or back up....yet still displays only the apple logo.

    Restore as New...
    Redownload your Purchased and Free Apps using the Apple ID you Originally used...
    iPhone User Guide
    http://manuals.info.apple.com/en_US/iphone_user_guide.pdf

  • Can Contacts be set to display only enterprise (work) email contacts upon first opening?

    I have installed my personal Yahoo Mail on my 9810 Torch; as a result, the Contacts list now includes a mix of work and personal when first pulled up.  I can then change it to display only one of my contacts lists (work or personal), but that requires several thumb fiddles every time.  Is there a way to have the Contacts display default to only my work contacts displayed upon opening?

    Hello forrest103 and welcome to the BlackBerry® Support Community Forums.
    Thanks for your question regarding the contacts on your BlackBerry® Torch™ 9810 smartphone.
    By design, the BlackBerry will display all contacts when you launch the Address Book.
    You would need to use the Filter option to view your personal separately from your work contacts.
    Hope this answers your question.
    -HMthePirate
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • Display only positive values for a particular Keyfigure

    Hi..
    (Sorry, I accidentally posted this also in Datawarehousing forum, actually it related to BeX forum).
    For a particular column(keyfigure) in my report, the user wants to display only positive values.
    I used the formula from the one of the forums
    (Keyfig > 0)* Keyfig.
    This displays only positive values in the column as required. But, the result for this column is also affected. As the result is negative, it shows, zero in the result for this column.
    Is there a way in which the result will not be affected by the formula?
    I went into the properties of the particular keyfigure and chose Calculate Result as -> Summation.
    It throws out the following error message
    'Calculating result as...' was not executed
    Message no. BRAIN141
    Diagnosis
    The function 'Calculate Results as ...' could not be used in all
    instances.
    The recalculation of a result cell always occurs based on the set of
    detailed cells subordinated to this cell. This is the most detailed
    level of the drilldown. Therefore it is not posible to recalculate in
    hierarchical lists. The calculation of a results cell is not performed
    if a cell or column with an expand symbol is assigned beneath it.
    Otherwise the newly calculated result is changed every time one of its
    lower-level nodes is expanded. This is not supported for technical
    reasons and would also only confuse users.
    Note, however, that calculating with "Suppress Results" is always
    executed because the restriction described above does not apply in this
    case.
    NOTE:
    The query shows the keyfigure values for a selected title, for profit center and territory hierarchies.
    Any suggestions would be greatly appreciated.
    Thanks,
    Sai.

    Hi Deepu,
    Thanks for the reply. I tried with ur formula.
    LEAF(keyfig) gives all values "zero" for that particular column including the result.
    NOT LEAF(keyfig) gives all values "one" for that particular column including the result.
    So, ur formula gives the same values as of the present column values.
    I tried condition, but it's not working...it says the following errors...
    There is a condit. on Title, results row suppress. active on Profit Center    
    (conditional                                                                               
    Message no. BRAIN144                                                                               
    Diagnosis                                                                               
    Characteristic Title has an output condition and the 'Suppress Results    
        Cells' property is active for Profit Center. This generally leads to an   
        incomprehensible output list.                                                                               
    System response                                                                               
    As soon as an output condition is defined for a characteristic (here      
        Title), the system calculates the corresponding result cells and applies  
        the output condition. If a result cell of this type is later deleted by   
        the condition, all the lower-level detail and result cells in its         
        drilldown are suppressed. Because the result cell is suppressed the       
        Title rows are then omitted from Profit Center.                                                                               
    In extreme cases this can lead to an entirely empty list being            
         displayed, although the single rows or columns would be displayed if the  
         condition were deactivated.                                                                               
    Procedure                                                                               
    Check the query settings, especially results row suppression and the      
         output conditions.                                                                               
    Procedure for System Administration                                                                               
    You can deactivate this message Brain 144 with transaction RSRT1.                                                                               
    There is a condit. on Profit Center, results row suppress. active on        
    Territory as in SPL (conditional                                                                               
    Message no. BRAIN144                                                                               
    Diagnosis                                                                               
    Characteristic Profit Center has an output condition and the 'Suppress  
        Results Cells' property is active for Territory as in SPL. This         
        generally leads to an incomprehensible output list.                                                                               
    System response                                                                               
    As soon as an output condition is defined for a characteristic (here    
        Profit Center), the system calculates the corresponding result cells and
        applies the output condition. If a result cell of this type is later    
        deleted by the condition, all the lower-level detail and result cells in
        its drilldown are suppressed. Because the result cell is suppressed the 
        Profit Center rows are then omitted from Territory as in SPL.                                                                               
    In extreme cases this can lead to an entirely empty list being            
         displayed, although the single rows or columns would be displayed if the  
         condition were deactivated.                                                                               
    Procedure                                                                               
    Check the query settings, especially results row suppression and the      
         output conditions.                                                                               
    Procedure for System Administration                                                                               
    You can deactivate this message Brain 144 with transaction RSRT1.
    Thank you very much.
    Regards,
    Sai.

  • Displaying themes based on Zoom levels in base map

    I am using Oracle AS MapViewer 10131.I have 3 themes added to a base map.
    I am using Oracle Mapbuilder to create Mapping metadata.I want to display the 3rd theme based on the zoom levels.I want to display it only at lower zoom levels.I have followed necessary instructions given in the Mapviwer user guide and mapbuilder help.
    But I am not able to display particular theme based on Zoom levels.
    For example I have min/max scale 70,000/0 for Streets theme set using mapbuilder.This theme should be displayed only at that scale.But I am getting this theme displayed at all min/max scales (zoom levels).While creating the Map Cache Instance given the min/max scales 1000/25000000, the default values.Here the scale values look contradictory to the theme scale values given in mapbuilder.Is this where I am going wrong? or while setting scale for themes?
    I hope you understand my problem.Please help me about this.this is urgent.
    Thanks in advance!!

    My problem is solved now.I am able to display themes on zoom levels.The solution is, I set the min/max scale (zoom levels) in Map Cache Instance as "Ratio" and in theme i set it to "Screen-Inch".The scale of theme is not understood by the map cache instance.So finally i set both the scales to "Ratio" and it is working fine as i expected.
    Anyway thanks for yout interest in helping me.I will surely make a post here if i got stuck in further work.

Maybe you are looking for

  • Is there a more functional Bookmark archive?

    Safari 4.1.3 Hi, I collect a lot of bookmarks and bookmark collections. My bookmarks are like my own personal encyclopedia. At the same time I've found that Safari works better and faster if I don't build up too many bookmarks (or history, cache or c

  • Mac Mini mini-display to DVI issues

    I have a late 2012 Mac Mini running OSX Mavericks, and I am currently using an LG Monitor over HDMI. I want to run a second Monoprice tablet monitor from the mini-display using a DVI cable and an Apple mini-display to DVI adapter. Every time I plug i

  • MSI GE60: Downgrade from Windows 8 to Windows 7

    Hi, this is unrelated to the previous topic so I'm creating a new one. I want to install Windows 7 since 8 is causing me so many problems. I'm having trouble doing so. Let me explain. I have an old Windows 7 DVD that I got "somewhere" which came with

  • Blocking of Good Issue with respect to posting date

    Hi Expert,                Is there any way out in SAP B1 to block the Good Release with respect to posting date.i.e. If User receipt the Good in stock today then system should not allow the user to issue the same good on the back date. regards, Panka

  • Send DTMF digits with CVP App

    Dears, I would like to know if is possible send data as DTMF Digits through an CVP application. We have an UCCE infraestructure installed on our customer, but they have a new project that will need transfer the call and data for an Avaya System. Is I