Jump to content
TennisShoeNinja

Custom Widget SQL help.

Recommended Posts

I have been working on a widget that will display the number of tickets in the system from the requester email not equal to our support email so, the number of emailed tickets not from the monitors. My query works when i log into mySql and access the labtech DB.

 

SELECT COUNT(*) FROM tickets WHERE RequestorEmail <> 'monitors@DOMAIN.com'

 

but it only returns a 1 in the widget.

 

I have included Screen shots of my config. Any help is appreciated.

 

4tbaHh4.png

X1paHRn.png

Share this post


Link to post
Share on other sites

I would try putting "select count(*) as value" or "select count(*) as current" because the widget itself looks for either value or current as the data to be returned where with a straight query, it's getting "count(*)" instead.

Share this post


Link to post
Share on other sites
I would try putting "select count(*) as value" or "select count(*) as current" because the widget itself looks for either value or current as the data to be returned where with a straight query, it's getting "count(*)" instead.

 

 

CANNOT believe i missed that. lol

it works! thank you.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×