Coder Social home page Coder Social logo

Comments (7)

stefanwalther avatar stefanwalther commented on September 26, 2024

Thx for reporting, I'll investigate.

from sense-export.

Chenjie-zz avatar Chenjie-zz commented on September 26, 2024

Hi, any fix for this yet?
having same problem using the extension, it redirect without include the Virtual proxy. and the content is not found, after add /virtualproxyname/ to the url, it's work.

from sense-export.

katewologun avatar katewologun commented on September 26, 2024

Hi has anyone found an fix or workaround to include the virtual proxy?

from sense-export.

KeremPekcabuk avatar KeremPekcabuk commented on September 26, 2024

Not yet it seems :)

from sense-export.

henriqueantunes avatar henriqueantunes commented on September 26, 2024

After spending some time trying to understand why this was going on i gave up and did a little modification on the swr-sense-export.js.

`$scope.export = function() {

var exportOpts = {
	format: $scope.layout.props.exportFormat,
	state: $scope.layout.props.exportState,
	filename: $scope.layout.props.exportFileName,
	download: false
};

if ( qlik.table ) {
	var qTable = qlik.table( this );
	qTable.exportData( exportOpts, function( result ) {
		console.log( result );
		window.open(result.substring(3));
	} ); //Todo: this will open the link using window.open, so popup-blockers might catch that
} else {
	//console.log('this', this.$parent.$parent.$parent.model);
	//this.$parent.$parent.$parent.model.session("ExportData",null, exportOpts.format, null, exportOpts.fileName, exportOpts.state);
}

}`

what you do is set the download to false and after the callback function you remove the "../" from the result url. Then your download will get the correct path if you are using a virtual proxy. Its not a solution but a little trick if you guys need to get this going asap just like me.

Regards.

from sense-export.

stefanwalther avatar stefanwalther commented on September 26, 2024

I have fixed this in the recent release v1.2.2, please give it a try.

Closing this issue, pls feel to re-open if this doesn't work for you.

from sense-export.

Kumikameli avatar Kumikameli commented on September 26, 2024

Hi Stefan

Thank you for very good extensions and contributions.

I just installed latest version (1.3.5) of the Sense-Export and the virtual proxy problem is still there. The download link is always in the format "https://servername/tempcontent/.....xlsx" even if the user is using the app via QS virtual proxy.

Just to elaborate our environment/use case:

The end user uses published apps via single sign-on and QS virtual proxy. The app URL is like this:
"https://servername/**proxyname**/single/?appid=xxxxxx&sheet=xxxxyyy".

When the user clicks the "Export"-button in the app, the browser will redirect to
"https://servername/tempcontent/xxxxxxxxxx/somefilename.xlsx?serverNodeId=xxxxxx" and that will result to an error saying "The requested resource cannot be found."

If I manually put the proxy name to the URL, the exported file is downloaded fine:
"https://servername/**proxyname**/tempcontent/xxxxxxxxxx/somefilename.xlsx?serverNodeId=xxxxxx".

If there is no general solution easily available, is it possible to hard code the proxy name somewhere in the code? In our use that would be enough to solve all problems.

Thank you and best regards

from sense-export.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.