Expressions in Menu item Names

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
gust
Posts: 92
Joined: Tue Mar 29, 2011 3:54 pm

Expressions in Menu item Names

Post by gust »

Is it possible to use expressions in Menu item Names or next to them?

Ex, Menu Item "Waiting For Approval - 7"
7 is the number of items in that query <<COUNT BO..>>
AwareIM v5.1 (build 1426)
aware_support
Posts: 7559
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Post by aware_support »

Not at the moment.
Aware IM Support Team
gust
Posts: 92
Joined: Tue Mar 29, 2011 3:54 pm

Post by gust »

Is that in your nearest plans?
It seems that it is not difficult to implement that but it would be very useful feature. In applications that uses such queries as received emails (read,unread), issues (closed,unclosed), orders states (we have 9) it is very useful to see in menu by a end user what amount of items there is in different queries to imagine whole picture of current work.
AwareIM v5.1 (build 1426)
aware_support
Posts: 7559
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Post by aware_support »

Yes, it's easy. We'll try to squeeze it in one of the next releases.
Aware IM Support Team
Sergej
Posts: 218
Joined: Tue Aug 30, 2011 2:24 pm
Location: Russian Federation

Post by Sergej »

Has it been squized in last version?
tford
Posts: 4238
Joined: Sat Mar 10, 2007 6:44 pm

Post by tford »

You can always review the changes in each build here:

http://www.awareim.com/changelog
Tom - V8.8 build 3137 - MySql / PostGres
Sergej
Posts: 218
Joined: Tue Aug 30, 2011 2:24 pm
Location: Russian Federation

Post by Sergej »

Will be very happy to see it in the next version.
nlarson
Posts: 597
Joined: Thu Apr 14, 2011 7:56 pm

Post by nlarson »

would this apply to captions too? Purely nice to have, but I did fine a nice use case for it that other nice.
aware_support
Posts: 7559
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Post by aware_support »

What captions? For many captions this is already supported, such as in captions of forms and queries
Aware IM Support Team
nlarson
Posts: 597
Joined: Thu Apr 14, 2011 7:56 pm

Post by nlarson »

hum, let me try again - perhaps I fat fingered the input.
aware_support
Posts: 7559
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Post by aware_support »

Expressions in menu items names have been implemented in build 1451
Aware IM Support Team
Sergej
Posts: 218
Joined: Tue Aug 30, 2011 2:24 pm
Location: Russian Federation

Post by Sergej »

Thank you very much for this feature.
Could you give some instructions?
I wrote <<COUNT ALL BO>> in menu type Tree in Item properties in Name field. Also I tried ELEMENT_COUNT tag. But no numbers are displayed in menu item name.
AwareIM 5.1a build 1454, Debian 64bit , MySQL
aware_support
Posts: 7559
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Post by aware_support »

There are limitations to what can be placed in menu item names, form captions, query captions etc. The expressions used there can only use the context of the current object (for forms), context used in queries (for queries) plus LoggedInSystemUser and SystemSettings

For menu item names the only available context is LoggedInSystemUser and SystemSettings.

Any aggregate operations are not allowed. So if you want to use them you need to create an attribute in your user object or SystemSettings (depending on what the aggregate expression involbes) and add a rule to the object to calculate it and then use it in the menu
Aware IM Support Team
Sergej
Posts: 218
Joined: Tue Aug 30, 2011 2:24 pm
Location: Russian Federation

Post by Sergej »

Thanks for clarifying.

So if I want to see number of items of query in menu name(that leads to that query), where better to create attribute in RegularUser BO or SystemSettings BO?

It must look like <<<SystemSettings.OrdersCompleted>> ?
AwareIM 5.1a build 1454, Debian 64bit , MySQL
tford
Posts: 4238
Joined: Sat Mar 10, 2007 6:44 pm

Post by tford »

where better to create attribute in RegularUser BO or SystemSettings BO?
I put most calculations this in RegularUser (or whatever the User BO is) because SystemSettings are shared by all users.
It must look like <<<SystemSettings.OrdersCompleted>> ?
Yes
Tom - V8.8 build 3137 - MySql / PostGres
Post Reply