Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 28 JUN 2002 10:52:03AM Jim Jefferson wrote:

Arev 3.12

Wondered if something was possible; couldn't find a direct reference anywhere in the doc'n on POPUP or in a search of this KB.

Our window has a multivalued list of mutually exclusive "codes". When pressing F2 to get the popup of possible values, is there any way for the calling routine to tell the popup how to highlight/select the codes the user had previously selected?

For example, if the window's m-v list contains the codes 1, 3, and 5, I'd like to call the popup with those codes already highlighted and selected. The user could then select more, or even de-select one of these three. On return, the m-v list would just be repopulated with the contents of @ans.

This is working programatically now, but I thought it would be a nice feature to add if it is possible.

TIA,

Jim


At 28 JUN 2002 11:42AM Don Miller - C3 Inc. wrote:

I don't understand .. if it's working programatically, then ??? On the other hand if it's not, then you'll have to do it programatically. That is, PopUp does not automatically save the last selection. You can do that by wrapping a routine on it that will read a record from your lists file with the key "POPUP*POPUPNAME*@STATION which will contain the last selection used. Then you can pre-tag the popup before displaying it and then saving the new selection under the same key .. at least that's how I do it.

In fact, I've encapsulated a subroutine to do this since it's fairly common.

Don Miller

C3 Inc.


At 28 JUN 2002 12:50PM Jim Jefferson wrote:

Yes, I wanted to figure out how to "pre-tag" the items in the popup list. That's what I can't find how to do in the docs.

Thanks!


At 28 JUN 2002 12:56PM Jim Jefferson wrote:

It was right in front of me. The type position contains an @TM delimited list of rows to be selected by default.

Off to get my glasses checked……

Thanks for the help!

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/42349fd5755ff32d85256be60051ab9e.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1