Pui.Download Question

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
AjFromADS
New User
Posts: 11
Joined: Wed Sep 03, 2014 4:20 pm
First Name: Aj
Last Name: Flint
Company Name: Advanced Data Systems
Contact:

Pui.Download Question

Post by AjFromADS »

In my RPG program, I generate and fill a Temporary IFS File, then I fill a field on the screen with the name of that file.
I'm looking for a way to fill the ID parameter of Pui.Download API With what's in that field.
I'm not familiar with JavaScript, so any help would be much appreciated.

Thanks,
AJ
negley
Profound User
Posts: 45
Joined: Tue Mar 11, 2014 2:50 pm
First Name: William
Last Name: Negley
Company Name: Utz Quality Foods
Contact:

Re: Pui.Download Question

Post by negley »

In javascript, all you would need to do is:

pui.download({ "id": get('OutputField1') });

get( ID ) -- Make sure you find what the ID of your dynamic output field would be. The ID is different than what you bind for RPG.

http://www.profoundlogic.com/docs/displ ... %28+id+%29

I assume that you are using a button, so this would go onto a onclick() property of the button.
AjFromADS
New User
Posts: 11
Joined: Wed Sep 03, 2014 4:20 pm
First Name: Aj
Last Name: Flint
Company Name: Advanced Data Systems
Contact:

Re: Pui.Download Question

Post by AjFromADS »

Alright, I got that all coded, but now I'm getting an alert box that says:

Onclick Error:
Get is not defined.
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Pui.Download Question

Post by Scott Klement »

Javascript is a case-sensitive programming language. The error message complains of Get not being defined -- that's because it should be 'get' (all lowercase). In Javascript, get and Get are two different things, because it's case-sensitive.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests