Hide button depending on @setviewinfo value

We have a database of our jobs that is categorized by the task owner. We have buttons on the action bar that allow you to choose “just my jobs” or “view all”.

What I would like to do is hide each of these buttons when they aren’t needed i.e. if i have clicked on “just my jobs” the button isn’t needed again until I am viewing “all” jobs and vice versa. Is this possible ?

I have tried to do it with @getviewinfo but it isn’t working.

Thanks

Paul Trower

Subject: hide button depending on @setviewinfo value

I have checked this formula in two buttons:

BUTTON A:

@Environment( “A”; “A”);

@Command([ViewRefreshFields]);

@Command([RefreshHideFormulas])

HIDE: @Environment( “A”) != “”

BUTTON B:

@Environment( “A”; “”);

@Command([ViewRefreshFields]);

@Command([RefreshHideFormulas])

HIDE: @Environment( “A”) = “”

Perhaps de @command([viewrefreshfields]) is not necesaary.

Subject: RE: hide button depending on @setviewinfo value

that works brilliantly

thanks

paul

Subject: hide button depending on @setviewinfo value

Use two views with one button each one.

Subject: RE: hide button depending on @setviewinfo value

I could do that but I would prefer (and it would look swankier) to keep it in one view if possible.

thanks

paul