Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 3861 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hello Board!
 

I am trying to hide a button in a List Layout view.

 

I have two tables connected together. The first table puts a record in the second table through a script attached to the record button.

 

I have this setup as a conditional format, that changes the colour of some text:

 

Count (Job_Logging_Job_Scanning_Terminal::Combined_WO_JobID )≥ 1

 

So, if a record has already been made, then the text goes Red.

 

I have tried using the same code in the button 'Hide Object When' part, but it does not work.

 

I cannot figure this out at all. What am i doing wrong? The text that can be conditionally formatted is part of the same table, part of the same record on the same layout, and it works under that condition. But the button does not want to change.

 

I've also tried making other Layout Objects and trying to hide them under these conditions, but it doesn't work either.

 

Thanks for any input you can give.

 

H

Posted

If you still have the conditional format on the button, then that will win I believe, so take it off.

 

As an aside, Count() can be really expensive and you don't really care about the exact count, you just to to verify that there is at least one related record.  So you can do the same with a little more performance by using

 

Not isempty( Job_Logging_Job_Scanning_Terminal::Combined_WO_JobID )

Posted

v12!!

 

******* It!

 

Thank you for the quicker/lighter method, though!

This topic is 3861 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.