Oracle Reports (MOSC)

MOSC Banner

Can a select with extract be used in Reports 11.1.1.6?

edited Jan 31, 2018 4:02AM in Oracle Reports (MOSC) 2 commentsAnswered

We are just starting to plan for using XML data and so we are climbing the learning curve.

We use Reports 11.1.1.6

I am looking for information on using "select extract(xmltype_col, "xpath pattern") as display_name into variable_name from table_with_xmltype_col" in a program unit of my report.

Our attempt (which query works in sqlplus)

PROCEDURE t IS
  v_date varchar2(4096);
  v_num varchar2(4096);

BEGIN
   select
          extract(raw_trxn_image, '//ShipmentNotice/Shipment_Document.Shipment_Date.DateTime/text()').getstringval() ,
          extract(raw_trxn_image, '//ShipmentNotice/Shipment_Document.Contract.Contract_Document/Contract_Document.Contract_Identification.Identifier/text()').getstringval()

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center