Jump to content
bcooney

Multi-window Virtual Lists

Recommended Posts

I have a popover portal that displays a virtual list. My client would like to have two or more windows open at the same time. (ugh, i know).

Currently, if the user has two windows each with a popover portal displayed, they are parsing the same $$vlist, and so one popover's portal is showing the wrong data.

My options seem to be:

  • find a way to make the $$vlist window specific
  • find a way to close the first popover if the user makes a different window active (both popovers do not need to be visible at the same time)
  • hide one popover by storing a key in the virtual list that compares the record to this key in the $$vlist, and if the key isn't there, the portal hides. (don't like this UX).

Thoughts? Is there a switched window trigger??

Share this post


Link to post
Share on other sites

You could use named buckets for the $$var repeats:

 

$$var[ code(get(windowname)) ]

 

Share this post


Link to post
Share on other sites

I've done that for all the other $$vars, Wim. Exactly what you have there (although I put Code(get(window name)) in a CF to save typing.

Hmm...why did I think that my virtual list wouldn't work this way? 

Wim! Thank you. Works perfectly.

Share this post


Link to post
Share on other sites

Any suggestions as to how I can cleanup all the $$vars? I'm using them for $$active.button[wincode] in button bars, too. I suppose I can use custom menus mapped to Close and there run a cleanup script.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×

Important Information

By using this site, you agree to our Terms of Use.