Page 1 of 1

Display PDF's latest version depending on connection mode

Posted: Tue Mar 18, 2014 10:57 pm
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,

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

Posted: Wed Mar 19, 2014 12:01 am
by LEBAS
I forgot to say that the customer use both iOS and Android mobile devices (tablets and smartphones).

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

Posted: Thu Mar 20, 2014 12:00 pm
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.

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

Posted: Thu Mar 20, 2014 12:05 pm
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.