/build/static/layout/Breadcrumb_cap_w.png

Update a query field in reports, with a ticket rule?

Hi guys,


I am trying to update an "update field" in a series of reports, using a ticket rule. 

This is the "SMARTY_REPORT" database and the one that has all the reports.

so an example would be...

UPDATE SMARTY_REPORT 

set QUERY = 

"

select

  "Cost Account:" as 'Item'

  ,COST_ACCOUNT_ASSET.NAME as 'Type'

  ,concat("Department: ", COST_ACCOUNT_ASSET_DATA.FIELD_10025) as 'ID'

  ,concat("Site: ", COST_ACCOUNT_ASSET_DATA.FIELD_10026) as 'Assigned User'

  ,"" as 'Unit Cost'

  ,null as 'ASSET_NAME'

  ,null as 'SORT_ORDER'

  ,COST_ACCOUNT_ASSET.NAME as 'COST_ACCOUNT'

  ,-1 as 'SECTION_ORDER'

from

  ASSET COST_ACCOUNT_ASSET

"


My problem is that I can't seem to make the ticket rule work because.... (I'm assuming), it's because

of all the quotes in the query. I have wrapped the entire query in my very own quotes of course.

So it seems there is a clash of quotes.

So basically I am trying to use an "update query" to add a "Query" to a database table.

Has anyone tried this before? Any ideas?

Thanks


0 Comments   [ + ] Show comments

Answers (0)

Be the first to answer this question

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ