setCustomUserField

I tried to add the ability for a user to add a city name to their profile in the CustomRoster example. I tried to put the following cSession.userManager.setCustomUserField, but I don't know that I called it wrong. I was put in the name of the city to a text input box id = cityInput.

Then I tried to show in the mx:list by adding to the line - return uDesc.displayName +', ' + role + ', '+ uDesc.customFields;

What is the correct procedure to set, and then call?

Thank you

And this is the event class that goes with it.

Tags: Adobe LiveCycle

Similar Questions

  • Error: UserManager.setCustomUserField: no sufficient privileges to set a custom field for Publisher

    Hello

    I'm only able to call UserManager.setCustomUserField with the owner, but not with the Editor (50).

    How can I make a custom userfield editable with a user of the editor?

    Strange thing is that if I'm in the room Console and change my role of owner in the editor, I can add a custom user field.

    Any tips?

    PS: Meanwhile, I found this post where it is explained how to implement a custom user Tracker:

    http://forums.Adobe.com/thread/840181?decorator=print & displayFullThread = true

    It would be nice but if I could value give permission a customfield for the role of the Editor directly on usermanager

    Hello

    If a user with the role editor, trying to setCustomUserField to itself, then it should be possible. (you try to do this?)

    But if he tries to put it other then its not so easy. Is the only option possible, you will have to extend the current UserManager and override the setCustomUserField method.

    Thank you

    Arun

  • CustomField doesn't seem to have the value

    Hello

    I would use CustomField to identify connected members. The CustomField doesn't seem to work. I've added some traces of check:

    If (! cSession.userManager.isCustomFieldDefined ("memberID")) {}
    cSession.userManager.registerCustomUserField ("memberID");
    }
    cSession.userManager.setCustomUserField (cSession.userManager.myUserID, "memberID", myMemberID);
    Status.Text = + Status.Text "memberID setting \n" + myMemberID;
    Status.Text = Status.Text +"\n memberID value" Stéphane de.customFields.memb + cSession.userManager.getUserDescriptor (cSession.userManager.myUserID);

    I get the content in the status field:
    setting memberID 123
    Member ID set to undefined

    I'm doing something wrong?

    Kind regards

    Axel

    Hello

    There are some things that I would like to highlight and also attach a code I ran to solve your problem.
    (a) after setting the customField, you will have to wait until its actually resolved, you must wait until you receive the event of usermanager CUSTOM_FIELD_CHANGE (see my attached code).
    (b) the way that you access a customField is customFilelds ['fieldName'] and not customFields.fieldName

    Finally, as an added information in the drop down next is coming in a few weeks, we've added ways where you get an event once you have saved your customFileld so that you expect before you set your customFiled, and also you would be able to remove your customField. And you can also the registry and delete the dev console.

    Here's the complete code attached for your problem

Maybe you are looking for