{{tag>category:"OpenInsight 32-Bit" author:"Richard Hunt" author:"[url=http://www.sprezzatura.com]The Sprezzatura Group[/url]"}} [[https://www.revelation.com/the-works|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]] ==== Problem with popup using active cursor. (OpenInsight 32-Bit) ==== === 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 [i]pro tem[/i] is to issue a clearselect upon return from popup. [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] [i]World Leaders in all things RevSoft[/i] [img]http://www.sprezzatura.com/zz.gif[/img] ---- === 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. [[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=WORKS_READ&SUMMARY=1&KEY=B5FE551A4B52668285256CA3006FA581|View this thread on the Works forum...]]