Can you run versions of a query from a VP

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
ask180
Posts: 162
Joined: Thu Oct 04, 2012 11:40 pm

Can you run versions of a query from a VP

Post by ask180 »

Hi,
I suspect this can't be done, but thought I'd ask anyway, just to be sure.

I have a business object (Persons), and there are two queries (query1 and query2) to list its contents (they list different attributes). Which query to run is dependent on an attribute of the logged-in user.

What I'd like to do is have one menu option - Persons list - and when selected by a user, have Aware run the appropriate query (query1 or query2) based on the value of the attribute of the logged-in user. To do that, I suspect I'd need to run a process, but that doesn't allow me to run a query.

The workaround is to have two 'Persons list' menu options, and hide the one that isn't appropriate.

I was just wondering if there's a more elegant solution.

Thanks.
Jaymer
Posts: 2463
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Re: Can you run versions of a query from a VP

Post by Jaymer »

The process runs a query with
DISPLAY queryname
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
ask180
Posts: 162
Joined: Thu Oct 04, 2012 11:40 pm

Re: Can you run versions of a query from a VP

Post by ask180 »

Cool, I'll give that a go. Thanks.
Post Reply