Retrieve custom property for a user

Within a custom portlet, how would I obtain custom properites of the current user viewing the portlet? For example, if a user had property "Favorite Food" populated and I wanted my portlet to display recipes using his/her favorite food.

I finally found it myself. Here is what I was originally looking for...
DimoPortletcontext AsPlumtree.Remote.Portlet.IPortletContextDimsEmail AsString
oPortletcontext = Plumtree.Remote.Portlet.PortletContextFactory.CreatePortletContext(Request, Response)sEmail = oPortletcontext.GetRequest.GetSettingValue(Plumtree.Remote.Portlet.SettingType.UserInfo, "Email"))

Similar Messages

  • Retrieve custom property for a community

    How would you retrieve a custom property set on a Community? Is there an equilavent PT tag similar to the "pt:userInfo" tag?
    Any info would be appreciated!--jason

    We went a different route to obtain custom properties. However, when using the QueryObjects method, you have to pass it the folder id. How would go about retrieving the current folder id?
    Thank you again!--JasonFTN Financial
    Here is the code we are using:
    Dim oPortletcontext As Plumtree.Remote.Portlet.IPortletContextDim oPortletManager As Plumtree.Remote.PRC.IObjectManagerDim oExtendeddata As Plumtree.Remote.PRC.IExtendedDataDim oQuery As Plumtree.Remote.PRC.IObjectQueryDim oRow As Plumtree.Remote.PRC.IObjectQueryRow
    oPortletcontext = Plumtree.Remote.Portlet.PortletContextFactory.CreatePortletContext(Request, Response)
    oPortletManager = oPortletcontext.GetRemotePortalSession.GetObjectManager(Plumtree.Remote.PRC.ObjectClass.Community)
    oQuery = oPortletManager.QueryObjects(353)oRow = oQuery.GetRow(0)oExtendeddata = oRow.GetExtendedData
    response.write(oExtendeddata.GetValue("Reference Number"))

  • SimpleSearch can only retrieve documents(reports) for enterprise users!!

    Good Day Everybody,
    i'm using SimpleSearch to retrieve all reports for specific users, the problem is that i'm only able to retirve reports for enterprise users and i can not get reports for domain users, anybody knows why?? or there is another way to do so??
    GetDocumentList is working fine but it's only retirves reports for the loged in user only....
    also i would like to extacrt all useres which has permession to reports, so would you please give me a hand of help and send me how to do!!!
    kindly find below the code i'm using to retrieve all reports for specific users:
    //After creating connection, seesion and login using administrator enterprise user
            SimpleSearch mySearch = new SimpleSearch();
            mySearch.InAuthor = txtUsername.Text;//.Trim();
            //mySearch.InName = "";
            mySearch.BeginDate = System.DateTime.Now.AddYears(-2);
            mySearch.BeginDateSpecified = true;
            mySearch.ObjectType = "documents";// "documents";
            BusinessObjects.DSWS.BICatalog.SortType[] mySort = new BusinessObjects.DSWS.BICatalog.SortType[1];
            mySort[0] = BusinessObjects.DSWS.BICatalog.SortType.NAMEASC;
            BICatalogObject[] searchResults= null ;
            searchResults = boCatalog.Search(mySearch, mySort, null, null, InstanceRetrievalType.WITHOUTINSTANCE);
            if (searchResults != null)
                foreach (BICatalogObject myBOCatObject in searchResults)
                    Response.Write(myBOCatObject.Name + "----" + myBOCatObject.UID + "" + myBOCatObject.CreationDate + "--" +"<BR>");
            else
                Response.Write("no documents");

    Which version  are you using?
    BICatalog is pretty limited, and has been deprecated for more recent versions.
    Sincerely,
    Ted Ueda

  • How to add a custom property to the user's master record?

    Hello,
    I would like to add a custom property to the user's master record which is unique to our company (User's region).
    Is that possible? and if yes, how?
    I'm a bit new to BW so a step-by-step procedure will help
    Roy

    The user names are stored in table USR01. IN that table see if you can add a field to have region. Extract this table and store it in User info object in BW.
    You will need a ABAP person to do this, if you are new to SAP.
    Ravi Thothadri

  • How to retrieve access rights for an user/usergroup ?

    Hello everybody.
    I'm working on BO XI 3.1. And I have to develop with the .NET SDK package an application that retrieves the following data :
    - the access rights to WEBI application and properties for each user/user group.
    - the access rights to each folder and properties for each user/user group.
    etc
    The idea is to retrieve for an user/usergroup the access right on each property of WEBI application and softwares. and same thing for folders....
    I'm looking at the .NET SDK package contents but it takes me a lot of time, even too compared to my deadlines. So I'm looking for help.
    Does anyone have an idea about class of objects, properties and methods to use ?
    Thank you in advance for your help.

    Thanks for these samples.
    The list of user and usergroups is very interesting to audit CMC but my need is different : for example, I'm looking a method to retrieve the level access (full control, no access, ...) of an usergoup on each webi's property. The reason ? To know for example which usergroups have fullcontrol access on the right name "edit SQL" ?
    I think it's hard to retrieve but very interesting to audit CMC...

  • How to create a custom property for web dynpro iView - please respond

    Hi,
    I have to create a custom iView property for a web dynpro Java Application.  I am searching forums and sap help and not able to find any documentation on this. Please post your thoughts here...
    Thanks
    Srini
    Edited by: Srinibapati on Sep 5, 2009 3:56 PM

    No One replied and closing this thread...........I still don't have answer for this.
    Thanks.
    Srini

  • How to access custom property for attribute and control in .vm file?

    Hi,
    I have created custom properties in OPM for attribute and apply also that properties to attribute.
    But if how to access that value in .vm file?
    I accessed using
    $attribute.getProperty("ScreenProp", "default value")
    but it's not working but same is worked for screen custom property

    $control.getProperties().get("PropertyName") works for custom properties on a control
    If you output $control and $control.getProperties() to the html you can lookup the API for the used classes.
    I can't give an example of the html because it's stripped in this forum
    Edited by: Peter van de Riet on 20-mei-2011 14:18

  • Read navigation url OR Custom property for a term in Taxonomy using Javascript

    Hi All,
    we have followed the below steps to retrieve the managed metadata terms.
    http://sympmarc.com/2013/10/11/spservices-stories-18-retrieve-managed-metadata-using-javascript-and-spservices/
    and we have achieved and constructed the same through JavaScript.
    Below is the screen shot.
    Issue:-
    we are unable to retrieve the term navigation url. Can you please help us to retrieve navigation url OR Custom property.
    Thanks in Advance.

    Hi,
    According to your description, you want to manage term custom property in SharePoint 2010.
    As you know, there is no OOTB method to meet your requirement.
    If you want to do it without coding, you can take a look at this tool about managing term store:
    http://www.metavistech.com/product/term-store-manager
    As this is a third party tool, we are not sure whether it has risks, please use with caution.
    Best regards
    Patrick Liang
    TechNet Community Support

  • SharePoint 2010 UI Interface to add Custom Property for a Term, similar to SharePoint 2013 .

    Hi All,
    We have a requirement to capture additional metadata for each Term (Ex: Requested for, Requested date, Requested by). these properties are not available in Sharepoint 2010 OOTB but can be acheived using Term.SetCustomProperty(). where as in SharePoint 2013,we
    have option to add/update/delete custom Properties in Term Store management window(Custom propertiesTabs) , which is OOTB. 
    Just want to understand is  there any way to get that Custom Property Tab interface in 2010. Or any other way to manage(Add/Update/delete) custom properties from the browser itself. 
    Is there any codeplex/other solution which will  allow us to manage properties from browser with out doing the code.
    Any suggestions on this would be helpful
    Thanks in advance
    ragava_28

    Hi,
    According to your description, you want to manage term custom property in SharePoint 2010.
    As you know, there is no OOTB method to meet your requirement.
    If you want to do it without coding, you can take a look at this tool about managing term store:
    http://www.metavistech.com/product/term-store-manager
    As this is a third party tool, we are not sure whether it has risks, please use with caution.
    Best regards
    Patrick Liang
    TechNet Community Support

  • How can I create a custom dock for all users?

    Hello,
    I would like to create a custom dock for everyone that uses a certain Mac. I have found a bunch of stuff, but it is outdated. Most of the tutorials are for 10.4 or 10.5. I am using 10.7.4 and I have found nothing regarding that. Can anyone point me in the right direction?
    Thanks in advance

    Hello,
    I am not sure how I wound-up in the server forum. I am using the desktop version of OS X 10.7.4.
    Thanks

  • Custom property for file in File System Repository

    Hi,
    I have create a folder on KM using File system Repository access a network path, but facing a problems that the folder can't support custom property and can't classifiable.

    hi
    http://help.sap.com/saphelp_nw04/helpdata/en/69/d96b83a84611d5993600508b6b8b11/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/43/2e6868c6ce72408d982213e314fda1/content.htm.<b>please don,t forget points</b>
    with regards
    subrato kundu

  • I CAN NOT BELIEVE APPLE OFFERS NO PHONE CUSTOMER SERVICE FOR ITUNES USERS!

    I have been unable to access my purchased music on my new computer (the old one crashed before I could back up my purchased itunes music). I clicked "check for purchases," and received one of several television shows I purchased and NONE of the dozons of songs and albums. When I clicked "check for purchases" again, a box came up that said "all purchases have been downloaded for this account." Does Apple really not allow you to recover your purchased music in this situation? Does Apple really put profits ahead of customer satisfaction to the extent that they've eliminated phone customer service for itunes altogether? Well, I know the answer to the second question from research is yes. How sad. But can anyone help me with the first Q? Is all my purchased music really gone permanently? Thanks. -Matt

    Hi, Matt.
    Apple's policy is clear: iTS purchases can be downloaded only once. It is your responsibility to make back-ups.
    That being said, at their discretion they have made one-time exceptions to this policy. You can ask for an exception by submitting the form at the bottom of this page:
    http://www.apple.com/support/itunes/store/backup/
    Good Luck! But whatever the response from Apple, remember:
    Your music is valuable - please back it up!

  • Unity 3.1(5) prblm retrieving voice mail for single user

    I have a customer with one user who cannot retrieve their voice mail new / saved. When she logs into via their extension it prompts for option 1 new 2 saved. Taking option 1 and it loops back to the begining. I have refreshed and sync MWI and also checked the TSP settings and also the Exchange server. Have rebooted Unity and still the issue remains. Any ideas or possible resolves?

    Did you check the phone? is it same from any phone? re create the mail box and see another option.
    Baseer.

  • "My Infoview" Customized Template for all users

    Post Author: rossgh
    CA Forum: Publishing
    How does one share a customized "My Infoview" Template with other users?With other words, I would like other Infoview users to see the same Template I see.
    The Infoview Application Administration is very limited; it only allows you to change the colors...
    Thanks,
    Ross

    Hi Simmi,
    There is a way that you can do this. Check this post for details as provided by Prakash:
    Re: Permanent BW Excel Template
    Hope this helps...

  • Read only custom field for particular user

    Hi,
    I have requirement to few enterprise custom field should be edited by only top management,Project manager and team member can only read the same field.
    Like i have one custom enterprise  baseline finish date,which need to update by only IT GM,and other staff can see only as read mode.
    Hasan Jamal Siddiqui(MCTS,MCPD,ITIL@V3),Sharepoint and EPM Consultant,TCS
    |
    | Twitter

    Hasan,
    You have few options, based on the route you want to take"
    1) You could control the "Visbility" of the fields, via using a feature like
    Target Audiences .
    However,this may not  control the same custom field on the page based on user permissions.
    2) Use JavaScript: https://badalratra.wordpress.com/2013/05/04/how-to-disable-pdp-custom-fields-using-javascript/
    3) Jquery: http://epmainc.com/blog/locking-custom-fields-pdp-project-server-2013-using-jquery
    4) Customization: https://epmxperts.wordpress.com/2014/01/20/secure-pdp-pages-as-per-project-server-security/
    5) You could look into a third part product, by Fluent Pro: https://help.fluentpro.com/pdp_manager/start
    I realize these may not be exactly what you need, but with some effort, I am sure you could modify the code and reuse.
    Cheers,
    Prasanna Adavi, Project MVP
    Blog:
      Podcast:
       Twitter:   
    LinkedIn:
      

Maybe you are looking for

  • SmartView 11.1.2 keeps dropping the connection

    I have an SR on this but figured I would try here as well. I believe this has been thrown over to development. We have installed SmartView 11.1.2 and we can connect and retrieve data. We are on 2008 OS, 64 bit. About every 3 or 4 drills in excel Smar

  • Help am new to adobe

    How do I attach a photo (I pad album) to a PDF form I'm filling out and want to e-mail?

  • Deactivating Withholding Tax option manually

    Dear All, System by default popup the withholding tax window at the time of passing the vendor entry which has withholding tax. I donot want that user can change the base amount and withholding tax amount manually in that tab. Can we control that pop

  • Smart Collection default templates

    In my Lightroom presets folder I see a folder named Smart Collection Templates http://www.pbase.com/hdproman/image/101633642 These five templates do not show up in Lightroom I have created a Smart Collection Set and all the Smart Collections to show

  • Rtorrent certificate permissions

    Dear Archers, I need your knowledge and your help : I changed my torrent client from Transmission (GUI) to rtorrent (CLI) and I have a problem with the certificate (/etc/ssl/certs/) permission access by rtorrent. With the same tracker (requesting htt