[[https://www.revelation.com/|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]]
==== Sending events with extra parameters (OpenInsight Specific) ====
=== At 01 JUL 2001 12:37:11PM Oystein Reigem wrote: ===
{{tag>"OpenInsight Specific"}}
The normal place to put an edit control's popup is the OPTIONS event of the edit control. That's what I always do. What I very often have as well is a button that sends OPTIONS to the edit control. The button clearly tells the user options are present.
But what if one and the same edit control has two popups? (The control can e.g be an edit table with individual popups for each column. Or it can be an edit line with two different popups that present the same set of legal values ordered in two different ways.) Now two buttons are necessary. But they can't both send OPTIONS to the edit control. The OPTIONS handler cannot know who the sender was, and it might not be obvious from the context which popup the user wants.
I just needed an edit table today with more than one popup. I was so naive I thought the buttons could send an extra parameter along with OPTIONS, telling which button was the sender, but that isn't so. OPTIONS isn't supposed to have any parameters, and the parameter is lost. It doesn't matter if the event is sent by a quickevent or programmatically.
Now I have to use
OMNIEVENT OPTIONS 1
OMNIEVENT OPTIONS 2
or something.
Why does it have to be so?
- Oystein -
----
=== At 01 JUL 2001 08:34PM Scott, LMS wrote: ===
Hi Oystein
I could be completely wrong, but based on what you have been teaching me:
From the control, execute a commuter event. In the commuter event, figure out which popup is required based on which column the cursor was in (SELPOS?) or what ever else you like to use.
The user always thinks of a way of using the system that the programmer never anticipated no matter how much pondering of the possiblities the programmer might do in advance. Well thats my theory. To quote/paraphrase Bill Gates "64K ought to be more than enough for anybody"
Why is it so? Why is anything so?
Scott, LMS
----
=== At 02 JUL 2001 04:25AM Oystein Reigem wrote: ===
Scott,
[i]I could be completely wrong, but based on what you have been teaching me: From the control, execute a commuter event. In the commuter event, figure out which popup is required based on which column the cursor was in (SELPOS?) or what ever else you like to use.[/i]
No, you're not wrong. That's what I do. Although I prefer NOTIFYPOS to SELPOS in case I use a doubleclick to trigger OPTIONS.
But my problem is when the [i]buttons[/i] are used. I want button 1 to bring up popop 1 even if SELPOS might happen to be in column 2. I felt each button should be allowed to append an extra parameter to the OPTIONS it sends the edit table, telling which button was the sender, or equivalently, which column to popup for.
It's dead easy to get around the problem, but I was so annoyed I had to mess up my very neat and tidy solution. I was just in that mood.
[i]To quote/paraphrase Bill Gates "64K ought to be more than enough for anybody"[/i]
Must be 64K of million dollars.
I'd settle for 64K of million Norwegian Kroner, btw.
[i]Why is anything so?[/i]
I think that was discussed on the Web recently. Do a search and find out. :-)
- Oystein -
----
=== At 03 JUL 2001 12:44AM Scott, LMS wrote: ===
Hi Oystein
Urg. What keywords would you use to find a discussion on "why is it so?"
forty-two?
Scott, LMS
----
=== At 03 JUL 2001 03:18AM Oystein Reigem wrote: ===
Scott,
Don't listen to my ramblings. And don't think too much about eternal questions. We love you all. Isn't that enough for you? :-) :-) :-)
Btw - I tried to search Google for "why is it so?" Here's what came up first on the list:
(Removed link by Webmaster)
(Hope it isn't offensive.)
- Oystein -
----
=== At 03 JUL 2001 09:42PM Scott, LMS wrote: ===
Hi Oystein
I think you are going to have to email me that link. The Webmaster obviously didn't like it.
One aspect of my sense of humour involves taking literal meanings to their logical extreme. I don't know why that amuses me but it does.
And I think The Answer is irrelevant. As old saying: Before enlightenment, Chop wood, carry water; After Enlightment, Chop wood, carry water.
Scott, LMS
[[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=NONWORKS_READ&SUMMARY=1&KEY=3B0196DF00CBB59A85256A7C005B4B87|View this thread on the forum...]]