Jump to content

Update value after processSave function in module


Recommended Posts

Hello,

 

I would like to update a column after I have add a new line in my module table(with module form) and don't really know how to do it.

 

The thing is that in my processSave I create an other object with an Api and I would like to add my object ID in a column of my module table by updating the new line I just added via my module form.

 

I dont know If I'm really clear.

Dont hesitate to ask question to understand.

 

Thanks in advance for any help,

 

Edit ---

 

Well I htink I need to use function postProcess instead of adding code at the end of processSave().
However, can you please help me getting value of submitted form ?

 

Thanks !

 

Edit ---

 

After some tests, I figured out that postProcess function seems to be executed before the insert in the database...

Edited by Skumbabs (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...