[[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]]
==== How to get current field value for pre-read processing (OpenInsight Specific) ====
=== At 09 MAR 2000 12:46:27PM Bill Vaughn Wildish wrote: ===
{{tag>"OpenInsight Specific"}}
I need to perform validation routine on the key field in my input form. I have inserted event code in the read event but have been unable to figure out how to retrieve the value just entered in the key field.
I have tried: Get_Property(@window, "EQUIP_NO"), Equip_No being the edit line id, but nothing is retrieved. Also tried using @ID with the same result. I need to retrieve this value and some cases modify it and return it as the key to be used to read the record.
It seem fairly straight forward, but I am stuck......Any help would be appreciated..
----
=== At 09 MAR 2000 01:37PM [url=http://www.sprezzatura.com" onMouseOver=window.status=Click here to visit our web site?';return(true)]The Sprezzatura Group[/url] wrote: ===
Get_Property(@Window : '.EQUIP_NO', 'TEXT') or
Get_Property(@Window : '.EQUIP_NO', 'DEFPROP')
[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 09 MAR 2000 03:07PM dsig@teleport.com wrote: ===
Bill,
You are using the fully defined control name .. yes?
IF NOT(YES) THEN
the format of get property is
rtn get_property(ctrlname,property)
where ctrlname is the full name starting with the window nameinstance followed by '.' followed by the control name.
So a window called "INV_ENTRY" and a control named "DESC" would give the control the full name of INV_ENTRY.DESC. Note: if you have checked multiple instance in the window properties then you might have something like INV_ENTRY*3.DESC. Also note you can use @WINDOW for your window name.
The properties are listed in the help but 'TEXT' is used for editlines. Look in Sysprocs,Ctrl_Property_Equates for all the good names.
So .. data=get_property(@Window:".DESC","TEXT") will get the data.
dsig@teleport.com onmouseover=window.status=imagine ... opinions that seem to scare;return(true)"
David Tod Sigafoos ~ SigSolutions
cell: 503-341-2983
----
=== At 09 MAR 2000 03:27PM Bill Vaughn wrote: ===
nmf
[[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=NONWORKS_READ&SUMMARY=1&KEY=FF14F965FB9583978525689D0061A324|View this thread on the forum...]]