How can I retrive current user information in Content Server's presetation template?

We need to determine current user is the item's created user or not, so we want to know how to do this?
we can use <pcs:if expr="'Luke' == createdBy">....,but the 'Luke' is static string,
so, how can I retirve current user name in Content Server's presetation tempalte?

I don't know that this is possible in a direct fashion. (and, btw - thank you for asking this question. I realized we'll eventually need exactly the same thing so looking at this helps me as well :).
I'm quoting dev support from another posting on making community comparisons dynamic:
"This won't work because the pcs: tags are evaluated on the Content Server during the publish operation, resulting in a static HTML file that still contains the raw pt: tags. This same HTML file will be displayed in all of your communities. The pt: tags are evaluated on the portal server right before it returns content to the user, this allows the single HTML file to show a different name in each community. "
So the gist of things is that content server acts dynamic to you and I through the editing UI, but is really publishing static content. The values at run-time are not directly available to the PCS operators because...well...the PCS stuff is already done. It produced the static HTML showing up in the portlet.
There appear to be two immediate options:
Use the transformer tags to publish the user's name at run-time. Have the PCS and Transformer tags write their values into javascript strings and then compare this client-side. My response: "meh" Not for the purist, but I'm so far down the non-purist path at this point it just doesn't matter any more to me. Simple and to the point, but has known risks. Probably the easiest way to go.Publish your page as ASPX or JSP and then use the EDK server-side to manage the comparisons. Definitely more server-centric, but does require you do a quick bit of content server configuration. Just set the publishing target for the portlet to a directory on a web server and then set the publishing file extension to .ASPX or .JSP. I've done this with ASP and it works nicely. :)Not entirely the answer you or I were looking for, but I think it makes sense.
The PT transformer tags you'll want if you go with option (1) are:
Get the user's full name
<pt:userinfo xmlns:pt="http://www.plumtree.com/xmlschemas/ptui/" name="FullName" />
Get a custom user setting "myUserSetting"
<pt:userSetting name="myUserSetting" xmlns:pt="http://www.plumtree.com/xmlschemas/ptui/" />
Plumtree - am I off base on this one?
Thanks,
Eric

Similar Messages

  • How can I populate the users in the Directory Server?

    Hi all,
    I'm a new of Sun ONE Directory Server 5.2, I've just install a copy of it on Win2000 server and I have a small question to ask.
    How can I populate the users (This user can be use to login in to Sun ONE install messenger) in the Directory Server using the Directory server's admin console?
    Thanks in advance,
    Tuan Anh,

    Thanks Ramnath,
    I've read your suggest, but actually, I really wanted to know how to populate user and password. I've read some thing below in Sun ONE Directory 5.2 Getting Started Guide.pdf
    � o=userRoot
    During installation, a user database is created by default. The default name of
    the user database is o=userRoot. You can choose to populate this database at
    installation, or to populate it later.
    But I don�t know the related document, I have create successful user and pass by using admin console. But can not user this user to login in to Instant messenger.
    I'm looking forward to receive your help
    Tuan Anh

  • How can I move the user home folder from server to the mac

    I have a mac mini which i use for OpenDirectory, DNS and email. It is not a big installation it is for my wife and I.
    My wife logs in using an network account, and the user folder is saved on the mac mini. This gives me a few problems.
    a. If the server is upated and restarted, my wife has to relogin, or sometimes reboot the imac to get acces to the email etc.
    b. Having the home folder on a mac mini is causing the imac to be very slow
    c. Itunes can't synchronize to her Iphone. Connecint it gives her a message that synchronization has been turned off, and if i try to turn it on I get an error message saying somthing about shared access to the user folder.
    I do not use a network account and have none of these problems.
    So I have decided to try to put her user folder on the imac instead of on the server..
    But how do I do that?
    I still wan't her to use the network user account, but the user folder should be on her imac.
    Kind Regards
    Henrik

    I do not think you can move migration assistant for this situation.
    The mac mini is a osx snow leopard server, running openDirectory, DNS and E-mail, so its not like she is logging into the server.
    Her imac is bound to the OpenDirectory and she uses an openDirectory network user account to log in on her imac.
    But the user folder is saved on the server, which is very nice if you have a bigger server with faster disks, and more mac clients to log into.
    But in this situation she only uses her imac, and the performance of having the user folder on the server is not good enough, as well as the other problems I have with itunes sync etc.
    So I do not think it's a job for the migration assistant.

  • How to know the connected users to the Content Server Instance?

    Hello
    I need to know that in order to be able to run long tasks (specially with the archiver) in the lowest used hours. The number of connected contributors really represents the true use of the CS.
    I am lookin for this for 10g (UCM) and 11g (WCC)
    Thank you
    Carlos

    You could use some statistics such as netstat from the Apache web server (see e.g. here for more details). You could also use tools such as Google Analytics to monitor website traffic for you.
    However, even though there is certainly a correlation between the number of the connected users and the workload on the server, the real workload depends rather on the number and the type of operations that has to be performed (e.g. a checkin is more costly than just displaying a page, conversions might be more costly than anything else) and a single system user (such as running the Archiver some other batch processes) could produce much higher workload (due to missing waiting time) than a hundred of human users.
    Besides, the fact that at the moment the number of users is low does not necessarily mean that it will be low until the end of your batch job - unless you know the behavior of your users, which often is not a rocket science even without any analytic tool - e.g. a public organization operation in 5x8 working regime (let's say from 8am to 6pm) won't produce much human generated workload in quiet hours on week days or on weekends. If you operate in 7x24 mode with unpredictable user's behavior, none of such tools will help you anyway.
    Because, what you really need to monitor is not web stats, but user experience. Oracle has a tool for that - it's called Real User Experience Insight. In addition to monitoring, it can alert you, or your application (even a 3rd party via SNMP traps). If you want to automate also recovery (for 11g), you could expose private cloud functionality as available in via the Enterprise Manager and management packs - e.g. you could start a new server in the cluster, throttle resource to your batch jobs, etc. Unless you need to comply with strict SLAs, this kind of a solution would probably be an overkill, but it is possible.
    This reasoning also shows what questions you should ask to choose the right solution - if no one cares that the performance goes, why should you? If someone cares, you will know how big problem it is - you may just add a new node to the cluster to increase the performance, use free tools or your common sense to re-organize the batch jobs to distribute the workload more evenly, or if it is a real issue, you may search for some sophisticated enterprise-level solution.

  • How to get the current user logon to portal?

    Hi Gurus,
    How to get the current user who logged into portal.
    I have a webdynpro requirement where in which I have to get the current user id who loggedinto portal which will be the input parameter of the BAPI(adaptive RFC model) which will return me employee number of the particular user.
    Can anyone send me the code to retrive the user id through webdynpro application..........
    Pts will be rewarded for useful inputs......
    Thanks in Advance,
    Dharani

    Hi Dharani,
    Using UMEfactory u can do that...
    1. create one input field,
    2. create one attribute called Uid
    3. assign Uid attribute to the input field
    4. type the following code in Doinit() method
                String uid = wdContext.currentContextElement().getUid();
         try {
         IUser user = UMFactory.getUserFactory().
         getUserByLogonID(uid);
         String userName = user.getDisplayName();
         } catch (UMException ex) {
          e.toString(); 
    5. after that go to Portal create one iview assign to particular user. then u get into the user details...
    thats it
    Regards,
    P.Manivannan

  • Displaying the current users information instead of the value of the person who completed the form in the first place.

    I found this fantatic post regarding querying the user profile service 
    http://blogs.technet.com/b/anneste/archive/2011/11/02/how-to-create-an-infopath-form-to-auto-populate-data-in-sharepoint-2010.aspx?pi47623=2#comments 
    However i have an issue whenever the form is opened again either to view or edit, it displays the current users information
    instead of the value of the person who completed the form in the first place.
    Please help me, I'm turning more grey each minute

    I think it is how the current user information is stored based on your logic.
    You might be quering current value again when loading the form (Form load Rule).
    you have to tweak your logic, after the user submits the form you can set the username to the one who saved it.
    or in form load, write a logic to see if the form was not saved before and then query the username( by using internal field like "formstatue")
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if the reply helps you

  • How can I have multiple users on iTunes (in order to connect to a shared office iPad)?

    How can I have multiple users on iTunes (in order to connect to a shared office iPad)? Currently each of us has our own iTunes account, so I've made an "all office" Apple ID. However, I can't seem to get two different accounts (my personal and the office) to work on my machine. Even when I login as "the office", my personal library is still showing. Additionally, when I try to setup with a first-time use in iTunes, I get an error that I don't meet the minimum age requirement - no matter what birthdate I enter!

    The library exists regardless of which user is logged in.
    The only way around that is to create different user accounts on the computer.
    There is no way to have 20 unique iTunes users access a shared iTunes under a single login on the computer.

  • HT201342 How can I change the USER of my i-cloud address? My 12 year old set up the e-mail account and used a silly user name (like: turtle!!). I would like to have an icloud e-mail account but under my own user name. The other /old name can be deleted?

    How can I change the USER name of my i-cloud e-mail account? It was set up by my son and he used a silly / embarrassing user name. I would like to change this name OR set up another i-cloud e-mail account under my own name / reference. Help?

    iCloud email addresses can't be changed or deleted, but you can set up an alias namethat he can use which will be linked to his current iCloud account and will receive email in the existing iCould inbox.  This guide explains how: http://support.apple.com/kb/PH2622.

  • How can we retrieve the Payload information from B2B

    Hello,
    We are trying to send the payload information back to the client for a failed BPEL Transaction from B2B's b2b_instancemessage view. We are enqueing messages to IP_OUT_QUEUE using BPEL. We see the payload coming correctly in the B2B Business Message Reports. But we don't see the payload coming in the b2b_instancemessage view for failed B2B transactions. How can we see the payload in b2b_instancemessage view for failed B2B transactions as well? or How can we retrieve the Payload information from B2B?
    Any help is greatly appreciated! Thanks. - Sam.
    Edited by: user12049162 on Dec 4, 2009 2:04 PM

    I am not sure about the PDK API to get the group name. But using LDAP API its easy to get the User Group.
    If you find the answer to get the group name using PDK API, Please update in forum. It will really help others.
    --Balaji S                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How can I find out user id who has deleted payment order

    Issue : After payment run, the required information has been sent as Idoc to the bank. So, we know the payment order number.   We observed that another payment run also has picked up this vendor invoice and made payment.
    Usually Payment Sent will be marked X until the related information comes in the form of bank statement upload and this amount gets cleared.
    We noticed that bank has made two payments for this amount to this vendor on different dates :- a) when the payment order supposed to be paid as per the payment terms and b) when second paymnet run paid the amount [ this time it got paid directly as there is long due amount ].
    From SAP APP angle, both the payment run worked fine and also the calcaltion of payment terms as well.
    So, we come to conculsion that someone has deleted the payment order from the system. Thats the reason this invoice got picked up by 2nd APP and paid the amount.
    Where we could not find the related entry in REGUH/REGUP tables for this payment order and no document changes.
    Question: How can I find out user id who has deleted payment order. Appreciate any clue / answer for this issue please.
    Thank you
    Sri

    Hello,
    Not sure about deletion logs. =/
    Idea:
    What if an error occured during the first payment? Have you checked sm13 to check if any update termination occured in the payment program?
    Regards,
    Renan

  • Purchased CC for business and can only assign one user. How can I assign more users to have it on all 4 computers in the office?

    Purchased CC for business and can only assign one user. How can I assign more users to have it on all 4 computers in the office?

    Hi there
    You would need to purchase a seat for each user.
    What you currently have is 1 seat = 1 user.
    Kind regards
    Bev

  • How to list the current user in sqlplus and how to switch to another?

    Assume I am in a sqlplus sesion.
    How can I display the user with whom I am currently working?
    And how can I switch (without leaving the sqlplus session) to another
    user aaa with pw=mypw?
    Peter

    By using host command
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.1.0.5.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> host su oracle
    Password:
    [oracle@backup root]$ exit
    exit
    SQL>From Documentation:
    *HOST [ command ] - Execute host commands*
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14195/sqlqraa.htm#sthref1972
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com

  • How can I get the disk information in Solaris 9

    I am new to Solairs9. I use the format utility to list my partitions, but there are many unassigned partitions. I pasted the format response below:
    # format
    AVAILABLE DISK SELECTIONS:
    0. c1t1d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
    /pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000011c6413e10,0
    Specify disk (enter its number): 0
    format> partition
    partition> print
    Current partition table (original):
    Total disk cylinders available: 14087 + 2 (reserved cylinders)
    Part Tag Flag Cylinders Size Blocks
    0 root wm 302 - 13482 63.96GB (13181/0/0) 134129856
    1 swap wu 0 - 301 1.47GB (302/0/0) 3073152
    2 backup wm 0 - 14086 68.35GB (14087/0/0) 143349312
    3 unassigned wm 0 0 (0/0/0) 0
    4 unassigned wm 0 0 (0/0/0) 0
    5 unassigned wm 0 0 (0/0/0) 0
    6 unassigned wm 0 0 (0/0/0) 0
    7 home wm 13483 - 14086 2.93GB (604/0/0) 6146304
    The part number from 3 to 6 are unassigned. What does this mean? How much space of these unassigned partitions? How can I mount these unassigned partitions to my local directories?
    Thanks.

    "+How can I get the disk information in Solaris 9+ "
    This was cross-posted to the Solaris 9 forum as well.
    http://forum.java.sun.com/thread.jspa?threadID=5223643

  • How can I get a user manual for my inherited Blackberry ...

    How can I get a user manual for my inherited Blackberry Curve 8330?

    Hi and Welcome to the Forums!
    Here is a link to the manuals:
    http://na.blackberry.com/eng/support/docs/subcategories/?userType=1&category=BlackBerry+Smartphones&...
    Cheers!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • How to retrieve the current User using PL_/SQL code?

    Hi,
    How can find the current logged user within a Dynamic Page using PL/SQL code?
    Thanks.

    Hi,
    There is a function wwctx_api.get_user which returns the logged in user. You can use this in your plsql code.
    Thanks,
    Sharmila

Maybe you are looking for

  • Can't watch purchased movies on Apple TV

    I purchased movies on Apple TV but I can't watch them through Apple TV, only through my computer. They are in 'Purchased on Apple tv" on iTunes but when I browse Apple TV, they are nowhere to be found. Do I need to transfer them somehow somewhere? Th

  • Photo Sharing Crashes in Lion

    Upgraded both my MacBook Pro and iMac this morning and Photo Sharing in iPhoto no longer seems to work. I can see my MBP photos from the iMac but after about a minute, the MBP photos disappear from the "Shared" menu in my iMac iPhoto and the MBP iPho

  • Systemd-hostnamed.service fails to start

    I'm finding the systemd-hostnamed.service isnt working $ sudo systemctl --state=failed [sudo] password for kevdog: UNIT LOAD ACTIVE SUB DESCRIPTION ● systemd-hostnamed.service loaded failed failed Hostname Service LOAD = Reflects whether the unit def

  • Adobe Forms : barcode with Spanish Characters

    Hi All,       We have  requirement to print certain texts in Barcode format. This text can be in any language. Now the problem is that its not printing Spanish Characters. i.e. máximo  is printed as mximo in barcode format. I have tried using CODE128

  • Opening a document from a Java app

    I need to open a document from my Java app. It is a .rtf file and I would like it to open with the system associated application for rtf files. How should I do that? I have tried to figure out the Runtime.exec(), but it doesn't do what I need. I have