YUI Changing data table depending on list selection - yui

Please advise, I want to make a drop down list that can filter a data table for example if you have data table for invoices and user can select from a drop down list that has invoice types 'debit credit .. etc' , so depend on this selection it should filter the data table using YUI.
Many Thanks.

This example is more complex than what you describe, but it's the same basic idea: http://jafl.github.com/yui3-gallery/querybuilder/

Related

acumatica report designer union tables

Is there a way in Acumatica report designer to union two tables? I find that you have to link table to use them in reports. For example can you get data based on a date range from AP Invoice and AR Invoice without having a third table to link them together?
Thanks
A DAC created over a SQL VIEW with UNION ALL and added to ReportDesigner is likely the best approach, but perhaps a FULL JOIN will work for your purpose.
This link describes Full Join or Union All:
https://www.tutorialspoint.com/sql/sql-full-joins.htm
For your example in ReportDesigner, APInvoice could be FULL JOIN to ARInvoice on FinPeriod and Vendor/Customer on relationships tab, offer From/To date range parameters on parameters tab with defaults such as #monthStart and #monthEnd. Conditions tab could limit results to WHERE DocBal NotEqual 0. Display textboxes could use an IsNull such as:
=IsNull([APInvoice.DocBal],[ARInvoice.DocBal])

Cannot filter certain pivot table fields

I'm using a worksheet that is configured to connect to the data Cube and everything I see is a pivot table.
I put Customer ID into Row and Net Revenue into Column, but somehow I cannot filter Revenue (it's greyed out), and I cannot use a slicer on that field. Is there anything I did wrong? I can filter Customer ID, but that's not going to be useful. It seems that I can only put it into "Values", which is pretty frustrating.
A side question: Is there a way to know the SQL scripts used in each OLAP query? I'm thinking maybe I can write VBA codes for the query, which would be more flexible.
Click on the Customer ID filter icon, and select the VALUE filter option. This lets you filter the aggregated numbers in the VALUES field from the perspective of the field you are filtering from (in this case, from the perspective of the ID field)

Save column value based on the item in combobox

in PowerApps, I have default New Form screen for Table1 with Combobox linked to Table2 so the user is able to choose items from the Table2. Combobox is saving the selected item Column1 data from Table2 to Column1 in Table1.
What I need, is to be able to save appropriate combobox item Column2 data (from Table2) to Column 2 in Table 1.
Basically, I need to save item's Column1 AND! Column2 data from Table2 to Column1 and Column2 of Table1.
BTW: Tables are lists on Sharepoint.
Can you help please?
This level of customisation requires in any case abandoning the out-of-the-box forms and creating your own. For a simple example of this, please see here.
The approach to store the individual selected values in separate columns in Table 1 (as you suggest) is not the approach I would recommend. This is relatively easy to implement but is incomplete and has shortcomings, including but not limited to:
You need to create as many columns as there may be items in Table 2, and the number of items in Table 2 may vary over time
PowerApps cannot currently set a column value to Blank() in a data source, so you will need a work-around to deal with the situation where an item previously selected needs to be unselected
The correct way to deal with the combo box is to create a many-to-many relationship as outlined in this post.
When saving the changes, you need to:
Remove any records in the junction table where an item has been unselected via a Remove or RemoveIf statement
Create an entry for each new item that has been added to the relationship via a Collect or a Patch function
If you need guidance on this, please comment this answer and I will add more details.

Spotfire control table values based on column value in another table

I need to control the data being shown on table Collections and Delivery based on what I click on Table A column value on Spotfire.
For example we have the three tables below:
When the user clicks on a column on Dashboard Table let's say BO: BN. On Delivery and Collections Table only BO row should only appear. How can you do this in Spotfire?
Note: The three tables have a relationship via Code and Branch column.
Additional data:
Collections and Deliveries table takes its data from DB using parameterized SQL Query.
There are three parameters that needs to be satisfied so that the query will work and data will be retrieved these are
StartDate
EndDate
Branch
I don't have a problem with the Date parameters but with the Branch see below SQL Query
The branch parameter value is controlled by specifying/entering a value on the input field on text area.
Deliveries and Collections table is configured to refer to this value to display the data.
The suggested solution worked great, but I have this extra dependency which makes it a bit more difficult to work out a solution. Do you have any ideas on how to go about this?
#dimas- One way to do this is creating detail visualization tables for Collections and Delivery from 'Dashboards table'.
Assuming that the three tables have relationship, please follow the below steps.
Step 1: Right click on Dashboards table and select Create Details visualizations -> Table. It prompts you to select a table, select 'Collections' tables.
Step 2: Repeat Step 1. But, this time select 'Delivery' table.
The Dashboards table now controls what data to show in Collections/Delivery tables based on the row selection.
Output:
Please ensure that you right click on the table and select Properties > Data > All data for Collections and Delivery table (screenshot below) if you want to show all rows if nothing is selected in Dashboards table.

How to create m2m relationship in PowerPivot

So I am trying to link an employee metrics pivot chart with an employee project table with one slicer. I want an employee slicer that manipulates all charts but the data is coming from 2 different places (SQL, Sharepoint). When I try to create a relationship based on Employees I get the following error: "The relationship cannot be created because each column contains duplicate values. Select at least one column that only contains unique values."
So one chart has quantitative items while the table has qualitative items and I want one slicer to manipulate both at the employee level.
I want to see all the data on both charts for the selected employee, and not just single items linked by unique values. I can use unique values, and have created relationships that one slicer can manipulate however I only get one record at a time that way and therefore the slicer has thousands of buttons (one for each record).
I wouldn't think this would be that difficult and I hope it's really not.
Please Help!
M2M relationships in PowerPivot will most likely cause more headaches than solutions unless you are aware of what you are doing. After some thought, I realized that I really do not want an m2m relationship because it would result in junk data for what I wanted. I just wanted to start my answer off acknowledging that I did not achieve an m2m.
So if you want to link SharePoint data to Excel here is what you need to do:
Export SharePoint data as an RSS feed. If this is something others will need to refresh then the rss file will need to be stored on a shared drive.
Add PowerPivot if you have not already done so. In PowerPivot get external data from other sources (rss feed) then add your file. To link data you will need a Unique ID to join tables on.

Resources