PxPlus User Forum

Main Board => Discussions => Language => Topic started by: bteixeira on November 18, 2020, 02:05:08 PM

Title: Force screen refresh in iNomads
Post by: bteixeira on November 18, 2020, 02:05:08 PM
Is there a way to force a screen refresh in iNomads?  refresh_flg=1 does not seem to do it.  I'm particularly interested in changing the template in code %inomads'template$="newtemplate" and then redrawing the current screen with the new template.
Title: Re: Force screen refresh in iNomads
Post by: bteixeira on November 18, 2020, 04:41:06 PM
Inspecting %inomads'* shows a 'redraw() method that seems to do what I need but isn't documented anywhere.  Anyone know if this is safe to use / which version it was added in?
Title: Re: Force screen refresh in iNomads
Post by: Mike King on November 19, 2020, 05:10:02 PM
Generally just changing the %inomads'template$ value forces a redraw of the page -- assuming the value you set to is correct.