Page 1 of 1

Changing data in an HTML container

Posted: Thu Mar 15, 2012 3:59 pm
by leomoore
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.

Re: Changing data in an HTML container

Posted: Thu Mar 15, 2012 4:02 pm
by Brian
Replied to your support email on this topic.

Re: Changing data in an HTML container

Posted: Fri Mar 16, 2012 8:38 am
by leomoore
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.