I use a similar method, but instead of copying all fields I replace all fields with a specific prefix (CFG_"fieldname")
The wqs-agent creates the profile and updates the profile. The form is just a GUI to modify the values (saveoptions = 0). The default value of each field in the gui is val:= @GetProfileField("MyProfile"; @ThisName). I also include a errorcheck (@if(@iserror(val)...) for each field so I can use a default value for each field if the profile or field doesnt exist.
This will force the GUI to display the latest values from the profile.
...but I have the same problem as you Jake, the values are cached for the session. A workaround that sometimes works is to always delete the profile before updating it... but it might give you other problems (in a replicating environment).
The soluton isn't perfect so I use it only for configuration settings etc (semi-static values)
I use a similar method, but instead of copying all fields I replace all fields with a specific prefix (CFG_"fieldname")
The wqs-agent creates the profile and updates the profile. The form is just a GUI to modify the values (saveoptions = 0). The default value of each field in the gui is val:= @GetProfileField("MyProfile"; @ThisName). I also include a errorcheck (@if(@iserror(val)...) for each field so I can use a default value for each field if the profile or field doesnt exist.
This will force the GUI to display the latest values from the profile.
...but I have the same problem as you Jake, the values are cached for the session. A workaround that sometimes works is to always delete the profile before updating it... but it might give you other problems (in a replicating environment).
The soluton isn't perfect so I use it only for configuration settings etc (semi-static values)