Link to home
Start Free TrialLog in
Avatar of Ray Padilla
Ray PadillaFlag for United States of America

asked on

inheriting field values with lotus script on queryopen

I want to inherit a fieldvalue from an email upon replying. I've modified the memo form to contain some additional fields but when I reply to the memo I can't get those fields to repopulate, I can't use inherit on the form because then the memo/reply inherits the from details I was thinking that I could grab the data from the field through lotus script and put it in the proper field on the reply so that the user would not have to REselect the options. Is there any other way that would provide me with the information I need?
Avatar of SysExpert
SysExpert
Flag of Israel image

Using query Open to populate the fields is fine.
Just remember that you may need to refresh the UI.


I hope this helps !
Avatar of Ray Padilla

ASKER

So if I use this line:
Call Source.document.FieldSetText("CustomerJob","dsp_CustomerJob")
Call source.Document.Save(True, False)
in the queryopen then when the reply form opened it would look at the CustomerJob field and replace the text there with whatever is in the dsp_customerjob field correct?
ASKER CERTIFIED SOLUTION
Avatar of olaraak
olaraak
Flag of Estonia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
tried that but it doesn't seem to be working
It should work well, if you have Notes version 6 or newer.
Function @UpdateFormulaContext was introduced in v.6.




I'm on version 8.02 standard and It isn't working, I am trying to populate a dialog list with the information found in dsp_CustomerJob so that the sender does not have to RE pick from the list or he can change the selection.......
I used the code below in the reply button which worked OK but I REALLY need this to be in the QueryOpen of the Reply form. I just need to convert this to LS any takers?

dCJob := dsp_CustomerJob;
@UpdateFormulaContext;
FIELD CustomerJob:=dCJob;
Anybody want to take this on?
Gonna close this and grant the point to olaraak his solution worked even though it was not exactly what I was looking for. The Formula did the job in the Action buttons, was tryting not to have to modify them all...
Thanks olaraak that did work...