I have a feeling I am forgetting something, so I've decide to ask. What I want to do is have visible and protect properties in the datawindow be based on values in the contiaining window or user object. For instance, I have a configuration setting in an instance variable that I would like to use in the visible property of a column. Typically, I've added extra retrieval arguements and passed the data in that way. The only problem is that if the datawindow is not retrieved, but only an InsertRow is executed, the value won't get there. I could do a fake retrieve to pass the value in, but that seems rather hacky.
Sometimes the data applies to the overall datawindow, sometimes it is row-specific.
One option, I suppose, would be to take all the logic out of the datawindow and modify the properties in code using Modify.
Or, store the data in the application object and use a global function to return the value there's no db access so it shouldn't be too bad.
Is there something simple I am forgetting? Any other ideas? Does the PFC have anything that would help?