Forum Discussion
Hi Suhas,
Which Innovator version do you use? Innovator 12 or 14? Your code looks like Innovator 10, which maybe can cause the issue you see :)
1. Remove the top references!
2. Where did you find applyItemWithFilesCheck? It´s in the code tree yes, but I never have seen code that use the function itself directly.
3. Which event triggers the upload of the file?
4. link
Angela
- Suhas2 years agoCreator III
Hello angela
Thanks for your quick reply. Instead of applyItemWithFilesCheck API now I'm using top.aras.saveItemEx API in javascript & now it is working fine. But for saveItemEx API again I need to call UnlockItem API. is there any alternate for saveItemEx to avoid to call UnlockItem api?
Regards,
Suhas
- angela2 years agoCatalyst II
Don´t use top.aras.saveItemEx but aras.saveItemEx! As mentioned before, don´t use the top references anymore if you don´t use Innovator 10. Aras it self try to remove them whenever possible.
But I think in your case saveItemEx is maybe not the best solution. I typically use this one, when the item is already in edit mode. It´s a perfect function to edit something, while the user is editing anyway.
If you want to use it for some kind of "background" edit action, you will need to unlock manually.
Have you checked the linked filepicker post? Ignore the title of the thread. But the whole post contains a couple of variants for file upload for Innovator 11/12 and 14. Scroll down and look at the sample code from Gopi and Chris.