Getting Logged on User'Information in an Oracle-Form SSO Partner Application

Hi.
I could run Flight-of Fancy Application and capture user's information by calling the
"Parse_cookie " Procedure.(use the Scenario 2 - Access the Portal and then the FOF App)
and defined an Oracle-Form application as Partner application like FOF.
I want to have Logged on user'Information in the "Oracle-Form" . But the Fucntion owa_cookie.get dosen't work correctly.please let me know what can I do ?
Thanks in advanced.

Hi.
I could run Flight-of Fancy Application and capture user's information by calling the
"Parse_cookie " Procedure.(use the Scenario 2 - Access the Portal and then the FOF App)
and defined an Oracle-Form application as Partner application like FOF.
I want to have Logged on user'Information in the "Oracle-Form" . But the Fucntion owa_cookie.get dosen't work correctly.please let me know what can I do ?
Thanks in advanced. If you're writing your own partner application, then you are correct to get the user information from the output variables
from the parse_url_cookie procedure. You should then set the information you want to keep track of in the cookie, or combination
of cookie and persistent storage in the database. Take care of the security implications while doing this.
On subsequent calls to your application, the user info should be obtained from the cookie and the database, if you
are using a combination of the cookie and database storage to keep your info.
The owa_cookie.get routine is used to read the cookie, which is generated with owa_cookie.send.
These routines work fine, when invoked correctly.
If you are having trouble with them, you're probably not using the calls properly.
The following code provides an example of how to use the owa_cookie calls...
create or replace package testcookie
is
    procedure show (p_name IN VARCHAR2);
    procedure send
        p_name    IN VARCHAR2,
        p_value   IN VARCHAR2,
        p_path    IN VARCHAR2 default null,
        p_expires IN VARCHAR2 default null
end testcookie;
show error package testcookie
create or replace package body testcookie is
    procedure show (p_name IN VARCHAR2) is
        v_cookie owa_cookie.cookie;
    begin
        v_cookie := owa_cookie.get(upper(p_name));
        htp.htmlopen;
        htp.bodyopen;
        htp.print(v_cookie.vals(1));
        htp.bodyclose;
        htp.htmlclose;
    exception
        when others then
            htp.htmlopen;
            htp.bodyopen;
            htp.print('NO COOKIE FOUND.');
            htp.print(SQLERRM);
            htp.bodyclose;
            htp.htmlclose;
    end;
    procedure send
        p_name    IN VARCHAR2,
        p_value   IN VARCHAR2,
        p_path    IN VARCHAR2 default null,
        p_expires IN VARCHAR2 default null
    is
        v_cookie owa_cookie.cookie;
        l_agent varchar2(30);
        l_expires varchar2(30);
        l_path varchar2(100);
    begin
        if p_expires is null then
            l_expires := null;
        else
           l_expires := to_date(p_expires, 'MMDDYYYY');
        end if;
        if p_path = 'ALL' then
            l_path := '/';
        else
            l_path := null;
        end if;
        owa_util.mime_header('text/html', FALSE);
        l_agent := owa_util.get_owa_service_path;
        l_agent := substr(l_agent, 1, length(l_agent) - 1 ) ;
        owa_cookie.send(
            name    => upper(p_name),
            value   => p_value,
            expires => l_expires,
            path    => l_path
        owa_util.http_header_close;
        htp.htmlopen;
        htp.headopen;
        htp.headclose;
        htp.bodyopen;
        htp.print ('Cookie set.');
        htp.bodyclose;
        htp.htmlclose;
    end;
end testcookie;
show error package body testcookie;
grant execute on testcookie to public;If you load this into a schema which a DAD can access, then you can invoke the show and send procedures to view and
generate cookies.
To generate a cookie, issue the following from your browser ...
http://server.domain.com/pls/dad/schema.testcookies.send?p_name=test&p_value=hello
To view the cookie:
http://server.domain.com/pls/dad/schema.testcookies.show?p_name=test

Similar Messages

  • Get enterprise portal user informations

    Hi all,
    is there a way to get some portal user informations during runtime in a visual composer application?
    For example: I want to display the user id in a form automatically.
    Thank you for your help!
    Kind regards, Patrick.

    Hai ,
    u have to get that abap side not from Vc side i think soo
    Regards ,
    venkat p

  • How to get logged in user name from windows service c#

    i use the below code to get logged in user name.
    private string GetLoggedInUser()
    string userName = "";
    if (System.Security.Principal.WindowsIdentity.GetCurrent() != null)
    userName = System.Security.Principal.WindowsIdentity.GetCurrent().Name;
    return userName;
    just do not understand why it is not giving a logged in user name rather it is return data in this format
    NT AUTHORITY\SYSTEM but i want to get user name.
    i try to run my service as Local Service and local system account but in every case i am getting this string
    NT AUTHORITY\SYSTEM instead of logged in user name.
    so please guide me what to change in code. thanks

    System is the account the service is running under.
    There can be none or many interactive users be logged in. What if none or multiple are logged in? Which one are you referring to then?
    Armin

  • How to get the ep user information data in the web dynpro?

    Hi all
      I want to create a web dynpro application on EP.I want to get the ep user information data in the web dynpro.How can I do?Thanks.

    Lin,
    Two steps to achieve this:-
    <b>Step 1:</b> Add the following code in your view Controller:-
    IWDClientUser user = WDClientUser.getCurrentUser();
    IUser objUser = user.getSAPUser();
    wdContext.currentContextElement().setXXXX(objUser.getUniqueName());
    wdContext.currentContextElement().setYYYY(objUser.getFirstName());
    wdContext.currentContextElement().setZZZZ(objUser.getLastName());
    where XXXX, YYYY , ZZZZ are the context names.
    getUniqueName : Gives Login id of Portal user.
    getFirstName : Gives First Name of the Portal user.
    getLastname : Gives Last Name of the Portal user.
    <b>Step 2 : </b>Use "Organize imports" and make sure that you have the following two libraries added in the build path of your project. You can do these by right clicking on your project name ==> Properties ==> Java Build Path ==> Libraries ==> Add External jars.
    The external jars are :
    <b>com.sap.security.api.jar
    com.sap.security.api.perm.jar</b>
    Finally rebuild your project and deploy.
    Regards,
    <b>Chintan Virani.</b>

  • Getting Logged in user roles

    Hi EveryOne,
    We are developing repository filter.  Here we need to check roles of loged in user. How can we get role names  in repository filter application?.
    Thanks in advance,
    Venkatesh.R

    Hi Venkatesh
    You can refer to your doubts in through the folowiing PDF
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3641e490-0201-0010-c68f-e51221925714
    http://help.sap.com/saphelp_nw2004s/helpdata/en/2b/306bb5bc98f24f8a85d489449af456/frameset.htm--
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/library/ep/_s-u/Using%20The%20New%20User%20Management%20API%20in%20EP%206.0
    For getting Logged on user details
    String presentuser=null;
                   IWDClientUser wdUser = WDClientUser.getCurrentUser();
                   IUser user = wdUser.getSAPUser();
                   presentuser=user.getUniqueID()
    you will have to get com.sap.security.api.jar
    (Path C:\Program Files\SAP\IDE\IDE70\eclipse\plugins\com.sap.security_2.0.0\lib\com.sap.security.api.jar.  //// the path is the installed directory of NWDS )
    Thanx
    Pankaj

  • How to verify the user information pass by the form with a stored procedure?

    Hi,
    I would like to know how to verify user information pass by the form with a stored procedure.
    I want make a portal which accepts to new user registration, but I want verify the new user's informations (like the name don't contain a number etc).
    Thanks for your help
    regards
    jla

    Hi Samson,
    You can use the UI API to do this. You can catch the form_ADD event and then validate the input from the users. You can even block the event from completing (and stop the document from being added) if your code finds some incorrect data using the bubbleEvent functionality.
    I don't have one specific example to show you, but if you look at some of the SDK samples (for example C:\Program Files\SAP\SAP Business One SDK\Samples\COM UI\VB.NET\02.CatchingEvents) to see how to work with events, you can then create your own validation to ensure the users data is valid.
    Regards,
    Niall

  • Oracle Forms in Fusion application

    Hi all
    I am new to fusion apps
    I just wanted to know whether Fusion does support Oracle forms.
    As per my knowledge Fusion does not have any oracle forms.
    Please let me know if there is any document related to the above information
    Thanks
    Mandar

    Yes, Oracle Forms/Reports is now part of the Oracle Fusion Middleware (FMw) 11g bundle.  Unfortunately, you must install Oracle WebLogic Server in order to install FMw, even if you are installing on a developer workstation.
    Check out this link for more information:  http://www.oracle.com/technetwork/developer-tools/forms/overview/index.html
    Craig...

  • Call Oracle forms using web application

    Hi,
    I am newbie for configuring oracle forms with web application.
    what are all the steps needs to be done for calling oracle forms 6i from web application.
    Thanks
    Raj

    In which case I would suggest you go to 10g or 11g of Forms since 6 is no longer supported.
    then check out
    http://www.oracle.com/technology/documentation/forms/index.html
    http://download.oracle.com/docs/cd/B25016_04/doc/dl/web/B14032_03/B14032_03.pdf
    http://otn.oracle.com/formsupgrade
    Its all documented here
    Regards
    Grant

  • Oracle Forms: Build Internet Applications correct configuration

    I want to study for the Oracle Forms: Build Internet application exam (IZ0-141) is this exam specified by oracle versions? Forms for 9i looks a little different that forms for 10g. If it is for 9i the download for Oracle9i Application Server is no longer available, neither is the database version. I want the setup a practice lab for the exam and I want to make sure I am using the correct configuration and that the exam is not go to refer to items that is no longer available.
    Thanks!

    Thanks for reply yogesh.
    Actually I am looking for some basic tutorial of Forms developer. I never use that before. I haven't found which tools/package I can use to create forms. where is OC4J located?
    what can OTN help on the preparing of IZ0- 141 exam? I found a course on Oracle website for that, But its price is $4,000 CDN, which I can't afford. I really want a book related to the course.
    Thanks,
    Robert

  • How to get Logged-in user detail from solution Manager.

    Hi to all,
             How can i get details of a user who is logged in into SAP Solution Manager through my webDynpro application. I need to read some values from SAP Solution Manager. How could i do it?? Shall i need to call RFCs??
    If anybody have idea please reply.
    If anybody has some code please send it.
    Points will be rewarded.
    Thanks in advance.

    Pankaj,
    Here is the code to get the logged in user in Web Dynpro.
         //Get the current logged user information
         IWDClientUser user = WDClientUser.getLoggedInClientUser();
         IUser usr = user.getSAPUser();
    String userId = usr.getUniqueName();
    Regards,
    Anand

  • OIM - get logged in user id

    Hi All
    How can I get the requestor's information or the user id of the user who is logged in inside the Action.java file. e.g. I have an action class method as enableUser and it is defined as:
    public ActionForward enableUsers(ActionMapping poMapping,
                   ActionForm poForm, HttpServletRequest poRequest,
                   HttpServletResponse poResponse) throws IOException,
                   ServletException {
    Please let me know how I can derive the requestor's info from poRequest or some other parameter.
    Thanks

    Call the API getSelfProfile of UserOperationInterface.

  • CR 2008 Get logged in user ID

    Hi all,
    I am working on a CR 2008 report that connects to a SQL Server 2008 database.
    The data on the report is retrieved using a stored procedure that takes the NT user ID as a parameter to  get the correct results.
    As the SQL Server connection uses a generic user, I need Crystal Reports to retrieve at run time the currently logged in user that's executing the report in CR Viewer to pass it to the stored procedure.
    Is there any way to accomplish this? I've seen some UFL's that do that, but if I use them, when opening the report in viewer it crashes saying it can not correctly compile the function (but it works if I open the report in CR 2008 Developer).
    Anyone can please help me?
    Thanks!
    Jordi.

    The only alternative I'm aware of is a 3rd-party Crystal Reports viewer (see same list) that can automatically set a report parameter to the logged in user id.  Actually, for your situation this is much better because you can't use a formula value as a parameter, unless you feed it to a subreport.
    Again, I know for sure that at least one the viewers listed at http://www.kenhamady.com/bookmarks.html provides that functionality.  I can't name the specific viewer because of forum etiquette.

  • Get logged in users name for email notification

    Hi all,
    I am using LC Update 1 with email notifications. In the notification email I would like to write:
    Hi "logged in users name"
    You have got a task in your to do-list...
    The thing is that I can not get the id of the user because the email is sent before he/she completes any step in the process. So I guess I need to look up the user in the same way as the notification-function makes the lookup... How is this done?
    Can you help me here?
    Sincerely
    Kim

    You can use a parameter for the user ID:
    http://livedocs.adobe.com/livecycle/8.2/wb_help/001330.html
    scott

  • How to get updated value at run time in oracle forms

    How to get updated value form oracle database on a field in oracle forms 6.0 at run time if the same form is opened by multiple users and both have get the same maximum value if one commit the record then how other would get that maximum value with out exiting that form...

    This issue is fairly common and Forms handles the situation by displaying the error, "Record has been updated by another user. Requery to see changes." if a user tries to update a record that was updated by another user.
    If your data is in a base table block, you can check before you save by checking the value in the form against the database using the Get_Item_Property('<BLOCK.ITEM>',DATABASE_VALUE). You can compare the value returned by the built-in against the value in the field to see if they have changed. This could be a lot of work and a lot of network traffic if you are checking numerous items in your data block. Forms has a standard locking mechanism that will lock the queried record as soon as a user makes any changes. If another user queries and attempts to change the record locked by another user - they will receive a "Record Locked" message.
    Francois brings up a valid point. Perhaps you should review the link Francios provided as well as this one: How to ask questions the smart way
    It is always a good idea to review your thread before you post it and ask yourself, "Could I answer this question given the information I've provided and the way I've asked the question?"
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • How to call Oracle form .from another application like VB 6.0

    Dear ALL,
    I want to call oracle(Developer) form ,from another application (VB 6.0).I want to call the form in such
    a way that user dont need to enter login and password.I will hard code the username and password
    in my VB 6.0 application.User only press a button on Visual Basic 6.0 form and and that button will
    open required Orcale form.How can I DO this.PLEASE HELP............
    Regards

    You have the command in VB 6.0 to run any exe files right (I think it is the system command). Next to that command place the following code to run your forms application
    ifrun60.EXE <forms.fmx with complete path> userid=<username>/<password>@<connection string>.
    Regards,
    Senthil .A. Perumal.

Maybe you are looking for

  • HP Laserjet Printer and Vista

    I bought a new HP color LaserJet Pro MFP M277dw yesterday.  I took it home and hooked it up and tried to run the setup disk on my HP laptop with Windows Vista.  The disk said it was not compatible with Vista.  The existing software on my computer I'v

  • I just installed acrobat 10 on a windows 7 64 bit hp touchsmart 320 PC with 6 GB of RAM.  It quits unexpectadly, within 90 seconds of launch, how do i fix this?

    I just installed Acrobat 10 standard. The program unexpectedly quits shortly after launch. I downloaded the latest patch from adobe and it continues to crash. Any thoughts or solutions? I ws not running other programs when this happened and memory wa

  • Replace usb 1.1 with 2.0

    how can it be that every other mac can have the usb 1.1 card replaced with a usb 2.0 card, but this imac can't? i can replace the hd (ok-i knocked the damned thing over!), processor, optical reader, et c., so what's with the NO to usb swaps? is this

  • BSP(htmlb) - spinning wheel interact between two views,

    hi all, if i click button in first view it will opens second view . The second view contains some more data's so it takes too much time to dispaly datas, in mean time i want to give spinning wheel or some process bar in between two views, how can i g

  • Plant mainenance

    sir, i am a learner and this is my first qustn, while creating a maintenance task list,in the operations TAB if i give the "duration" as 0.5 hr or 0.25 hr system is giving an error "enter numerical value". please give me a solution where to set this