Hi Bruce,
I am on 5.20 now.
>> If the field is "read only" then it is not copied from the "Value" to the "Variable" in the CompleteForm routine
Ah, that explains it perfectly.
>> I've primed both memory, and file fields using the "priming" tab (are you doing this or priming in hand-code?)
On Insert I use the Priming Tab with a little bit of hand code after that, and in this handcode I prime both as well.
On Update I only use handcode in the embed point just below the embed point where the priming would take place, as most of the 'memory' fields is in related files, Yes/No questions are stored in strings (eg 0100010100 would be yes,no,yes,yes,no), etc. and I set only the "Values" and now I know why it does not work.
>> I'm not sure how this affects your logic.
One example would be when a 'Yes' turns to a 'No' the Required logic in the template 'breaks'. And the information in these 'memory' fields displayed on the screen changes.
I now know what to do, but it is quite cumbersome, and almost all the stuff we do works like this and we have a lot more stuff to do. (All those licenses we bought was that once I have laid the foundations, the rules, etc the other guys can start to help.)
What is the chances of you including a routine that simply copy all 'Values' to 'Variables', ie all the variables declared as local data? After setting all the values, I can simply say do SessionValuetoVariable or something like that.
or probably much better, maybe p_web.SetSessionAndVariableValue (p_web.SSAVV)?
Thanks man, you are the Boss.
Cheers
Charl