Question

Save page before running process

Hi all !

 

In a section page, I have some processes that re run from the page using the ‘Run Process’ object.

The problem is that users activate the process before data on the current screen is saved.

I need that when user activates one of the processes in the Run Process, the page will saved automatically before the process is run.

 

How this can be done ?

Like 0

Like

3 comments

Please override the method runProcessWithParameters in the BaseDataView module. Then use messages to save the page before running the process.

https://academy.bpmonline.com/documents/base/7-14/how-work-system-messages

Then debug the "save:" and "onSaved:" methods and find how to use them for saving the page and getting back to the runProcessWithParameters method after saving. 

Hi Eugene

Thanks for answering me.

When you say "Override the method runProcessWithParameters"

Do you mean to copy it to the Schema Section module?

As I could understand the Schema Section inherits from the "Section base schema ( NUI )" that inherits from the "Base data view ( NUI )".

 

I tried to copy the function to the Schema Section and implanted debugger, but it's not activated.

Please advise if I've done something wrong.

 

Oren Diga,

I recommend reading all articles from the development guide before starting development. It will help to avoid mistakes at the very beginning.

https://academy.bpmonline.com/documents/technic-sdkmob/7-12/bpmonline-development-guide

https://academy.bpmonline.com/documents/technic-sdk/7-13/creating-custom-client-module-schema

Show all comments