on 12-19-2012 12:23 AM
Hi,
I can connect and read the data using the SDK samples, just can not update fields
Regards
Fabio.
Hi Fabio,
Simply put the properties you want to change and call the Update() method.
oItem.GetByKey("ItemCode");
oItem.ItemName = "Changed Item Name";
int lErr = oItem.Update();
Note that some properties are read only, and some properties cannot be changed after that specific Item is used in transactions.
Check the lErr for the result, when 0 = Successful update.
Regards
Edy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Fabio,
In addition to what Edy said, for any user fields you will need the following
oItem.UserFields.Fields.Item("U_YourUserFieldName").Value = oValue
where oValue has to be the correct data type and the name of your user field needs to be written correctly including small and capital letters.
Regards,
Johan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
9 | |
8 | |
7 | |
7 | |
3 | |
3 | |
3 | |
2 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.