Pentaho Issue with Import / Export and File Repository API - pentaho-cde

I created a dashboard in pentaho CDE with some title and description.
Now when I call the api "pentaho/api/repo/files/[Path]/children?showHidden=false&filter=*.wcdf", I am getting file list with properties.
However, if I change the properties like title / description, and save the dashboard those changes are not getting reflected.
Also when I export these files and import into another folder, the description property is not coming in the api call.
What could be the reason and how to solve this?

Related

How to export data in CSV in kibana custom plugin using Reporting plugin

how can I export data which I rendered in a dataGrid inside of a custom plugin using data plugin
How did I render the data inside a plugin?
follow -> Git app.tsx
I want to export this data using the kibana plugin
Dashboard plugin has an example for exporting data
To export these datas, you can use the kibana's API.
To find the http request to execute, just use developper's tools in chrome to find a POST request with a URL like /s/echange/api/reporting/v1/generate/immediate/csv_searchsource.
When you find your request, try to execute it in your script : you will retrieve your csv's datas.

Excel cannot open the file because the file format or file extension is not valid - PHP Maatwebsite

In our backend project, we have some features that allows to export files to xlsx.
We have done some tests locally and everything is working fine.
However, I deployed the app in an Azure App Service and some of the exports (not all) are not working fine.
I deployed backend (PHP), frontend (React) and database (MySQL) in Azure. I copied the information of the local DB to the DB deployed in azure (just because we don't wanna waste time with the data).
In the backend project, we are using Laravel with Maatwebsite for the features related to the exports. I created a class that implements FromQuery, WithHeading and ShouldAutoSize and that has construct, query and headings functions. Next, in a Controller, I use this structure to get the file:
public function functionName(Request $request){
$fileName= 'name'.time().'.xlsx';
return (new ClassThatHasTheLogicOfExporting($request->all()))->download($fileName);
}
All my exports works like that, but I'm getting the following error in some of them:
"Excel cannot open the file because the file format or file extension is not valid"
When I try to open the file.
I've been reading about the issue and some people says that I should use ob_start() (at the beggining of the class) and ob_end_clean() (just before exporting the file) but when I do this, I get a 404 error in the web app.
A curious thing is that when I add a filter to the data for exporting (for instance, downloading only the data of people in a specific city) (I can do it in the frontend app), the file opens without errors.
With this strategy, I've achieved downloading all the data in separate groups, so I don't think that the issue is related to special characters in the data.
Does anybody have any suggestion?
I'm using maatwebsite/excel 3.1 and PHP 8 with Laravel 8
I believe the error statement correctly suggests the error is being caused due to an invalid extension. Don’t worry there are several workarounds to this, I am sharing them below:
Method 1 – Change the Default File Format to Save Excel Workbooks
In Excel 2007, click the ‘Microsoft Office’ button and then ‘Excel Options’. In Excel 2010 and higher versions, click File > Options.
Select the Export option.
Select the Change File Type option.
Change the file extension, and then click Save As.
Method 2 – Recover Unsaved Workbook
Go to File and select the Info option.
Under Manage Versions, select ‘Recover Unsaved Workbooks’ op
If MS Excel has unsaved files then, it will list them. You can open and save it.
Method 3 – Use the' Open and Repair' Feature of MS Excel
Open MS Excel application.
Go to File and select the Open option.
Select the corrupt file and choose the Open and Repair option.
You can also check this forum:
https://social.technet.microsoft.com/forums/office/en-US/63020ccc-51d7-46d9-b956-121c0e6efcc8/excel-file-error-the-file-format-and-extension-dont-match?forum=Office2016ITPro
Best Regards,
Steve
you can add the below
if (ob_get_length() == 0 ) {
ob_start();
$response = Excel::download(new KingdomsExport, 'kingdoms.xlsx',\Maatwebsite\Excel\Excel::XLSX);
return $response;
}

How can I import a class from back4app, which contains images, into another back4app database?

I have a back4app parse database that has a class containing images. I need to import this class into another back4app parse database. When I export it to json and attempt to import it, I get the following: This XML file does not appear to have any style information associated with it. The document tree is shown below. Followed by an error stating access denied. What do I need to do to get this to work?
To clarify the solution: the files must be cloned into the new database, which can only be done by contacting back4app directly and asking them to do it.
I recommend that you sent a email or talk at chat with Back4App, the error that you reported is necessary clone your files/images.

Using PDI transformation in Pentaho BI server as data source for report parameters

Any advice on how to use PDI transformation as data source for report parameters in BI server's console?
I've uploaded the prpt reports to BI server but the I get a message "Error parsing parameter information". The .prpt and .ktr files are both in the same directory.
Actually, just realized that the issue could be solved by adding Transformation (KTR) as a resource. In this case, one can use the File-Resources menu selection. In the dialog select the transformation you wish to import and pick text/xml format. Give the resource a name and save it. You must save your PRPT file again (File-Save).
The caveat here is that transformation should be in the same folder as PRPT file. Then in the data sources, don't select transformation via folder path, but use the name of the resource that was assigned during the previous step (there is no drop down menu for looking thorough the files). You have to know exact name of the resource in order to do so.
Check the logs carefully. I suspect it's not finding the KTR. When you select the KTR in the prpt it usually (annoyingly) saves the whole path, so it's probably the full path to the ktr as defined on your dev box.
This does work, so do persevere!

Can I export a report design layout from Access?

I'm converting an application from access to c#. I have a adp file for the access application. I've only been able to export the report as a .cls file, which does nothing for me. Is there a way to export the report design view so that I don't have to redo it from scratch??
Thanks!
Are you able to use the SaveAsText method to export your report e.g:
saveastext(acReport,"ReportName","FileName.txt")
And then re-import the report using the LoadFromText method e.g:
loadfromtext(acReport,"ReportName","FileName.txt")
This approach allows to export elements from MS Access to a text file containing all the file attributes etc and then allows you to load it back in keeping all it's settings/configurations

Resources