Forum Discussion

gopalmalu's avatar
gopalmalu
Contributor
14 years ago

How to set the property value at run-time .

Hi,



we have a scenerio in that i want to set the property value to particular index,

we are using silver light + telerik application and we want to set the value of SlObjectIndex at runtime for each iteartion.



Please help in same.



Thanks,

Gopal

3 Replies

  • Hi,



    SlObjectIndex is a read-only property. There's no way to modify its value at run-time.
  • Hi Jared,



    I tried using following approach and i got success



    assigned project variable "RowCountofTable " to SlObjectIndex and passing the i value explicitly to it using




     



     



    Project.Variables.RowCountofTable =i           'RowCountofTable is project variable and setting integer value to it.


     


    sObject.RefreshMappingInfo()                   ;Refreshing Mapping info



    And it working fine..



    Please suggest me if i am wrong.



    Thanks,

    Gopal




  • Hi,



    So, you mean changing the value stored in Name Mapping - in this case, your approach is correct.