NetTalk Central

Author Topic: Hide button in browse?  (Read 5006 times)

peterH

  • Sr. Member
  • ****
  • Posts: 413
    • View Profile
Hide button in browse?
« 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

Gordon Holfelder

  • Jr. Member
  • **
  • Posts: 92
    • View Profile
    • Email
Re: Hide button in browse?
« Reply #1 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

peterH

  • Sr. Member
  • ****
  • Posts: 413
    • View Profile
Re: Hide button in browse?
« Reply #2 on: January 05, 2011, 06:23:07 AM »
Duh! Too many tabs in that window, I never noticed the top row.

Thanks, Gordon.

peterH

  • Sr. Member
  • ****
  • Posts: 413
    • View Profile
Re: Hide button in browse?
« Reply #3 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Hide button in browse?
« Reply #4 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

peterH

  • Sr. Member
  • ****
  • Posts: 413
    • View Profile
Re: Hide button in browse?
« Reply #5 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Hide button in browse?
« Reply #6 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