Groovy expression for fetching current user details

I have created a view object that retrieves user details from the database. Also for dynamically getting the details of the current user logged in i have defined a bind variable currentUser and the default expression is adf.context.securityContext.userName.When i give the fixed literal value as user name the details are fetched. However details are not fetched when i use the groovy expression. Can i get some help on this please.
Regards

details are not fetched when i use the groovy expressionby using groovy you cant the details
i cant get you, is this you question?
some hints, here
groovy expression as default value in a Entity's Field Problem

Similar Messages

  • Microsoft Word Has Not Been Installed for the Current User

    Hi, everybody
    I'm just starting our attempt to put together ZfD app packages for MS Office 2007. I've tried 2 different route with poor results for each. I'm looking for guidance and suggestions and, hey really, the simple final solution. :)
    Objectives: Each app package will install locally one of the Office apps (e.g., Word) if it is not installed and then launch it, otherwise it will launch it. It gets installed locally to the C: drive using all the MS default choices, but runs from the desktop ZEN/NAL shortcut. All desktops are XP, not Vista or W7.
    Routes tried and failed...
    1) Simple app, uses distribution and run scripts to figure out if already installed, then installs using network shared drive and config.xml file for just the one app. The result ought to work -- no particular error in the package, those are fixed -- but what happens is something different each time with the MS setup.exe, and it never does complete without its own error (various and different each time). So, this appears to be completely unreliable because launching MS's setup.exe from a simple app is unpredictable and incomplete.
    2) Snapshot of a successful setup.exe and config.xml install. This ALMOST works... well it does in fact work but the snapshotted app gives an error once it finishes launching -- "Microsoft Word Has Not Been Installed for the Current User" -- and exits. From the research I've done on this message, the MS program sees the "wrong" Windows profile on the destination environment, compared to that in the snapshot, and figures it's now been installed from a bootleg copy of Office 2007.
    At this stage all I can think of is expletives. We've paid for everything, I've followed all the usual and customary steps, played by the rules, been polite (and also used the necessary computer swear words), and now I just want to insult everyone in Microsoft's marketing department for ruining everyone's life yet again. Can't we just do this, is it too much to ask!?!
    Please help me. What is really going to work for distributing and maintaining Office 2007 apps using our ZfD environment? ALL USEFUL SUGGESTIONS WELCOME. Thank you. Bless you.
    -Kent S.
    Be strong as a ship and wise as a whale

    These questions are really best in the Microsoft Office Forums.
    These are MS Office Questions not ZEN Questions.
    Novell did not design Microsoft's Office Install.
    I have nothing against snapshots, but it does not work great with the Office
    installs, which you yourself know since you are posting here with problems
    based on that.
    And your other method you are trying with the break out is not working well.
    We also know that from experience.
    We can tell you that the way most people install it and the way most people
    succeed doing it, is by doing it the way recommended and designed by
    Microsoft.
    ZEN does that just fine.
    Craig Wilson - MCNE, MCSE, CCNA
    Novell Knowledge Partner
    Novell does not officially monitor these forums.
    Suggestions/Opinions/Statements made by me are solely my own.
    These thoughts may not be shared by either Novell or any rational human.
    "KentFSmith" <[email protected]> wrote in message
    news:[email protected]...
    >
    > Thank you, Grimlock (-Grimlock?-)
    >
    > Through a google search I encountered a very close suggestion, and the
    > poster said they couldn't remember the name of a MS utility but that
    > there was one that would break out the individual MSIs from the Office
    > 2007 setup.exe bundle. The dependent app appears to be a simple and
    > possibly elegant solution, but without a good way to break out the MSIs
    > I don't see how to do anything other than with a config.xml ('Config.xml
    > file in the 2007 Office system'
    > (http://technet.microsoft.com/en-us/l.../cc179195.aspx)).
    >
    > Do you know of that utility and where I can find it?
    >
    > There is a lot of history here now of just doing the individual
    > applications. Everyone gets Word and Excel, but much fewer get
    > PowerPoint and Access. All other reasons aside, a compelling one is the
    > reduced number of help calls to the Help Desk here. Occasionally we
    > also just run the whole Office install for someone who needs some of the
    > odd utilities, but that is easily cost-justifiable for us to break them
    > out as exceptions. Otherwise, we focus 90% of our support on just Word
    > and Excel and it pays off nicely.
    >
    > If we switch to putting full Office 2007 on all PCs then there may be a
    > better approach that include other tools than ZfD, such as the fact that
    > we replace 1/3 of all PCs in the organization each year (so that no
    > hardware is more than 3 years "behind"). We could put 1/3 of all Office
    > 2007 installs into the new PC image. But we still need to support all
    > the use of the apps after the install, so ZfD MUST work well, it simply
    > MUST work well or we're screwed, to use the vernacular. Also, just
    > switching from what we've been doing for years -- single app orientation
    > -- means introducing new-ish issues that have to discover and explain to
    > our comrades, and to adjust our orientation with unknown future costs.
    >
    > But that may end up being the simplest adequate solution. And that's
    > what I want.
    >
    > -K
    >
    > grimlock;1883526 Wrote:
    >> Craig Wilson wrote:
    >> > You should really focus on #1.
    >> > Snapshot is not the way to go.
    >> >
    >> > Details about what is Not working or what random behavior may help
    >> folks.
    >> > Ask in the MS forums may help too. dont' mention zenworks.
    >> > Just say you are installing as Administrator from a share and getting
    >> these
    >> > errors.
    >> >
    >> > While not 100% accurate, it should be good enough to get some good
    >> feedback.
    >> >
    >>
    >> Nor is installing 1 app at a time. Install the whole suite, have an
    >> icon for each app that runs the exe for that app with a dependency on
    >> the another app that points to the installer msi.
    >>
    >> If any user runs any app, it will run if the executable is there
    >> (meaning it's been installed). If the executable is not there then it
    >> calls the dependent application (the installer app) and installs it,
    >> and
    >> then runs it.
    >
    >
    > --
    > KentFSmith
    > ------------------------------------------------------------------------
    > KentFSmith's Profile: http://forums.novell.com/member.php?userid=2927
    > View this thread: http://forums.novell.com/showthread.php?t=391573
    >
    >

  • IProcurement is not a valid responsibility for the current user. Please contact your System Administrator.

    Hi All,
    When I am trying to click on the 'iprocurement Home page' menu in the iprocurement responsibility getting the below error message in R12;
    "iProcurement is not a valid responsibility for the current user. Please contact your System Administrator."
    Can any one let me know how to resolve this?
    Regards
    Joseph

    Hi Joseph,
    I am assuming that the user actually has the iProcurement responsibility assigned to them. If so, try the following solution from note 1560400.1:
    1) Logon with System Administrator responsibility
    2) Navigate to Profile > System, click on User and enter the user name
    3) Search for profile 'Applications Start Page'. Delete the value set at user level and save
    4) Retry
    Regards,
    Cheryl

  • Re:Groovy Expression for time

    Hi All,
    Iam using Jdeveloper 11.1.2.3.0 ,my requirement is that :Groovy expression for time
    Can any one send me the above requirement
    Thanks,
    Sandeep

    What time?
    Yesterday noon?
    Now?
    You need to give us a use case.
    Check out GroovyCookbook: Dates and Times
    Timo

  • Functional Administrator is not a valid responsibility for the current user

    Hi,
    I have sysatem administrator responsibility as I am DBA on PRD. I assign myself functional administartor responsiblity. Now when i access fucntioanl administrator responsiblity,
    I am getting error as
    Functional Administrator is not a valid responsibility for the current userPlease help as I need to look at SSHR page for the use who is getting error while laucnhing
    Employee Self Service >>> My Benefits Data >>> Financial Profile
    Error: the requested URL was not found, or cannot be served at this time
    Please help for how I can access functional administrator resp to work further on users issue

    Please post the details of the application release, database version and OS.
    Have you granted “Security Administrator” role to your user? If not, please do so and check then.
    Also, check Apache log files for any errors.
    Thanks,
    Hussein

  • FM for populating internet user details in the internet user tab of a BP

    Hi  Everyone urgent requirement ,
    I have a unique requirement , I have created a BP and assigned it with internet user role which as usual has Internet user TAB where a Internet user details have to be assigned . I have a creted a user also but can some one tell me which FM i can use to link the user created with the BP. 
    any help or suggestions are highly appreciated and will reward the points  .

    Hi Ram,
    Sorry for the delay but I was on holiday . If you still want the solution here it is :
    FM that has to be used is : COM_BPUS_INTERNETUSER_CREATE for internet user creation .
    And to update the internet user details in the internet user tab use : CRM_BUPA_CREATECENTRALPERSON .
    Regards,
    Reddy.

  • Customize view list in share point for the current user ?

    hi, 
    So i have teo create a view for current user , and to do that i have an item named : "assigned to" so when i create my view i put : "assigned to" = [Me], and whene i check y list viw it'snt  applayed ? 
    is there any one who can tell me what's the problem , 
    thank you 

    May be this is what you are looking for:
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/0ec4a7b9-7b23-4b26-9e7e-bb4ec3f10afe/disable-all-day-event-in-calendar-list?forum=sharepointcustomizationlegacy
    http://ukreddysharepoint2010.wordpress.com/2012/01/19/how-to-hide-all-day-event-recurrence-and-work-space
    The script is:
    <script type=”text/javascript”>
    function HideField(title){
    var header_h3=document.getElementsByTagName(“h3″) ;
    for(var i = 0; i <header_h3.length; i++)
    var el = header_h3[i];
    var foundField ;
    if(el.className==”ms-standardheader”)
    for(var j=0; j<el.childNodes.length; j++)
    if(el.childNodes[j].innerHTML == title || el.childNodes[j].nodeValue == title)
    var elRow = el.parentNode.parentNode ;
    elRow.style.display = “none”; //and hide the row
    foundField = true ;
    break;
    if(foundField)
    break ;
    HideField(“All Day Event”);
    HideField(“Recurrence”) ;
    HideField(“Workspace”) ;
    </script>
    You can also use this webpart:
    http://officetoolbox.codeplex.com/

  • ADF Groovy Expression for calculation

    Hi,
    I am using JDeveloper 11gR2. For a transcient attribute in a VO, I must add an expression that will calculate and return a value according to a business rule.
    I.e. if 'Standard' then column a * 0.3 or column b * 0.3
               elsif 'Premium' then column c * 0.3
               else 'Luxury' then column d * 0.3 Of course, using the appropriate Groovy expression. Does anyone have an example I could try?
    Thanks!
    Edited by: user545194 on 02.02.2013 07:28

    for example if att is the attribute that you want to calculate and it depend on val attribute
    the groovy exp is done on att
    if(val=='Standard') return a * 0.3
    else if(val=='Premium') return c * 0.3
    else if(val=='Luxury') return d * 0.3
    you must add attribute val, a, c ,d to the dependent attribute
    hope it helps
    Fakhri

  • Groovy expression for error message in validation

    hi...
    using groovy expression i want to display a dynamic error message...(ie.i have a date field the date cant be a past date..if i enter the past date like (02-04-2012 )the error message should display with this date)

    For a validation rule on an entity attribute, you can use a Groovy expression to decide whether
    an error or a warning message should be displayed using the following expression:
    adf.error.raise("THIS_IS_AN_ERROR_MESSAGE")
    adf.error.warn("THIS_IS_A_WARNING_MESSAGE")
    In your case, you can customize the message and access the date attribute in the message as source.HireDate(Assuming HireDate is the date attribute)
    Hope it helps.

  • Expression for the current hour

    I'm trying to assign a lead based on the current time and a user's hourly shift availability - is this doable? I was thinking to use custom fields that track the user's hourly shift in a 24 hour day (e.g. shift start and end fields: for example 8am to 5pm EST, using a 24 hour clock) - maybe I should store as an integer field to better make the comparison? What is an expression to extract the current timestamp's hour so I can compare?

    I think I got it tochar(timestamp,'hh24')

  • Execute Web Template without personalization for the current User

    Hi,
    I executed a BI Web Template, on SAP Enterprise Portal, which has been provided as a Portal content on the detailed navigation section.
    Then, I navigate within the template, and I saved a personalized query view (the status of navigation of the report - applied filters, selected characteristics and key figures), through the button "Save Personalization" (standard command "SAVE_PERSONALIZATION")
    Now, each time the same User executes the same BI query from the detailed navigation,
    he get, as result, the personalized views.
    How to reset the Portal Content to the original query which has been built on Query Designer? (meanings, as it was before pressing the "Save Personalization" button)
    Moreover, is there a standard command for WT buttons like "Back to Start" (which not apply on this), to reset the original state of the query.
    Thanks a lot for your help.

    Hi,
    try useing parameter
    &USE_PERSONALIZATION=false
    when calling the WebTemplate
    regards johannes

  • Groovy expression for column total not working

    I want to show the column total. I have created a view accessor on the view object and a new attribute of Transient type and set its expression to AccessorName.sum("columnName").
    But its values is never calculated when I test the view object.
    Any help on this is appreciated.
    PS: The total is calculated correctly when the view object does not have any bind variable. Once I add a bind variable the column total is not being calculated. I have verified this. Any help on how to handle this issue ?
    Using JDev 11.1.2.3

    If you could have elaborated a bit more it would have been useful , but apparently i can think of few thing which you could double check.
    1. The transient attribute type is Number.
    2.If the column exist on the same view object then you should write sum("ColumnName") else you have to create a view accessor on the VO and set its expression to AccessorName.sum("columnName").
    Hope it helps !!
    Else you could elaborate a more for us to help
    Thanks
    Soumya.

  • XPath expression for fetching element names & attributes

    Hi out there!
    I�m trying to get a result set out of a xml schema, using XPath. The problem is, that any expression gets just a whole node set back, as it seems. The result I�d like to get would be the following. Imagine I got a schema like this:
    <schema xmlns="http://www.w3.org/2001/XMLSchema"
    xmlns:r="http://recipes.org"
    targetNamespace="http://recipes.org"
    elementFormDefault="qualified">
    <element name="recipe">
    <complexType>
    <sequence>
    <element name="title" type="string"/>
    <element ref="r:ingredient" minOccurs="0" maxOccurs="unbounded"/>
    <element ref="r:preparation"/>
    <element name="comment" minOccurs="0" type="string"/>
    <element name="nutrition">
    <complexType>
    <attribute name="protein" type="r:nonNegativeDecimal" use="required"/>
    <attribute name="carbohydrates" type="r:nonNegativeDecimal" use="required"/>
    <attribute name="fat" type="r:nonNegativeDecimal" use="required"/>
    <attribute name="calories" type="r:nonNegativeDecimal" use="required"/>
    <attribute name="alcohol" type="r:nonNegativeDecimal" use="optional"/>
    </complexType>
    </element>
    </sequence>
    </complexType>
    </element>
    </schema>
    Now, when I`m refering to the element <attribute name="protein" type="r:nonNegativeDecimal" use="required"/>, I would like to get all ancestors of it, which is not a big issue at all, but i`d just like to get their names and attributes, if they have some. So the result should be something like:
    <element name="recipe">
    <complexType>
    <sequence>
    <element name="nutrition">
    <complexType>
    </complexType>
    </element>
    </sequence>
    </complexType>
    </element>
    Any ideas anybody?
    Thanks in advance, Jens

    Well, I would use the org.apache.xpath.XPathAPI class and parse the input XML into a DOM document., and then utilize the single xpath expression //attribute[@name=protein]/ancestor::* to recover all ancestors (in a directal-tree-traversal order) of any node called "attribute" and with attr "name=protein" .
    Could it be?

  • Query to get objects list for which the current user has 'SELECT' privilege

    Hi,
    I want to get tables and views list for which the current user has 'SELECT' privilege excluding sytem tables and views. The privilege information for the current user is scattered in more than one system views. I have following system views
    USER_TAB_PRIVS_RECD - Object grants for which the current user is the grantee
    ROLE_TAB_PRIVS - describes table privileges granted to roles. Information is provided only about roles to which the user has access.
    If the object privilege is granted explicitly like "GRANT ALL ON TABLE_NAME TO "USERNAME" then this privilege entry goes to USER_TAB_PRIVIS_RECD
    If the object privilege is granted by ROLE. Role is created with certain object privileges. this role is assigned to user "GRANT ROLE_NAME TO "USERNAME"", then this entry goes to ROLE_TAB_PRIVS
    From these findings, I have composed below query
    (SELECT DISTINCT TABLE_NAME FROM USER_TAB_PRIVS_RECD) UNION (SELECT DISTINCT TABLE_NAME FROM ROLE_TAB_PRIVS WHERE PRIVILEGE = 'SELECT')
    Have I got user's all prvilege details? should I look some other system views?
    How to exclude system table privileges details?
    (SELECT DISTINCT TABLE_NAME FROM USER_TAB_PRIVS_RECD) UNION (SELECT DISTINCT TABLE_NAME FROM ROLE_TAB_PRIVS WHERE PRIVILEGE = 'SELECT' AND OWNER NOT IN ('SYS','SYSTEM') Is this right?
    What about Public role in Oracle? Should I consider public role here?
    Oracel Version :11g
    I want make this query to work on Oracle 8i or above version
    Thanks

    >
    I want to get tables and views list for which the current user has 'SELECT' privilege excluding sytem tables and views.
    >
    You will need a hierarchical query to do that.
    Try this script for Listing privileges recursively for Oracle users
    http://www.adp-gmbh.ch/ora/misc/recursively_list_privilege.html

  • Need Select statement for fetch the details

    Hi
      i want to fetch particular customer wise sales orderds and that sales order No  and  date of sales order was created..  and  that sales order related PO No  and Materials ..
    for this..   how can i write an executable programm.. is it needed to  define seperate  internal tables or single internal table is enough  ?
    what is the select statement for fetching  all these details..
    any help will be appriciated
    Thanks
    Bbau

    custmer master table is KNA1  knb1  knbk
    sales data tables r  VBAK VBAP VBEP
    Material data  MARA, MARAC, MARD
    PO RELATED ekko  ekpo  eket
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Feb 13, 2008 3:04 PM

Maybe you are looking for