` Edit in place: Required fields (Craig Ransom ) - Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Icetips Article

Back to article list   Search Articles     Add Comment     Printer friendly     Direct link  

Par2: Edit in place: Required fields
1999-08-02 -- Craig Ransom
 
> I want to check if the value a user has entered in the browse (EIP) is > right, and if so, then I want to fill in some other fields of my table. > This is tricky. Yes, the EIP control's TakeEvent is the proper method, but you have to put it AFTER the PARENT call; you have to PRECEED it with an "UPDATE(SELF.Feq)"; you DON'T use the Level:Benign/Notify/Fatal but the EditAction: equates instead; and you DON'T update the file field, but the BRW.Q field instead! For instance, from a test program, this checks for and disallows a blank field. This is AFTER the PARENT call. UPDATE(SELF.Feq) IF ReturnValue AND ReturnValue <> EditAction:Cancel THEN IF BRW1.Q.File1:Field1 = '' THEN MESSAGE('Field Cannot Be Blank','Field Error',ICON:Exclamation) ReturnValue = EditAction:None END END


Today is November 21, 2024, 3:31 am
This article has been viewed 35200 times.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: