Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

At 03 JAN 2003 03:19:28PM Richard Hunt wrote:

Is this a flaw in the popup function?

I was testing a post proceedure. It selects all the unposted items and passes that active cursor to a popup. Well I forgot to realize that there were all the items that were unposted. So that created a select list of about 20,000 items (definately not normal). So while the popup was displaying the whole list of 20,000 items, I clicked "cancel". The popup closed just fine. Although, it did not "clear" the active cursor.

Is a popup suppose to clear the active cursor it is using?

I used the "User Interface Workspace" to create the popup. Under the "source" tab I have selected "cursor of table rows". I execute the popup with the following source code sentences…

OVERRIDE=NOTHING$

OVERRIDE=CURSOR

ITEMS=POPUP1(WINDOW,OVERRIDE,'POST_CR')


At 04 JAN 2003 03:33AM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote:

We're guessing that what you're seeing is "unanticipated functionality". Popup was modified to display before it was completely loaded and to continue READNEXTing in the background to load the remaining pages. We'd guess that Cancel omits to clear the active select and that the workaround pro tem is to issue a clearselect upon return from popup.

The Sprezzatura Group

World Leaders in all things RevSoft


At 04 JAN 2003 10:28AM Richard Hunt wrote:

I agree with you.

If a program uses a selection method that finds the next available cursor, and calls a popup, and repeats this process 9 times, it will run out of cursors and the selection will act like nothing was found.

I did a fix within the popup function. Within the internal subroutine "CLOSEPOPUP", right before the "RETURN" statement, i put the following…

IF POPUP_STRUCT@ EQ 'C' THEN

CLEARSELECT POPUP_KEYLIST@

END

Back in "AREV" ending a program automatically cleared the select lists (unless you set the @SAVE.SELECT variable to true). Now in "OI" there is no similar item. I realized this after reading Alan Kezber's 12/18/02 post about "question about rlist".

Now upon closing a window, I must clear all active select lists.

I see no reason why an active cursor (select list) should not be cleared within the popup function. Would be nice if this would be fixed in the next upgrade.

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/b5fe551a4b52668285256ca3006fa581.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1