JS Client showpdf & assignpdf commands – OS6.1.3 – Not quite Resolved
Working on a JS Form in OS 6.1.3
1 HTML Object “formObject”
1 Button with the following method.
Calculate lID as con(iPDFfolder, myList.documentname)
Calculate lID as ‘L:PDFApplication for Title App 130.pdf’
Do $cinst.$clientcommand(“assignpdf”,row(‘formObject’,’toolbar=0&statusbar=1&navpanes=1&zoom=100′,lID,50)) Returns #F
If I comment the second Calculate lID line, so that the path to the existing PDF document is calculated from my list, I get the same error as described below. “You are not allowed to get the [path to file] using the getpdf command.”
If I explicitly set the path as in the second calculate command, the form is assigned to the HTML object and displays as expected.
Stepping through the code, the two lines that calculate lID have the exact same data.
> On Sep 7, 2017, at 3:37 PM, Mayada Al-Kishtini <email@example.com> wrote:
> Just an FYI, for those who are interested in this subject.
> We finally managed to get the showpdf and assignpdf to work with existing
> pdf files.
> Problem was in the way the getpdfFolders was defined in the config.json
> —–Original Message—–
> From: Mayada Al-Kishtini [mailto:firstname.lastname@example.org]
> Sent: Thursday, September 07, 2017 2:18 PM
> To: ‘OmnisDev List – English’
> Subject: JS Client showpdf & assignpdf commands – OS6.1.3
> Hi $all,
> I’m wondering if anyone in the list has success in opening an existing PDF
> file in a JS client using the showpdf or assignpdf client commands.
> I tried to follow the instruction in
> www.brainydata.co.uk/supportpublic/tn/tn0024.pdf, but still no luck,
> still getting the error ” you are not allowed to get the
> Any feedback is appreciated.
> Thank you,
> Manage your list subscriptions at lists.omnis-dev.com
Manage your list subscriptions at lists.omnis-dev.com