Redash How to create table visualization inside a table visualization - redash

Is it possible to create a table visualization in Redash and when i click on a row it will collapse (or any other solution) and display a table of related data?
For example if i created a table visualization of all customers in my database (one query) and if i click on a customer (row) then it will show me all the orders the purchased (another query)

One option is to add a weblink to the dahsboard that has your orders the purchased as a widget.
A simple html a href works just fine.
SELECT 'View mydash' as link

Related

Filter one column in table in Google Data Studio

I want to filter for unique events based on event category= Landing Page Links for dimensions=campaign and source. The entire table is already filtered for certain campaigns and sources. But on this particular column in the table I want event category filter in google data studio report. Is it possible?
I have tried creating calculated fields using case when but it is throwing error.
Not sure what you want to do but it you want to have different filters for 2 columns in one table, you can use data blending. If you have data source A and wants filter1 on one column and filter2 on the other, blend Source A with filter1 to SourceA with filter2. You just have to configure the Joint Keys properly to make it give the data you are expecting.

How to store values from a field on excel

this is the first time posting here for me.
I have a quick question about excel. Currently I have an input page where I can input a project name and then fill out details on the project. Is there a way that I can store this information on another sheet? For example, if I type in "Project A" in the project input, then that will be saved in another sheet in a table or something, and the proceeding information (like date, price, etc) will be saved along with it. Then, if I type a new project name in, like "Project B", a new entry will be created with subsequent data.
Thank you!
The ancient Excel data form seems to still exist, even in Excel 2013.
Create a data table with headings and at least one row of data. Select the range and hit Ctrl-T or Insert > Table. This will turn the range into an Excel table.
Now either create a custom group on a ribbon and add the following command to this or your Quick Access Toolbar: All Commands > Form...
Select a cell in the table and hit the Form button that you just inserted into the QAT or the ribbon and you will see a dialog where you can create new rows in the table, and you see a few other buttons to manage data in the table, including deleting rows and searching data in existing rows.
That is the easiest no-code approach.

How to populate a text item from Oracle table using Oracle forms (Middleware) 11gR2

I am using Oracle with Oracle Forms builder (Middleware) both 11gR2. I am creating a system for purchasing records. I have the following 2 tables.
(a) product (master) : prodid(PK), prodname ...... etc.
(b) purchase (detail) : prodid(FK), quantity, ...... etc.
My plan: All the product details will be in the product table. purchase table will be used only to input purchase information. This table can't input any new product. If any new name, that info will have to be input into product table first. This way I can reduce duplicate names.
Now I am having difficulties relating to prodname (name of the product) column in the form.
I created forms using the purchase table only. This table does not have the prodname (because I put this field in product table) column. But during data entry, they need to see the product name !
So I created text item (tabular, database - no). Then I created LOV, attached to text item, input the prodid in prodid field in the form. LOV part is fine.
I run the form. click the text item, LOV appears, select a name, click OK. product name, product id, etc. appears in their fields as it should be. LOV is working fine. Now I can only input data but having difficulties updating. I mean if I input a name (LOV) in the text item, press execute query, shows records from the database but names in the text item disappear. Since the name is not here, it's not comfortable to update.
I think LOV is not the good idea here. May be I need to use PL/SQL in a trigger somewhere.
But I could not figure it out. I searched google but no luck. Is there anyone who can give me any idea or some example code/trigger please.
Since the product name is an non-database item, when execute query runs, the field is cleared and since no column is assigned to that field, it doesn't repopulate.
The usual way to populate this field is to have a function which returns the product name based on the id that is pressed and call the funtion in POST-QUERY trigger.
Basically it's a pretty simple task but I was having difficulties due to the lack of my experience. However, what I have done is -
create the text item (name : product_name) in the canvas
set properties for the product_name (database : No, .... etc as needed).
Create a block level POST-QUERY trigger and write the PL/SQL block to populate the field. For example, I wrote the following.
BEGIN
SELECT prodname INTO :purchase.product_name
FROM product WHERE product.prodid = :purchase.prodid ;
END ;
That's it and when perform execute_query in the form, it will bring the product name from another table. - Query problem is solved.
Now create an LOV using product table to bring the product name and product id.
Associate this LOV to the product_name text item. So whenever you need to input information about a purchase, just use the LOV to populate the product name field. And then input the subsequent fields as well.
This way both of my issues (query and data entry) are resolved.
I did this according to the suggestions given by Sathya and a video (6 minutes) from the youtube at https://www.youtube.com/watch?v=0nqldnGt8KA.
Thanks to Sathya and youtube.

Multiple Drop Down in Form. How to manage in db tables

I am creating an application for import export system.
In this application I have many forms.
Now let's talk about a single form.
I have 8 drop downs in this form.
To allow admin to add new values to each drop down i had to create table for each drop down so that it has all the values admin has defined.
I want to know is there an alter native of this problem because I see in the application there are nearly 35 different drop downs and I don't want to create 35 tables and forms then CRUD for every dropdown.
How can I manage it in an optimized and simple way?
I have found a solution to this problem with this methodoly
Table : dropdown
Columns : id , dropdown_name
Table : dropdown_fields
Columns : id , field_name , dropdown_id
This will i will create two cruds one for dropdown labels. In this admin will define crud title or name and nothing more.
In the second one admin will first select dropdown name from a dropdown coming from database table dropdown and then he will have a single field field_name to define.
And in the form where i have required these drop downs i can play with ids. Done it!

Adding an order for a customer selected from a list view in Access

I followed this great guide to help me add a search feature to my Access database:
http://www.techrepublic.com/blog/howdoi/how-do-i-populate-an-access-list-control-with-the-results-of-a-dynamic-search/108
At the end it says:
"If you’re building a quote or order, use the list control’s Click or Double Click event to copy record(s) to a temporary table. It’s easy to implement using a fixed query for each search task."
I have managed to display all search results in a list box and I would like to be able to click on a customer to highlight them, and then press a button to add an order to the selected customer. I've been thinking how I could do it and I really can't get my head around it.
Any help would be appreciated.
It depends on how you build your database. My guess is that one easy way would be:
Create a table with customers;
Create an "Order" table with orders where you link the customers through a foreign key
You load the customers in a listbox. While making the name visible, it is actually the ID that you retrieve when clicking the listbox. You can configure this via the wizard in the design view of a table. You can make other forms appear by events on the listbox (eg. on click).
If you managed to retrieve the ID of the customer, and you have the data related to the order (data that can easily be extracted from form objects and loaded into variables ) what you need is an insert statement and insert the values in the "Order" tabel (including the customer ID, which is linked through the foreign key).
This way all order records are linked to the customer and can be queried later.
Due to my limited knowledge on your other requests, I cannot help you any further on the rest of your database design.
I hope that my reply could help you and that I understood your question correctly.
You can access info from a listbox via:
List.Value
Or if it is not the first column then:
List.Column(0,0)
0 being the column and row references.
You may also consider using a listview over a listbox and then you can access the relevant parts of a listview control with the following code:
ListView.SelectedItem
Or if it is not the first column then:
ListView.SelectedItem.SubItems(3)
3 being the column reference

Resources