-
I tried the GetCommonMembership service but couldn't quite get it to work for me. It wasn't populating any data for me. Could you please give me a little info on how to work with that please.
Thanks!
-
Two separate issues here:
1) Yes, it always uses the identity of the person logged into Windows, not the web page (SharePoint)
2) If you use a default value, then it sets it once and never resets. You have to use a rule in Form Options > Open and Save > Rules to do it on form load or with some other button/control rule.
-
Yes warrtalon i am using userName() to get the current user in my first CurrentUser field. But "username" is the field in my XML data source. Both are different, i am using this "username" in the "CurrentRole" field not in the "CurrentUser" field.
...
-
You should have rec'd my .xsn. Thanks for your time! I really appreciate it!
-
You need to create a rule to update the value of your username field whenever the form is opened. Go to "Tools / Form Options / Open and Save" and add this rule: Action: =fx Set a field's value, Field: @username, Value: username(). You should be good to go.
-
Did you look at my methods?
Also, I want to be sure you're using userName() and not username().
-
Hi warrtalon,
I saw your blog. The content was really nice and i am working on it.
Thanks,
Kalyan.
-
Why don't you post your code so we can see what might be going wrong for you?
-
Hi patrick,
I am not able to set the exact function like this "name[username=CurrentUser]". Here in this function i am selecting all the fields from the XML data source as explained in the link that i have posted. But it was giving an error like ...
-
Works great for me, too. I had no idea you could do syntax like that for a custom pattern. Thanks for the lesson, Hilary.