cancel
Showing results for 
Search instead for 
Did you mean: 

Sybase mobile in offline

Former Member
0 Kudos

Hi experts,

I develop some simple application, the Workflow application directly to a DB or a BAPI to SAP; but, what happend if I haven´t Internet or if I have a court of Internet? Can i work with this Workflow applications?

Happend the same with the application development by SAP, such us CRM Sales?

Thanks in advance,

Regards,

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

yes ofcoure you can develop offline application for HWC based workflow application. when you dont have any internet connection you can store the data internally and whenever your device got any connectivity then our app will automatically sync with the backend.

Happy Coding

Dinesh.

Former Member
0 Kudos

How can develop an offline application? Is the same method that online workflow application?

Regards,

Former Member
0 Kudos

hi DInesh,

can you elaborate how to create HWC app to be an offline application.

prem

Former Member
0 Kudos

exactly we need to follow the same porcedure. We need to do some customization in our generated workflow package code to avheive this. In that package you should be able to see one class called Custom.js we need to write all our customization in that class only. Basically offline application means when you try to subit your data to backend if there is no connectivity, app should save the data locally and needs to synchronize when network is available. so we need to handle this situation.

Generated code is basically javascript, there are many ways to check the connectivity in JS. So in that Custom.js class write a code in the method named BeforeSubmit() by this way you can create offline based HWC application.

Happy Coding

Dinesh.

Former Member
0 Kudos

exactly we need to follow the same porcedure. We need to do some customization in our generated workflow package code to avheive this. In that package you should be able to see one class called Custom.js we need to write all our customization in that class only. Basically offline application means when you try to subit your data to backend if there is no connectivity, app should save the data locally and needs to synchronize when network is available. so we need to handle this situation.

Generated code is basically javascript, there are many ways to check the connectivity in JS. So in that Custom.js class write a code in the method named BeforeSubmit() by this way you can create offline based HWC application.

Happy Coding

Dinesh.

Former Member
0 Kudos

hi dinesh,

can you share the code to store the data offline in beforeSubmit() method u are talking about.

i think there is other way to submit the data to the backend if network is not available is "submit Workflow" instead of "Online Request".

Also i have a Scenario like if want to have my data in device using workflow how do i do that? i mean if i want see my records if network is not available. is there any way to download and store the data using workflow.

prem

Former Member
0 Kudos

I´m interesting too about the code and the submit workflow... what happend if the network is not available?

I want sync the records the first time that i connect for store it and I could consult without network.

Regards,