NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: peterH on January 04, 2011, 12:25:02 AM

Title: Hide button in browse?
Post by: peterH on January 04, 2011, 12:25:02 AM
I've got a browse displaying transactions. Some of these have an associated document that I want the user to be able to download. So I define a button in the browse, no problem here.

But for the transactions that do _not_ have an associated document I don't want to even show a button in the list.

It's possible to disable a button in a browse list by specifying a condition. But I would like to hide it completely (or not generate at all). Is that an option? Or could it possibly be an option?

Thanks
Peter
Title: Re: Hide button in browse?
Post by: Gordon Holfelder on January 04, 2011, 09:15:33 AM
Hi Peter-

I am doing this in my NetTalk app. If the button is one of the fields in the browse, all you have to do is set a condition (conditional tab) for the button. The condition is the "Alternate" that will be presented in the column when the condition is true. In my case I specified  '' (quote-quote) for image alt, width and height and checked the Use URL settings from field option. The other fields I left blank.

HTH,
Gordon
Title: Re: Hide button in browse?
Post by: peterH on January 05, 2011, 06:23:07 AM
Duh! Too many tabs in that window, I never noticed the top row.

Thanks, Gordon.
Title: Re: Hide button in browse?
Post by: peterH on January 05, 2011, 06:52:59 AM
I'd say that this condition seems a little odd - you must specify the _opposite_of what seems logical.

Any good reason for this? Bruce?

Peter
Title: Re: Hide button in browse?
Post by: Bruce on January 05, 2011, 09:23:12 PM
Hi Peter,

I'm not sure what you mean...

On the conditional tab you specify a condition.
If the condition is true then the settings for the condition are applied.
If no condition is true then the normal settings are applied.
That seems to be the right way round to me.
Did you have another approach in mind?

(I really have no idea what Gordon is referring to :) )

cheers
Bruce
Title: Re: Hide button in browse?
Post by: peterH on January 06, 2011, 12:33:40 AM
Hi Bruce,

He-he - I also had to read his message several times. But he referred to Conditional Tab and that was all I really needed to move on.

Anyway, I put a button on a browse and I only want it to display when MyVar <> 0. The odd part is that in order to get it to work I must put MyVar = 0 as the condition in the Display Options. That seems backwards to me.

Peter
Title: Re: Hide button in browse?
Post by: Bruce on January 07, 2011, 04:18:56 AM
not really.

your condition is for "not displaying a button"

ie
If MyVar = ''
 display blank.

Cheers
Bruce