Filter output data according to portal current user name in omni portlet

We have created an omniportlet that connects to a database, and retrives some values into a defined HTML layout.
We want to filter output data according to our portal current user name
When we try to use portal.wwctx_api.get_user inside of omni portlet select statement fallowing error occurs.
Error in executing Query : [ORA-06510: PL/SQL: unhandled user-defined exception ORA-06512: at "PORTAL.WWCTX_SSO", line 1803 ORA-06510: PL/SQL: unhandled user-defined exception ORA-06512: at "PORTAL.WWCTX_SSO", line 1637 ORA-06502: PL/SQL: numeric or value error ORA-06512: at "PORTAL.WWCTX_SSO", line 1865 ORA-06512: at "PORTAL.WWCTX_API", line 183 ]
Thanks a lot

hello
i think you cannot use the portal built-in packages inside omni portlets. Omni portlets is designed to connect to other data source (not only oracle) and Portal API might not be available at these data sources. Therefore, you should not be using these Packages at all!. i tried very hard, but to no avail.. Omni portlet has its own repository!! if you cannot pass the infomration as a parameter, then find a different approach
Ammar Sajdi
Amman - Jordan
oracle consultant

Similar Messages

  • Filter omni portlet output data according to portal user

    We have created an omniportlet that connects to a database, and retrives some values into a defined HTML layout.
    We want to filter output data according to our portal current user name
    When we try to use portal.wwctx_api.get_user inside of omni portlet select statement fallowing error occurs.
    Error in executing Query : [ORA-06510: PL/SQL: unhandled user-defined exception ORA-06512: at "PORTAL.WWCTX_SSO", line 1803 ORA-06510: PL/SQL: unhandled user-defined exception ORA-06512: at "PORTAL.WWCTX_SSO", line 1637 ORA-06502: PL/SQL: numeric or value error ORA-06512: at "PORTAL.WWCTX_SSO", line 1865 ORA-06512: at "PORTAL.WWCTX_API", line 183 ]
    Thanks a lot

    This is because the Omniportlet is actually operating within a different context--a separate database connection from the Portal connection. We have similar issues with Java portlets. You might try creating a public parameter on the portlet, then mapping that to the system variable USER (done on the Parameters tab of the page where you deploy it--if you don't see a parameters tab, you must enable Parameters and Events at the page group properties level). I haven't tested any of this, but it should get you going in the right direction.

  • Work Folders Stopped Working - The sync server needs the user's current user name and password

    Our Work Folders deployment has just stopped working.
    Once the user has logged in to ADFS they get the following error message "The sync server needs the user's current user name and password (0x80c80300)"
    At the same time we see the following error in the file servers SyncShare event log:
    - <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    - <System>
    <Provider Name="Microsoft-Windows-SyncShare" Guid="{9E6153AD-A829-4B70-B997-8E463A7A111C}" />
    <EventID>1013</EventID>
    <Version>0</Version>
    <Level>2</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x8000000000000000</Keywords>
    <TimeCreated SystemTime="2014-12-03T14:48:32.922225100Z" />
    <EventRecordID>1178</EventRecordID>
    <Correlation />
    <Execution ProcessID="1988" ThreadID="2800" />
    <Channel>Microsoft-Windows-SyncShare/Operational</Channel>
    <Computer>fileserver.domain.com</Computer>
    <Security UserID="S-1-5-18" />
    </System>
    - <EventData>
    <Data Name="User">eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImVoZWxJMUFwWm9HT2VZdXU5NGZZb21tamUzayJ9.eyJhdWQiOiJodHRwczovL1dpbmRvd3MtU2VydmVyLVdvcmstRm9sZGVycy9WMSIsImlzcyI6Imh0dHA6Ly9hZGZzLmVzaGVyLmFjLnVrL2FkZnMvc2VydmljZXMvdHJ1c3QiLCJpYXQiOjE0MTc2MTgxMTIsImV4cCI6MTQxNzYyMTcxMiwidXBuIjoiRExvdWdobGluQGVzaGVyLmFjLnVrIiwidW5pcXVlX25hbWUiOiJEYW5pZWwgTG91Z2hsaW4iLCJmYW1pbHlfbmFtZSI6IkxvdWdobGluIiwiZ2l2ZW5fbmFtZSI6IkRhbmllbCIsImF1dGhfdGltZSI6IjIwMTQtMTItMDNUMTQ6NDg6MjYuNzU1WiIsImF1dGhtZXRob2QiOiJ1cm46b2FzaXM6bmFtZXM6dGM6U0FNTDoyLjA6YWM6Y2xhc3NlczpQYXNzd29yZFByb3RlY3RlZFRyYW5zcG9ydCIsInZlciI6IjEuMCIsImFwcGlkIjoiMTY4RjNFRTQtNjNGQy00NzIzLUE2MUEtNjQ3M0Y2Q0I1MTVDIn0.eCefzniju5qjqxIDdC2KCefkiNBNoGV-B1zg8EsnygUyV0LilPpANpv5uH75JJ9ekv9BN0vz7m6QezHEN4dYc5Z-6UJCzm7Wz6s1yNqVz-Sq5_wf_RrrHkxntcLXT2LHyyLN6ZxJy8uOF4vLw_fLsDzrNHkpaKUoevLAvNLI503IAiKDijKmQ0Qa2hZGsDT57yhKLGtjMXdqwx6FpFpP6vxA9qoUlR1E-tlt0ezTSD8j36djV9VbFpTlfeiH26D0n92T4exQCJkPdVzR42G7KbYyo9Acu0GGf7dnameWMQV9lT-Jtb7hH9xNReuVSVzqgtstsSDJR0mCsKJfLrdKVw</Data>
    <Data Name="Error">0X80C80021 - ECS_E_SYNC_ADFS_UNAUTHORIZED</Data>
    </EventData>
    </Event>
    I have attempted re creating the setup using several blog posts including:
    http://blogs.technet.com/b/filecab/archive/2014/03/03/deploying-work-folders-with-ad-fs-and-web-application-proxy-wap.aspx.  Including deleting all WAP rules, deleting and recreating the Relaying Party Trust and obtaining new certificates for the file
    server.
    ADFS and WAP are working correctly for our Office 365 federations and on-premise SharePoint, Exchange and other web applications
    If I turn ADFS authentication off on the Work Folders server I can successfully connect and setup work folders on a domain joined computer, however as soon as ADFS authentication is enabled I get the above error. 

    Hi,
    As you expressed, it should be an authentication issue. 
    I assume it will work by selecting Windows Authentication instead of ADFS in step shows in following picture. 
    The article also mentioned that the certificate is needed in following computers.
    The self-signed AD FS certificate will need to be exported and installed on the following machines in the test environment:
    Work Folders
    Web Application Proxy
    Domain joined Windows 8.1 client
    Non-domain joined Windows 8.1 client
    Thus I would like to confirm if certificate is also imported. 
    If you have any feedback on our support, please send to [email protected]

  • How to find current user name on a LAN machine....

    how to find current user name in a remote machine in LAN .
    how to find current user name on a local machine in LAN .

    how to find current user name in a remote machine in
    LAN .Many users may be logged on concurrently on the remote machine.
    how to find current user name on a local machine in
    LAN .The user who is running the code in the process would be obtainable via:
    System.getProperty("some property goes here");
    I leave it to you to look at the API documentation for System.getProperties() to see what property name you would retrieve.

  • When I try to log into the app store to update apps or buy apps the user name that appears is an old one and it will not bring up the current user name/ email how do I stop that so that my current email show up ??

    When I try to log into the app store to update apps or buy apps the user name that appears is an old one and it will not bring up the current user name/ email how do I stop that so that my current email show up ??

    Settings>Store: Tap the AppleID and choose "Sign Out", it will then prompt you to sign in and you can use the new AppleID.
    NOTE: Apps must be updated with the AppleID they were purchased under.
    EE

  • How to find the current User Name and stored in which table

    In which table the current user name (Login) is stored?

    Hi Mohanapriya
    The query provided by Gordon can not run on query generator as the $USER is a runtime variable.
    You need to save it to a query then use it in a FMS(Formatted Search.)
    Just open a form(ex:sales order ), click the field in which you want to show the user name,
    then press ****+F2 or Tools->Search Function->Define,
    Search by Saved query,then assign the save query to the field.
    After that ,you can run the FMS(shift+F2) to get the current user info.
    Regards,
    Syn Qin
    SAP Business One Forums Team

  • Add Page n of nn, date, current user name to aReport Footer on PDF Report

    Hello,
    I am very new to using Apex.
    I have a SQL Report which I can output to a PDF and works.
    I have a header and the contents of the report all appearing in the PDF OK.
    I would like to have a footer for each page which has the date & timestamp, current users full name and page n of nn.
    Any help would be much appreciated, thanks.

    Hello Luis
    Thanks for your help.
    I have the first part of the current user and the date and time displayed on the bottom of the report.
    The complicated bit for me it the page n of n.
    I have created the report layout and copied in your code but I get an error that tells me that
    the PDF cannot be opened because it is either not supported or damaged .....
    Here is the contents of the Page Template:
    <?xml version = '1.0' encoding = 'utf-8'?>
    <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xlink="http://www.w3.org/1999/xlink">
    <xsl:variable name="_XDOFOPOS" select="''"/>
    <xsl:variable name="_XDOFOPOS2" select="number(1)"/>
    <xsl:variable name="_XDOFOTOTAL" select="number(1)"/>
    <xsl:variable name="_XDOFOOSTOTAL" select="number(0)"/>
    <xsl:attribute-set name="padding">
    <xsl:attribute name="padding-bottom">0.25pt</xsl:attribute>
    <xsl:attribute name="padding-top">0.25pt</xsl:attribute>
    </xsl:attribute-set>
    <xsl:attribute-set name="text">
    <xsl:attribute name="text-align">start</xsl:attribute>
    <xsl:attribute name="orphans">2</xsl:attribute>
    <xsl:attribute name="start-indent">0.0pt</xsl:attribute>
    <xsl:attribute name="linefeed-treatment">preserve</xsl:attribute>
    <xsl:attribute name="padding-top">0.0pt</xsl:attribute>
    <xsl:attribute name="end-indent">0.0pt</xsl:attribute>
    <xsl:attribute name="padding-bottom">0.0pt</xsl:attribute>
    <xsl:attribute name="height">0.0pt</xsl:attribute>
    <xsl:attribute name="widows">2</xsl:attribute>
    </xsl:attribute-set>
    <xsl:attribute-set name="align-left">
    <xsl:attribute name="text-align">left</xsl:attribute>
    </xsl:attribute-set>
    <xsl:attribute-set name="align-center">
    <xsl:attribute name="text-align">center</xsl:attribute>
    </xsl:attribute-set>
    <xsl:attribute-set name="align-right">
    <xsl:attribute name="text-align">right</xsl:attribute>
    </xsl:attribute-set>
    <xsl:attribute-set name="footer">
    <xsl:attribute name="text-align">right</xsl:attribute>
    <xsl:attribute name="start-indent">5.4pt</xsl:attribute>
    <xsl:attribute name="end-indent">5.4pt</xsl:attribute>
    </xsl:attribute-set>
    <xsl:attribute-set name="text_2">
    <xsl:attribute name="start-indent">5.4pt</xsl:attribute>
    <xsl:attribute name="end-indent">23.4pt</xsl:attribute>
    </xsl:attribute-set>
    <xsl:attribute-set name="text_20">
    <xsl:attribute name="height">13.872pt</xsl:attribute>
    <xsl:attribute name="end-indent">5.4pt</xsl:attribute>
    </xsl:attribute-set>
    <xsl:attribute-set name="text_0">
    <xsl:attribute name="end-indent">5.4pt</xsl:attribute>
    </xsl:attribute-set>
    <xsl:attribute-set name="page-header">
    <xsl:attribute name="color">#PAGE_HEADER_FONT_COLOR#</xsl:attribute>
    <xsl:attribute name="font-family">#PAGE_HEADER_FONT_FAMILY#</xsl:attribute>
    <xsl:attribute name="white-space-collapse">false</xsl:attribute>
    <xsl:attribute name="font-size">#PAGE_HEADER_FONT_SIZE#pt</xsl:attribute>
    <xsl:attribute name="font-weight">#PAGE_HEADER_FONT_WEIGHT#</xsl:attribute>
    </xsl:attribute-set>
    <xsl:attribute-set name="page-footer">
    <xsl:attribute name="color">#PAGE_FOOTER_FONT_COLOR#</xsl:attribute>
    <xsl:attribute name="font-family">#PAGE_FOOTER_FONT_FAMILY#</xsl:attribute>
    <xsl:attribute name="white-space-collapse">false</xsl:attribute>
    <xsl:attribute name="font-size">#PAGE_FOOTER_FONT_SIZE#pt</xsl:attribute>
    <xsl:attribute name="font-weight">#PAGE_FOOTER_FONT_WEIGHT#</xsl:attribute>
    </xsl:attribute-set>
    <xsl:attribute-set name="body-font">
    <xsl:attribute name="height">12.0pt</xsl:attribute>
    <xsl:attribute name="font-family">#BODY_FONT_FAMILY#</xsl:attribute>
    <xsl:attribute name="white-space-collapse">false</xsl:attribute>
    <xsl:attribute name="font-size">#BODY_FONT_SIZE#pt</xsl:attribute>
    <xsl:attribute name="font-weight">#BODY_FONT_WEIGHT#</xsl:attribute>
    </xsl:attribute-set>
    <xsl:attribute-set name="page-number">
    <xsl:attribute name="height">13.872pt</xsl:attribute>
    </xsl:attribute-set>
    <xsl:attribute-set name="header-font">
    <xsl:attribute name="height">#HEADER_FONT_SIZE#pt</xsl:attribute>
    <xsl:attribute name="font-family">#HEADER_FONT_FAMILY#</xsl:attribute>
    <xsl:attribute name="white-space-collapse">false</xsl:attribute>
    <xsl:attribute name="font-size">#HEADER_FONT_SIZE#pt</xsl:attribute>
    <xsl:attribute name="font-weight">#HEADER_FONT_WEIGHT#</xsl:attribute>
    </xsl:attribute-set>
    <xsl:attribute-set name="border">
    <xsl:attribute name="border-top">#BORDER_WIDTH#pt solid #BORDER_COLOR#</xsl:attribute>
    <xsl:attribute name="border-bottom">#BORDER_WIDTH#pt solid #BORDER_COLOR#</xsl:attribute>
    <xsl:attribute name="border-start-width">#BORDER_WIDTH#pt</xsl:attribute>
    <xsl:attribute name="border-start-color">#BORDER_COLOR#</xsl:attribute>
    <xsl:attribute name="border-start-style">solid</xsl:attribute>
    <xsl:attribute name="border-end-width">#BORDER_WIDTH#pt</xsl:attribute>
    <xsl:attribute name="border-end-color">#BORDER_COLOR#</xsl:attribute>
    <xsl:attribute name="border-end-style">solid</xsl:attribute>
    </xsl:attribute-set>
    <xsl:attribute-set name="cell">
    <xsl:attribute name="background-color">#BODY_BG_COLOR#</xsl:attribute>
    <xsl:attribute name="color">#BODY_FONT_COLOR#</xsl:attribute>
    <xsl:attribute name="padding-start">5.15pt</xsl:attribute>
    <xsl:attribute name="vertical-align">top</xsl:attribute>
    <xsl:attribute name="padding-top">0.0pt</xsl:attribute>
    <xsl:attribute name="padding-end">5.15pt</xsl:attribute>
    <xsl:attribute name="number-columns-spanned">1</xsl:attribute>
    <xsl:attribute name="height">0.0pt</xsl:attribute>
    <xsl:attribute name="padding-bottom">0.0pt</xsl:attribute>
    </xsl:attribute-set>
    <xsl:attribute-set name="header-color">
    <xsl:attribute name="background-color">#HEADER_BG_COLOR#</xsl:attribute>
    <xsl:attribute name="color">#HEADER_FONT_COLOR#</xsl:attribute>
    </xsl:attribute-set>
    <xsl:template match="/">
    <fo:root>
    <fo:layout-master-set>
    <fo:simple-page-master master-name="master0" margin-left="66.6pt" margin-right="66.6pt" page-height="#PAGE_HEIGHT#pt" page-width="#PAGE_WIDTH#pt" margin-top="36.0pt" margin-bottom="36.0pt">
    <fo:region-before region-name="region-header" extent="54.0pt"/>
    <fo:region-body region-name="region-body" margin-top="54.0pt" margin-bottom="54.0pt"/>
    <fo:region-after region-name="region-footer" extent="54.0pt" display-align="after"/>
    </fo:simple-page-master>
    </fo:layout-master-set>
    <fo:page-sequence master-reference="master0">
    <xsl:variable name="_PW" select="number(#PAGE_HEIGHT#)"/>
    <xsl:variable name="_PH" select="number(#PAGE_WIDTH#)"/>
    <xsl:variable name="_ML" select="number(72.0)"/>
    <xsl:variable name="_MR" select="number(72.0)"/>
    <xsl:variable name="_MT" select="number(90.0)"/>
    <xsl:variable name="_MB" select="number(90.0)"/>
    <xsl:variable name="_HY" select="number(36.0)"/>
    <xsl:variable name="_FY" select="number(36.0)"/>
    <xsl:variable name="_SECTION_NAME" select="string('master0')"/>
    <fo:static-content flow-name="region-header">
    <fo:block xsl:use-attribute-sets="text text_2 text_0 #PAGE_HEADER_ALIGNMENT#">
    <fo:inline xsl:use-attribute-sets="page-header">#PAGE_HEADER#</fo:inline>
    </fo:block>
    </fo:static-content>
    <fo:static-content flow-name="region-footer">
    <fo:block xsl:use-attribute-sets="text footer">
    <fo:inline xsl:use-attribute-sets="body-font page-number">
    <fo:page-number/> of <fo:page-number-citation ref-id="last-page"/>
    </fo:inline>
    <fo:block id="last-page"/>
    </fo:flow>
    <fo:block xsl:use-attribute-sets="text text_2 #PAGE_FOOTER_ALIGNMENT#">
    <fo:inline xsl:use-attribute-sets="page-footer">#PAGE_FOOTER#</fo:inline>
    </fo:block>
    </fo:static-content>
    <fo:flow flow-name="region-body">
    <fo:block xsl:use-attribute-sets="padding">
    <fo:table start-indent="0.0pt">
    <xsl:variable name="_XDOFOPOS2" select="number(1)"/>
    <xsl:variable name="_XDOFOTOTAL" select="number(1)"/>
    #PRN_TABLE_CELLS#
    <fo:table-header>
    <fo:table-row>
    #PRN_TEMPLATE_HEADER_ROW#
    </fo:table-row>
    </fo:table-header>
    <fo:table-body>
    <xsl:for-each select=".//ROW">
    <fo:table-row>
    #PRN_TEMPLATE_BODY_ROW#
    </fo:table-row>
    </xsl:for-each>
    </fo:table-body>
    </fo:table>
    </fo:block>
    <fo:block xsl:use-attribute-sets="text text_2 text_20">
    <fo:inline id="{concat('page-total-', $_SECTION_NAME, $_XDOFOPOS)}"/>
    <fo:inline id="{concat('page-total', $_XDOFOPOS)}"/>
    </fo:block>
    </fo:flow>
    </fo:page-sequence>
    </fo:root>
    </xsl:template>
    </xsl:stylesheet>

  • Agentry - Filter by Current User Name in SQL Step

    I'm currently developing an Agentry application that connects to an Oracle back end.  I would like to filter by the current user's name in a SQL step that connects to the Oracle database.  What's the best way to do this?
    Tags edited by: Michael Appleby

    See:
    http://infocenter.sybase.com/help/index.jsp?docset=/com.sybase.infocenter.pubs.docset-SMP-SDK-3.0.2/doc/html/title.html&docSetID=2021
    <<user.name>>
    Returns the name of the client user. By default this will be the ID entered by the user to log into the client. This value may be overridden.
    <<user.agentryID>>
    Returns the user ID entered to log into the Agentry Client. This value cannot be overriden during synchronization.

  • Using conditions to filter the data of UDO in a user form

    Hi every body,
    I've created a user form with an UDO, I want to filter the data coming of the user table where the field U_CardCode = CardCode. To acheive this goal, I used the collection Conditions.
    I've write this code. It dosn't work. Has someone an idea???
    SAPbouiCOM.FormCreationParams _CreationParams = null;
                    CreationParams = ((SAPbouiCOM.FormCreationParams)(SboApplication.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_FormCreationParams)));
                    CreationParams.BorderStyle = SAPbouiCOM.BoFormBorderStyle.fbsFixed;
                    _CreationParams.UniqueID = "Act";
                    CreationParams.ObjectType = "UDOAct";
    _Form = SboApplication.Forms.AddEx(CreationParams);
                    //User Data Source
                    _DBDataSource1 = Form.DataSources.DBDataSources.Add("@OXIATTN_CSTACT");
                    conditions = (Conditions)SboApplication.CreateObject(BoCreatableObjectType.cot_Conditions);
                    _condition = _conditions.Add();              
                    condition.Alias = "UCardCode";
                    condition.Operation = BoConditionOperation.coEQUAL;
                    _condition.CondVal = "C20000";
    DBDataSource1.Query(conditions);
    _Form.Title = "Compte du site";
                    _Form.Left = 350;
                    _Form.Top = 50;
    .....etc
    Thank you for your help
    Haifa

    I use the recordset command and a doquery.
    I find it easier to use than the condition object.
    if you need to pass the bp code to the new form, read the value from the bp master data record and then pass it to the new form.
    If you use xml you can pass it right after you call the form.

  • How we Can find out How many Users Logon into the Portal those users Names.

    Hi Friends
    I have one doubt in Portal,
    How we can find how many Users Logon into the Portal and how we can find that users Names in Portal.
    Regards
    Vijay Kalluri

    Hello Vijay,
    If you are at all interested in a 3rd party application to make your life a bit easier getting stats on your users, you could check out Click Stream by Sweetlets.
    Click Stream uses the Usermanagement (UME) API to get more information about the user, groups, roles, LDAP attributes etc. and offers you the ability to filter this information in nearly any report at the click of a button.
    Click Stream also uses the PCD API to get information about the pages your users are visiting too.
    In the very near future Click Stream will also have iView recording to monitor iViews, telling which iViews have been clicked, etc.
    Here are some reviews on the SAP EcoHub from people who have used it: http://ecohub.sdn.sap.com/irj/ecohub/solutions/clickstream
    Please just let me know if you have any question or if you are open to test drive Click Stream. We will certainly help as best as we can.
    Good luck.

  • How to get the current user name of the host who is occupying a specific VM?

    I'm developing a winform app with c# code to manage Hyper-V. I need to remind someone if he/she would take a VM which has already been occupied by others.
    Is there any powershell cmd or WMI interface to get the current user of a specific VM?
    Thanks!

    Hiya,
    from cmd there are quser(Query user) and qwinsta(Query Session)
    which should give you that. Don't know how you can incoorperate that in C#, but that should give you something to work with :)
    https://technet.microsoft.com/en-us/library/cc785434.aspx
    https://technet.microsoft.com/en-us/library/cc788125.aspx

  • HT3231 I ended up having to create a new user name because the migration assistant wouldn't let me put the data back onto my original user name.  I now have to log into the new user name to see all my data, apps, photographs etc. What went wrong?

    I have a Mac that was part of the recall involved with the faulty Seagate hard drives.  The folks at the Apple Store near me changed the hard drive early December, 2012. I had my data, etc. all backed up on a portable hard drive.  When the Mac was returned with the new hard drive, I used the Migration Assistant to bring everything back over. Trouble was, it wouldn't let me bring it over to my original user name.  I was forced to create a new user name that became the place where everything was restored.  I can't see any data on my old user name, just the basics.  Everything is on the new user name but I wish I didn't have it (just want everything back the way it was originally).  Any suggestions?

    Probably the cleanest thing to do is to erase and freshly install the operating system on the new drive. Then, on the first boot up, don't create a new user, instead select the option in Setup Assistant to immediately bring things over from your backup, which you must connect via USB or firewire. Setup Assistant will then recretae your old user to look just like it used to.
    Before doing this, make sure you realize you will lose everything on the new drive by erasing it, and make sure your backup is still viable.

  • Need to print Current user Name in crystal report in B1

    Hi all,
    In Crystal reports there are 2 current user fields
             CurrentCEUserName
    and   CurrentCEUserID
    I have tried to add these fields to the footer of my reports, but no information comes out.
    Is there any way to find out the current user and print their user name on the report?
    Users have 2 id's.  Where can I find this info and add it to the report.
    A) the windows user id if possible
    B) the SAP user id
    Thanks
    Chris

    HI,
    If you want SAP user id ,add OUSR table and pick user id from that table.
    or check http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=14295
    Thanks,
    Neetu

  • Using odiRef in ODI package to get current user name for Subject in OdiSendmail Step

    Hi,
    I am trying to do something simple and include the user name in a subject line of an OdiSendMail Step.  In the Expression editor for the Subject I use the following but to no avail.
    Push Data to HFM Started by <%=odiRef.getUser( String )%>
    What amI missing here?  Do I need to replace String with something like "UserName" or is there a different parameter to pass?  I tried Username but it didn't work.  Is this syntax correct or do I have to code it a different way?
    Thanks,
    T.

    Hi
    getUser has a parameter which is the property name to retrieve, you probably want the user name;
    http://docs.oracle.com/cd/E14571_01/integrate.1111/e12645/odiref_reference.htm#autoId70
    Something like....
    <%=odiRef.getUser( "USER_NAME" )%>
    Cheers
    David

  • Caml query - get current user name

    I have an external list via BDC (so cannot change column type, create calculated column or workflow
    ). There is a text column “Supervisor”. I need to create a view that display all items which the value of “Supervisor” = current login user’s display name or login name (windows user name). 
    I tried set up the field on the UI with [Me] function which does not work because “Supervisor” is not an user/group type column. Now I am working on the code. I found the follow caml query on the web that is close to what I need:
    <Eq>
    <FieldRef Name='Supervisor' LookupId='TRUE'/>
    <Value Type='Integer'><UserID/></Value>
    </Eq>
    I know this only work if the ‘Supervisor’ type is “User”. I just wonder if someone know how to replace the <Value> with a text string
    of the current user’s display name or window name? I really appreciate for any help (I have struggled with this issue for a week).
    Forget to mention that I am working on a web part page in SharePoint designer, not in Visual Studio. So I cannot not using spcontext class.

    Thank you again for your response.  For this method, I need need to find a way to get the current user to a variable, the use the varrible in the query. This works for me:
    <ParameterBinding Name="UserID" Location="CAMLVariable;ServerVariable(LOGON_USER)" DefaultValue="CurrentUserName"/>
    <Eq>
    <FieldRef Name="Supervisor"/>
    <Value Type="Text">{UserID}</Value>
                    </Eq>
                    <Eq>
    <FieldRef Name="AttnMonitor"/>
    <Value Type="Text">{UserID}</Value>
                   </Eq>

Maybe you are looking for

  • Printing a PDF from an iFolio

    Has anyone ever created an iFolio that has a PDF that you need to print? We can get the iFolio to open the PDF, but the PDF viewer that is part of the viewer does not appear to have any print capabilities.

  • BPEL Process Compilation

    I have simple process having file adapters for reading a text file and DB adapter for writing in a table. After compiling i am getting this message... <label> cannot be run/debug in this release. i have developed in soasuite10g... Any Clue on this...

  • Specific camera profile in camera raw

    I've just started using Lightroom 5 & Photoshop CC in Creative Cloud and understood that there would be a specific profile for my Panasonic GH3 in Camera Raw, that is I expected the programme to suggest default adjustments specifically tuned to the c

  • How add buttons in the botton of the Windows?

    Hi friends, I have a problem, How can I do to make appear a button in the bottom of the window (status_bar)? My component is called by another(like a search help - F4) and in the status bar (in the botton of the window), the opposite of title bar, I

  • Mirror Image on an Officejet 4620

    Where is the "horizontal flip" or "mirror image" application on my officejet 4620 all-in-one? I saw that someone else asked the same question and was directed to a link that said to click on the "features tab." There is no "features tab" under my pri