Join Download Hyperlink operation method in Oracle _oracle

Source: Internet
Author: User
1, in the report page layout corresponding position to add a text box, generally for download
Right-click the Pl/sql Editor to write a hyperlink and add the following:
Copy Code code as follows:

Function B_13formattrigger Return Boolean is
Begin
IF Upper (:P _action)!= ' DOWNLOAD ' THEN
return (FALSE);
ELSE
Srw.set_hyperlink (Exp_file.linkto);
return (TRUE);
End IF;
End

2, establish the program unit Exp_file and Exp_file, add the Link_to function, the contents are as follows:
Copy Code code as follows:

FUNCTION Linkto return VARCHAR2
Is
BEGIN
Return (:P _url| | filename);
End Linkto;

3, write trigger Before_report, to download the content appended to the download page, the contents are as follows:
Copy Code code as follows:

Function Beforereport Return Boolean is
Begin
If Upper (:P _action) = ' DOWNLOAD ' Then
:P _session: = USERENV (' SESSIONID ');
:P _test: = Exp_file.make (' Vendor_item_reference_enquiry_ ' | | To_char (sysdate, ' Yyyymmddhh24miss '),:P _userid, ' csv ', false);
Exp_file.append (' | | ' | | ' | | ' | | Vendor Item Reference Enquiry ' | | | ' | | | ' | | ' | | ' | | ' | ' | | | ' | | ' | | ' | | ' | | ' | | ' |
Exp_file.append (' | | ' | | ' | | ' | | ' | | ' | | ' | | ' | ' | ' | | ' | ' | | ' | ' | ' | | ' | | ' | | ' | | ' | | ' | ' | | ' | | ' | ' | | ' | | ' | | ' | ' |
Exp_file.append (' Selection criteria ' | | ' | | ' CCN: ' | | | ' | | ' |:P _ccn| | ' | | Mas Loc: ' | | | ' | | | ' | | ' | | ' | | ' | | ' | | ' | | ' | | ' | | ' | | ' | | | | ' | | ' | | | ' | | ' | | ' | | ' |
Exp_file.append (' | | | ') Division: ' | | | ' | | ' |:P _fr_div| | ' | | To: ' | | | ' | | ' | | ' | | ' | | ' | ' | | ' | ' | | ' | ' | ' | ' | ' | | ' | ' | | ' | ' | | ' | _to_div| ' | | ' | | ' | | ' | | ' | | ' | | ' | | ' | | ' | | ' |
Exp_file.append (' | | ' | | ') Vendor: ' | | | ' | | ' |:P _fr_vendor| | ' | | To: ' | | | ' | | ' | | ' | | ' | | ' | | ' | ' | ' | | ' | ' | ' | _to_vendor| ' | | ' | | | | ' | | ' | | ' | | ' | | ' |
Exp_file.append (' | | ' | | ') Item: ' | | | ' | ' | | ' |:P _fr_item| | ' | | ' | | ' | | ' | | ' | | ' | | ' | | ' | | ' | | ' | | ' |
Exp_file.append (' dept* ' | | '|' ||' Vendor ' | | | ' Pur-Loc ' | | | ' | Item ' | | ' | Make ' | | | ' | Description ' | | | ' Env. Std. ' | | | ' | Env. Status ');
return (true);
Else
return (true);
End If;
End
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.