Accessing Shared Parameter by GUID!

Accessing Shared Parameter by GUID!

IbrahimNaeem
Advocate Advocate
944 Views
1 Reply
Message 1 of 2

Accessing Shared Parameter by GUID!

IbrahimNaeem
Advocate
Advocate


I have two parameters with the same name so I extracted the Guid for both and try to access one of them by element.Get_Parameter(Guid guid) but the code gives an error.
Here's completely what I wrote for it,

///get value of guid from datatable row
backup = dr["Guid"].ToString(); //working fine and the backup is getting the guid value. 
Guid myguid = new Guid(backup); //not sure if it works as expected. 
room.Get_Parameter(myguid).set("j"); // this parameter is of type string. and this is what not executing.

 

Thanks, Ibrahim Naeem

0 Likes
Accepted solutions (1)
945 Views
1 Reply
Reply (1)
Message 2 of 2

IbrahimNaeem
Advocate
Advocate
Accepted solution

OMG! I was storing the guid at nvarchar 25 instead of 100 size, sorry my mistake but will keep it for anybody fall in the same mistake! 

0 Likes