Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Field Association

Status
Not open for further replies.

sam2601

Programmer
Apr 9, 2004
81
US
Hi guys,

I have a form with a drop down Department Type and a Cost center editable field.
User will type cost center and drop down will have show the associated Department Types
for that cost centers.

Is there any way i can do it.

I have lotus domino designer 5.0.

Any ideas ...Pls advice..Appreciate it!!!

Thanks
 
Seems feasable. I suppose your departments are all defined in relation with a cost center.
Specifically, I suppose that on every Department doc, there is a field with the cost center it is related to.
In this case, make a view where the first column lists cost centers, and the second lists departments. Sort both columns.
Your drop down field can now use a @dblookup on the cost center criteria, and return the second column.
For this to work correctly, you need to set the cost center field to "refresh fields on change", and the drop-down to "refresh choices on document refresh".

Hope this helps.

Pascal.
 
Thanks Pascal,

I did it as you suggested it works only in Lotus Notes Preview not in Internet Explorer.Is there any way i can make it work in other browsers too.

Thanks and appreciate it!!!
 
In a browser you have to save the document to get the refresh. This is a browser issue - browsers are dumb clients and cannot offer the same level of functionality than in a full client. In any case that is the only solution I have ever found.

Pascal.
 
Thanks Pascal,

I got it to work.What i am doing is refreshing the page onChange event of the text field.It works!!!

Appreciate getting back!!!

Thanks
 
OnChange ? Hmm. I'll have to look into that. You put some Java in there, I guess ?

Pascal.
 
Yes , I wrote some javascript to refresh the page.It works fine!!!.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top