Solved

Dialog box & Open (uidoc) parent document - Value transfer.

Posted on 2004-08-27
18
925 Views
Last Modified: 2013-12-18
Let us call :
dialog box as A
Opened document (edit mode) as B

I want to transfer the value from a dialog box A to document B as i keep on selecting values in A and click on a "Add" button in the dialog box (not the default OK button).
I want to keep seeing the values appended as being added from B.

This field where i am appending the values in B is a multi value field and i would like it SUMMARY property to be OFF to prevent it from blowing off with 64 k error.

Any ideas  or sample code would be appreciated?
0
Comment
Question by:navgup
  • 8
  • 4
  • 4
  • +1
18 Comments
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 11914763
Notes version ?

In R6, you can use RefreshParentNote method/command to refresh the values from dialog to host document. But Note the field value in dialog should be in the form B and the field should be a computed field.

~Hemanth
0
 

Author Comment

by:navgup
ID: 11915360
I m using 5.0.10. I think ws.refreshparentnote is also avl in R5. Does it work same or their is any difference ?
0
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 11915904
Yes I was meant to say R5...No differences, they are same in both versions
0
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 

Author Comment

by:navgup
ID: 11916472
i tried form B has the same fields the dialog box has and both sides they are computed but as soon as i click on "Add" button in the dialog box. The fields in the dialog box gets new values appended but the same is not getting appended to the form B.
 In the "Add Parts" button formula in the dialog box i m saying :

FIELD matlist := matlist : newmat;
FIELD batlist := batlist : newbat;
@Command([viewrefreshfields]);@command([refreshparentnote]);""

What am i doing wrong ?
0
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 11916661
In the dialogbox call , enable newFields parameter
0
 

Author Comment

by:navgup
ID: 11916836
matlist is a common field and newmat is a new data entry field. i.e i m trying to append newmat to matlist every time the user clicks on add button.

If i enable newfields parameter on in the dialog box, will it not create newmat field in B ?
0
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 11917400
yes that is what the intention is...

So what is the compute formula for fields on Form B then ?? If it is same as dialog then you have to pass the new fields to form B too
0
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 11919715
Do you want to update the B form on the screen while the dialogbox is open? No can do! After the dialogbox has closed you will have to do a Refresh. I could of course suggest to use a NotesTimer... but it might crash your Notes :)
0
 

Author Comment

by:navgup
ID: 11930389
Yes sjef_bosman, i want to update form B while dialog box is open.

Hemantha, in form B i have formulas as the same field name. For eg. field matlist has matlist, batlist has batlist in computed formula.

Are you sure we can do it that way ?
0
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 11930900
Yes.. the command is supposed to do that without user intervention and control thru code.

After refreshparentnote...Use reloadwindow command
0
 
LVL 46

Accepted Solution

by:
Sjef Bosman earned 40 total points
ID: 11931444
I'd say this is IMPOSSIBLE!

What you can do is: close the dialogbox, refresh and reopen it immediately afterwards.

If I'm wrong I'll buy a new hat and eat it.
0
 
LVL 31

Expert Comment

by:qwaletee
ID: 11932223
Sjef, give the hat to Hemantha, I think you are correct.
0
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 11932741
The dialog does push the changes to form B, but is not visible as you are looking at the doc in memory before loading the dialog. This will be refreshed only when the control is given back to the form.... SO Sjef's workaround of closing and opening is the soln..

Sjef, I would prefer to wear the new hat rather than having it for lunch ;-)
0
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 11932843
Hemantha: you are allowed to bake your own Pizza Hat if you want to...
0
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 11933246
I am pretty lazy..
0
 
LVL 31

Expert Comment

by:qwaletee
ID: 11957329
HemanthaKumar,
> I am pretty lazy..
I heard you were just plain lazy :)
0
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 11957364
want it to be pretty, I like it that way
0
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 11961233
Then get a pretty hat and not a plain one :)
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For Desktop Techs: How to retain a user's Notes configuration data when swapping out the end user's computer. (Assuming that you are not upgrading to a completely different version of Notes client) All you need to do is: 1) install Notes o…
This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question