Hi,
I have an issue, in one Dashboard using a table view, one field is defined as Hyperlink, and when exporting it the link behind the scene is dropped, the column in Excel is just a text field formatted as a link (an underscored blue text).
In the Dashboard I took the text field corresponding to the caption I want to show, set it as Hyperlink, then defined the address using another field containing the corresponding URL. Online, it works like a charm, but when exporting, be it using the Share -> Excel or a button with a script set on the click event, I don’t get a real URL in Excel but just blue text.
The script I tried is this one:
// Get the export service.
var exportService = this.getService(‘ExportService’);
// Get the view service.
var viewService = this.getService(‘ViewService’);
// Create the export request.
var exportRequest =
new dundas.export.ExportRequest(
{
isLegacyExport: false,
// Export Excel
providerId: dundas.constants.STANDARD_EXCEL_EXPORT_PROVIDER_ID,
viewId: this.parentView.id,
viewData: this.getService(“CanvasService”).canvas.viewModel.businessObject.control
});
// Get the perform export promise.
var exportPromise =
exportService.performExport(exportRequest);
// Setup a loading dialog.
viewService.showLoadingRestCall(exportPromise);
exportPromise.done(
function(exportId)
{
// Get the Url for the export file.
var exportFileUrl =
exportService.getExportResultUrl(exportId);
// Force the browser to download the file.
window.location.replace(exportFileUrl);
}
);
// end of script
Is it me or the exportation doesn’t export the Hyperlinks as Hyperlinks but just as text??
Thanks in advance,
Olivier