form event : "on load" for subforms

View: New views
2 Messages — Rating Filter:   Alert me  

form event : "on load" for subforms

by softmartin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hallo,
I am using 4d 2004.10 on a powerpc mac.
I have an input form with a subform on it.  I want the info displayed  
in the subform to be sorted in a particular order. When I first open  
the input form, the subform is correctly ordered. When I move to the  
next record, the sorting operation fails, and when I return to the  
first record, the order is suddenly wrong.

should I be using a different form event to get the result I want ?  
If so which one ?
TIA
  Martin

Case of
        : (Form event=On Load )
                ORDER BY([Collector];[Collector]Purchase_Date;<)
End case
**********************************************************************
4D Basics hosted by 4D, Inc.                       http://www.4D.com/

Did you know?  The 4D Partner Program now gives you
access to Hotfix releases as soon as they are available!
To learn more, go to http://www.4D.com/support/partner.html

To Unsubscribe:                        mailto:4DBasics-off@...
**********************************************************************



Parent Message unknown RE: form event : "on load" for subforms

by David Samson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Try the "on load record" event. You are not reloading the form as you
cycle through the records but you are loading the record.

> I have an input form with a subform on it.  I want the info
> displayed in the subform to be sorted in a particular order.
> When I first open the input form, the subform is correctly
> ordered. When I move to the next record, the sorting
> operation fails, and when I return to the first record, the
> order is suddenly wrong.
>
> should I be using a different form event to get the result I want ?  
> If so which one ?

HTH
David Samson
Tailored Ltd

Phone : 0161 975 0050

Fax   : 0161 975 0411

Email : david@...

Web   : www.tailored.org.uk


Tailored Ltd. Registered Company No. 5069827
--------------------------------------------------------------------------------

CONFIDENTIALITY NOTICE AND DISCLAIMER

The information in this transmission may be confidential and is intended only for the person or persons to whom it is addressed. If you have received the transmission in error, please immediately contact this office by telephone, fax or email, to inform us of the error and to enable arrangements to be made for the destruction of the transmission.  No liability is accepted for any unauthorised use of the information contained in this transmission.

--------------------------------------------------------------------------------


 



**********************************************************************
4D Basics hosted by 4D, Inc.                       http://www.4D.com/

Did you know?  The 4D Partner Program now gives you
access to Hotfix releases as soon as they are available!
To learn more, go to http://www.4D.com/support/partner.html

To Unsubscribe:                        mailto:4DBasics-off@...
**********************************************************************


LightInTheBox - Buy quality products at wholesale price