connection from one list to another

I have one list for inserting the data and one of the fields is connected to another list where I have supplier details. After one item was inserted into the list what I also see is in front of the company name number on the list (e.g. 1;#Poland). How can I get rid off that 1;# sign in front of name?

Many thanks in advance for help

March 27th, 2015 1:56pm

Hi,

From your description, it could be understood that you are using a lookup column. Please get the value using

"SPFieldLookupValue" object and get the value using SPFieldLookupvalue.Lookupvalue method (which removes the ;#).

Please refer the link below.

http://sharepoint.stackexchange.com/questions/1412/how-to-get-a-spfieldlookupvalue-from-an-splistitem

Please let us know if this fixes your issue.

Thanks,

M. Gubendra Raj

Free Windows Admin Tool Kit Click here and download it now
March 27th, 2015 4:35pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics