Query Output Settings when using AwareApp.runQuery

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
RentProperty
Posts: 345
Joined: Mon Nov 12, 2012 9:08 pm
Location: South Africa

Query Output Settings when using AwareApp.runQuery

Post by RentProperty »

Hi Support, or anyone who perhaps know how to do this...
Is there a way to have access to the Query Output Settings when opening a query from html using AwareApp?

I Have a custom HTML/CSS Nav bar in one off my apps and find users tend to open the same queries multiple times so I want to take advantage of the 'Do not open new tab if tab has already been opened'.
How would one do that from here:
<li onclick="javascript:AwareApp.runQuery ('ViewMyProperties', 'new_tab');">My Query</li>

Thanks in Advance
Hein Hanekom & Werner Hanekom
Sinov8.net
AwareIM Version 5.9 | 6.0 | 7.0 | 7.1 (Windows EC2 R2012 & MySQL)
weblike
Posts: 1165
Joined: Sun Dec 02, 2012 12:00 pm
Location: Europe

Re: Query Output Settings when using AwareApp.runQuery

Post by weblike »

Hi,

Did you find a solution on this?

Thx,
Thx,
George
________________________________
Developer Edition
AwareIM: v8.5, build 2824
OS: Windows Server 2012
DB: MySql 5.6.42
RentProperty
Posts: 345
Joined: Mon Nov 12, 2012 9:08 pm
Location: South Africa

Re: Query Output Settings when using AwareApp.runQuery

Post by RentProperty »

Unfortunately not. Don't think that options is exposed via the AwareApp API. :-(

Ideal would be to jump to existing tab if already open.
Hein Hanekom & Werner Hanekom
Sinov8.net
AwareIM Version 5.9 | 6.0 | 7.0 | 7.1 (Windows EC2 R2012 & MySQL)
Jaymer
Posts: 2458
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Re: Query Output Settings when using AwareApp.runQuery

Post by Jaymer »

FYI - I'm having issue with that functionality in 8.1
... like I think it might have broke.

posted about it here: https://www.awareim.com/forum/viewtopic ... 938#p46938
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
aware_support
Posts: 7525
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Re: Query Output Settings when using AwareApp.runQuery

Post by aware_support »

This functionality IS exposed and there is a forum thread somewhere that describes it (I think).

The parameter that you specify as "new_tab" needs to be an object instead of a string that describes the settings.

runQuery ('Query Name', { new_tab: true, openExisting: true .. });

see the renderToNewTab function in the file awareApp.js
Aware IM Support Team
RentProperty
Posts: 345
Joined: Mon Nov 12, 2012 9:08 pm
Location: South Africa

Re: Query Output Settings when using AwareApp.runQuery

Post by RentProperty »

Thanks for clarifying that Support.

Would be nice if you can add this to the documentation with all the available parameters and an example of how to use each one. :-) (So we can be sure to use the correct name, Syntax such as ` vs ' and also the correct casing)
Hein Hanekom & Werner Hanekom
Sinov8.net
AwareIM Version 5.9 | 6.0 | 7.0 | 7.1 (Windows EC2 R2012 & MySQL)
weblike
Posts: 1165
Joined: Sun Dec 02, 2012 12:00 pm
Location: Europe

Re: Query Output Settings when using AwareApp.runQuery

Post by weblike »

RentProperty wrote:Thanks for clarifying that Support.

Would be nice if you can add this to the documentation with all the available parameters and an example of how to use each one. :-) (So we can be sure to use the correct name, Syntax such as ` vs ' and also the correct casing)
+10
Thx,
George
________________________________
Developer Edition
AwareIM: v8.5, build 2824
OS: Windows Server 2012
DB: MySql 5.6.42
Post Reply