guys I need help. I want to add "save & edit" ...
# suitescript
i
guys I need help. I want to add "save & edit" button in Item fulfillment, when click on the button transaction will save and open in edit mode. Is there any possible solution or script? I have tried to solve it using user event and client script. where I added button using event and when clicked it go to a client script.But my code showing error currentRecord.save() is not a function. I there any other way around?
e
This should be possible. Sounds like you just have an error in your clientscript. You would need to post that code for us to help. Also, it seems overly complex for what you're trying to do. Do you need a separate process for Save & Edit or could you just make it where it always reopens in Edit mode when you use the native Save button? If that was acceptable, it should be as simple as using the N/redirect module in a UE afterSubmit.
c
You can pass the item fulfilmment ID to a suitelet that handles the logic and returns whatever back to the client script and the client script can N/url/redirect back or window.location = window.location.
i
Thank you for the responds. What I need is, when click on the button item fulfillment will save and then open on edit mode. Is it possible to done it with redirect? is so how I will save the transaction?