How to display the download link with get_blob or get_blob_file_src?
HelloI fight to display a download link in a report of SQL query.
Based on the condition, I need to create a report of sql query that the source contains a series of query union select.
Example here
WITH current_engagement AS)
SELECT engagement_id, pn, ethnicity, date_joined_aodt_court, defendant_id, case_manager_name
participation_conditions, discharge_conditions
COMMITMENT
WHERE defendant_id =: PXX_DEF
AND date_joined IS NOT NULL
AND (date_terminated IS NULL or to_date(date_joined,'DD/MM/YYYY') > to_date(sysdate,'DD/MM/YYYY'))
AND active = 1 AND ROWNUM = 1
ORDER BY defendant_id DESC
)
SELECT def.first_name, def.middle_name, def.surname, to_char (def.pn) "PN", to_char (def.nhi_number) AS 'IHN ".
, ce.ethnicity, to_char (ce.date_joined) as ce.discharge_conditions, ce.participation_conditions, ce.case_manager_name, 'DATE_JOINED '.
THE DEFENDANT def INNER JOIN current_engagement this
ON def.def_id = ce.defendant_id
UNION ALL
Select the < b > 2. Phase number < /b > ', ' < b > Date started < /b > "," < b > Date completed < /b > ', '< /b > < b > Notes', null
null, null, null, null, null
of the double
UNION ALL
SELECT TO_CHAR (NVL (ph.phase_number, 'No. Phase found')), TO_CHAR (ph.date_started, ' DD/MM/YYYY'), TO_CHAR (ph.date_finished, ' DD/MM/YYYY'), ph.notes, null
null, null, null, null, null
FROM phase_membership INNER JOIN current_engagement ph this
ON ph.mpm_eng_id = ce.engagement_id
WHERE the to_date(ph.date_started,'DD/MM/YYYY') < = TO_DATE(sysdate,'DD/MM/YYYY')
AND (ph.date_finished IS NULL
TO_DATE(ph.date_finished,_'DD/MM/YYYY') or > = TO_DATE(sysdate,'DD/MM/YYYY'))
AND ph.active = 1
UNION ALL
-Selects more
-then select it last is to list all documents with download links
Select the < b > 6. "The document Date < /b > ', 'Type of paper < b > < /b >', 'Description of < b > < /b >', '< b > download < /b > '.
null, null, null, null, null, null
of the double
UNION ALL
SELECT TO_CHAR (doc.date_received), doc.document_type, doc.comments, TO_CHAR (dbms_lob.getlength (doc.) UPLOADED_FILE))
null, null, null, null, null, null
DOCUMENT doc INNER JOIN current_engagement this
ON doc.d_eng_id = ce.engagement_id
WHERE doc.active = 1
This report is generated correctly.
But the requirement also ask to post a download link. And because it's the Union chooses, selects all next must be same as the types of data in column select it first.
In this case, it must be CHARACTER. otherwise, it will generate the error like below
ORA-01790: expression must have same type of data, matching expression
Then I followed the step of GET_BLOB_FILE_SRC function of
http://docs.Oracle.com/CD/E14373_01/apirefs.32/e13369/apex_util.htm#AEAPI129
I turn my last selection in
SELECT TO_CHAR (doc.date_received), doc.document_type, doc.comments,
CASE WHEN NVL (dbms_lob.getlength (doc.) (UPLOADED_FILE), 0) = 0
THEN NULL
ON THE OTHER
"Download".
END
null, null, null, null, null, null
DOCUMENT doc INNER JOIN current_engagement this
ON doc.d_eng_id = ce.engagement_id
WHERE doc.active = 1
Which is the result within the Group
http://app_address_here/f?p=208:48:1303335952329758:
whereas if I use the interactive report link is
http://app_address_here/apex_util.get_blob?s=1303335952329758 & a = 208 & c = 66645817090447568 & p = 48 & 12 = K1 & K2 = & CK = A18D20D407435BD649EA3399EC27BC00 & RT = CR
and it works well.
I search and know that get_blob_file_source a link to the source of the column / field name located in the first parameter.
If I put the UPLOADED_FILE column of the DOCUMENT table in the source of the REF. column
But it still does not show anything close to the correct one which is generated by interactive report.
If anyone has any ideas, please help. If I need to manually write using get_blob, please give me an example.
I have urgent need of this report.
The version of the SUMMIT that we use is Application Express 4.0.2.00.07
And I can't ask an update 4.2 until the end of next year.
Help, please.
Thank you very much in advance.
Ann.
Hello Ann,.
Here you can view and download the example:
http://Apex.Oracle.com/pls/Apex/f?p=63066:1
Please let me know if you need to access the workspace.
Tip, please read the FAQ section. had you put your thread in a better format, you would have got a quicker response :)
Kind regards
Fateh
Tags: Database
Similar Questions
-
How to provide the download links for the users of the portal
Hello
I have several portlets (standard JSR168 built in Java with JDeveloper 11 g) that displays links to download files users.
The files are stored in another system and obtained by calling a Web service.
Which is the best way to provide these links to the user stays on the same page and get a dialog "save/open"? I have to develop a servelet process the request again?
Thank you
André EstevesYes. You can write the processAction logic. The code in my previous post (content-disposition, attachment) will force the browser to open the file save/open dialog box. If you need example code to download the file, you can see this example .
-
How to add the download link and print report?
Hello
In my dashboard, I have a text link that takes me to the report.
I see only 'back' and 'bookmark' link at the bottom of the report. How to add 'Print' and the link 'Download' at the same place?
Appreciate your helpYou want to add ' & Options = "to your link. There are options for all these actions. See this link:
http://oraclebizint.WordPress.com/2007/07/30/customizing-Obi-EE-%E2%80%93-go-URL-parameters/
-
How to display the new page with HTML, click the ADF
I have an ADF page with a button.
When I click that button, I call a method in backing bean that calculate a string that is HTML. I want to make this HTML as a new page in the same window of the browser as a result button click.
How do I do that?
I can also call a methodCall to task flow on a button click. But my next page should be a new HTML page including the calculation in the method call.
You can convert the calling method in a servlet - your ADF page calls the servlet that returns the HTML code - this may be as a separate page using an af:goLink to call the servlet or it can be included in an af:inlineFrame in your page.
Another option is to return the HTML string as the value for an af:outputText and the attribute of the escape of this element the value false.
-
How to display the phone number with code in the text element
Hello friends,
I have table "customer_management. In this table, I have a phone number of field in the varchar2 data type.
the storage format of the telephone number is: (code-phone number) for example 0902334-324345
Ok. I created a form of this table in the data block. This form I want to view the phone number and code in two text elements... So, should I create a query to do this... Pls help me with a query... What trigger is suitable for it?
Please give me example query...
Thank youHello
If you are using:TAA_CUSTOMER_MANAGEMENT.CONTACT_PHONE_NO :TAA_CUSTOMER_MANAGEMENT.NUMBERS
are these above said are elements not db?
If yes then its get accessor for fill in post-interrogez trigger.
Just check substring and instring functions that return the value.Published by: user13329002 on March 3, 2011 01:47
-
How to view the download progress of an application on the Mac App Store
When I download an app on the Mac App Store, A cannot see the status of the download. How to display the download progress of an application on the Mac App Store?
Of application are what type you referring? If the app is in the launch area, then you will see the progress bar just below the icon on your dock launch pad. If you want to see the progress of an application that is not in the launch pad, then if you look at the Mac App Store update page, it shows the progress just below bar app that it is updating.
Sorry - that was updated.
See you soon,.
GB
-
Access to the download link for PhotoShop CS5 and InDesign CS5
Can you tell me how to access the download link for PhotoShop CS5 and InDesign? My computer is dead. I bought a new laptop and I would like that my old software on my new laptop.
Thank you.
Hi daniell25288293,
Here is the download link for Photoshop and Indesign CS5:
Kind regards
Claes
-
How can I get the download link for CS 5.5 so I can re - install?
How can I get the download link for CS 5.5 so I can re - install? I only see CS6 or CC option in the Download Center.
If you follow the 7 steps you can directly download a free trial here: http://prodesigntools.com/adobe-cs5-5-direct-download-links.html
and activate it with your serial number.
If you have a problem downloading, you follow the 7 steps, or your browser does not accept cookies.
the most common problem is caused by failing to meticulously follow the steps 1, 2, and/or 3 (which adds a cookie to your system, allowing you to download the correct version of the adobe.com site).
Unable to obtain the cookie translates into an error page displayed after clicking on a link on prodesigntools.com
-
How to display very large text with the font size?
I'm using html and css to display large text with the font size.
Label { text: "Acit" }
In the image below, it is the largest size, although I try to increase the value of the size of the font. Do you know how to display the largest font size?
Thanhks
You should be able to amplify it upward with scaleX/scaleY properties, although no doubt quality will suffer somewhat (but probably not significantly, for most people).
-
How to display the path of a contact with a program?
How to display the path of a contact with a program?
Hey,.
Follow the mentioned below as follows:
- Go to Contacts > Contacts.
- Highlight the contact to which you want to see the way through the program.
- Click on the newspaper story > program activity.
Thank you...
-
Hi, I bought acrobat adobe pro ms with order number: 12287735659 but I have not received the download link and the serial numbers of adobe and had this message there is a problem processing your order, please contact our Service team customer to 800 448 1642 for assistance. my credit card is already loaded, but not received numbers.please series suggest
Hi Kunal,
If the problem still persists, can you please contact the support for this issue through https://helpx.adobe.com/support.html#/top_products.
Please do not hesitate to me message in person if assistance is needed.
Concerning
Stéphane
-
I bought the 14 for Mac adobe elements. Is there a download error. I received an email with the serial number, but when I went on the site to download the illustrated product was 14 for Windows. What is the download link for adobe elements 14 for Mac?
Download & install instructions https://forums.adobe.com/thread/2003339 can help
-includes a link to access a page to download the Adobe programs if you do not have a disk or drive
-Cloud desktop http://helpx.adobe.com/creative-cloud/help/creative-cloud-desktop.html
-Cloud Getting Started https://helpx.adobe.com/creative-cloud.html
-you will need to enter your original serial number during the installation for non-Cloud programs
- or kglad links in response to #1 here can help https://forums.adobe.com/thread/2081216
Also go to https://forums.adobe.com/community/creative_cloud/creative_cloud_faq
-
I bought Adobe XI PRO last year, but now I want to reinstall the softeware, how could I get the download link? Or the series number could be applicable to Adobe PRO DC? Please who can help me to solve it.
Hi vtenve
You can download it here: https://helpx.adobe.com/acrobat/kb/acrobat-downloads.html
And no! This serial number does not work for Acrobat DC.
Kind regards
Rahul -
How can I restore Adobe Acrobat Professional XI (bought earlier this year, in February; education version) after the restoration of Windows 7 to factory settings? I tried the download link provided by email I received when I just bought but it did not work.
Hello
Use the following link to download:-
-
Please give me the download link for windows VISTA oem
Please give me the download link for windows VISTA Home premium 64 & 32 BIT please, are the links for oem? I need OEM. I got the license but no installed operating system and therefore cannot know which of the vista is. You know a way to find the license of numbers/letters, please. Thank you for your valuable contribution
Best regards
Gerry
Hello
If Vista is preinstalled and is not bootable, contact the computer manufacturer and ask them.
You should have a SN (serial number) on the case.
There is no Windows Vista downloads available from Microsoft.
"How to replace Microsoft software or hardware, order service packs and replace product manuals.
http://support.Microsoft.com/kb/326246
You can also borrow and use a Microsoft Vista DVD, which contains the files for the different editions of Vista (Home Basic, Home Premium, Business and Ultimate) must be installed. The product key on your computer / Laptop box determines what Edition is installed.
Other manufacturers recovery DVDs are should not be used for this purpose.
And you need to know the version of 'bit' for Vista, as 32-bit and 64-bit editions come on different DVDs
Here's how to do a clean install of Vista using a DVD of Vista from Microsoft:
"How to do a clean install and configure with a full Version of Vista '
http://www.Vistax64.com/tutorials/117366-clean-install-full-version-Vista.html
And once the operating system is installed, go to your computer manufacturer's website and get the latest drivers for your particular model or laptop computer.
And phone Activation may be necessary when you use the above installation method.
"How to activate Vista normally and by Activation of the phone '
http://www.Vistax64.com/tutorials/84488-activate-Vista-phone.html
See you soon.
Maybe you are looking for
-
In the Radio to iTunes with Apple's music section, the kind most stations (i.e. "Chill") beyond the generic 'Star centres' and 'Recently played' sections have disappeared in the last week or two. Anyone know what is happening? I notice in the version
-
11 HP 11.6 Notebook pc flow shows enter password admin or power on password. When I press F11 to go and reset it nothing happens, and yes I am pressing F11 8 times. Even when I put the password and press enter I get system 51448691 disabled. Product
-
All, I'm under labview 2011 I have a while loop nested within one another while loop. In the outer circle everything in a loop, there is a VI express, called "prompts the user for input." I trap on the express VI, but when it runs it does not call
-
Change the product key with a Windows 8.1 apdate
I WANT 4 - 1130us I've had for about 1 year and it came with pre-installed Windows 8. I've since updated to Windows 8. 1. On the screen: System control panel - system and safety - is a link to "Get more features with a new edition of Windows". When
-
Could not find the word on my computer
Microsoft Word has disappeared from my compupter. I can't open documents, and I don't know what happened. Any suggestions?