Page 1 of 1
[RDMLX]offline-show a formview in presentmode:stack
Posted: Fri Dec 12, 2014 12:07 pm
by MegumiSawada
I would like to create a program which scan a barcode,look up the local database and show the details (from the local database) on the next formview in presentmode:stack.This should work in offline.

- screenshot.png (40.68 KiB) Viewed 5076 times
However, I will get an error when I execute it in airplane mode(i.e. in offline).

- IMG_3638.jpg (11.78 KiB) Viewed 5076 times
Is it possible to show a formview in presentmode:stack in offline environment?
I appreciate any advice.
Thank you in advance!
Re: [RDMLX]offline-show a formview in presentmode:stack
Posted: Fri Dec 12, 2014 12:09 pm
by MegumiSawada
Here are the sources(RDMLX code and js).
Re: [RDMLX]offline-show a formview in presentmode:stack
Posted: Mon Dec 15, 2014 9:46 am
by Paul
Hi Megumi,
Before we look at this more closely can you double check that the form views in question are set as local/offline forms in the schema?
Opening forms with presentation mode Stack is designed for use with local/offline form views so this part is OK.
thanks,
Paul
Re: [RDMLX]offline-show a formview in presentmode:stack
Posted: Mon Dec 15, 2014 11:28 am
by MegumiSawada
Hi Paul,
Yes,the formview is set to "local form".
Thank you!
Megumi
Re: [RDMLX]offline-show a formview in presentmode:stack
Posted: Mon Dec 15, 2014 6:17 pm
by Paul
Hi Megumi,
The code you supplied for your local form view has a RequestACTION of 'SUBMIT' where the form is set up.
I don't think a local form view should be set up in this way.
If you see the shipped example LREX0331A, it is not set up in this way.
Re: [RDMLX]offline-show a formview in presentmode:stack
Posted: Mon Dec 15, 2014 8:03 pm
by MegumiSawada
Yes, I've also suspected that RequestAction cannot be used in local/offline form.
However, then, how can I implement to show a formview in presentmode:stack?
I have no idea to do so without using separete RequestAction.
Could you please let me know how to do it? Any clue would be appreciated.
Megumi
Re: [RDMLX]offline-show a formview in presentmode:stack
Posted: Tue Dec 16, 2014 9:47 am
by Paul
Hi Megumi,
Presentation mode STACK is demonstrated in the following shipped examples;
- LREX0305 - Other Offline Techniques
- LREX0307 - Offline Work with Photos
- LREX0321 - Work with Order Header
- LREX0340 - Offline Work With List
Please have a look at these and post any other questions that may you have.
Paul
Re: [RDMLX]offline-show a formview in presentmode:stack
Posted: Tue Dec 16, 2014 11:20 am
by MegumiSawada
Hi Paul,
Oh, I'm sorry I forgot to tell you one important thing.
The customer would like to implement this within one reusable part.
These example uses multiple reusable parts.
Is it possible to do this within one reusable part?
Megumi
Re: [RDMLX]offline-show a formview in presentmode:stack
Posted: Tue Dec 16, 2014 1:32 pm
by Paul
Hi Megumi,
I'm sorry I don't know of an example of this being demonstrated.
I'm told by the LongRange development team that, if you wanted to open the same form again offline, you would use the OpenForm operation and not the PerformAction operation.
In this case, you don't need an ACTION and you can still use the Presentation mode STACK.
Paul