On the web how can I check the user role to display the form suitable for this role i

Hello
How can I check on the web the use role to display the a form for each role
Example
If the admin login I display admin_form.fmb and if user login I display
user_form.fmb
Thankx
Tamer

In my forms I hide tab pages according the role using something like the following script in the WHEN_NEW_FORM_INSTANCE trigger.
So the user can not navigate to tabs which are vorbiden by his role.
CURSOR users_roles_cur IS SELECT granted_role FROM user_role_privs
WHERE username=(SELECT user FROM dual);
user_roles_rec users_roles_cur%ROWTYPE;
IF users_roles_cur%ISOPEN
THEN
CLOSE users_roles_cur;
END IF;
OPEN users_roles_cur;
LOOP
FETCH users_roles_cur INTO user_roles_rec;
EXIT WHEN users_roles_cur%NOTFOUND;
MESSAGE (user_roles_rec.granted_role);
PAUSE;
IF RTRIM(user_roles_rec.granted_role,' ') = 'BLA-BLA'
THEN
tb_pg_id := FIND_TAB_PAGE('activity');
IF GET_TAB_PAGE_PROPERTY(tb_pg_id, visible) = 'FALSE' THEN
SET_TAB_PAGE_PROPERTY(tb_pg_id, visible, property_true);
END IF;
END IF;
END LOOP;
CLOSE users_roles_cur;
Other solution may be is to use an initial form which only will detect the user role and run the appropriate form.
Other solutions are also possible.
Joseph

Similar Messages

  • I have an iMac running OS 10.4.11. How can I check to see if I have the Flashback Trojan (and remove it, if I have it)? IMy Safari is also crashing frequently. Any suggestions?

    I have an iMac running OS 10.4.11. How can I check to see if I have the Flashback Trojan (and remove it, if I have it)? IMy Safari is also crashing frequently. Any suggestions?

    Hi Barry, is this an Intel iMac, or a PPC iMac?
    Disable Java in your Browser settings, not JavaScript.
    http://support.apple.com/kb/HT5241?viewlocale=en_US
    http://support.google.com/chrome/bin/answer.py?hl=en-GB&answer=142064
    http://support.mozilla.org/en-US/kb/How%20to%20turn%20off%20Java%20applets
    Flashback - Detect and remove the uprising Mac OS X Trojan...
    http://www.mac-and-i.net/2012/04/flashback-detect-and-remove-uprising.html
    In order to avoid detection, the installer will first look for the presence of some antivirus tools and other utilities that might be present on a power user's system, which according to F-Secure include the following:
    /Library/Little Snitch
    /Developer/Applications/Xcode.app/Contents/MacOS/Xcode
    /Applications/VirusBarrier X6.app
    /Applications/iAntiVirus/iAntiVirus.app
    /Applications/avast!.app
    /Applications/ClamXav.app
    /Applications/HTTPScoop.app
    /Applications/Packet Peeper.app
    If these tools are found, then the malware deletes itself in an attempt to prevent detection by those who have the means and capability to do so. Many malware programs use this behavior, as was seen in others such as the Tsunami malware bot.
    http://reviews.cnet.com/8301-13727_7-57410096-263/how-to-remove-the-flashback-ma lware-from-os-x/
    http://x704.net/bbs/viewtopic.php?f=8&t=5844&p=70660#p70660
    The most current flashback removal instructions are F-Secure's Trojan-Downloader:OSX/Flashback.K.
    https://www.securelist.com/en/blog/208193454/Flashfake_Removal_Tool_and_online_c hecking_site
    More bad news...
    https://www.securelist.com/en/blog/208193467/SabPub_Mac_OS_X_Backdoor_Java_Explo its_Targeted_Attacks_and_Possible_APT_link
    Removal for 10.5...
    http://support.apple.com/kb/DL1534

  • HT4061 my phone is unable to power on and i dont have the packaging how can i check what is the serial number of the phone

    my phone is unable to power on and i dont have the packaging how can i check what is the serial number of the phone

    Apple (and no one else) can not assist (with serial number or iCloud) in finding a lost or stolen iPad.
    Report to police along with serial number. Change all your passwords.
    These links may be helpful.
    How to Track and Report Stolen iPad
    http://www.ipadastic.com/tutorials/how-to-track-and-report-stolen-ipad
    Reporting a lost or stolen Apple product
    http://support.apple.com/kb/ht2526
    What to do if your iOS device is lost or stolen
    http://support.apple.com/kb/HT5668
    iCloud: Locate your device on a map
    http://support.apple.com/kb/PH2698
    iCloud: Lost Mode - Lock and Trace
    http://support.apple.com/kb/PH2700
    iCloud: Remotely Erase your device
    http://support.apple.com/kb/PH2701
    Report Stolen iPad Tips and iPad Theft Prevention
    http://www.stolen-property.com/report-stolen-ipad.php
    How to recover a lost or stolen iPad
    http://ipadhelp.com/ipad-help/how-to-recover-a-lost-or-stolen-ipad/
    How to Find a Stolen iPad
    http://www.ehow.com/how_7586429_stolen-ipad.html
    What NOT to do if your iPhone or iPad is lost or stolen
    http://www.tomahaiku.com/what-not-to-do-if-your-iphone-or-ipad-lost-or-stolen/
    Apple Product Lost or Stolen
    http://sites.google.com/site/appleclubfhs/support/advice-and-articles/lost-or-st olen
    Oops! iForgot My New iPad On the Plane; Now What?
    http://online.wsj.com/article/SB10001424052702303459004577362194012634000.html
    If you don't know your lost/stolen iPad's serial number, use the instructions below. The S/N is also on the iPad's box.
    How to Find Your iPad Serial Number
    http://www.ipadastic.com/tutorials/how-to-find-your-ipad-serial-number
    iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number
    http://support.apple.com/kb/HT4061
     Cheers, Tom

  • It wants to verify my account and won't take the password, how can I create a new one or verify the existing one?

    I cloud wants to verify my account and won't take the password, how can I create a new one or verify the one it won't take?

    If you can't remember the password, reset it at...
    iForgot.com

  • When I try to print sth I can´t choose my printer. Adobe Reader only shows a printer I used years ago.I aleady deleted and reinstalled the Reader and deleted all other printers from the computer.How can I add a new printer to Adobe Reader?Thanks for help!

    When I try to print sth I can´t choose my printer. Adobe Reader only shows a printer I used years ago.I aleady deleted and reinstalled the Reader and deleted all other printers from the computer.How can I add a new printer to Adobe Reader?Thanks for help!

    Hi,
    I would suggest you to uninstall Adobe Reader using the cleaner tool and then re-install the latest version.
    Adobe Cleaner Tool:- Download Adobe Reader and Acrobat Cleaner Tool - Adobe Labs.
    Latest version of Adobe Reader:- http://get.adobe.com/reader/
    If you still experience the same issue, please share the following information:-
    - Screenshot of Adobe Reader showing printer options
    - Screenshot of Microsoft Word showing printer options
    - Screenshot of control panel- Control Panel\All Control Panel Items\Devices and Printers
    Regards,
    Nakul 

  • How can I check service user?

    Hi guys,
    how can I check service user's permission for a certain file.
    I got the following exception:
    ResourceExceptioncom.sapportals.wcm.repository.ResourceException: User management exception: Could not get service user "MUTZM"
    when I used
    resContext = resFactory.getServiceContext("MUTZM");
    DocResource = (IResource) resFactory.getResource(RID.getRID(ConfigDocu),resContext);
    I tried with "cmadmin_service" and "collaboration_service" as well, but I got the Null Pointer of  DocResource.
    What should I do?
    thanks in advance!
    Liying

    Sorry, its my fault, I gave the wrong value

  • How can I check my iphone to find out the version?

    How can i check my iphone to find out what version it is?

    Go to Settings > General > About.

  • I bought 26 new songs under my work e-mail and now i can't copy them to my i-pod because it has another music library on it. How can i combine both user id's to the same purchased account

    I have 2 user id's with apple, i bought 26 songs from my laptop recently using my work e-mail. I plug my i-pod to sync it and it says that my i-pod is tuned with another library. i don't want to erase the songs I have already because they are about 760 and the new ones are 26 only. how can I combine both user id's and consolidate all the music into one user id?
    everytime i try to do something it asks me to reset the password. I have done it already 6 times.
    there is no phone # to call.
    Thanks
    Elena

    Alright, please follow these steps in order to get it working properly again.
    Please change your Apple ID back to your old email address (that you used as Apple ID before) here: http://appleid.apple.com
    Then go to all your devices - iPhones, iPads, Mac etc. - ("Settings > iCloud") and delete your iCloud account from this devices (+ turn off Find My iPhone, but I guess it will ask you that anyway)
    After that go back to http://appleid.apple.com sign in again, and now change your Apple ID again to your new email address.
    Finally, set up your iCloud account on all your devices again.
    Now, everything should working properly again.

  • How can I check if there are meta tags and description tags for my pages on website?

    I want to check if the pages on my website have keywords or meta tags and description. How can I do that?

    In Contribute, Edit the Page and the click on Format, Keywords and Descriptions.

  • HT1926 My installation of Itunes to syne my iphone with PC was missing AppleApplicationSupport.msi  after 2 installs how can I install such a file do you have a path for this

    My installation of Itunes to syne my iphone with PC was missing AppleApplicationSupport.msi  after 2 installs how can I install such a file do you have a path for this

    Hi kensb!
    I would recommend that you attempt to reinstall all of the programs and components of iTunes on your machine and reinstall everything again. It can be tricky to get everything uninstalled, so we have an article that can help you make sure you uninstall everything:
    Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
    http://support.apple.com/kb/ht1925
    or
    Removing and reinstalling iTunes, QuickTime, and other software components for Windows Vista or Windows 7
    http://support.apple.com/kb/ht1923
    Specifically, when it comes to uninstalling, you will want to uninstall applications in this order:
    Use the Control Panel to uninstall iTunes and related software components in the following order. Then, restart your computer.
    iTunes
    QuickTime
    Apple Software Update
    Apple Mobile Device Support
    Bonjour
    Apple Application Support (iTunes 9 or later)
    Important: Uninstalling these components in a different order, or only uninstalling some of these components may have unintended effects.
    You will then want to follow the links in those articles to download the latest package of iTunes software for your computer and install again from there. Thanks for being a part of the Apple Support Communities!
    Regards,
    Braden

  • The whole configure over WAN thing is confusing me I don't want anyone to be able to access my airport extreme over the WAN.  How can I check to make sure that is the way I have it setup?

    I just bought a new airport extreme and I want to make sure that is NOT set up for "configure over WAN".  How do I check to make sure that is how I have it set up?  I only want access to the base via WPA2 password

    Open AirPort Utility, select the AirPort Extreme, and click Manual Setup
    Click the Base Station tab located just below the row of icons
    Remove any check mark that might be in the box next to Allow Setup over WAN
    Click Update to save your settings and the AirPort Extreme will restart in 25-30 seconds
    For what it is worth, if you leave the box checked, any computer that tries to access the settings on the Airport Extreme will be asked for the device password....not the wireless network password.

  • How can I remove u0091*u0092 s and display the amount

    My coding
    T1  TOTAL,,,,,,&REGUD-SWABZ&    &REGUD-SWNES&
    Doubt :
    REGUD-SWNES is the value coming from structure REGUD,
    But the value is coming as **********70.250,92
    But I need to display as 70.250,92
    How can I remove ‘*’ s and display the amount ?

    Not sure why it is coming like that.   Is the field length big enough? 
    I guess, you could try....
    translate REGUD-SWNES using '* '.
    condense REGUD-SWNES no-gaps.
    But again, I have no clue as to why you are seeing this.
    Regards,
    Rich Heilman

  • How can I set up Apple Mail to display the sender's "from icon" in the header info?

    Hi,
    I have gone into the preferences to set up custom headers, so that the icon sent to me from the email sender will display in the header, but do not see an option for this.  I want to do this for Comcast as a source specifically, as they embed an icon in their official emails and I have been receiving phishing  emails from sender pretending to be Comcast.  Comcast states on their website, that you can see their icon in any mail they send, however, this does not happen on my version of Apple Mail (4.5).
    Here is an image of the info shown on the Comcast website, in case that helps to clarify my question.
    Thanks,
    Kim

    On the Internet Accounts System prefs choose Add Other account…
    Pick Mail account.
    On the first page where you enter username and password, hold down the Option key and the Create button will change to Next. Click that with Option held down.
    You can then manually create the account.

  • How can i fix dvd ram driver, that says "a driver(service) for this device has been disabled code 32

    how can i fix  my pc problems, Idon't see dvd/cd name listed in "Devices and printer" window. And when I do hp dvd/cd rom check,
    an dilog box opens up; sayes "A driver(service) for this devices may be disabled. An alternate driver may be providing this functionality. (code 32). Please help. Thank you.

    Hi,
    First, try the automated fixit from Microsoft on the link below.
    Windows 7
    Vista
    Check if the drive is now working.
    If it still doesn't work, click the Start Menu, open All Programs, open Accessories, right click the Command Prompt and select 'Run as Administrator'.  In to the prompt type the following command and hit enter.
    sfc /scannow                 ( note that there is a space between sfc and the / )
    Let the process complete, then type exit and hit enter. 
    Next, click the Start Menu, open the Control Panel and click on Device Manager.  Next click to open DVD/CD-ROM Drives.  Right click the drive and select uninstall.  Do not delete drivers if asked.  When the device has uninstalled click on the 'Scan for Hardware Changes' icon ( usually just below Help on the toolbar ).  Let windows reinstall the drive and see if it now works.
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • HT201209 If I am registered in the UK, how can I redeem a gift card issued in The Netherlands?

    Safari missing
    After a recent upgrade, I noticed that the safari app was missing.  I can't find it anywhere to reload i

    You can't. Gift cards can only be purchased and redeemed in the country of origin.

Maybe you are looking for

  • Problem with using database link from oracle 7 to oracle 9i

    Hi To Every One I have two oracle database oracle 7.3.4.0.1 and oracle 9i 9.2.0.1.0. and the tns alias to connect to oracle 9i database is oracle9i and tns alias to oracle 7 database is oracle7.I have no problem in connect to these database using the

  • Error in Internet Sales

    Hi All, I have configured the product catalogue in R/3. The issue is when i am trying to create a sales order on the web, the system throws error. On the web, i click on product catalogue, the product hierarchy is displayed, when i click on a product

  • Sales employee wise sales report

    Hi, Can anyone explain me,how to write functional specifications to obtain sales employee wise sales report? Thanks in advance.. Regards.. Yogi...

  • Running scripts in OMB Plus with parameters. Is it possible?

    Hi, I know that we can run omb scripts from unix command line like >OMBPlus.sh test.tcl My doubt is: Can we pass parameters? If yes, how can i treat them on the script? Thank You, Filipe

  • ThinkPad W530 and EFI

    hi, I want to buy a Lenovo Thinkpad W530. Did  that machine has an 64 bit EFI instead of a BIOS? i will use that W530 for Windows 8 with Visual Studio 2012, and it must be have an EFI instead of a BIOS for running HyperView for Windows Phone 8 Develo