JS Client showpdf & assignpdf commands – OS6.1.3 – Not quite Resolved
Thanks to Mayada, found an error in the calculated pathname, so they were not actually the same.
-Jeff
> On Sep 8, 2017, at 7:51 AM, Mayada Al-Kishtini <malkishtini@gmail.com> wrote:
>
> Jeff,
> Check your variables calculation again.
>
> I just tested this and it did work:
>
> Calculate path as ‘C:temp’
> Calculate fileName as ‘BrainyDataTest.pdf’
> Calculate lID as con(path,fileName)
> Do $cinst.$clientcommand(‘assignpdf’,row(‘oHTML’,’toolbar=1&zoom=20′,lID,20))
>
> Mayada
>
> —–Original Message—–
> From: omnisdev-en [mailto:omnisdev-en-bounces@lists.omnis-dev.com] On Behalf Of Jeffrey Jones
> Sent: Thursday, September 07, 2017 9:19 PM
> To: OmnisDev List – English
> Subject: Re: 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.
>
> On evClick
> Do myList.$line.$assign(myList.$line+1)
> 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.
>
> -Jeff
>
>> On Sep 7, 2017, at 3:37 PM, Mayada Al-Kishtini <malkishtini@gmail.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 file.
>>
>> HTH,
>> Mayada
>>
>>
>> —–Original Message—–
>> From: Mayada Al-Kishtini [mailto:malkishtini@gmail.com]
>> 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,
>> Mayada
>>
>> _____________________________________________________________
>> Manage your list subscriptions at lists.omnis-dev.com
>>
>
> _____________________________________________________________
> Manage your list subscriptions at lists.omnis-dev.com
>
> _____________________________________________________________
> Manage your list subscriptions at lists.omnis-dev.com
_____________________________________________________________
Manage your list subscriptions at lists.omnis-dev.com