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 07 JAN 1999 04:51:02PM Greg James, ISIS, Inc. wrote:

Is it possible to create an event script for a control that was created (on the fly) using the Utility("CREATE") function?

I tried to create a promoted event for the control type that I am interested in doing this with, but it didn't work – I suppose because the form wasn't re-compiled after the control was added to the form.

Would it be possible to create a new repository entity (again, on the fly) for the control and then copy a row from the SYSREPOSEVENTEXES table that contained the desired event handling to a new row in the SYSREPOSEVENTEXES table corresponding to the event for the newly created control?

Any advice would be appreciated.

[email protected] onmouseover=window.status=email greg james;return(true)"


At 07 JAN 1999 05:45PM [email protected] - [url=http://www.sprezzatura.com]Sprezzatura, Inc.[/url] wrote:

Don't think you need a repository entry, just a notation in the structure should probably cut it. Examine one with an event and compare to what you have during create. It's a long string, with the name of the event, the app name (sometimes just SYSPROG), the number of paramaters and something else. Since it's based on name, the system just reads, I think. I've been under the impression it doesn't use the repos until it wants to access the exe, and even then I don't think it does either.

[email protected]

Sprezzatura, Inc.

www.sprezzatura.com_zz.jpg


At 08 JAN 1999 10:32AM Cameron Revelation wrote:

Greg,

Is it possible to create an event script for a control that was created (on the fly) using the Utility("CREATE") function?

Yes. That functionality requires a development license to run.

I tried to create a promoted event for the control type that I am interested in doing this with, but it didn't work – I suppose because the form wasn't re-compiled after the control was added to the form.

See QUALIFY_EVENT and EVENTQUALIFIER. Also look at the help in the EventDesigner tool.

Would it be possible to create a new repository entity (again, on the fly) for the control and then copy a row from the SYSREPOSEVENTEXES table that contained the desired event handling to a new row in the SYSREPOSEVENTEXES table corresponding to the event for the newly created control?

Yes. That functionality requires a development license to run.

See also example code in:

1) IndexLookup

2) Popup_Sub

Cameron Purdy

Revelation Software


At 08 JAN 1999 11:15AM Greg James, ISIS, Inc. wrote:

Is there any way to do this without a full development license of OI?


At 09 JAN 1999 08:35AM Don Bakke wrote:

Greg,

AFAIK you cannot do this without some version of an OI development license, i.e., a multi-CDP development OI or a DRSDP deployment of OI. There is an interesting discussion thread related to this subject on the Advisory Board going on right now. If you have access to this then I highly suggest you pop in and contribute your thoughts.

[email protected]

SRP Computer Solutions


At 09 JAN 1999 09:06AM Don Bakke wrote:

Greg,

On second thought, you might be able to get what you want without a runtime license. You can always create a control "on the fly" with a generic reference to an event. We do this with Context Menus and with a utility we wrote that places a "drop down" looking button in edittable cells so we can provide a simulated drop down combo box effect. In both cases the structure of the controls are set up to call the current form's OMNIEVENT. Of course you have to have all possible event processing already written and compiled and you just make the appropriate branch call based on which virtual control made the called the event.

[email protected]

SRP Computer Solutions

View this thread on the forum...

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