Display PDF's latest version depending on connection mode

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
LEBAS
Posts: 23
Joined: Fri May 11, 2012 5:02 pm

Display PDF's latest version depending on connection mode

Post by LEBAS »

A customer will store PDF files in IBM i’s IFS: these files could be stored in LongRange Resources folders or LongReach folders.

• When any of these PDF files will be displayed in the LongRange App in Connected mode, the customer wants that
...o The current version of this PDF stored on IFS is displayed (i.e. if a version of this PDF is stored in the local cache, he does not want to display it)
...o The local cache will be updated by the current version of this PDF stored on IFS.
...o The customer would like no manual actions. For example, if using a Document library view, he does not want that the user needs to touch an icon then select
..... the Make files available offine option. In fact, he would like an automatic “Push” option.

• When any of these PDF files will be displayed in the LongRange App in Airplane mode, the customer wants that the PDF version cached on the mobile device is displayed.

Can I achieve that using a Document library view? Using a Web view? Using a Form view and a RPG program?

Regards,
LEBAS
Posts: 23
Joined: Fri May 11, 2012 5:02 pm

Re: Display PDF's latest version depending on connection mod

Post by LEBAS »

I forgot to say that the customer use both iOS and Android mobile devices (tablets and smartphones).
MarkDuignan
Posts: 346
Joined: Wed Apr 18, 2012 10:33 am

Re: Display PDF's latest version depending on connection mod

Post by MarkDuignan »

Rather than using PDF documents directly - as uploaded files – have you considered putting them into a local SQL table as BLOBs?

That might offer you more precise control on what document is where and when?

This would also allows you to append other columns to the SQL rows - maybe dates, times, users, etc, etc.

I'm not saying this is definitely the way to go as I have never tried it - but it maybe worth some consideration.
MarkDuignan
Posts: 346
Joined: Wed Apr 18, 2012 10:33 am

Re: Display PDF's latest version depending on connection mod

Post by MarkDuignan »

If the server knows what has been created, updated or deleted in the user’s PDF document set - it would know what needs to be sent up to (or updated or deleted) on the client device. You could probably arrange for the server PDF document sync program to be called semi-automatically.
Post Reply