Hello,
I'm adding a text into the model via a script and an additional requirement here is I dont to want the "Last Change" and "Last User" system attributes of the model to be changed.
To achieve this below are the steps used in the script :
1)calling setAutoTouch(false)
2)adding the text(via logic) into the model
3)saving the model via ArisData.Save(Constants.SAVE_IMMEDIATELY)
4)calling setAutoTouch(true).
Please note : setAutoTouch(false) - disable system attributes updates and setAutoTouch(true) - enables system attributes updates.
However after executing the script we're experiencing wierd behaviour where we need to specifically go to each model to save the changes(which means the models are written but are not yet commit via script).
Can someone pls guide is anything is missing here ?
Theo Padding on
Hi,
I have the same problem. I want to update an attribute but do not want the last change date and last user to be updated automatically. The touch function seems to be deprecated, but now we end up with a lot of system users as last user due to this automatic update. I created a report, which updates an attribute in an assigned model, via APG with 'arisservice' user and is now automatically the last user.
Please help :-)
Regards,
Theo Padding