www.Inmagic.com    Inmagic Forums    Inmagic Forums  Hop To Forum Categories  Scripting    Add form boxes at runtime
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Posted
Hi, is it possible to add form boxes at runtime? Is there any scripting for that?
thank you
Jean Pierre
 
Posts: 166 | Location: Lima, Peru | Registered: Thu July 05 2001Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
I'm not sure I understand your question.

The only way to add boxes to a form is using the Form Designer.

However, you can change the contents of boxes on-the-fly using an onRecordOpen() script. Just add the empty or placeholder box in the Form Designer, then populate it as desired using the script.
 
Posts: 1895 | Location: Woburn, MA, USA | Registered: Thu July 13 2000Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
what actually would be nice is a way to control their visibility, if a box is empty when a record loads (on a display form) the box will never be shown.
quote:
Originally posted by Lisa:
I'm not sure I understand your question.

The only way to add boxes to a form is using the Form Designer.

However, you can change the contents of boxes on-the-fly using an onRecordOpen() script. Just add the empty or placeholder box in the Form Designer, then populate it as desired using the script.


Luke Stephenson
Phipps & Associates
 
Posts: 112 | Location: Ottawa, Ont, Canada | Registered: Sun July 13 2003Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
Hey Luke,

You can do this by setting the box minimum size to zero. If no field value, no box displays.

Peter

Peter Tyrrell
Senior Consultant
Andornot Consulting Inc.
http://www.andornot.com
 
Posts: 179 | Location: Vancouver, BC, Canada | Registered: Thu September 20 2001Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
Hi,
I have a related question. onRecordOpen is called after boxes are populated with their information, therefore a box set to have minmum height 0 will not appear, even if a script tries to populate it with information. the only way to get the script to populate the box is to set the box minimum height to at least 1, and then it appears even if it is empty. onFormOpen is called before the boxes are created, so it is no good either. is there any event that is called in between these two that could solve this problem?

Noam
 
Posts: 3 | Location: Toronto, ON, Canada | Registered: Tue October 07 2003Reply With QuoteEdit or Delete MessageReport This Post
Posted Hide Post
No. I've entered this wishlist item for you.
 
Posts: 1895 | Location: Woburn, MA, USA | Registered: Thu July 13 2000Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

www.Inmagic.com    Inmagic Forums    Inmagic Forums  Hop To Forum Categories  Scripting    Add form boxes at runtime