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 21 JUN 1999 02:33:54PM Daniel Manning wrote:

   I would like to verify whether a conclusions I made about UDC's is correct. The fourth parameter of a UDC (Output Value) when doing a validation appears to operate differently.  Output Value in ARev was the value that was placed in @Record and into the prompt's value.  That is not the case in OpenInsight.
   If one wanted to restore the original prompt value in ARev upon a validation failure, the Output Value was set to IS_Orig.  Setting Output Value appears to affect @Record in OpenInsight, but not the text value of the control.  In other words, the control will continue to display Input Value.  To restore the original value, one has to retrieve it from @Record and Set_Property it back to the control.    

At 21 JUN 1999 03:50PM Gene Sorbo wrote:

Daniel,

Log into the sysprog application and check out how the SSN_FORMAT and ZIP_FORMAT SSPs. Very simple UDFs that I think will give you what you're looking for.

If you need, I can post the code.

Gene


At 22 JUN 1999 09:21AM Dan Manning wrote:

Gene:

   Thanks for the response.  The source code for the system routines do not, however, address the issue.  None of the validation branches attempt to change the initial input value; they simply assign In_Value to Out_Value.  It appears to me that the control's property is changed before the validation routine is called.
   In my current situation I am retrieving the original value from @Record and resetting through Set_Property.  I am nervous about relying on @Record and hope that someone has a better way of handling this.

At 22 JUN 1999 09:26AM dsig@teleport.com wrote:

Daniel,

Not a direct answer to your UDC question but ..

We have a generic routine which is placed in all GotFocus/LostFocus events in which one of the things we do is capture the controls DEFAULT property on GotFocus. This allows us to replace the data if necessary.

Since this is a global event it always happens and we don't have to put it in each ctrl events

dsig@teleport.com onmouseover=window.status=imagine … ;return(true)"

David Tod Sigafoos ~ SigSolutions

voice: 503-639-8080


At 23 JUN 1999 06:32PM Cameron Revelation wrote:

Daniel,

The UDC with the system LOSTFOCUS and POSCHANGED event implementations should modify the control's contents automatically.

Do you have either a LOSTFOCUS or POSCHANGED (for an EditTable) event on those controls? If so, make sure they either forward the event or RETURN 1. Also the split in responsibilities between the ICONV and OCONV calls to the UDC is a little different in the OpenInsight form logic compared to Arev. See this post on the Works section.

Cameron Purdy

Revelation Software


At 24 JUN 1999 08:44AM dsig@teleport.com wrote:

Daniel,

Here is a link to a response from cameron, on the open side of RTI board, dealing with this same type of question .. click here

dsig@teleport.com onmouseover=window.status=imagine … ;return(true)"

David Tod Sigafoos ~ SigSolutions

Cell: 503-341-2983

dsig@teleport.com

View this thread on the forum...

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