JS Client showpdf & assignpdf commands - OS6.1.3 - Not quite Resolved

Jeffrey Jones jjones at synergos.com
Fri Sep 8 11:52:31 EDT 2017


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 at 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 at 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:\PDF\Application 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 at 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 at 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
>> http://www.brainydata.co.uk/supportpublic/tn/tn0024.pdf, but still no 
>> luck, still getting the error " you are not allowed to get the <path 
>> and name of the pdf file> using the getpdf command
>> 
>> Any feedback is appreciated.
>> 
>> Thank you,
>> Mayada
>> 
>> _____________________________________________________________
>> Manage your list subscriptions at http://lists.omnis-dev.com
>> 
> 
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
> 
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com




More information about the omnisdev-en mailing list