Hi!
I wanna create a module activity to get a client. This activity show the all clients in my DB and find in this , finally select one client .
My question is how can I return the selected client to use it in another activity?
I want this activity to use in others activities of my app to get the client.
Any clues how to do this ? I did this once time in each activity I did the same code to each activity now I want to do just one activity and return the select client.
You can set the 'sendingActivity' and the return value both in Process_Globals, and then check them in Activity_Resume. (Make sure to clear them after use)
So before you call the client activity, you set a process global variable 'sendingActivity', and set the client data to zero/clear.
Then you call your client activity.
Once it finishes selecting the client, call Activity.Finish, so it should drop back to the calling activity.
The first sub to be called will be Activity_Resume, he you can check if the 'sendingActivity' was the current activity, and if so, then you can use the client data.