Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Dear Guru's
As I have request that I need to store the data on daily basis like
1) I have developed a application in Qlikview source data is AS/400 using that I created a stright table which contains
Today, Count of Invoice and Sum of Rupees
2) What I need is I would like to store these three columns in a Excel or QVD which is used as history data as a input to another
QVW file.
Is is possible, can anybody help me
Regards
Joe
Hi Joe,
I guess that those colums are calculated fields and expressions. You can export the object to an excel file or csv file right clicking on the object and using the contextual menu, or youncan create a button with an action to do the same thing, but like,y more user friendly, you can use the "XL" export to Excel icon in the caption of the same chart.
If you mean you need to do that automatically each time the document is reloadsed by the Server it's not possible, you cannot call that kind of macros within the script or launch them OnPostReload. These will work if you run the reload locally, though.
Hope that helps.
Miguel
Dear Miguel,
Thanks for your reply, what I need is a particular time the test.qvw reloads and I would like to save the data in to a qvd is it possbile.
I will use the qvd as a history data to draw a trend for analysis.
Regards
Joe
Joe,
As I mentioned above, that is not automatic. You will need to create a button that exports to and excel spreadsheet, then LOADs the excel file and store that load into QVD (rather than exporting to a QVD file so you can control the format and layout of the columns (fields) you are storing.
You can work that around creating a Visual Basic program (not a VBScript one) resultin in an exe file, as pointed out in the Automation Reference Manual, that you can schedule to do that process.
Even if you have the module license to export to PDF files in Publisher, that does as a task in the Server, Excel is not a valid format formthe tme being (and unlikely to be in the future) other than this workaround: human interaction to click in that button with actions or the VB project.
Hope that makes sense.
Miguel
Hi Joe,
You can save the data loaded into the Qlikview report data in a QVD file. For this use the STORE command.
Ex:
TableName:
LOAD
*
FROM Temp.csv;
STORE TableName INTO FileName.QVD;
Hope this helps you.
Regards,
Jagan.
Jagan,
The information Joe need to save is not in a table but in a chart, that prevents using the LOAD - STORE part. We are looking for a way of exporting objects to a QVD automatically when the reload finishes and the chart is updated.
Regards,
Miguel
Dear Miguel,
Exactly, you are correct I need to export the chart object to a qvd automatically when the reload completes.
Regards
Joe
Hi Joe,
As Jagan said you can create a table in the script with the fields and expression you need in chart and store it into qvd. By doing this you dont need to be rely on Macros.
Regards
VIjay
Dear Vijay,
Thanks for your reply.........
This is the expression I am trying but its not working for me...
Can you advise, where I made the mistake
Trend:
ODBC CONNECT TO AS400 (XUserId is NMTLEB, XPassword is NMTTPB);
SQL SELECT
CORP as Client,
SUB as Subsidary,
LOC as Location,
Count(PRON) as Invcount,
Sum(RUPEE) as Amount
FROM S104F31D.Data
Where CORP =180
;
Store Trend into Test.qvd;
Regards
Joe
I think you are missing group by.