Problem with popup using active cursor. (OpenInsight 32-bit Specific)
At 01 JAN 2003 05:39:39PM Richard Hunt wrote:
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 02 JAN 2003 07:36AM Don Miller - C3 Inc. wrote:
I've ALWAYS cleared any active select list before and after I use it. This has bumped my nose in the past:
.. CLEARSELECT
.. do your select
.. call whatever you want to do with it .. popup or whatever
.. check to make sure the user selected anything
.. IF SOMETHING_SELECTED THEN
.. GOSUB DO_PROCESS
.. END
.. CLEARSELECT
This has always worked properly in the past .. 16-bit / 32-bit
HTH
Don Miller
C3 Inc.
At 02 JAN 2003 08:32AM Richard Hunt wrote:
Thanks Don,
Although I have conditions where "I think and am not sure" that is not possible.
If the same one user has two windows open, both doing selects, then unless I use the "setting" keyword in the "select by" statement… the two seperate select processes overwrite themselves and cause unpredictable results.
How would you handle this?
At 02 JAN 2003 12:49PM Don Miller - C3 Inc. wrote:
Richard ..
My short answer is that I'm not sure. Since the select lists are not stored with a tag indicating the active process window or whatever, I'm not sure it's possible. The select list is usually tagged with the date/time stamp and that usually is sufficient. I've not run across the case where one select-list overwrites the other from the same workstation, but I'm just now sure.
Maybe someone smarter than me can answer.
Don M.
At 02 JAN 2003 02:45PM Richard Hunt wrote:
Thanks Don, I appreciate your input.
Its definately not like the DOS days. And then since years has gone by with this product being used, I do believe there is a simple "trick" I am overlooking.