Can we change the `New Query` name template? - azure-data-studio

Currently, AzureDataStudio creates New Query like so:
The above picture shows two tabs but each are for different servers named dev and qa. It would be nice to name the New Query with more useful information like SQLQuery_1 - dev and SQLQuery_2 - qa.

Related

Trying to locate an element on a page contains "/abc/def"

So I have written a bunch of NW tests for our dev environment. Unfortunately, being new to automated testing and to this product I have learned dev is not the same as our prod env. The difference is the dev login button is 'href*="/abc/def"' and prod is 'href*="www.example.com/abc/def". The parents and classes of these elements are too different to try and use.
I am just creating the pages and wondering if there is a way to store the selector with either a wildcard, like when SQL uses %, or a href.contains??
I apologise if none of this makes sense, I am completely fresh to programming in general.
You can click the login button using browser.click(CSS-Selector)
The CSS-Selector should look like this: a[href*="/abc/def"]
So you end up with: browser.click(a[href*="/abc/def"])
The Asterix works as a wildcard wich will look for a substring: additional information about different approaches

How do I combine multiple sys_class_name while query?

In the path below where I am doing filter on sys_class_name = Generic Application
/api/now/table/cmdb_ci?&sysparm_display_value=true&sysparm_exclude_reference_link=true&sys_class_name=Generic Application
I have multiple sys_class_name like Application, Generic Application, ServiceNow Application, Share point, IBM Websphere, Business application, business service, discovered service, web application, web service, web site.
My question is how do I combine all these Sys_Class_Names?
You actually want to use the sysparm_query URL parameter with an IN condition:
sysparm_query=sys_class_nameINcmdb_ci_appl,cmdb_ci_appl_generic,...
The whole URL looks something like this:
/api/now/table/cmdb_ci?sysparm_query=sys_class_nameINcmdb_ci_appl%2Ccmdb_ci_appl_generic
Note: this is using the actual class name (e.g. cmdb_ci_appl_generic) in place of the class _label_. If you need to look up the name based on the label, go to /sys_db_object_list.do.
One easy way to use sysparm_query is to just build the list you want in the UI using the normal filter, and then just right-click the breadcrumbs (the blue text above the filter after Running) for the filter, and click Copy Query. That can just be pasted in as the sysparm_query in the table API.
When you filter on a table you can right click on the filter text and select "copy URL".
https://docs.servicenow.com/bundle/london-platform-administration/page/administer/exporting-data/task/t_UseAURLQueryToFilterAListResult.html
Your URL will look something like this:
/api/now/table/cmdb_ci?&sysparm_display_value=true&sysparm_exclude_reference_link=true&sys_class_name=Generic Application&sys_class_name=ServiceNow Application

Heroku Review Apps - separated backend and frontend

I started using Review Apps which works good. However I use separated backend and frontend (rails and ember) and I would like to set connection between new PR on backend and frontend. I think the easiest way is to create new env 'integration' in ember and set api host per each PR. It is possible to define environment of built ember app on new dynamic staging?
If your Review App needs a dynamic API host, you could set it get the host from Config Vars. I would imagine it would be something like ENV['API_URL']. This approach is more in line with Heroku's stated best-practices as embodied in http://12factor.net/.
Also, if you want to have a default for new review apps, so you don't have to set this var for each new one, you should look at using an app.json schema.

Oracle UCM - How to clone a site with all the CDF and Data files but name it a new site?

I have a site with multiple intels in the site hierarchy and now the requirement is to seperate all the intels.
For example: I have a site - GamingInternational.
GamingInternational
US_gaming
california
Texas
uk_gaming
So now the requirement is, I need to split this site intel basis. Or atleast clone it in the same server so that I can delete the other files. Final structure should be :
Us_Gaming_subIntel
US_gaming
california
Texas
and the other site
UK_Gaming_subIntel
uk_gaming
How can I achieve this?
I believe this would be a customization.
You could possibly use this as a baseline to collect the type of data you need. Then, instead of calling a DELETE* service, you would call a CHECKIN* service. Before doing the checkin, you could alter metadata, file names, the project file (where the site name is defined).

How to create a Stacked Bar Chart with my data set created?

I have just now deployed a SpagoBI server and after setting up my data source: MS SQL Server.
I am able to successfully create a data set. Now using my data set I want to create a stacked bar chart. So I select Charts->Stacked but to my surprise that perhaps a default stackbar of "Sales, costs and revenues over the year Monthly detail - Year: 2012" always comes up. I was not able to see charts for my data set.
However I still see my data set there. I tried many ways to use the output of my data set for stack bar but un-fortunately always the default chart comes up?
How can I create a Stacked Bar Chart with my data set created?
1.First, write xml related to your query in database.
2.then , log in to SpagoBI server then create datasource-> dataset-> choose document.
3.Fill all the informaion, and there is an Template option browse the xml file in it.
4.And create Analytical driver management and lov management related to your query columns thatyou wants to choose.
5.And run the report document.
If you creating dashboard in SpagoBI Studio 5.1 then
1.Click on project and Create under SpagoBI.
2.Click on window - others perspective - choose - report design.
3.In report design - create Report - under Business Analysis folder finish.
4.Right Click on data source create - new data source and choose your db as per your requirement.
5.then , data set.
6.then create your dashboard as you want to create.
7.When you deploy your report in SpagoBI server again click on windows - other perspective - choose SpagoBI
8.Expand your project and you see a Server name folder then right click on server provide SpagoBI url and password
9.Right click on report provide name all the credential. and deploy.
Try this Prakash.

Resources