Seeking command like save()

Discussions about creating CAPI applications to run on Android devices
leulae
Posts: 36
Joined: December 16th, 2016, 5:51 am

Seeking command like save()

Postby leulae » January 20th, 2018, 3:59 am

Dear All

Is there any method to save the current data(case) by clicking on userbar button or any other method in android application (userbar does not work in android, I guess I should go to menu like below)

menu
1 Save and Exit
2 Exit with out save
3 ….

I know savepartial() but seeking command like save()

Your comments / suggestions are welcome

Thank you all

Leulae

Gregory Martin
Posts: 1037
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Seeking command like save()

Postby Gregory Martin » January 20th, 2018, 10:31 am

The userbar does work on Android. The options are visible when you click the button to the left of the notes button.

Doing this is basically what a save function would do, though the case will still be marked as partially saved:

savepartial(clear);


You could also have the save simply do this:

endlevel;


That will end your case and save the data.

leulae
Posts: 36
Joined: December 16th, 2016, 5:51 am

Re: Seeking command like save()

Postby leulae » January 20th, 2018, 11:55 am

Dear Gregory Martin,

Thank you very much your response.

In my case I have one field to control save operation beginning of the case tree. (Say Control field)

Below the control field there are number of records and fields (items)

I placed “endlevel;” in control field,


It asks “Accept case” dialogue box to save, when click on yes, but no data save on to database.

Please guide me to overcome

Thank you

Leulae.
Gregory Martin wrote:The userbar does work on Android. The options are visible when you click the button to the left of the notes button.

Doing this is basically what a save function would do, though the case will still be marked as partially saved:

savepartial(clear);


You could also have the save simply do this:

endlevel;


That will end your case and save the data.

leulae
Posts: 36
Joined: December 16th, 2016, 5:51 am

Re: Seeking command like save()

Postby leulae » January 21st, 2018, 1:57 am



Return to “Android”