Jim,

Don't enable the button until conditions are met.

IF vdatecheck IS NULL THEN
  PROPERTY mybolbutton ENABLED 'FALSE'
ELSE
  PROPERTY mybolbutton ENABLED 'TRUE'
ENDIF

Jan
 


-----Original Message-----
From: "Jim Belisle" <[email protected]>
To: [email protected] (RBASE-L Mailing List)
Date: Wed, 9 Dec 2009 08:55:34 -0600
Subject: [RBASE-L] - form within form


 
I have a primary Bill of Lading form that has a header and detail section.  
The header is populated with information from our orderheader and detail 
section from orderrows table.
Upon entry the EEP checks for certain information and if the criteria is 
met, goes to the detail section before the BOL date is filled in the Header.
I do this because I want to make sure this information is not overlooked 
when shipping partials.
 
Once back in the header, I then have a bit button that is eventually pressed 
to fill in Bill of lading rows.
This is separate from the detail section on the main form and is for package 
weights etc.
 
What I have tried but failed to do is create code that will not allow me 
into the bit button form if the BOL date is null.
I have a component ID on the BOL date field and tried this on the Bit 
button.
 
GETPROPERTY comp_boldate textvalue vdatecheck
IF vdatecheck IS NULL THEN
  PAUSE 2 USING 'No Date or BOL info Entered' CAPTION 'NEED DATE' ICON 
serious BUTTON 'STOP'
  GOTO done
ENDIF
LABEL done
CLOSEWINDOW
PROPERTY comp_boldate SET_FOCUS 'TRUE'
RETURN
 
Any suggestions?
 
Jim
 
We have a nice snow storm here in Iowa.  Nice to work from the house.
 
 

Reply via email to