Automate Tableau Parameterised PDF Export - pdf

Want to automate a dashboard export to PDF at a particular location using a batch file. The dashboard have two parameter say EmpId and Age.
Say there are 10 number of EmpId then it should export 30 different PDF's respectively.
Else an excel file having EmpId and Age column should be get consumed to pass the parameter to dashboard export.
Thanks!

Related

Export multiple files with InDesign Data Merge

I am creating progress reports around 50 different companies in InDesign. The report is 10 pages long and has approximately 40 images and text fields that need to change based on the company.
I set up a data merge in InDesign and mapped all of the text and image fields. When I execute the data merge the text and images are mapping perfectly but it's creating one large 500 page report (10 pages x 50 companies). I.e. Report for Company A is on pages 1-10, report for Company B is on pages 11-20, and so on.
While I could break this up into individual reports in AcrobatPro, this step seems like it should be unnecessary. How can this be automated, preferably within InDesign? And how would I then be able to save each file based on a field in the merge csv?
I agree with Nicolai, I don't think default data merge option can create split documents.
Maybe you can use the following script to split your documents into the parts
https://creativepro.com/free-script-splits-long-indesign-files/

Is there a way to count dynamic table rows in citrix/image env in UIPATH

I am doing automation to download all document by customer.
i am having trouble with counting total rows in table because it is image based env. you can see the following image
i have tried to find selectors, but there is no selector
Can any body tell me how can i do it
Thanks
if you are using image recording then try the following:
1. First select Image Recording and from Screen Scraping choose the option Screen Scraping as follow:
2. Just click on the image that you want to scrape data. In the follow up pop-up window select Region to Scrape option and specify the region/image to scrape as follow:
3. Then for your new scraped data select the following options on the right side as follow:
4 The output of your recording will be Text (unstructured data), so let us covert it to Data Table (structure data) so we can count the rows.
5 In order to do that we use Activity Generate Data Table
6 Lastly we use Activity For Each Row to count the rows and store them in a row_Counter variable.
7 Workflow as follow:
Hope these information will be useful.

Pentaho : How to split single Excel file to multiple excel sheet output

I have a list of employee details. I want to split each employee detail in separate Excel sheet. I tried a lot but I get only separate Excel files alone, not all the sheets in a single file by using Pentaho kettle.
Eg:
Raja 22 developer 25000
ravi 23 tester 2000
karthik 24 designer 4000
Mani 28 developer 45000
In that each employee details will need separate sheets in a single excel file. Already, I worked with "MS excel writer" but it did not work.
EDIT
Thanks for your valuable reply,its really clear and more useful. :-) But i need one more detail from you,if i added age,skill ,salary columns into the get variables, after run the job ,i didn't get the values of these three fields only their column names shown in every sheet. I need to include their column values in each sheet
example : sheet 1 : (raja)
Name age skill salary Raja 22 developer 25000
sheet 2 :(ravi) Name age skill salary ravi 23 tester 2000
Like that i need to generate each sheets,I hope you get my point. Can you please help me how to i generate that.
You need to copy the rows (employee names) into memory and then loop it across the excel file to generate multiple sheets with employee names. I have uploaded the codes in this location. You can view it.
First of all, i took an excel input and used "copy rows to result" step to load the data to the memory.
In the Second Step, loop all the data in the memory and write it across the excel file. You can loop the file by enabling the 'copy previous results to parameter' and 'execute for every row' will run for every single row. Check the image below:
Finally when writing the files in an excel file (using Excel Writer Step) make sure that every time a row is coming from prev. step is getting inserted into the same file. Check the below image for this.
I have uploaded a sample code in github. Hope it helps :)

Exporting table to text field but getting hhmmss in the Date/Time field

Im trying to export a table to a text file using the following process:
Right Click on Table | Export | Text File
This all works fine but one of my fields is a Data/Time field and exports the values in it like so:
0:00:00
I did a bit of research on this and found this by Microsoft http://support.microsoft.com/kb/291245 which explains why this happens and provides a couple of solutions.
Not of these solutions actually work for me because I need a , as a delimiter and don't want the 0:00:00 to appear. Sow whats the best way of doing this?
Thanks
I'm open to suggestions either via VBA or through a MS wizard
Add your table to the query design window. Add all the fields you need to the design grid. Change the date field to:
MyDate: Format(TheDateField,"yyyy/mm/dd")
Or any other combination of year, month, day that works for you. Save the query. Choose to export the query. You can do this with Right-Click, with the External data tab, or via VBA:
DoCmd.TransferText acExportDelim, , "MyQuery", "z:\docs\myquery.csv"
Reference: http://msdn.microsoft.com/en-us/library/office/bb214141(v=office.12).aspx
An other solution could be to first, create a table based on query with correct date format, and then export this table.
By this way, you can still have a date and not a string on your exported file, so it can be sort!
Microsoft brings us some more details for this resolution right here :
When you export date fields to text, the time format is included Abstract

Automate Same Query (and Export) for Multiple Values

I am working with a database with 5 tables, all of which contain different sets of information about clients and their employees. If you drill down in any table for data relating to a particular client, many rows will return according to the number of their employees in the dataset.
If I were to manually run the reports I need, I would query each table, one at a time, for all results where a particular client number is specified. Then I would export each table to a .csv, and then copy those exports into the same excel workbook with 5 tabs (corresponding to the 5 tables in the SQL database). At the end I would have an individual workbook for each client.
A complicating factor is that not every client ID appears in each of the 5 tables. Preferably, I would not export empty datasets and clients with data in only three of the tables would have only three tabs in the final workbook.
Is there way of giving to SQL server a list of Client IDs, for which it should query the 5 tables, export the existing data, and (possibly / hopefully) combine in a workbook on separate tabs.
Your question is rather vague and broad, but here's the key bits of information you'll need to investigate to get things going:
Create five different datasets, each querying one table.
Create five tablixes, add a PageBreak before each tablix so in Excel they will land on different tabs.
Either set a NoRowsMessage or hide the tablix along these lines using an expression based on the RowNumber function
Create a parameter for selecting the client ID, and use that in your WHERE clause of the datasets.
The tricky bit would be how to generate multiple Excel files. SSRS does one export at a time, so your basic options:
Put multiple clients in one XLS (i.e. don't use a parameter, but include clientId as a column on the worksheets)
Have the user select one client at a time, and export one XLS at a time.
Automate generating the reports.