We have a button defined from a HTML container that contains a hardcoded e-mail address. Since this address is mutable over time and the button is ubiquitous in our system, I would like to have a way to pull this address from a table on the iSeries for display and to use in addressing email. This would prevent a looming crisis of updating the system if we must modify every screen with the button (possibly over 1000), with all the attendant recompiles this will entail not to mention the frightful number of opportunities for fat-finger errors.
I cannot find anything directly relevant to this need in the forums or Profound documentation.
Changing data in an HTML container
-
- Profound User
- Posts: 35
- Joined: Thu Mar 15, 2012 3:42 pm
- First Name: Robert
- Last Name: Moore
- Company Name: General Parts Company
- Phone: 770-818-4736
- Address 1: 3100 Windy Hill Rd.
- City: Atlanta
- State / Province: Georgia
- Zip / Postal Code: 30339
- Country: United States
- Contact:
- Brian
- Profound Logic Staff Member
- Posts: 286
- Joined: Thu Apr 14, 2011 10:23 am
- First Name: Brian
- Last Name: May
- Company Name: Profound Logic Software
- Contact:
Re: Changing data in an HTML container
Replied to your support email on this topic.
-
- Profound User
- Posts: 35
- Joined: Thu Mar 15, 2012 3:42 pm
- First Name: Robert
- Last Name: Moore
- Company Name: General Parts Company
- Phone: 770-818-4736
- Address 1: 3100 Windy Hill Rd.
- City: Atlanta
- State / Province: Georgia
- Zip / Postal Code: 30339
- Country: United States
- Contact:
Re: Changing data in an HTML container
I am posting the reply from Brian May to my support request. It worked like a charm and spared me loads of trial-and-error.
This should be possible. I would recommend putting a mailto link, "mailto:someaddress@domain.com", in a hidden output field on the screen. Then your program can pull the address from your table each time the program runs. Your button could then have an onclick function of pui.link(get("hiddenFieldID")); where "hiddenFieldID" is the ID assigned to the output field with the mailto link.
Who is online
Users browsing this forum: Bing [Bot] and 4 guests