How to define a custome property in User Profile to Save Roles Sort priority ?

Hi All,
I have a requirement where in, user should get an option to decide his default tab(role), when he logs into portal.
e.g.: If user1 and User2 is assigned with 2 roles namely Leave & Travel. User1 should be able to select Leave as his default tab and User2 should be able to select Travel as his default tab.
I was thinking if I can store what use selects in a custom property and change the tabs through custom application.
Please let me know how can achieve this in CE 7.3 portal.
Thanks in Advance,
Pavan.

Hi Pavan,
If you are using the AJAX framework page the user can simply drag the tabs and it will automatically be saved in the personalization.
user should:
1. place mouse over the role (in the top left corner you will see a triangle).
2. place mouse over triangle and, push and hold down mouse button.
3. drag the mouse to the navigation place where you want it to be (notice black line).
4. leave the mouse button.
Now the order of the tabs are saved in the personalization for that user only.
Hope this is what you meant.
BR,
Saar

Similar Messages

  • Import a filed value from custom database into User Profile using BCS

    Hi,
    I have a custom DB in SQL with couple of columns.
    I need to import one of the fields (userid) into user profile - custom property.
    Please guide me to make it done.
    My direction seems wrong..since I am new to user profile-BCS concepts.
    I created a custom property in user profile services, while "configure synchronization connections', I clicked on new connection.
    Type: Business connectivity services, selected
    It needs external content type.
    I opened CA through designer, clicked on External Content type, I am able to connect SQLDB and related fields.
    But, I am not sure what to be done?? How to make my task completed.
    Guide me, somebody, please!!
    - GEM

    This should create the External Content Type
    Open SharePoint Designer
    Choose the Site where you want the External Content Type to be created
    Under Site Objects -> Click External Content Types
    In the Ribbon -> Click External Content Types to create a New one
    Provide a name for your ECT
    Click ‘Click here to discover external data sources and define operations’
    Click Add Connection, under Data Source Type choose SQL Server
    Provide the connection properties to your SQL Server
    Under Data Source Explorer, Expand the tables folder and choose the table you want to connect to
    Right Click the Table Name and create a New Read Item Operation
    Under Input Parameters, Select the Primary Key of your table and verify that it is map as the identifier. This is important as this will be the column that will be used to sync BCS data to SharePoint. Click on Finish
    Right Click the Table Name again and create a New Read List Operation. Follow the steps on K
    OPTIONAL: Once done you can create an external Lists based on the content type to verify if you are able to pull data from your External Source
    You can verify if the list is created by going to the site where you have deployed the External List. If you encounter a “Access denied by Business Data Connectivity, you can resolve this by going to Central Administration -> Application Management ->
    Manage Service Applications -> Business Data Connectivity Service, choose the External Content Type you have created -> Click Set Object Permissions -> Add the account that your are using and Set ‘Execute & Set Permissions’. Refresh the external
    list page.
    This will create the connection between the BCS properties and the Custom User Properties which are mapped to BCS.
    To create a synchronization connection follow the steps below
    Go to Application Management -> Manage Service Application -> User Profile Service -> Configure Synchronization Connections
    Click Create new Connection
    Provide a connection name for your connection
    Under Type, choose Business Data Connectivity
    Under Business Data Connectivity Entity, choose the External Content Type created on the BCS Step
    Choose the property to identity the 1:1 mapping, this is a unique column that should exist on both the BCS Data and the SharePoint User Profile Properties.
    This part will create the Custom User Profile Property to hold the BCS Data
    Go to Central Administration
    Under Application Management click Manage Service Application
    Click User Profile Service Application
    Click Manage User Properties then select New Property
    Fill the necessary fields
    Under Add New Mapping, select the BCS Sync connection you have created above and the field from SQL where you want to map this property
    Run Profile Synchronization
    Artificial intelligence can never beat natural stupidity.

  • How to reference a custom property in a vo transient attribute expr + bug

    Hi all
    I have created a transient attribute with an expression that evaluate null content to replace it by a appropriate text.
    <ViewAttribute
        Name="DescriptionUI"
        IsUpdateable="false"
        IsSelected="false"
        IsPersistent="false"
        PrecisionRule="true"
        Type="java.lang.String"
        ColumnType="VARCHAR2"
        AliasName="VIEW_ATTR"
        SQLType="VARCHAR">
        <TransientExpression><![CDATA[((Description == null) ? 'Pas de description' : Description)]]></TransientExpression>
      </ViewAttribute>I have defined a custom property for that attribute that contains the message text. I was surprised to see that the custom property was not associate with the attribute in the source file. Don't understand where the association is done
        <Properties>
          <CustomProperties>
            <Property
              Name="flex.tree.noLabel"
              ResId="flex.noDescription"/>
          </CustomProperties>
        </Properties>I had some difficulties to use the custom property editor. When creating a new related one by using an existing resource the property column value is not changed and the content 'Property' is generated. Because no relationships exists between attribute and the property, the entry is lost in the table referring custom property list for the attribute when your come back into the view object or if you save an another entry in an another attribute.
    So my first question ? Is the attribute editing part the right part to define custom property pairs if they are not related to attributes ? is it a bug ?
    My second question is : is it possible to evaluate the bundle in the expression (replacing the literal 'Pas de description' by an expression) ? What is the expression to use ? Where it is described to do such things in the help or in the documentation ?
    Thank you

    This is wrong
    ((Label == null) ? {FlexParameterModelBundle['flex.tree.noLabel']} : Label)
    What is the correct syntax to refer to the project model standard bundle in the groovy expression ?
    Thank for the help !

  • How to define a Custom Action in VC 6.0 ?

    Hi all
    I want to know how to define a custom action like for a check box UI Element, I want particular action to be performed when it is checked ? How can I achieve this in VC 6.0
    Please feel free to ask me if my question is unclear ?
    Regards
    Kapil

    Hi,
    Try adding an expression element on your form.
    Go to the Expression control properties and in the Expression attribute enter
    IF(@Selected==true,"X"," ")
    @Selected is the checkbox. For your function call input use the expression element and not the checkbox.
    Hope this helps. Let me know if it works.
    Thanks.

  • How to fix Workflow failed to get user profile for user:

    hi All,
    How to fix Workflow failed to get user profile for user when using Lookup function in sharepoint designer?

    Try to use “As string” instead of “Login Name” for the “Return field as”.
    Regards,
    Jayant
    jayant prabhakar

  • How to set the fonts in the user profile(very urgent)

    Hi All,
    Can anyone please tell how to set the fonts in the user profile.
    We have a requirement where currently all the data is being displayed in a font and the user want to change that font permanently.
    I hope you have got the requirement.
    Points will be surely awarded.
    Thank you.

    Hi,
    U can do this in SU02.
    Kishi.

  • 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 make a custom property editable/not editable in DRM

    Hi,
    How do we make a particular field i,e custom property category field as editable whereas make an another field i,e another custom propertyfield value as non editable in a same hierarchy within a particular version.
    user has an admin privilage in the above case.

    Hi,
    If the user is an admin he will have access to edit all properties...but before that... what do you exactly mean by making a property editable/non editable? The only non editable properties are the derived properties... if beyond that you need to make custom defined properties non editable you have to work with setting up the security where the very first step is to not to have normal users as admin in the system.
    Could you please detail out your requirement a bit more.
    Thanks
    Denzz

  • How do I map custom property from portal api ptsearchresponse?

    I want to map the search results to my datatable.
    I can execute the search fine. But how do I map the property value? My property id is 101.
    In other words which ptSearchResponse method do I use?
                    IPTSession ptSession;
                    IPTSearchRequest ptSearchRequest;
                    IPTSearchResponse ptSearchResponse;
                    IPTSearchQuery ptSearchQuery;
                    string serverConfigDir = ConfigPathResolver.GetOpenConfigPath();
                    IOKContext configContext = OKConfigFactory.createInstance(serverConfigDir, "portal");
                    PortalObjectsFactory.Init(configContext);
                    ptSession = PortalObjectsFactory.CreateSession();
                    ptSession.Connect(1, "", null);
                    // Create a SearchRequest object
                    ptSearchRequest = ptSession.GetSearchRequest();
                    // Set search settings (constraints)
                    // Set maximum results desired (100)
                    ptSearchRequest.SetSettings(
                    PT_SEARCH_SETTING.PT_SEARCHSETTING_MAXRESULTS, 100);
                    // Set the folder in which to search (array to support multiple folders)
                    ptSearchRequest.SetSettings(
                        PT_SEARCH_SETTING.PT_SEARCHSETTING_DDFOLDERS,
                        new int[] { Convert.ToInt32(ConfigurationManager.AppSettings["DocumentFolderId"]) });
                    // Include subfolders of the folder
                    ptSearchRequest.SetSettings(
                        PT_SEARCH_SETTING.PT_SEARCHSETTING_INCLUDE_SUBFOLDERS, true);
                    // Restrict search to just portal documents
                    // (not ALI Collaboration or ALI Publisher)
                    ptSearchRequest.SetSettings(
                        PT_SEARCH_SETTING.PT_SEARCHSETTING_APPS, PT_SEARCH_APPS.PT_SEARCH_APPS_PORTAL);
                    // get documents only
                    ptSearchRequest.SetSettings(
                        PT_SEARCH_SETTING.PT_SEARCHSETTING_OBJTYPES, new int[] { PT_CLASSIDS.PT_CATALOGCARD_ID });
                    // Request the intrinsic PT_PROPERTY_PROVIDERCLSID and custom property 101
                    ptSearchRequest.SetSettings(
                        PT_SEARCH_SETTING.PT_SEARCHSETTING_RET_PROPS,
                        new int[] { PT_INTRINSICS.PT_PROPERTY_PROVIDERCLSID, 101 });
                    //Use IPTFilter to create search filter with clause with two statements
                    IPTFilter ptFilter;
                    IPTPropertyFilterClauses ptFilterClause;
                    IPTPropertyFilterStatement ptFilterStmt1;
                    IPTPropertyFilterStatement ptFilterStmt2;
                    // Create the filter itself
                    ptFilter = PortalObjectsFactory.CreateSearchFilter();
                    // Create the filter clause
                    ptFilterClause = (IPTPropertyFilterClauses)ptFilter.GetNewFilterItem(PT_FILTER_ITEM_TYPES.PT_FILTER_ITEM_CLAUSES);
                    ptFilterClause.SetOperator(PT_BOOLOPS.PT_BOOLOP_OR);
                    // Attach it to the filter itself
                    ptFilter.SetPropertyFilter(ptFilterClause);
                    // Put two statements into the clause
                    ptFilterStmt1 = (IPTPropertyFilterStatement)
                        ptFilter.GetNewFilterItem(PT_FILTER_ITEM_TYPES.PT_FILTER_ITEM_STATEMENT);
                    ptFilterStmt1.SetOperand(101);
                    ptFilterStmt1.SetOperator(PT_FILTEROPS.PT_FILTEROP_CONTAINS);
                    ptFilterStmt1.SetValue(tbSearch.Text.Trim());
                    ptFilterClause.AddItem(ptFilterStmt1, ptFilterClause.GetCount());
                    ptFilterStmt2 = (IPTPropertyFilterStatement)
                        ptFilter.GetNewFilterItem(PT_FILTER_ITEM_TYPES.PT_FILTER_ITEM_STATEMENT);
                    ptFilterStmt2.SetOperand(1);
                    ptFilterStmt2.SetOperator(PT_FILTEROPS.PT_FILTEROP_CONTAINS);
                    ptFilterStmt2.SetValue(tbSearch.Text.Trim());
                    ptFilterClause.AddItem(ptFilterStmt2, ptFilterClause.GetCount());
                    // Make the filter into an actual search query
                    ptSearchQuery = ptSearchRequest.CreateAdvancedQuery(ptFilter);
                    // Run the search and return results
                    ptSearchResponse = ptSearchRequest.Search(ptSearchQuery);               
                    // How many things matched the search?
                    int totalMatches = ptSearchResponse.GetTotalMatches();
                    // How many items were returned? (Not necessarily all)
                    int returnedMatches = ptSearchResponse.GetResultsReturned();
                    // create DataTable and map results to
                    // datatable fields
                    DataTable dtSearchResults = new DataTable("Documents");
                    dtSearchResults.Columns.Add("Name");
                    dtSearchResults.Columns.Add("Excerpt");
                    dtSearchResults.Columns.Add("DocSubject");
                    dtSearchResults.Columns.Add("DocTopic");
                    dtSearchResults.Columns.Add("DocType");
                    dtSearchResults.Columns.Add("DocKeywords");
                    dtSearchResults.Columns.Add("Url");
                    dtSearchResults.Columns.Add("ImageURL");
                    DataRow dr;                                                                                                          
                    // Print the name of each result
                    for (int i = 0; i < returnedMatches; i++)
                        dr = dtSearchResults.NewRow();
                        String strName = ptSearchResponse.GetFieldsAsString(i, PT_INTRINSICS.PT_PROPERTY_OBJECTNAME);                  
                        String strText = ptSearchResponse.GetFieldsAsString(i, PT_INTRINSICS.PT_PROPERTY_OBJECTSUMMARY);
                        String strURL = ptSearchResponse.GetFieldsAsString(i, PT_INTRINSICS.PT_PROPERTY_DOCUMENTURL);
                        String strImageURL = ptSearchResponse.GetFieldsAsString(i, PT_INTRINSICS.PT_PROPERTY_OBJECTIMAGEUUID);
                        dr["Name"] = strName;
                        dr["Excerpt"] = strText;
                        dr["Url"] = strURL;
                        dr["ImageURL"] = "pt://images/plumtree/portal/public/img/sml" + strImageURL + ".gif";
                        dtSearchResults.Rows.Add(dr);
    Edited by [email protected] at 04/11/2008 7:26 PM
    Edited by [email protected] at 04/11/2008 7:27 PM

    Problem solved. I should use JsonObject instead of JSONObject :D 

  • How to modify the length of a user profile property

    I need to increase the length of a custom user profile property, but the length looks disabled when I try to edit and modify. Is there any way i could modify this by powershell or some other work around where I can increase the lenght of the script?

    You can't increase or decrease the size of one of the properties after they have been created.  You'll need to create a new property and programmatically copy the values from the other property to the new one.  Once that is done you can
    delete the old property.
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • How to define the customer field in SC as mandatory

    Hi all,
    Could someone help me to define the customer field as
    mandatory in the shopping cart?
    Thank you a lot.
    Best regards,
    Danijela

    Hi Danijela,
    you could implement the BBP_DOC_CHECK_BADI and check if the customer field is filled. If not, you can issue an error message (Type 'E') in the BAdI. This message will be visible in the browser. The user will only be able to order the shopping cart when this error message is gone.
    Best Regards,
    Olaf

  • How to trigger a custom code when user log in?

    Hi my friends,
    We are using multiple sharepoint sites at work. Users log in with AD accounts, so they dont see any login page.
    I need to run a custom code when user login to website. Event receivers do not help at this point. Any suggestions?
    thanks in advance

    Hi Ahmet,
    From your description, my understanding is that you want to trigger some custom code when users log in SharePoint.
    As a solution, you could customize a login page for your SharePoint, then you could trigger your code.
    You could also use httpmodule to monitor user login. Please refer to this article about how to use httpmodule:
    http://sharepoint.stackexchange.com/questions/100976/get-the-current-logged-in-user-in-sharepoint-added-httpmodule
    Best Regards,
    Vincent Han
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How to simply add custom property to a HTML Form Web Part?

    Hello.
    Is it possible to add a custom property (like a date-field) to a HTML Form Web Part with help of JavaScript? I do not want to use Visual Studio / Nappa etc. Is this possible in an easy way?
    Thanks for your help.

    Hi,
    Based on your description, my understanding is that you want to count the date between today and the latest event date.
    You can create a calendar in a page firstly, then add a content editor web part rather than the html form web part, as html form web part can't place the Jquery element.
    Then you can firstly read the date field value of the calendar list using JavaScript Client Object Model and then calculate the difference between two date values using Jquery. You can add the code directly in the content editor web part.
    Here are some detailed code demos for your reference:
    Get SharePoint calendar list field value using JavaScript Client Object Model:
    <script src="http://code.jquery.com/jquery-1.9.1.js"></script>
    <script>
    $(document).ready(function(){
    SP.SOD.executeFunc("sp.js", "SP.ClientContext", retrieveListItemsCal);
    function retrieveListItemsCal() {
    var clientContextCal = new SP.ClientContext.get_current();
    var oListCal = clientContextCal.get_web().get_lists().getByTitle('Calendar');
    var camlQueryCal = new SP.CamlQuery.createAllItemsQuery();
    AllItemsCal = oListCal.getItems(camlQueryCal);
    clientContextCal.load(AllItemsCal);
    clientContextCal.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceededCal), Function.createDelegate(this, this.onQueryFailedCal));
    function onQuerySucceededCal(sender, args) {
    var listItemInfo = '';
    var listItemEnumeratorCal = AllItemsCal.getEnumerator();
    var htmlCal = '';
    while(listItemEnumeratorCal.moveNext()) {
    var oListItemCal = listItemEnumeratorCal.get_current();
    htmlcal= oListItemCal.get_item("Start Time").format("MMMM d, yyyy"));
    break;
    function onQueryFailedCal(sender, args) {
    alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
    </script>
    Calculate the difference between two dates:
    http://stackoverflow.com/questions/2609513/jquery-calculate-day-difference-in-2-date-textboxes
    Thanks
    Best Regards
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected].
    Jerry Guo
    TechNet Community Support

  • How to add Hotmail account to ProfileManager User Profile?

    Hi everyone!
    I was wondering how I can add a Hotmail account to a user profile in Profile Manager? I only see POP/IMAP settings, but haven't been able to find those settings for Hotmail by googling.
    Thanks!
    ~Mike

    You can configure Hotmail to work on the iPhone. It works very well, I have had no problems with it. After upgrading to a Hotmail plus account, follow the instructions-
    http://mailcall.spaces.live.com/Blog/cns!CC9301187A51FE33!44348.entry
    Account: On
    Account Information:
    Name: John Smith (note: enter your own name)
    Address: [email protected] (note: enter your full Hotmail email address)
    Description: Hotmail
    Incoming Mail Server:
    Host Name: pop3.live.com
    User Name: [email protected] (note: enter your full Hotmail email address)
    Password: password (note: enter your Hotmail password)
    Outgoing Mail Server (SMTP):
    Host Name: smtp.live.com
    User Name: [email protected] (note: enter your full Hotmail email address)
    Password: password (note: enter your Hotmail password)
    Advanced Settings:
    Incoming Uses SSL: On
    Outgoing Uses SSL: On
    Authentication: Password
    Delete from Server: When removed from Inbox (or your preferred option)
    I paid the $20 for the Hotmail plus account and was receiving mail on my Iphone within a half hour. It Rocks.

  • User Defined Table locked when multi users try to save data?

    Hi All,
    I am having a problem with User Define Table (UDT). I am just checking if somebody having the same problem as mine (any patch level).
    I've developed an add-on to save additional data to some UDTs upon saving a Production Order. I added my code in FormDataEvent (After Action = True and ActionSuccess = True).
    Here are my sequences to save the data:
    1. Start Transaction
    2. Remove Existing Data from 3 UDTs linked to the production order number.
    3. Save to table 1, using UserTable object
    4. Call function A to save to table2 , using UserTable object
    5. Call function B to save to table 3, using UserTable object
    6. Commit Transaction.
    Note: I have a try catch and rollback the transaction if any exception thrown by .NET and SAP. Below are parts of my coding to handle exception from SAP
                    If oUserTable.Add() <> 0 Then
                        oCompany.GetLastError(ErrCode, ErrMsg)
                        Throw New ApplicationException(ErrCode & "-" & ErrMsg)
                    End If
    in the try catch block, i add the following code
                If oCompany.InTransaction Then
                    oCompany.EndTransaction(SAPbobsCOM.BoWfTransOpt.wf_RollBack)
                    SBO_Application.MessageBox("[SaveRoute]:" & ex.Message)
                    Return False
                End If
    Now, the issue is in some occasions, when multi users try to save the Production Order, the data get deleted from the UDTs, but some of the data did not get saved yet it did not throw an exception. From our observation, it only happens when multi users are trying to save to the same table.
    Does anybody having the same or similar issue? Really appreciate if you can share on this.
    Many Thanks,
    Harianto Ng

    I Believe you should look carefully where in your code writting, you should start transaction and be sure of using end.transaction commit if the insert sends a succesfull message, and rollback it for negative message.
    I used to start transacción right before .add method
    Wha DBMS are u using?
    Hope it helps.

Maybe you are looking for

  • I renamed my home folder :( can't get it back to normal

    hi, i know there are about a billion topics in this forum about this same thing, but i still cannot get everything back to normal despite reading a lot of them. a couple of weeks ago i renamed my home folder, which created a whole new set of preferen

  • File size extremely high for .avi after render PE 9

    I'm very new to PE and have tried to learn quick to redact info (faces etc) in .avi files for a government agency. I was able to open the file (in the trial version) and make the track matte by dragging the original file to the timeline then dragging

  • How can i implement RMI Activatable for CORBA clients

    Hi, i need some help to implement RMI Activatable for CORBA clients, i was reading the CORBA specifications, that is used PortableRemoteObject.exportObject(this) in the server contructor. but in hte moment to execute rmic -iiop returns the next error

  • Xcode 3.1.2 No Editor

    This is bedeviling me! I have Xcode 3.1.2, then installed iPhone SDK 2.2. My first try at an iPhone project, the project window shows "No Editor" where the text editing window is. I reinstalled Xcode 3.1.2 package, including Developer tools, and get

  • Digital Copy Does not work

    i have bought triple play blu ray with digital copy and when i try to redeem it does not recognise the code