Jan,

 

Would the Variable below be in the regular variables section or in an on
after start EEP?

 

 

________________________________

From: [email protected] [mailto:[email protected]] On Behalf Of jan
johansen
Sent: Wednesday, December 09, 2009 10:37 AM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Re: form within form

 

Jim,

 

Sorry. Was offline for awhile.

 

The evaluation of enableing the button MUST be external to the button.

So the whole eep would exist in maybe the form timer or some other key
press.

 

You might even be able to try a crazy form variable like so 

(IFNULL(.vdatecheck,('PROPERTY Comp_BOLDetail ENABLED
'''FALSE''''),('PROPERTY Comp_BOLDetail ENABLED '''TRUE''''))) 

 

Double check all the quotes and parantheses in this because it wasn't
RStyled.

 

Jan
 


 

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

        Would this EEP be in the bit button as

          

        GETPROPERTY comp_boldate textvalue vdatecheck

        IF vdatecheck IS NULL THEN

          PROPERTY Comp_BOLDetail ENABLED 'FALSE'

        ELSE 

          PROPERTY Comp_BOLDetail ENABLED 'TRUE'

        ENDIF 

          

        I did the above and it still allowed me into the form BOLDetail.

          

        Jim 

          

        
________________________________


        From: [email protected] [mailto:[email protected]] On Behalf Of
jan johansen
        Sent: Wednesday, December 09, 2009 9:13 AM
        To: RBASE-L Mailing List
        Subject: [RBASE-L] - Re: form within form

         

        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