InfoPath/sp 2007 Task list Assigned to field value issue

J

Junaid Raza

I am submitting an info Path form to a form Library in SP 2007. I am
using List Webservice as secondry data source behind a button (VB .Net
code) to extract information from different fields and push them into
a task list so that a task is assigned to a specific user. All other
fields are going correctly in the task list except "Assigned to" when
i checked an assigned to value using SP Explorer it seems its formt is
like "88;#Username". 88 is variable, different for diff users'. Can
anybody help how i can get this format for a user selected in the form
to be set as "Assigned to" in task list at run time?
 
S

Shiva (GGK Tech)

Hi,

You can concatenation of that variable and user name with ‘;#’ using cancat
function. After adding those strings in one variable then you can set the
assigned to be value in that list.
 
J

Junaid Raza

Hi,

You can concatenation of that variable and user name with ';#' using cancat
function. After adding those strings in one variable then you can set the
assigned to be value in that list.

--
Shivahttp://www.ggktech.com





- Show quoted text -

Sorry if i didn't explain at the 1st place but concat is no problem,
my problem is how to get this variable (88,89,105) its different for
different user. so any idea what exactly it is, if it comes from
people object then how can i extract it for each user?
 
K

K.Ramana Reddy(GGK Tech)

Hi,
Is the user enters the value 88,89... in the forms or are you populating hte
value based on user?
 
J

Junaid Raza

Hi,
Is the user enters the value 88,89... in the forms or are you populating hte
value based on user?
--
k.Ramana Reddyhttp://www.GGKtech.com






- Show quoted text -

User selects the Assigned to from an already populated drop down, the
point is when i pass this User name as it is in the code to go into
assigned to field in task list, it never works, i then added a manual
task in task list, and filled assigned to with soem user. then i used
sharepoint explorer to see the actual value in assigned to field , and
it was something like 'Number;#Username' e.g '88;#Junaid Raza'. Now i
dont understand what exactly is this 88 or other number, i need to get
this number for each user while submitting the field values and then
concate this number along with user name.....
 
S

sunny

the "88" is the user's id in the sharepoint site. you can use the id in the
code to grab the site user instance.
 
J

Junaid Raza

the "88" is the user's id in the sharepoint site. you can use the id in the
code to grab the site user instance.






- Show quoted text -

Hi,
I got the solution, i need to use UserGroup web service, it has a
method named GetUserInfo, it is passed User login, and it returns XMl
node of user details including User ID, i extract that ID and use it
in "Assigned to" field and it works.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top