How can I create a crosstab/pivot table in pentaho data integration? - pivot-table

I would like to turn the first picture into the 2nd picture (and I'm too tired to embed the pics, sry) https://imgur.com/a/SJtNo (output: Excel)
I also dont want to use a java script.
Thanks for your help.

I think you might want to use the Row Normaliser step, there are 2 different samples in the Samples directory of your PDI (\data-integration\samples\transformations).
There is also some examples on the Pentaho wiki, which you can access through the help button from within the step itself, in any case here is the link to it: http://wiki.pentaho.com/display/EAI/Row+Normaliser
There are also quite some examples of this step and other questions such as yours that have been answered here on stack and at other several PDI dev. blogs.

Related

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!

Edit a premade macro-enabled excel document from AngularJS webapp

I've got quite the issue that I can't seem to figure out how to do cleanly after hours of scouring the internet, hoping you all could help me out.
We have an AngularJS web-app that is used to create an object in a database according a large set of variables. After the object is put into the database, we want to put some of the fields into a macro-enabled excel doc containing some necessary VBA macros that then downloads to the user's computer.
From what I've found, Angular can output the data to a new excel doc, but we need to have the data put into the pre-existing excel document. The closest tool I've found is SheetJS from a different StackOverflow question/answer, but that answer doesn't actually implement the functionality to edit the current excel, only write to a new excel document.
Any and all suggestions on fixing my problem are appreciated!
I may have found an answer, but it's not quite available yet. I left an issue on the SheetJS GitHub page which got answered today. Sounds like macro persistence functionality is being added into the release this upcoming Friday. From there, add bookVBA:true to the options of your readFile call like XLSX.readFile("filename", {bookVBA:true, /* .. other options */});, and then on your writeFile call you add the option of bookType:"xlsm".
This is of course speculatory, as the change isn't live yet. I'll make sure to update this answer at that time.
EDIT/UPDATE: SheetJS now works in copying over macros to a new workbook, but there's currently a bug. If you have any code in the ThisWorkbook object to do anything on startup, sheet changes, etc., they won't work after writing back out, as it creates a new ThisWorkbook1 object. I've already opened an issue on it, but that should be fixed relatively quickly.

Automating Traffic to Website

How can I single handedly create views to my website just using my computer. I'm open to any and all options. It would have to work on a Mac. I apologize for the broadness of this question, but comment if you need clarification on what I'm asking. I want to start off with just basic hits to my website. For example if I looked at my statistics it would go from 20 views on June 6 to 100 on June 6 (hypothetical). I want to create them through proxies, but if there are ways I can get views without a proxy, I'd be open. Basically creating "artificial" views generated from my computer. I can't find a bot or tool that looks legit and may have to learn to code one.
You could use Selenium's IDE record an playback
http://www.seleniumhq.org/projects/ide/

How do websites use information on a database to create pages?

Sorry about the broad question. I'm just curious if someone could point me in the right direction.
Say there's a database of contact information, and there's a site where you can input a persons name and it brings you to a page with all of their information on that database. How does this happen exactly? The server would have to dynamically create this page, but does it have a generic format that it just fills with the information? And how does this happen?
Like you said, this is a an extremely broad question. It could be either way. The server could generate the entire contents dinamically, or it could be "filling the blanks" into a preformatted layout.
Google some PHP basic tutorials. That should give you a good idea about how this "dynamism" works. Sorry but your question is too broad to ellaborate more.
The server would dynamically create the page using PHP and SQL. There is a quick tutorial at http://www.mysqltutorial.org/php-querying-data-from-mysql-table/ that shows how it would be setup.
If I understood your question right, you are asking things like how this page was created, for example, in which case it can be as simple as a basic PHP and SQL combination. You can check an example on the w3sschools website:
Try it yourself example
There would be special place holders for the data and a query will extract the data and put it into the given place holders, please note, you can also use loops to add things like tables, fetch through multiple rows and so on.

how to display database data in joomla

I am new to joomlah . So far I have acomplished the following :
1. I have installed it on wamp server.
2. I have created a fewe articles.
3. I have created another schema on the database that comes with a wamp.
Now, I need to do two things and I wonder what is the best practice
1. Create a template article that will display data in a format
2. Load the data from the DB.
Since a lot of the answers to this question refer to older versions or 2009 answers
I wonder what is the reccomended way to do it today.
(Should I do it with PHP? is there a recommended pluggin? )
Thanks
You have 2 choices either:
Using this tutorial create a custom component (components are the extension type responsible for displaying content in Joomla's main area)
Look through the Joomla! Extension Directory (JED) for an existing solution - probably start with the "Tables & Lists" category.
I have used Table JX extension for a few years now. It is commercial, though but I think it is worth its money. It has a pretty simple user interface and you can do the basic stuff like to show a database table in an article just by clicking.
Their webpage is not the best, but the demo is quite informative: http://www.toolsjx.com/table-jx/demo

Resources