Normal Topic SubformVisibility() not working (Read 936 times)
actiontech
Full Member
***
Offline



Posts: 173
Joined: Apr 10th, 2016
SubformVisibility() not working
Apr 1st, 2018 at 1:41pm
Print Post Print Post  
Hello, I had programming setup for SubformVisibility that was working  before and is now not working. It still works for the "Work" Subform but does not work for the "Pictures" Subform anymore. The Layout name of the "Pictures" Subform has not changed, and the field name is also still the same "pictures_subform", the name of the LE is "LE3" not sure why it just stopped working. I did have to delete the subform LE at some point and redo it as a relational database rather than a naturally linked database. But I made sure to delete the field from "manage a database" first so that I could use the exact same name as I had before "pictures_subform". All the other programming still works. I set all statements to set it's visibility to "0" no matter what so there would be no possibility of it being visible. When I use @SubformVisibility() it's also returning "0" indicating that it's not visible, yet there it is right on the form in preview mode.
  
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: SubformVisibility() not working
Reply #1 - Apr 2nd, 2018 at 1:54pm
Print Post Print Post  
What does your programming look like?

-Ray
  

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



Posts: 173
Joined: Apr 10th, 2016
Re: SubformVisibility() not working
Reply #2 - Apr 2nd, 2018 at 2:47pm
Print Post Print Post  
ACTION (Form) :: On Form Entry

Code
Select All
SubformVisibility("Pictures", 0)
 



ACTION (Form) :: On Retrieve Spec Open

Code
Select All
SubformVisibility("Pictures", 0)
 



Pictures_List (List Element) :: On Element Immediate Change

Code
Select All
If @Mode() = 1
{
	If @Len(Record_ID) > 1 Then
	{
		If @IsBlank(Pictures_List)
		{
			SubformVisibility("Pictures", 0)
		}
		Else
		{
			SubformVisibility("Pictures", 1)
		}
	}
}
 


  
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: SubformVisibility() not working
Reply #3 - Apr 2nd, 2018 at 2:54pm
Print Post Print Post  
From the information given in your earlier post, The subform element is named LE3. That is the name you want to use in those commands.

-Ray
  

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



Posts: 173
Joined: Apr 10th, 2016
Re: SubformVisibility() not working
Reply #4 - Apr 2nd, 2018 at 2:55pm
Print Post Print Post  
Alright, I'll try that thanks.
  
Back to top
 
IP Logged