[RDMLX]offline-show a formview in presentmode:stack

Please do not use to report errors- use your regional help desk.
Please mark posts as being for RPG or RDMLX (LANSA) developer.
To subscribe by email, display this forum, scroll to the end and select ‘Subscribe Forum’.
Post Reply
MegumiSawada
Posts: 268
Joined: Tue Feb 19, 2013 5:18 pm

[RDMLX]offline-show a formview in presentmode:stack

Post 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
screenshot.png (40.68 KiB) Viewed 5067 times
However, I will get an error when I execute it in airplane mode(i.e. in offline).
IMG_3638.jpg
IMG_3638.jpg (11.78 KiB) Viewed 5067 times
Is it possible to show a formview in presentmode:stack in offline environment?

I appreciate any advice.
Thank you in advance!
MegumiSawada
Posts: 268
Joined: Tue Feb 19, 2013 5:18 pm

Re: [RDMLX]offline-show a formview in presentmode:stack

Post by MegumiSawada »

Here are the sources(RDMLX code and js).
sample.txt
(1022 Bytes) Downloaded 240 times
sample.js
(1.49 KiB) Downloaded 206 times
Paul

Re: [RDMLX]offline-show a formview in presentmode:stack

Post 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
MegumiSawada
Posts: 268
Joined: Tue Feb 19, 2013 5:18 pm

Re: [RDMLX]offline-show a formview in presentmode:stack

Post by MegumiSawada »

Hi Paul,

Yes,the formview is set to "local form".

Thank you!
Megumi
Paul

Re: [RDMLX]offline-show a formview in presentmode:stack

Post 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.
MegumiSawada
Posts: 268
Joined: Tue Feb 19, 2013 5:18 pm

Re: [RDMLX]offline-show a formview in presentmode:stack

Post 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
Paul

Re: [RDMLX]offline-show a formview in presentmode:stack

Post 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
MegumiSawada
Posts: 268
Joined: Tue Feb 19, 2013 5:18 pm

Re: [RDMLX]offline-show a formview in presentmode:stack

Post 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
Paul

Re: [RDMLX]offline-show a formview in presentmode:stack

Post 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
Post Reply