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 01 JAN 2010 10:05:09PM Joh Hartog wrote:

Hi there!

I'm transferring an old application (still in use) from 3.7 to 9.1.

A common feature is a button on one form that calls another form. A script tells it to look at the Key value and enter that in the called window (both belonging to the same table). The following script worked fine in 3.7, but in 9.1 there is no response.

Declare subroutine set_property, char

Declare function get_property

Declare subroutine START_WINDOW

RetVal=get_property(@window:'EVENT_NO','TEXT')

If Len(RetVal) then

Start_Window('EVENT_FACT_PERF_DETAILS',@window,RetVal)

end

RETURN 0

The event handler had both a and an . Removing the had no effect. Leaving the and no calls the window, but does not enter data in the key field of that window (of course).

My question is: why does this not work in the latest version of OI. What needs to change?

Joh


At 02 JAN 2010 03:22AM David Goddard wrote:

G'day Joh,

When the new window starts, you need to have some script on the window create event which checks the createParam variable for the record key then:-

1. uses set property to put the value in the key control

2. trigger the window read event by calling the send_event function.

Happy New Year!

Dave G


At 02 JAN 2010 01:22PM DSig (SigsSolutions, Inc) wrote:

David is, of course, right in the approach. I looked at a old app that we did very similar to your approach (because there was a limit to the number of controls). But in ours we do the start window then a set_property and an read event from our calling window.

I don't remember start_window ever automatically reading …

View this thread on the Works forum...

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