Dynamic text in SAS VA (Visual Analytics) - sas

I am making a nice dashboard. I have Geo-map with projects. When a user clicks on a particular project it will take the user to a detailed page about the project. I want to give this page (sheet) a dynamic title.
For example: The user clicks on the GEO map on the project in Aalst, he will be redirected to the detail page with a tittle "Costs and revenues for Project in Aalst".
Pictures of my dashboard:
enter image description here
enter image description here

I was working with VA 7.1 and there wasn't any way to parameterized text fields in VA reports. I've heard SAS wants to add this function in future release and at this moment you have to find a different way to put dynamic label on the report.
For example you can put a flat table with combination of every posible title you need. Then change style parameters for this table. You can turn off borders and column headers, change table background color, text font size and color, so you can make it looks like as a title field. Then you define filter connection between GEO map and this table, so when you click on the GEO map it will filter single record with correct title.

Related

Oracle Apex - Problem with InteractiveGrid field in Dynamic Action refresh

I have a problem using a dynamic action refresh in an interactive grid.
I have a field of type popup lov, when I choose one of the items in the list, I am performing a query to fill a collection, and then I do a refresh with a dynamic action, so that the data is reflected in the grid.
But at the moment of doing it, this happens with the field:
enter image description here
and in the console it shows me the following:
enter image description here
I hope to have your help, thank you very much.

Drillthrough a column of a matrix

I have the following page :
I want to click on the name of the agent to move to report with more details for an agent, this is a simplified example:
Can I include filters in the detailed target page ?If yes, can I add a clear filters butto?
In this matrix, can I format only the Agent name ? Make the color blue and the font underlined?
Can I include filters in the detailed target page ?
Yes. It's the nature of Drill-Through to carry the active filters from the source page to the target page. If you want to include filters that aren't specifically included as drill-through filters, then there is a specific setting "Keep all filters" that governs this. Your detail page can also have it's own set of slicers and filters that will be applied regardless of the context that comes through via drill-through actions.
If yes, can I add a clear filters button?
There's one native in the service. You can also affect the filters using the filter pane. And you can add a bookmark that will restore the page to some pre-set state (without filters) and assign that bookmark to a button. That's a tiny bit different than removing filters, but for most folks it's close enough
In this matrix, can I format only the Agent name ?
Yes, but only in this simple case. Look for the 'Row Headers' and control formatting there. In Matrix visuals where there are hierarchal fields, they will all be colored by this setting so it will not just be agent names. Another approach would be to apply editing to subtotals and mark 'include label' and then turn the subtotals off. You would get color on the subtotal row, but it would show on every column.
Make the color blue and the font underlined
You can set the font color on 'Row Headers' to blue. Underscore is not an option.

Power BI parameter for image

I wanted to know if there's a way to have a parameter that holds an image.
The problem: I have 10 PBIX, each one containing over 20 screens. every report has the clients logo. it is an image let's say the client changed his logo, that means I'll need to change the logo 200 times!! (10 PBIX X 20 screens).
Wanted solution: is there a way to hold a parameter that will contain the logo, therefore changing the logo only 10 times (for each PBIX) that will be a HUGE improvement for my time and productivity. sorry for not including pictures this is to keep my client anonymous
Thank you!
Here is how you can achieve your requirement as stated below-
Step-1 create a custom function in Power Query as stated below. The function is taken from Here and you can check this blog for more details if you are interested.
let
BinaryToImage = (BinaryContent as binary) as text =>
let
Base64 = "data:image/jpeg;base64, " & Binary.ToText(BinaryContent, BinaryEncoding.Base64)
in
Base64
in
BinaryToImage
Here below is the image for the custom function-
Step-2 create report wise folder in your local directory and keep your image there. I am considering one folder here, but you can do your own once you get the workaround.
Step-3 Create a data connection for Folder as shown below and point to the folder you kept your logo/image-
And now you will have a table as below with one row as there are one image only. I named the table as PBI_Images.
Here basically Content column holding the Binary data for the image and we have to convert it to Base64 using the Function we created earlier.
Step-4 Now lets Invoke the function in our table. Select the table and do what shown in the below image-
Now you have a new column with data like below-
Step-5 Get back to report by clicking "Close & Apply" button.
Step-6 Download the following App from AppStore-
Step-7 Just add the new downloaded visual to your report and put the newly created column to the "Image URL" field as below-
Step-8 Now add the Image visual to all your report pages and tag the Image URL as stated in step-7.
You are all done now. Just Change the Image in your source file keeping the same name and after that refresh your table (PBI_Images my case) and you will see Image changes everywhere in the report.
Finally, if everything works expected, you can first try will all logos from one single folder. If do not work, go for folder per customer as mentioned earlier.

How to use images in “Select List” oracle apex?

I have a country table , with three column country code and country name and country phone code , and static file for all country flag also.
All flag image name same a country code in table ,how I can create a select list to Display country flag CONCATENATION with country name .
I went to apex.world and found this plug-in from Alan Arentsen that seems to fit the bill: https://apex.world/ords/f?p=100:710:::::P710_PLG_ID:COM.ADBC.APEX.JET.OJSELECTCOMBOBOX However, it doesn't currently support APEX 19.1+. If you don't mind experimenting a little, you could update the JS file in the plug-in (once installed) using the code I submitted in this PR: https://github.com/alanarentsen/plugin-apex-jet-ojselectcombobox/pull/6 Or you could wait until he's able to get a new version out, though I can't say how long that would take.
Another option would be to use the popup LOV and then modify the template using JavaScript to allow it to display images. If you take the plug-in or Popup LOV path and need more details, let me know and I'll provide them.

how to add button for each row record in apex5

I have created an interactive report in apex5.0 with below select:
SELECT article_code,article_desc,order_date, order_status
FROM table_order
WHERE status in ('SHIP','DELIVER','CANCEL');
I want for each row record to have a button that when click it calls another page.
How to do that??
There are a couple options.
Edit the column and change the type of the column to Link.
Create an html link with an href to the page you want. Choose type display, then turn of escaping special characters in the column properties.
Calling another page is declarative, out of the box behaviour, and you'll find such examples in the documentation.
Declarative
http://docs.oracle.com/database/apex-5.1/HTMDB/editing-interactive-reports-page-designer.htm#GUID-B30458D6-9678-40D4-A477-28EE466ED50A
As link column
http://docs.oracle.com/database/apex-5.1/HTMDB/editing-interactive-reports-in-component-view.htm#GUID-48AF053F-0E34-40FA-94FE-19C0400AD499
Manual
http://docs.oracle.com/database/apex-5.1/HTMDB/understanding-url-syntax.htm#HTMDB03019
Using dynamic action http://www.grassroots-oracle.com/2015/12/tutorial-include-action-button-in-report.html