Normal Topic changing subform properties on the fly (Read 4285 times)
FSGROUP
Full Member
***
Offline


No personal text

Posts: 179
Location: Edmonton, Alberta, Canada
Joined: Jan 14th, 2004
changing subform properties on the fly
Feb 5th, 2004 at 10:57pm
Print Post Print Post  
I am trying to make a subform appear in tableview if in search mode and for it to appear in formview if in add mode. the reason for this being that one of the LE is a dropdown box, thus the functionality of it is lost when in tableview. i thought to work around that i could keep the dropdown box if the subform was in formview whilst adding.

is this impossible?
  
Back to top
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: changing subform properties on the fly
Reply #1 - Feb 6th, 2004 at 1:54pm
Print Post Print Post  
It may be possible using two subforms - one with Table View, the other with Form View, both using the same data source and both placed in the same position on the parent form, then using the visibility SBasic functions to make them appear and disappear based on form mode.

I haven't tried this yet, but will try to find time to do some experiments.

An alternative is to use two different parent forms - one for data entry and one for search/update.
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Re: changing subform properties on the fly
Reply #2 - Feb 6th, 2004 at 2:05pm
Print Post Print Post  
Quote:
It may be possible using two subforms - one with Table View, the other with Form View, both using the same data source and both placed in the same position on the parent form, then using the visibility SBasic functions to make them appear and disappear based on form mode.


Technically, the subform is an element of the main form, however, it is not listed as an element in the Program Editor of the main form. If it gets listed, it would have been easily made invisible. Just a thought.
  
Back to top
 
IP Logged
 
FSGROUP
Full Member
***
Offline


No personal text

Posts: 179
Location: Edmonton, Alberta, Canada
Joined: Jan 14th, 2004
Re: changing subform properties on the fly
Reply #3 - Feb 9th, 2004 at 7:00pm
Print Post Print Post  
a Fail to Compile error message is displayed when opening the main form(in preview mode) when attempting to set a subform's visibility property. is this b/c the subform is not recognized as an element of the main form?
  
Back to top
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: changing subform properties on the fly
Reply #4 - Feb 9th, 2004 at 7:17pm
Print Post Print Post  
Yes.

1.0.2 has the addition of the SubFormVisibility/@SubFormVisibility function - for this very purpose.
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
BOBSCOTT
Senior Member
Members
*****
Offline


That Darn Computer #$X#
{curse words}

Posts: 1195
Joined: Nov 22nd, 2002
Re: changing subform properties on the fly
Reply #5 - Feb 9th, 2004 at 8:22pm
Print Post Print Post  
Quote:
1.0.2 has the addition of the SubFormVisibility/@SubFormVisibility function - for this very purpose.


Thanks,   This will be a usefull addition.  Smiley

Looking forward to 1.0.2.


  

Team – Together Everyone Achieves More
Back to top
 
IP Logged