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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to call Dynamic views in Embbeded View.

Status
Not open for further replies.

pechettysuguna

Programmer
Oct 11, 2001
39
JP
Hi,
(LN version 5.05 )In a form we can't have more than one embbed view.
But can we try to call on click of the button.
As i tried with the if condition its works.
Eg. -> a:=11; @If(a>=12.45;"be01wor";"be02mp")
Can any one help me to write the procedure and which can be called on click of the button and change the name of the view of the embbeded view.
thanks..
 
How about storing the name of the view to open in a field, and using the field name as a parameter in your argument ?

That way, all your button would need to do is change the text in the field, then open the view.

Pascal.
 
Pascal,
Thanks for your response.
I am bit fresh to LN programming. If you can put the above solution in steps.
thanks..
 
The idea is to make your view name a variable, and have your embedded view definition depend on it.

To do so, you need to create a field in your form that will contain the name of the view to open. It needs to be a text field, and should most likely be hidden at all times (the Hide When options should be checked for all major events - Notes, Web and Mobile)

Then, your embedded view formula should use the name of the field you created as view name, all other parameters remaining the same.

Be aware that you will most likely not be able to change the embedded view on-the-fly. The document will have to be saved, closed and re-opened for the embedded view to change.

Pascal.
 
Pascal,
Thanks for the help.
I got another way. May be suprising.
Opened the db in LN6. Added the 3 more embbeded view and saved.
Then, opened the file in LN5. Its work.
thanks..
 
Ouch ! It is not a good idea to put an R6-modified design on an R5 server. That is not the sort of thing Lotus supports. I'm happy it works for you, but I wouldn't have done that.

Pascal.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top