Embedded view in a subform based on a formula(replicaID) on fly, is that possible?

Hi All,I have a lotusscript dialogbox code behind a button, when click the button, the dialogbox popup with an embedded view on it which can select one or more documents. There is also a replicaid field on the subform to capture the database replicaid which the embedded view belongs to, the replicaid is changed because the database is changing, they maybe in differenct database and server, so the embedded view is chaning based on the replicaid.

Is this possible?

Thanks for any reponses.

Subject: Embedded view in a subform based on a formula(replicaID) on fly, is that possible?

Maybe I am complicating things but this is an ide.

Create a frameset that has a computet forumla for the view to display using the replica id in some way.

Create a page that has auto frame set to the frame in the frameset.

In the form that you want to display - put in an editor using the page/form that you had open ań autoframe.

Before you open the dialog using lotusscript - set the replica id info in a session variable that you use in the frame computet formula to decide what view/replica id to use.

Something like that would probably do it.

Peter Närlund, DomainPatrol

http://domainpatrol,org

Subject: good, twisted idea, but does not work in a dialog box

I’d like to see something like this working. I’m about to scrap some of my code as an embedded view in a dialogue box is too touchy and there are too many limitations in my understanding (I’d like to hear from Peter Cong how he expects to treat this issue)

If there is a limited number of replicas, Peter might embed several views from all concerned databases, then hide all except the “correct” one. If the procedure described is meant as means to “configure” the application to point to the correct replica once the environment changes, about the only way is to “modify design” once the application gets deployed in the environment where the same db uses a different replicaid.

Unfortunately there is another downside to what Peter C is trying to accomplish. Assuming he implements what he tries (IMO you cannot do exactly what he wants) - once the user selects one or several docs there is no (good) way to tell which docs have been selected. Or at least as I mention above the options are too limited.

Subject: RE: good, twisted idea, but does not work in a dialog box

Hi Normunds,Thanks a lot for the response,

After tried a lot of tests, I think you are right, it is not doable.

Basically I want to simulate the similar result as Dialoglist due to limitation of the @DbColumn used in Dialoglist can not be validated.

That is why I want to switch to lotusscripts to use dialogbox with embedded view. Exactly as you said, selecting documents is another problem except the dynamic select view according to replica id.

So I think I have to give up this idea.

But, please let me know if you have found any better ways.

Thanks