Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X
Version: Windchill 12.1
Use Case: I've updated an IBA value on Change Request, through a utility. ( not directly on the object through windchill UI). so, it has changed the last modified date of it as well. Is there any way we can revert this and set it back to the previous last modified date?
Description:
I've updated an IBA value on Change Request, through a utility. ( not directly on the object through windchill UI).
so, it has changed the last modified date of it as well. Is there any way we can revert this and set it back to the previous last modified date?
Do you know what the previous modified date is?
Or are you asking how to determine what the previous modified date was?
Also, are you asking if there’s a way to not change the modified date when you use your utility or is it just this one case that you want the modified date to revert back to previous modified date?
I was looking if there is a way to revert back to the previous modified date, but it might not be possible, since the update has already been done.
So, for future updates to an IBA, can we update only the IBA value and somehow persist the last modified timestamp and rewrite the last modified date to the persisted timestamp?
its not recommended ,but the only way if you are aware of the old value modify date is to run some SQLs after using the tool to set the old date.
Unfortunately, I don't have a back up of old modified date.
At least for future updates, I'm trying to see if there an API to persist and reset the last modified date.
I'm not sure about the needed API , for the modify time you may check apache logs to see when we have called the edit change request wizard last time , have searched for "EditChangeRequestFormProcessor&wizardActionMethod=execute&actionName=edit":
Even better if you have audit events enabled for "edit attributes" , we can then try to restitute info from auditrecord table
I have updated some custom IBA values through a custom utility, and not from Windchill UI, through actions->edit etc.
I meant , the old date (missing) is what we have recorded from UI and could be found in Apache logs or audit .
I know how to update attributes without changing the IBAHolder’s modify date.
In short, I’ve written code that allows you to change attributes, link objects, etc. without changing the modify date. I do it all the time.
It’s definitely doable.
David
Can you please post the API here, it might help others as well 🙂