Same view with different menu and title text?

Doors
New Member

Hi,

Is it possible to have a view that displays a different title at the top of the page as opposed to the text that displays next to the menu icon?

So at the top of a page Iโ€™d like the view name to be: Kitchen Smmary: NOW() but I need the menu text to just be : Kitchen Smmary.

Thanks.

0 13 735
  • UX
13 REPLIES 13

You could try the following:

SWITCH(

CONTEXT("View"),

"Your View Name", "Kitchen Smmary", "Other View Name", CONCATENATE("Kitchen Smmary:", NOW()),

"Default"
)

Substitute โ€œYour View Nameโ€ for the View Name where you want it to say โ€œKitchen Smmaryโ€ and โ€œOther View Nameโ€ for where you want it to include NOW().

Not 100% sure if this will work but I am using something similar.

Thanks for the help.

The single views name that needs a differentiated title and menu label is also โ€œKitchen Summaryโ€ so Iโ€™m left with:

SWITCH(CONTEXT(โ€œViewโ€),โ€œKitchen Smmaryโ€, โ€œKitchen Smmaryโ€, โ€œKitchen Smmaryโ€, CONCATENATE(โ€œKitchen Smmary:โ€, NOW()),โ€œDefaultโ€)

Iโ€™m afraid that just names the menu item as default for all other views except Kitchen Summary. When in the view kitchen sumamry its displayed as โ€œKitchen Summaryโ€ in both the Title and menu item.

Hmm, are the two views you need to differentiate between different view types (e.g. Deck, Card, Table)?

Are you sure they have the same name as usually you cannot have the same name for two different views?

For example the table view may be โ€œKitchen Smmaryโ€ however the detail view would be โ€œKitchen Smmary_Detailโ€.

I definitely just have one view

Its Called โ€œKitchen Summaryโ€. When I click on this:

2X_c_c8bd15f557b7e9f5a2c29e8b2697f4b0d1c148af.png

I need this title at the top of the page to be the result of โ€œKitchen Smmary: NOW()โ€.

Thanks.

Find the view within the UX tab and go down to โ€œDisplay Nameโ€, turn the formula button on and try the following:

SWITCH(

CONTEXT(โ€œViewTypeโ€),

โ€œTableโ€, CONCATENATE(โ€œKitchen Smmaryโ€, " - ", NOW()),

โ€œKitchen Smmaryโ€
))

No Joy.

That looks like it should work though.

The menu and title are still the same using that.

If yourโ€™e copy and pasting the above make sure you replace all the speech marks with your own as for some reason they donโ€™t copy over correctly. Also you may not need the last closed bracket.

I have just checked it on mine and it works until the view is clicked, please see screenshots below.

As you can see the โ€œOff Hiredโ€ button in the bottom right is changes once the view is clicked on, may not be 100% what you are looking for.

Thanks, yeah I clocked the last bracket and knocked it off.

I can replicate your result but really need to be able to have them differ once the menu is clicked on.

Looks like its not possible for now. Thanks for trying though.

Try:

IF(
  ("detail" = CONTEXT("ViewType")),
  ("Kitchen Summary: " & NOW()),
  "Kitchen Summary"
)

@Steve I donโ€™t think view names are that dynamic.
I think I remember something from someone once like: โ€œTheyโ€™re computed during sync timeโ€

I tried nearly the same expression yesterday and it appeared to work fine. Note this is for the viewโ€™s Display name expression.

@Steve Just tried, no go.

The CONTEXT() portion of the IF statement is being skipped:

The view name at the top, and the name in the bottom menu button, both follow the same setting.

Itโ€™s either the actual view name, or the Display Name, if youโ€™ve entered a value. But thereโ€™s no way to set them to different values because they are both displaying the exact same setting.

I think this should be a feature request. We should have separate controls for:

Actual View Name (Required, Unique)
Top Display Value (long-name, optional)
Nav-Bar Display Value (short-name, optional)

Top Labels in this Space