Normal Topic Can subform have les that do not show on parent? (Read 737 times)
digimom1962
Junior Member
**
Offline


Natalie Gann

Posts: 92
Location: here
Joined: Nov 26th, 2004
Can subform have les that do not show on parent?
Dec 2nd, 2005 at 6:07pm
Print Post Print Post  
I want to put a button to run a report on the child form but I only want to use it when I open the child form alone (that is, not as a subform).

Anything I add shows on the parent form or causes the scroll bar to show up if I try to shrink the window to hide what I do not want to print.  Maybe I can make it invisible only when viewed as a subform?

Also, can you have info from subform sent to parent under any circumstances? (I found FormFieldValue but that apparently only works the other way. i.e. info from parent to child.)

(Sorry if these are too simple or obvious questions. I can not think thru the cold medicine very well.) Tongue

Thanx
~Natalie
  

So much time and so little to do . . . strike that, reverse it.
Back to top
YIM YIM  
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: Can subform have les that do not show on paren
Reply #1 - Dec 2nd, 2005 at 6:25pm
Print Post Print Post  
Hello Natalie,

You can check @FormIsStandalone() in programming to see if a form is currently being viewed as a subform or not and then hide or show elements. See page 172-173 of the Sesame 1.1 Programming guide.

FormFieldValue() and @FormFieldValue() can work either Parent to Child or Child to Parent.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Re: Can subform have les that do not show on paren
Reply #2 - Dec 2nd, 2005 at 10:55pm
Print Post Print Post  
I use two forms to do that.

Make a form with all elements, visible, and then make a copy.  On the copy, make the unwanted fields invisible, and use that form as the subform.  The copy probably does not need any programming and could have all fields ReadOnly so you don't corrupt the programmed data in the Parent/Subform relationships.

Now you can use either of the subdatabase forms for Searches of the database at the subform level vs Searching at the parent form level.

===========================
But I like Ray's method.  I don't recall the StandAlone function., but that sounds like a good option to do the same thing.  Will have to check and see when that functions slipped in...... Embarrassed
  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged
 
digimom1962
Junior Member
**
Offline


Natalie Gann

Posts: 92
Location: here
Joined: Nov 26th, 2004
Re: Can subform have les that do not show on paren
Reply #3 - Dec 3rd, 2005 at 1:27am
Print Post Print Post  
GOT IT!!!!!!!!!!

I ended up using @FormIsStandalone() on this one but I can think of another place Mr. Hansens plan might work better because there are multiple les to hide.

Thanx guys!
~Natalie
  

So much time and so little to do . . . strike that, reverse it.
Back to top
YIM YIM  
IP Logged
 
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Re: Can subform have les that do not show on paren
Reply #4 - Dec 3rd, 2005 at 6:40am
Print Post Print Post  
Hi Natalie......

Only the President is allowed to call him Mister Hansen.

Your friend,
BOB
  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged
 
digimom1962
Junior Member
**
Offline


Natalie Gann

Posts: 92
Location: here
Joined: Nov 26th, 2004
Re: Can subform have les that do not show on paren
Reply #5 - Dec 4th, 2005 at 10:52pm
Print Post Print Post  
Ok Bob Grin

(by the way, guess what our chinchilla is named....)


give up?  He is named Bob Roll Eyes

Thanx again
~Natalie
  

So much time and so little to do . . . strike that, reverse it.
Back to top
YIM YIM  
IP Logged