Link to download settings.

I created a generic download function which takes two parameters. The function works, but now I will try to find how to provide a download link that has informed parameters based on some elements of the page.

Elements on the page:
P38_export_type: The user can select what type of data to download
P38_filename: The user can provide a file name

Is what I tried to create a button: redirecting to a URL

#OWNER # .download_my_file? p_application_id = APP_ID. & p_filenaam = & P38_FILENAME. & p_functie = preparation & p_parameter1 = & P38_EXPORT_TYPE.

Although this creates a bond, the parameters are filled on page load. It's at the beginning, I need values both key.

Any ideas how to do this?

You can change the button to execute a JS function that creates the URL, then redirect the URL.

function Redirect_File_URL(owner) {
URL =owner+'.download_my_file?p_application_id='+$v('pFlowId')+'&p_filenaam='+$v('P38_FILENAME')+'&p_functie=Statistiek&p_parameter1=' + $v('P38_EXPORT_TYPE';
location.href=URL;
}

Note: Change Pls the generation of URL string so that it matches what you expect

and change the URL of the button to

  javascript:Redirect_File_URL('#OWNER#');

Tags: Database

Similar Questions

Maybe you are looking for