Make a button fire different depending on view or page

Is there a way to make the button action dependent upon the view of the table, or the page of the doc, from which it is pushed?

I have a button that does great, but if its pushed on a different view I want it to do something else.

I know I can create another button, but that is not performant for this application. Thanks!

hi @Johg_Ananda

My suggestion is to work with something like tableViewName.Objectlink().contains(thisTable.Objectlink() as condition in your if statement.

Did not test it, but something like this may work

cheers, Christiaan

@Christiaan_Huizer thanks for the great idea. I tried it here:

And I can’t get it to work. [ThisTable] always refers to the parent/originating table.

Is there a formula object that gets references the current view?

@Johg_Ananda , you are right

thisTable() is indeed the main table, so the idea won’t work.

you can replace the thisTable with the hardcoded url , would that work for you?

cheers, christiaan

@Christiaan_Huizer what am I comparing the hardcoded url against for the if statement?

I had a closer look, the ObjectUrl() is interesting in other context, not here.
Maybe you can integrate the filter logic in your button to enable or disable it, thus the filter logic you may use to create a second view. However I am afraid that you need a second button. Cheers, Christiaan

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.