Seeking command like save()

Discussions about creating CAPI applications to run on Android devices
Forum rules
New release: CSPro 8.0
Post Reply
leulae
Posts: 46
Joined: December 16th, 2016, 5:51 am

Seeking command like save()

Post by leulae »

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: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Seeking command like save()

Post by Gregory Martin »

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: 46
Joined: December 16th, 2016, 5:51 am

Re: Seeking command like save()

Post by leulae »

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: 46
Joined: December 16th, 2016, 5:51 am

Re: Seeking command like save()

Post by leulae »

Found the solution, thank you all

Link to solution

http://www.csprousers.org/forum/viewtop ... evel#p6688
Post Reply