How to create a dataset from a fusion sheet in foundry? - dataset

I want to use a fusion sheet for ultimately creating a dictionary in foundry repository.
I want to have a fusion sheet as a input, so that users would enter the values in the fusion sheet, I would then sync the fusion sheet to a data set. How do I do that?
Additionally, after the data set is created, I would want use it to create a dictionary out of that data set. Can anyone help in using the data set to create the dictionary in the repository. any help is highly appreciated.

I see two questions here:
Q1 - How do I create a dataset from a fusion sheet, so that a user can use a fusion sheet as input?
Q2 - How do I transform the dataset into a dictionary inside the repo.
Question 2 is very dependent on the technologies that you are using within foundry (PySpark, SQL, etc...) So I would recommend opening a separate question for that in particular with more focused details. I Will answer Question 1.
How do I create a dataset from a fusion sheet, so that a user can use a fusion sheet as input?
To create a dataset out of a fusion sheet, you'll need to have your fusion have a tabular layout. I.e.: Each column representing one of the inputs. Something like the screenshot below.
Then click the tab that says Data and below you'll find "Sync To Dataset". Click on it and select the range you want in the popup. In this example we want A1:C2. I'm giving it the name "user_input_dataset"
Hit add new table and if you have permissions for this, you should get a toaster popup confirming it got created.
Go back into your folder and next to your spreadsheet you should now have a dataset with the contents of your fusion sheet.
You can now read this dataset from your repository and do whatever logic you want with it.
p.s.:
I don't like to add screenshots because they go out of date as products evolve, but this is hard to answer without them, so I added some. This was correct at time of answering.

Related

how to specify the data source of a report in a url

If I design a report based on some data source, lets say an spreadsheet from google sheets.
but then I want to reuse this report on a different sheet, can I do this without actually editing the report? Can I specify the source somehow in the URL?
Then all I need to do to reuse the report is upload new sheets to my google drive and then connect them to the report by specifying them in the URL.
Is this possible? Or is there a better way to do it?
(I'm googling, but I cannot find out how to reuse reports without actually manually editing them).
so there does seem to be something called "Custom JSON/CSV/XML" by Supermetrics.
and you seem to be able to specify the url as a parameter somehow. If someone has done this and succeeded/failed, or knows of a walkthrough/tutorial, or a variation on this theme then that would be helpful.
Using default connectors, you can't change the Data Source using parameters.
You may try to create a community connector with a parameter to set the desired resource, but I don't think it will fit your needs or worth the effort (you'll still need to edit the report to change the parameter).
However, when you click to copy/duplicate a report, it prompt you to select new sources for each Data Source in your report. It will copy-then-edit your report anyway, but it is a friendly interface. Maybe you should try this.

Excel like copy paste feature for adding data into grid using react and grid library

I am creating a kind of excel online application using react in frontend, Java in backend and Postgres database.I am using a library called ag-grid (community edition).
Now one of the feature i need is to copy and paste data in to rows
just as we do in excel.
The grid is going to be linked with the Postgres, all the data in the table in the DB is displayed into the grid and any change made into the grid will be reflected to the DB and vice-versa.
The specific need is, i need copy and paste feature, i need to paste the data which is, say copied from other excel in to my application. I should be able to create blank rows and i should be able to paste the data into those rows, if the blanks rows are less then it rows should get automatically added(as in excel) as soon as data (say multiple rows data) is pasted into a one or more rows.And when i choose to save the my application then data of grid should be saved to DB.
Is it possible to create this feature using ag-grid community ?
Is there any other library which is recommended for this purpose ?
If there is any resource or documentation available for this feature
then please point me.
Just in case if anyone stumbles upon this problem, I've found a solution from some another website. It uses processDataFromClipboard event of Ag Grid for a custom solution.
https://plnkr.co/edit/lM3OtCQxpJdapHQt?preview
The ag-grid community edition does not support CRUD operations with a server side model - the enterprise edition does:
https://www.ag-grid.com/javascript-grid-server-side-model-crud/
If you insist on using ag-grid community you will need to handle the editing/grid changes yourself, which should not be too hard. A good starting point would be the cell editing page:
https://www.ag-grid.com/javascript-grid-cell-editing/
In particular, you will need to listen to the cellValueChanged or rowValueChenged event:
https://www.ag-grid.com/javascript-grid-cell-editing/#event-cell-value-changed
The event params will provide you with the following properties:
newCalue
oldValue
column
colDef
which you can use to generate the update call.

Binding/Auto-Updating charts in Word document with data from MS SQL Server

I've a task wherein I'm required to work with Microsoft Word document and database. Basically the word document has numerous charts that are created by users in two steps, first is to prepare charts in excel, then take screenshot and paste in Word document. It's tedious process as it requires re-doing charts anytime someone wants to do what-if simulations.
When I insert a chart in Word, the underlying data comes from Excel Sheet which I am able to fetch from database as 1 time operation, but it's not productive that much as users will have to open excel sheet, refresh data in sheet manually.
I tried to find different solutions but I'm blank as it's totally new work for me, there are elementary examples suggesting VSTO but I couldn't find more detailed examples specifically for charts like the scenario I've.
Has anyone tackled similar issue? If so please advise. I'm open to use either VSTO, OpenXML or even R packages that can help to auto-generate word document with updated charts.
Thank you.
I found solution by using R, it satisfies what I was looking for. A related task and steps are in my other question are here!

Manipulate Database from Drupal

I'm new to Drupal 7. Right now I'm trying to use D7 to build an interface that allows me to directly manipulate the tables in the database.
I have installed a couple modules such as Data, Migrate, Feeds, and etc. I managed to create a view to display the table that I created using Data Module, but I need to add and update the rows from the interface.
Furthermore, is it possible to set up relational tables so that I can update or delete related rows at the same time using Drupal?
Thanks in advance
Using the data module that is quite easy because it comes with the "Data Entity" submodule that creates an entity form for you. This allows you to update data table rows. It should add an edit button at the end of your data view for the table.
Using some basic custom code you can always create a form to add/update data to the table as well. For form creation please have a look at:
http://api.drupal.org/api/drupal/includes%21form.inc/group/form_api/7

Auto populating data into an existing Excel template

I was given an Excel template and have to automate filling it.
It is supposed to be uploaded every month into the grand central DB of our company. Grand central accepts nothing other than an Excel file with that template.
I tried reproducing the same using SSRS but it looks like SSRS has no control over rendering the looks and data in Excel (it keeps hiding columns and rows which is not acceptable). I have created a SQL connection on the Excel to get the stored procedure data into Excel.
Now I have to make sure the data goes into the template into appropriate fields. I think it needs groupings and page breaks also.
Please help..
You're on the right track with dumping SSRS as a way to export into the template. I've also found that the Excel rendering extension in SSRS does a lot of hiding and merging cells with certain report designs.
You will probably end up needing to write a script in your language of choice to load the data into appropriate cells on the template.
Here are some Powershell articles on Excel automation:
http://blogs.technet.com/b/heyscriptingguy/archive/2006/09/08/how-can-i-use-windows-powershell-to-automate-microsoft-excel.aspx
http://winpowershell.blogspot.com/2007/03/powershell-and-excel-com-object.html
Also take a look at Perl and the Win32::OLE module:
https://metacpan.org/pod/Win32::OLE
http://www.perlmonks.org/?node_id=153486

Resources