Fill Fields Dynamically Not in Edit Mode
Fill Fields Dynamically Not in Edit Mode
(OP)
Hi all,
I hope I explain this correctly. We have a subform that has fields that are dynamically filled with items from another database when the form is loaded. I want the document to be locked in readonly mode during the entire process so noone can modify it. I can get everything working right except for the fact that the document won't update unless it is in edit mode. Coming out of edit mode through lotusscript makes headaches of its own, so I would rather the doc. always be in readonly. I'm thinking that if computed fields can dynamically establish their values without being in edit mode, then I should be able to modify a document as it is loaded without going into edit mode. When the user selects the entry in a view, I have all of the information that I need at that point to also fill the subform correctly. I'm not sure when to fill the subform so that it won't go into edit mode. Any help would be appreciated.
Thanks,
Fred
I hope I explain this correctly. We have a subform that has fields that are dynamically filled with items from another database when the form is loaded. I want the document to be locked in readonly mode during the entire process so noone can modify it. I can get everything working right except for the fact that the document won't update unless it is in edit mode. Coming out of edit mode through lotusscript makes headaches of its own, so I would rather the doc. always be in readonly. I'm thinking that if computed fields can dynamically establish their values without being in edit mode, then I should be able to modify a document as it is loaded without going into edit mode. When the user selects the entry in a view, I have all of the information that I need at that point to also fill the subform correctly. I'm not sure when to fill the subform so that it won't go into edit mode. Any help would be appreciated.
Thanks,
Fred
RE: Fill Fields Dynamically Not in Edit Mode
If they are, it might work.
Pascal.
RE: Fill Fields Dynamically Not in Edit Mode
I was able to get around the problem by putting the code in an event fired by the view. Once the event fired, I knew which back end doc I wanted to modify, so I did it before creating the uidoc. Everything has worked great since.
Thanks,
Fred