AngelaIp
2 years agoIdeator I
Creating new items via aras.uiShowItemEx doesn´t add LifeCycle data especially for versioned ItemTypes. How to fix?
Hi community,
I have a couple of ItemTypes with a custom LifeCycle. Sometimes when users promote an item to change the "state", the Form will not be updated and will not show the updated data. In t...
- 2 years ago
I think I found a solution by social engineering and my own magnificence.[emoticon:0e469978eb8947d18b9c41123db3725a]
I remembered one of my golden rules of Innovator:
-> Rule #7 – “There is always trouble when a revision shows up. You either need to use extra code – or Aras messed it up ootb. “The shown code concept is pretty old. Same for the behavior of LifeCycles and Forms in general. So the founding fathers probably messed it up by themselves, but it was 20 years ago. Therefore there has to be a solution that is used for years by Aras itself.
Thanks to this logical conclusion, I was able to find something suitable in the PE Methods.
Et voilà: Add this line after creating the new item:
aras.itemsCache.addItem(newItemNd);