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
Pui.Download Question
-
- New User
- Posts: 11
- Joined: Wed Sep 03, 2014 4:20 pm
- First Name: Aj
- Last Name: Flint
- Company Name: Advanced Data Systems
- Contact:
-
- 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
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.
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.
-
- 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
Alright, I got that all coded, but now I'm getting an alert box that says:
Onclick Error:
Get is not defined.
Onclick Error:
Get is not defined.
-
- 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
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.
Who is online
Users browsing this forum: Bing [Bot] and 2 guests