How to Handle DFF Attrbute_category Column
Hi All,
I want to made DFF Attribute category column as mandatory in standard page,normally to handle normal DFF attributes like attribute1 we will handle as follows
OAMessageLovInputBean cycle = (OAMessageLovInputBean)page.findChildRecursive("OrgProfileQuickFlex0"); ///"OrgProfileQuickFlex" is the DFF Name
cycle.setRequired("yes");
But How to handle the Attribute_category column.
Thanks
Ajay
You could try setting the desctiptive felx field to required.
import oracle.apps.fnd.framework.webui.beans.OADescriptiveFlexBean
OADescriptiveFlexBean dff = (OADescriptiveFlexBean) page.findChildRecursive("OrgProfileQuickFlex");
dff.setReqired = true;
Mark
Similar Messages
-
How to handle trailing Null columns in a Batch file when ESB reads the file
Dear All,
How can I handle trailing Null columns in a batch file (csv file) that is been used by an ESB FTP adapter for batch file processing.
Since ESB is some times taking up the whole next record as the last column data..
Please update
many thanks...If your file is not designed to be amazingly large, then you don't need to use a temporary file -- you can just read the data into memory and manipulate it there. (Like, into a Document object or something.)
But if you are dealing with really large files, you might want to consider using a database back end instead of a text file, which is a completely different approach I know but... well, that's why databases were invented. -
How to handle the BOLB column Using JDBC adapter
Hi,
I want to sending of a BOLB column from a DB2 database table to another DB2 database, and the sender and receiver both by using JDBC adapter. The two tables in each other database have the same columns.
Here is the table's structure:
<ID>string type</ID>
<PDF>blob type</PDF>
Also, i haved create two DataTypes in PI system.
Sender DataType:
ns:DT_PDF_Req xmlns:ns="http://XXXXX.com/sap/xi">
<row>
<ID>1</ID>
<PDF></PDF>
</row>
</ns:DT_PDF_Req>
Receiver DataType:
<ns0:DT_PDF_Res xmlns:ns0="http://XXXX.com/sap/xi">
<STMT>
<dbtable action="INSERT">
<table>tablename</table>
<access>
<ID></ID>
<PDF></PDF>
</access>
</dbtable>
</STMT>
</ns0:DT_PDF_Res>
When test this interface, i found the that we can get the data, but when execute the insert stms the follow errors occured in RWB :
<ERROR>
Could not execute statement for table/stored proc. "DBDPUSER.pdf" (structure "STMT") due to com.ibm.db2.jcc.b.nm: DB2 SQL Error: SQLCODE=-103, SQLSTATE=42604, SQLERRMC=255044462d312e330a25c7ec8fa20a352030206f626a0a3c3c2f4c656e677468203620, DRIVER=3.50.153
JDBC Message processing failed, due to Error processing request in sax parser: Error when executing statement for table/stored proc. 'DBDPUSER.pdf' (structure 'STMT'): com.ibm.db2.jcc.b.nm: DB2 SQL Error: SQLCODE=-103, SQLSTATE=42604, SQLERRMC=255044462d312e330a25c7ec8fa20a352030206f626a0a3c3c2f4c656e677468203620, DRIVER=3.50.153
</ERROR>
Can anybody tell me how to resolve the problems?
And tell me about how to deal BOLB column using PI.
Best Regards
TerryHi Terry Qin,
I understand, you are getting below XML from sender JDBC channel. But when you getting SAX parser error, in receiver JDBC.
<ns:DT_PDF_Req xmlns:ns="http://XXXXX.com/sap/xi">
<row>
<ID>1</ID>
<PDF></PDF>
</row>
</ns:DT_PDF_Req>
I think it is because the XML which is going to receiver JDBC channel is not well formed (because pdf can containg < & characters).
You can achive this sceanrio, by selecting receiver JDBC channel as Message Protocol "Native SQL Format" [Link1|http://help.sap.com/saphelp_nwpi711/helpdata/en/44/7c24a75cf83672e10000000a114a6b/frameset.htm] you can send non XML to receiver channel.
Before that, you have convert above input XML into SQL statement, using Java Mapping.
Regards,
Raghu_Vamsee -
How to handle exception CX_SY_REF_IS_INITIAL
hi experts,
im working on a test scenario for abap mapping in SAP XI im getting this error
An exception with the type CX_SY_REF_IS_INITIAL occurred, but was neither handled locally, nor declared in a RAISING clause Dereferencing of the NULL reference
i understand that i need to catch this exception in the abap coding but i'm not familiar with oops concepts
can any one please suggest me how to handle this exception for the following code...
method IF_MAPPING~EXECUTE.
break x1149.
* initialize iXML
TYPE-POOLS: ixml.
class cl_ixml definition load.
** Instances & Variable declaration =======================
* instance main factory
TYPES: BEGIN OF t_xml_line,
data(256) TYPE x,
END OF t_xml_line.
DATA: l_ixml TYPE REF TO if_ixml,
* instance input stream factory
l_streamfactory TYPE REF TO if_ixml_stream_factory,
* instance input stream
l_istream TYPE REF TO if_ixml_istream,
* instance input document
l_document TYPE REF TO if_ixml_document,
* instance parse input document
l_parser TYPE REF TO if_ixml_parser,
* instance for elements within the nodes
node TYPE REF TO if_ixml_node,
*instance of nodemap
nodemap TYPE REF TO if_ixml_named_node_map,
* instance for iterator
iterator TYPE REF TO if_ixml_node_iterator,
name TYPE string,
value TYPE string,
* instance main factory
o_ixml TYPE REF TO if_ixml,
* instance output document
o_document TYPE REF TO if_ixml_document,
* instance output stream
o_istream TYPE REF TO if_ixml_ostream,
* instance parse output document
o_parser TYPE REF TO if_ixml_parser,
* instance fot renderer
renderer type ref to if_ixml_renderer,
irc type i,
l_xml_size TYPE i,
*ROOT ELEMENT
l_element_MT_DEMANDTEC_COST TYPE REF TO if_ixml_element,
*NEXT CHILD ELEMENT FROM THE ABOVE PARENT
l_element_DT_DEMANDTEC TYPE REF TO if_ixml_element,
*CHILDREN1 ELEMENT FOR DT_DEMANDTEC
l_element_DT_WHSE TYPE REF TO if_ixml_element,
*CHILDREN2 ELEMENT FOR DT_DEMANDTEC
l_element_DT_DC TYPE REF TO if_ixml_element,
*CHILDREN3 ELEMENT FOR DT_DEMANDTEC
l_element_DT_PLANT TYPE REF TO if_ixml_element,
*CHILDREN4 ELEMENT FOR DT_DEMANDTEC
l_element_DT_QTY TYPE REF TO if_ixml_element.
*saving the xml document
DATA: l_xml_table TYPE TABLE OF t_xml_line.
types: begin of t_source,
whse(5),
dc(4) ,
plant(4),
qty type i,
end of t_source.
types: tt_source TYPE STANDARD TABLE OF t_source.
data: wa_source type t_source.
data: it_source TYPE tt_source,
ivalue type string.
* Procedures and business logic =======================================
* Creating the main iXML factory
l_ixml = cl_ixml=>create( ).
* Creating a stream factory
l_streamfactory = l_ixml->create_stream_factory( ).
* create input stream
l_istream = l_streamfactory->create_istream_xstring( source ).
* initialize input document
l_document = l_ixml->create_document( ).
* Create a Parser
l_parser = l_ixml->create_parser( stream_factory = l_streamfactory
istream = l_istream
document = l_document ).
* parse input document
l_parser->parse( ).
* Validate a document
l_parser->set_validating( mode = if_ixml_parser=>co_validate ).
* Parse the stream
IF l_parser->parse( ) NE 0.
IF l_parser->num_errors( ) NE 0.
DATA: parseerror TYPE REF TO if_ixml_parse_error,
str TYPE string,
i TYPE i,
count TYPE i,
index TYPE i.
count = l_parser->num_errors( ).
WRITE: count, ' parse errors have occured:'.
index = 0.
WHILE index < count.
parseerror = l_parser->get_error( index = index ).
i = parseerror->get_line( ).
WRITE: 'line: ', i.
i = parseerror->get_column( ).
WRITE: 'column: ', i.
str = parseerror->get_reason( ).
WRITE: str.
index = index + 1.
ENDWHILE.
ENDIF.
ENDIF.
* Process the document
IF l_parser->is_dom_generating( ) EQ 'X'.
refresh : it_source.
node ?= l_document.
CHECK NOT node IS INITIAL.
* create a node iterator
iterator = node->create_iterator( ).
* get current node
node = iterator->get_next( ).
* loop over all nodes
WHILE NOT node IS INITIAL.
CASE node->get_type( ).
WHEN if_ixml_node=>co_node_element.
* element node
name = node->get_name( ).
nodemap = node->get_attributes( ).
WHEN if_ixml_node=>co_node_text.
* text node
value = node->get_value( ).
if name eq 'DT_WHSE'.
wa_source-whse = value.
ELSEIF name eq 'DT_DC'.
wa_source-DC = value.
ELSEIF name eq 'DT_PLANT'.
wa_source-PLANT = value.
ELSEIF name eq 'DT_QTY'.
wa_source-QTY = value.
COLLECT wa_source INto it_source.
CLEAR wa_source.
ENDIF.
endcase.
node = iterator->get_next( ).
endwhile.
ENDIF.
loop at it_source into wa_source .
at first.
* Creating a ixml factory
o_ixml = cl_ixml=>create( ).
* Creating the dom object model
o_document = l_ixml->create_document( ).
endat.
* Build and Fill root node MT_DEMANDTEC_COST
AT FIRST.
l_element_MT_DEMANDTEC_COST =
O_document->create_simple_element(
name = 'MT_DEMANDTEC_COST'
parent = o_document ).
ENDAT.
* Build and Fill Child node DT_DEMANDTEC for parent
* MT_DEMANDTEC_COST
l_element_DT_DEMANDTEC = O_document->create_simple_element(
name = 'DT_DEMANDTEC'
parent = l_element_MT_DEMANDTEC_COST ).
* Build and Fill Child node1 DT_WHSE for parent DT_DEMANDTEC
ivalue = wa_source-WHSE.
l_element_DT_WHSE = O_document->create_simple_element(
name = 'DT_WHSE'
VALUE = ivalue
parent = l_element_DT_DEMANDTEC ).
* Build and Fill Child node2 DT_WHSE for parent DT_DEMANDTEC
ivalue = wa_source-DC.
l_element_DT_DC = O_document->create_simple_element(
name = 'DT_DC'
VALUE = ivalue
parent = l_element_DT_DEMANDTEC ).
* Build and Fill Child node3 DT_WHSE for parent DT_DEMANDTEC
ivalue = wa_source-PLANT.
l_element_DT_PLANT = O_document->create_simple_element(
name = 'DT_PLANT'
VALUE = ivalue
parent = l_element_DT_DEMANDTEC ).
* Build and Fill Child node4 DT_QTY for parent DT_DEMANDTEC
ivalue = wa_source-QTY.
l_element_DT_QTY = O_document->create_simple_element(
name = 'DT_QTY'
VALUE = ivalue
parent = l_element_DT_DEMANDTEC ).
endloop.
* render document ======================================================
* create output stream
o_istream = l_streamfactory->create_ostream_xstring( result ).
* Connect internal XML table to stream factory
o_istream = l_streamfactory->create_ostream_itable( table =
l_xml_table ).
renderer = o_ixml->create_renderer( ostream = o_istream
document = o_document ).
irc = renderer->render( ).
* how do i catch the exception for type CX_SY_REF_IS_INITIAL ...?
endmethod.
full reward points for answers.
Thanks & Regards,
Uday Kumar.
Edited by: UDAY on May 6, 2008 9:32 PMHi Uday,
Its occurs because you're trying to access a objects with null reference. Or you forgot to create an instance or an error occurs during the instance creation. So You should put all your "Procedures and business logic" inside a Try/catch block. as follow.
" Define a class exception object to get error message......
DATA o_exception TYPE REF TO cx_sy_ref_is_initial.
"// Use the statment Try block to catch the error.
TRY.
* Creating the main iXML factory
l_ixml = cl_ixml=>create( ).
* Creating a stream factory
l_streamfactory = l_ixml->create_stream_factory( ).
* create input stream
l_istream = l_streamfactory->create_istream_xstring( source ).
* initialize input document
l_document = l_ixml->create_document( ).
* Create a Parser
l_parser = l_ixml->create_parser( stream_factory = l_streamfactory
istream = l_istream
document = l_document ).
* parse input document
l_parser->parse( ).
* Validate a document
l_parser->set_validating( mode = if_ixml_parser=>co_validate ).
* Parse the stream
IF l_parser->parse( ) NE 0.
IF l_parser->num_errors( ) NE 0.
DATA: parseerror TYPE REF TO if_ixml_parse_error,
str TYPE string,
i TYPE i,
count TYPE i,
index TYPE i.
count = l_parser->num_errors( ).
WRITE: count, ' parse errors have occured:'.
index = 0.
WHILE index < count.
parseerror = l_parser->get_error( index = index ).
i = parseerror->get_line( ).
WRITE: 'line: ', i.
i = parseerror->get_column( ).
WRITE: 'column: ', i.
str = parseerror->get_reason( ).
WRITE: str.
index = index + 1.
ENDWHILE.
ENDIF.
ENDIF.
* Process the document
IF l_parser->is_dom_generating( ) EQ 'X'.
refresh : it_source.
node ?= l_document.
CHECK NOT node IS INITIAL.
* create a node iterator
iterator = node->create_iterator( ).
* get current node
node = iterator->get_next( ).
* loop over all nodes
WHILE NOT node IS INITIAL.
CASE node->get_type( ).
WHEN if_ixml_node=>co_node_element.
* element node
name = node->get_name( ).
nodemap = node->get_attributes( ).
WHEN if_ixml_node=>co_node_text.
* text node
value = node->get_value( ).
if name eq 'DT_WHSE'.
wa_source-whse = value.
ELSEIF name eq 'DT_DC'.
wa_source-DC = value.
ELSEIF name eq 'DT_PLANT'.
wa_source-PLANT = value.
ELSEIF name eq 'DT_QTY'.
wa_source-QTY = value.
COLLECT wa_source INto it_source.
CLEAR wa_source.
ENDIF.
endcase.
node = iterator->get_next( ).
endwhile.
ENDIF.
loop at it_source into wa_source .
at first.
* Creating a ixml factory
o_ixml = cl_ixml=>create( ).
* Creating the dom object model
o_document = l_ixml->create_document( ).
endat.
* Build and Fill root node MT_DEMANDTEC_COST
AT FIRST.
l_element_MT_DEMANDTEC_COST =
O_document->create_simple_element(
name = 'MT_DEMANDTEC_COST'
parent = o_document ).
ENDAT.
* Build and Fill Child node DT_DEMANDTEC for parent
* MT_DEMANDTEC_COST
l_element_DT_DEMANDTEC = O_document->create_simple_element(
name = 'DT_DEMANDTEC'
parent = l_element_MT_DEMANDTEC_COST ).
* Build and Fill Child node1 DT_WHSE for parent DT_DEMANDTEC
ivalue = wa_source-WHSE.
l_element_DT_WHSE = O_document->create_simple_element(
name = 'DT_WHSE'
VALUE = ivalue
parent = l_element_DT_DEMANDTEC ).
* Build and Fill Child node2 DT_WHSE for parent DT_DEMANDTEC
ivalue = wa_source-DC.
l_element_DT_DC = O_document->create_simple_element(
name = 'DT_DC'
VALUE = ivalue
parent = l_element_DT_DEMANDTEC ).
* Build and Fill Child node3 DT_WHSE for parent DT_DEMANDTEC
ivalue = wa_source-PLANT.
l_element_DT_PLANT = O_document->create_simple_element(
name = 'DT_PLANT'
VALUE = ivalue
parent = l_element_DT_DEMANDTEC ).
* Build and Fill Child node4 DT_QTY for parent DT_DEMANDTEC
ivalue = wa_source-QTY.
l_element_DT_QTY = O_document->create_simple_element(
name = 'DT_QTY'
VALUE = ivalue
parent = l_element_DT_DEMANDTEC ).
endloop.
* render document ======================================================
* create output stream
o_istream = l_streamfactory->create_ostream_xstring( result ).
* Connect internal XML table to stream factory
o_istream = l_streamfactory->create_ostream_itable( table =
l_xml_table ).
renderer = o_ixml->create_renderer( ostream = o_istream
document = o_document ).
irc = renderer->render( ).
" The Statement CATCH define a block that catches the exceptions of the
" exception class cx_sy_ref_is_initial
CATCH cx_sy_ref_is_initial INTO o_exception.
" If you need to get the error message text do as follow
DATA errorMsg type string.
" Get the message text
errorMsg = o_exception->GET_TEXT( ).
" Display the error information
MESSAGE errorMsg TYPE 'I'.
ENDTRY.
The TRY block defines a guarded area whose class-based exceptions can be caught in the subsequent CATCH blocks. If no exception occurs in the TRY block and it reaches its end, the system continues the processing after ENDTRY. If a class-based exception occurs in the TRY block, the system searches for an exception handler in the same or an external TRY control structure.
Font: SAP Help
You can see a how to create and use an exception in this example [ ABAP Objects - Defining a Class-based exceptions|https://wiki.sdn.sap.com/wiki/x/19w] .
Best Regards.
Marcelo Ramos -
How can I read a column of numbers saved as .txt and display as a wave?
Hi Tiano
LabVIEW General
Ask:
Please enter a one-line summary of your question
Resources
• Technical Support
• Development Library
• Measurement Encyclopedia
"data/time reading into chart"
"In the attached file, I am trying to read the first column of data, and the next column is the value on the x-axis I want it plotted at. How do I read two columns of different data? I have looked in the books I have access to and the help within Labview but am still having trouble.
Thank you,
Ellie"
data_set (Plain Text, 3K)
-posted by Ellie on 9/11/2001
markwysong on 9/11/2001 answered:
"Ellie,
The first thing you need to do is to read your file in as a spreadsheet file. Then, you display it in a chart.
That sounds simple, but looking at your dataset, there's a few things you should know. First, the "read from spreadsheet VI" is looking for data in columns, like your data set, but columns separated by tabs. Therefore, your data must be saved that way; currently, it doesn't seem that it is. Another thing; you must skip the header portion (labels) of your file when reading.
Next, it would be easier if your time was first, and your data was second in your columns, but that can be overcome. In the VI I am including, I have copied your data set into a file called data.txt, and I've removed the header and separated the columns with a tab. Then, I read in the data, and I break out each column so I can put the time first, and then I combine them again into a cluster so it can be displayed on an XY chart.
Take a look!
Mark"
Graph data from file (Binary Executable, 20K)
data.txt (Plain Text, 3K)
This answer has not yet been rated.
Rate this answer:
Mikael Garcia on 9/11/2001 answered:
"Ellie,
Here is one way of doing it. Take a look at this example (compatible with LabVIEW 4.1 and up) and post comments if you need further help. Basically, I read your file as text; split it; and make use of the Spread sheet string to Array function before I plot your data. Hope this helps./ Mikael"
ExtractAndPlot.vi (Binary Executable, 36K)
This answer has not yet been rated.
Rate this answer:
Ellie on 9/12/2001 commented:
"Thank you. I am trying to get the data from the text file into a string and am having some trouble. I am reading the file from a spreadsheet, and sending the output array to "Array to Spreadsheet String", but I'm not sure this is what I want to do. Is there another way to make an array into a string? Do I need to reformat my data?
Can you offer me any advice?
Thank you."
data_1 (Plain Text, 3K)
Mikael Garcia on 9/12/2001 commented:
"I noticed that you changed your file format according to what was said here. Yes, this new file of yours is easier to use but your original file does not have to be changed. Take a look at this example. I now added the file-read part. It will give you a dialog to locate your data file (use this VI with your original file with the header since this VI includes a string split function). Hope this helps. /Mikael"
ReadExtractandPlot.vi (Binary Executable, 35K)
Niko on 9/12/2001 answered:
"If you read this file with the "read from spreadsheet file.vi" you get you
data in a 2-D-array. Now it is easy with array- and cluster-functions to
handle the data the way you want.
hope that helps, Niko"
This answer has not yet been rated.
Rate this answer:
I intend to read from a .txt file that contains a column of numbers. After reading I want to display it as a waveform. In fact the numbers represent points along a waveform/graph of Flow vs. time. Thus I want to have this info in the chart or graph with flow in the y0axis and time in the x-axis. Can someone give me some detailed help please? Thank you in advance.
Attachments:
The_file.txt 18 KBAll you have to do is use Read From Spreadsheet File.vi that's on the File I/O palette. For your example .txt, set the Transpose input to true and wire the First Row output to a waveform graph. The only problem I see is that since your file doesn't contain any sampling info, the time axis will be relative. If have that information elsewhere, then you can put a build waveform function between the read and the graph. Wire the First Row output to the Y input Build Waveform and add t0 and dt values. I've attached an example.
Attachments:
Graph_from_text.vi 29 KB -
Please tell me how to handle list item in this concern
please tell me how to handle list item in this concern
My problem is:
i have a category table with column categoryname(varchar type)
I want to display the records of categoryname in a drop down list (i.e., list item )
So ..please tell me how to do it
Thanks in advance..This code is just a sample from the Help documentation. It won't work until you modify it for your form.
Why do you have "steps" in your code? You are suppose to do what the steps tell you. You don't place the steps in your code. The steps must be removed from your code.
Step 1 code goes in a program unit, not in a trigger.
Step 2 and 3 code usually goes in a trigger.
You will have to replace the names of the items and record group with your own names as you have defined them in your form.
step 1: create a procedure in your application
procedure load_list(itm in VARCHAR2, rg in VARCHAR2) is
group_id RecordGroup := Find_Group(rg);
list_id Item := Find_Item(itm);
Begin
if Populate_Group(group_id)<>0 then
Message('Unable to populate record group');
Raise Form_Trigger_Failure;
end if;
Clear_List(list_id);
Populate_list(list_id, group_id);
end;
step 2: create a record group named rg_cat and assign Record Group Query to something like "select categoryname from category"
step 3: call this procedure as
load_list('categoryname','rg_cat'); -
** How to handle FCC - SubStructures in Sender Side
Hi friends,
We have a source structure (XML) like below.
<Root>
<GMT_1> 0..unbounded
<field1>
<field2>
<GMT_2> 0..unbounded
<field1>
<field2>
<GMT_3>
<GMT_4> 0..unbounded
<field1>
<field2>
We want to convert flat file into above XML format. So, in this how to handle <GMT_4> xml node. For the others, we will specify
GMT_1.fieldSeparator
GMT_1.endSeparator
like this. But, how to specify for the node GMT_4.
Kindly reply, friends.
Kind Regards,
PrakashHi,
For FCC check some links.
/people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
/people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
/people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
/people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
/people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
/people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
/people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
/people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns
/people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
/people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
Regards,
Phani -
How to show BLOB type Column ? In XE
How to show BLOB type Column as image in APEX report area? (In XE)
I did it with the following procedure
create or replace PROCEDURE MY_IMAGE_DISPLAY (p_image_id IN NUMBER)
AS
l_mime VARCHAR2 (255);
l_length NUMBER;
l_file_name VARCHAR2 (2000);
lob_loc BLOB;
BEGIN
SELECT 'JPEG', MLOGO, 'IMAGE', DBMS_LOB.getlength (MLOGO)
INTO l_mime, lob_loc, l_file_name, l_length
FROM CARS_TABLE
WHERE M_ID = p_image_id;
OWA_UTIL.mime_header (NVL (l_mime, 'application/octet'), FALSE);
HTP.p ('Content-length: ' || l_length);
OWA_UTIL.http_header_close;
WPG_DOCLOAD.download_file (lob_loc);
END my_image_display;
GRANT EXECUTE ON my_image_display TO PUBLIC;
and executed the following command
CREATE PUBLIC SYNONYM my_image_display FOR shema_name.my_image_display;
but under XE , I can not see synonym? why?sakrami,
Your question really belongs in the XE forum:
Oracle Database Express Edition (XE)
I think this posting addresses your question:
Re: Handling of pictures changed? Item values not properly updated in Beta
Joel -
How to handle the dynamic rows in pdf table
Dear All,
earlier i posted one thread reagarding getting pdf table data
[facing problem while getting interactive form table data;
this is working fine, i sued bind_table in wddoinit, but here i am fixing the rows count and bind_table.
for example i have initially taken row count as 3 then i want to increase the rows in pdf table.
i know we can use the formcalc to increase the rows by taking a button in pdf layout.
this also working, but the data is not picking for newly added rows, i hope the problem is because the table node in the context is not binded for this new rows.
even i tried using with webdynpro native button controlls still not working.
any one help me what exactly this bind_table is doing and how to handle this code in form calc.
since my table is pdf table.
Thanks,
Mahesh.GattuHi Thomas,
Thanks for your confirmation,
i have checked the paramets of submit button we have only wdevent parameters they are
CL_WD_CUSTOM_EVENT
PARAMETERS - Hashed table having 2 columns
ID ->IF_TDS (Interactive Form element Name)
CONTEXT_ELEMENT ->->
these are same in case of submit button1 and submit button 2.
NAME - Name of the Button Event i.e ON_SUBMIT ( this is also same in both the buttons).
so i think it is not possible to work with multiple buttons by assinging to multiple tables on form.
The other option is to place the buttons outside of the forum in the surrounding WDA area.
This way you have no problem handling the events.
in wddoinit if i use bind_table with 5 rows form table is populating with 5 rows, but when i take a button
out side the form and use bind_table by incremeting the rows the pdf table rows are not adding, if i enter
some thing on pdf table then click on add row button then the table rows are getting add. if i don't do any
action on pdf table and click on add row button pdf is not getting update.
is there any issue.. if i don't keep cursor on table and type some thing.. the add button is not updating
the rows.
if i take a button on wd view i.e outside the form and use bind table i shall add the rows.. but in case of remove rows how to do.
in case of normal table we can use Remove_Element( ) but how can i know the selected row from the pdf table, please help me in this concern also.
Regards,
Mahesh.Gattu
Edited by: Maheshkumar gattu on Jan 7, 2009 3:57 PM
Edited by: Maheshkumar gattu on Jan 7, 2009 4:03 PM
Edited by: Maheshkumar gattu on Jan 7, 2009 5:21 PM -
How to handle the #error in ssrs expression
hi
Please any one help me to resolve this #error ,
I have a calculated filed in that expression i given a if condition like below
data of column is coming like this 0 , 0.0
=IIF(Fields!Column1.Value=0,0,((Fields!Column2.Value - Fields!Column1.Value)/( Fields!Column1.Value)))
how to handle the #error
Please let me know any oneHi deepuk23,
According to your description, when you use the IIF() function in the report you got some error,right?
The issue can be caused by the column1 and column2 have different datatype, I assumed that one is integer and another is float, when the Column1 is 0 or null, because IIF() function always evaluates both the true part and the false part, even
though it returns only one of them, it will throw out the error.
To resolve the issue, you should use a nested IIF() function to avoid the zero-divisor in any rate like below:
=IIF(Fields!Column1.Value=0,0,((Fields!Column2.Value - Fields!Column1.Value)/(IIF(Fields!Column1.Value=0,1,Fields!Column1.Value))))
For more information, please refer to this article:
FAQ: Why does the “Attempted to divide by zero” error still happen?
If you still have any problem, please feel free to ask.
Regards,
Vicky Liu
Vicky Liu
TechNet Community Support -
How to handle error while using dbms_sql.execute
Hi,
I am inserting some records by using the following piece of code.
stmt := 'insert into SSI_KPI_GOAL_VALUE_H (KPI_VAL_KPI_ID, KPI_VAL_RM_CDE,'|| v_day_value ||',KPI_VAL_ACT_DLY,'||v_month_val||',KPI_VAL_BIZ_UNIT_CDE) values (:kpi_array,:rm_array,:day1_array,:day1_array,:day1_array,:busnunit_array)';
l := dbms_sql.open_cursor;
dbms_sql.parse(l, stmt, dbms_sql.native);
dbms_sql.bind_array(l, ':kpi_array', col1_ins,1,ins_cnt-1);
dbms_sql.bind_array(l, ':rm_array', col2_ins,1,ins_cnt-1);
dbms_sql.bind_array(l, ':day1_array', col3_ins,1,ins_cnt-1);
dbms_sql.bind_array(l, ':busnunit_array', col4_ins,1,ins_cnt-1);
dummy := dbms_sql.execute(l);
dbms_sql.close_cursor(l);
I am getting an error since any one of the row contains value larger than the column.
How to handle exception handling for those rows which is having errors. I would like insert the records which is having
no errors. Like SAVE EXCEPTIONS for 'forall' is there any option is available to handle exceptional records.
Please help.
Thanks & Regards,
Hari.Hari,
What's oracle version? Are you looking for something similar to this? see following example
DECLARE
TYPE array
IS
TABLE OF my_objects%ROWTYPE
INDEX BY BINARY_INTEGER;
data array;
errors NUMBER;
dml_errors exception;
error_count NUMBER := 0;
PRAGMA EXCEPTION_INIT (dml_errors, -24381);
CURSOR mycur
IS
SELECT *
FROM t;
BEGIN
OPEN mycur;
LOOP
FETCH mycur BULK COLLECT INTO data LIMIT 100;
BEGIN
FORALL i IN 1 .. data.COUNT
SAVE EXCEPTIONS
INSERT INTO my_new_objects
VALUES data (i);
EXCEPTION
WHEN dml_errors
THEN
errors := sql%BULK_EXCEPTIONS.COUNT;
error_count := error_count + errors;
FOR i IN 1 .. errors
LOOP
DBMS_OUTPUT.put_line( 'Error occurred during iteration '
|| sql%BULK_EXCEPTIONS(i).ERROR_INDEX
|| ' Oracle error is '
|| sql%BULK_EXCEPTIONS(i).ERROR_CODE);
END LOOP;
END;
EXIT WHEN c%NOTFOUND;
END LOOP;
CLOSE mycur;
DBMS_OUTPUT.put_line (error_count || ' total errors');
END;Regards
OrionNet -
How to handle an invisible character in a string?
Hi,
I have an interesting situation-
select bac_person_id, length(bac_person_id) from bkmap_personid_stg where BAC_PERSON_ID like '%27136317%'
The result is -
BAC_PERSON_ID|LENGTH(BAC_PERSON_ID)
27136317| 9
I don't know what is the invisible character here?
It is certainly not a blank character as trim is not working -
select * from bkmap_personid_stg where trim(BAC_PERSON_ID) = '27136317'
no records!!
But substr does give me the resullt -
select * from bkmap_personid_stg where substr(BAC_PERSON_ID,1,8) = '27136317'
How can I know which is the last character? and How to handle it?girija_pathak wrote:
How can I know which is the last character? and How to handle it?You use the DUMP() function in SQL in order to see the actual content of the column.
E.g.
select DUMP(bac_person_id) from bkmap_personid_stg where bac_person_id like '%27136317%'
The decimal character values will be displayed - enabling you to see where and what control characters characters exist in the string value for that column. -
How to get all the columns displayed in pdf.
If the ALV Display contains 25 columns.When i tried to give the print in PDF format.
in the PDF it is displaying only 10 columns.Can you let me know how to display all the columns (i.e 25) in the pdf.Hi,
Check the OSS Note 186603 which deals with how to handle Spool lists with width > 255 characters.
Regards,
Satish -
JAEHYLEE (R12 ADI) How to add DFF in Web ADI
Goal
How to add DFF in Web ADI
Solution
ADI Mass Addition Template Layout Define에서 DFF를 사용하기 위해서 아래 ER이 현재 진행중이고 그 전에 사용하기 위해서는 아래와 같은 Datafix를 Workaround로 사용하여야 합니다.
Please do the following in the test instance first and if satisfied migrate to production
1.Setup-->Financials>Flexfields>Descriptive>Segments
Query the Mass addition DFF and Category flexfield
2.Both the above is to be defined exactly the same
3.Reference field for both should be ATTRIBUTE_CATEGORY_CODE
4)login to sqlplus apps account and run the following script
sql
- make sure it runs without errors, then commit. Otherwise rollback. This
script should not be run over again, therefore verify the outcome.
- restart the apache listener
- login to apps and navigate to the Webadi Define Layouts page, under FA
responsibility.
- choose a layout for the Additions integrator, include the "Descriptive
Flexfield" and "Context".
- Test it.
SCRIPT
===========
set serveroutput on size 1000000
Declare
content_code varchar2(1000);
interface_code varchar2(50) := 'FA_MASS_ADD_INTERFACE';
begin
dbms_output.put_line('Start add descriptive flexfiedl to Additions
integrator: ' || interface_code);
dbms_output.put_line('Updating attribute columns in bne_interface_cols_b')
Update bne_interface_cols_b
set display_flag = 'N' ,
val_type = 'DESCFLEXSEG',
group_name = 'MASSADD_DF'
where application_id = 140
and interface_code = 'FA_MASS_ADD_INTERFACE'
and interface_col_name in ('ATTRIBUTE1','ATTRIBUTE2',
'ATTRIBUTE3','ATTRIBUTE4','ATTRIBUTE5','ATTRIBUTE6',
'ATTRIBUTE7','ATTRIBUTE8','ATTRIBUTE9','ATTRIBUTE10',
'ATTRIBUTE11','ATTRIBUTE12','ATTRIBUTE13','ATTRIBUTE14',
'ATTRIBUTE15','ATTRIBUTE16','ATTRIBUTE17','ATTRIBUTE18',
'ATTRIBUTE19','ATTRIBUTE20','ATTRIBUTE21','ATTRIBUTE22',
'ATTRIBUTE23','ATTRIBUTE24','ATTRIBUTE25','ATTRIBUTE26',
'ATTRIBUTE27','ATTRIBUTE28','ATTRIBUTE29','ATTRIBUTE30');
dbms_output.put_line('Creating CONTEXT');
-- see webadi dev.guide for complete parameter documentation.
BNE_INTEGRATOR_UTILS.UPSERT_INTERFACE_COLUMN
(P_APPLICATION_ID => 140,
P_INTERFACE_CODE => interface_code,
P_SEQUENCE_NUM => 1011,
P_INTERFACE_COL_TYPE => 1, -- indicates that column exists
in interface table.
P_INTERFACE_COL_NAME => 'CONTEXT',
P_ENABLED_FLAG => 'Y',
P_REQUIRED_FLAG => 'N',
P_DISPLAY_FLAG => 'Y',
P_FIELD_SIZE => 30,
P_DEFAULT_TYPE => '', -- JAVA_EACH_ROW, SQL, TABLELOOKUP
etc.
P_DEFAULT_VALUE => '',
P_SEGMENT_NUMBER => '',
P_GROUP_NAME => 'MASSADD_DF',
P_OA_FLEX_CODE => 'FA_MASS_ADDITIONS',
P_OA_CONCAT_FLEX => 'N',
P_READ_ONLY_FLAG => 'N',
P_VAL_TYPE => 'DESCFLEXCONTEXT', -- TABLE,JAVA etc.
P_VAL_ID_COL => '', -- Column for table LOV.
P_VAL_MEAN_COL => '', -- Column for table LOV.
P_VAL_DESC_COL => '', -- Column for table LOV.
P_VAL_OBJ_NAME => '', -- Table for table LOV, class for java
P_VAL_ADDL_W_C => '', -- where clause for table LOV.
P_DATA_TYPE => 2, -- 1=NUMBER,2=varchar,3=date
P_NOT_NULL_FLAG => 'N', -- Y=not null, N=null
P_VAL_COMPONENT_APP_ID => '140', -- NUMBER
P_VAL_COMPONENT_CODE => 'OA_FLEX', -- VARCHAR2
P_SUMMARY_FLAG => 'N', -- VARCHAR2
P_MAPPING_ENABLED_FLAG => 'Y', -- VARCHAR2
P_PROMPT_LEFT => 'Context - Descriptive Flexfield', --
VARCHAR2
P_PROMPT_ABOVE => '', -- VARCHAR2
P_USER_HINT => '', -- VARCHAR2' List - Text','* List -
Text', '* Value','Text','* Date'
P_USER_HELP_TEXT => 'US', -- VARCHAR2
P_LANGUAGE => 'US', -- VARCHAR2
P_SOURCE_LANG => 'US', -- VARCHAR2
P_OA_FLEX_NUM => '', -- VARCHAR2
P_OA_FLEX_APPLICATION_ID => '140', -- NUMBER
P_DISPLAY_ORDER => 802, -- check
P_UPLOAD_PARAM_LIST_ITEM_NUM => '', -- NUMBER
P_EXPANDED_SQL_QUERY => '', -- VARCHAR2
P_LOV_TYPE => 'NONE', -- VARCHAR2
P_OFFLINE_LOV_ENABLED_FLAG => 'N', -- VARCHAR2
P_VARIABLE_DATA_TYPE_CLASS => '', -- VARCHAR2
P_USER_ID => 2 -- NUMBER VERIFY THAT 2 IS CORRCT
dbms_output.put_line('Creating MASSADD_DF_PARENT');
-- see webadi dev.guide for complete parameter documentation.
BNE_INTEGRATOR_UTILS.UPSERT_INTERFACE_COLUMN
(P_APPLICATION_ID => 140,
P_INTERFACE_CODE => interface_code,
P_SEQUENCE_NUM => 1012,
P_INTERFACE_COL_TYPE => 2, -- indicates that column exists
in interface table.
P_INTERFACE_COL_NAME => 'MASSADD_DF_PARENT',
P_ENABLED_FLAG => 'Y',
P_REQUIRED_FLAG => 'N',
P_DISPLAY_FLAG => 'Y',
P_FIELD_SIZE => '', --?
P_DEFAULT_TYPE => '', -- JAVA_EACH_ROW, SQL, TABLELOOKUP
etc.
P_DEFAULT_VALUE => '',
P_SEGMENT_NUMBER => '',
P_GROUP_NAME => 'MASSADD_DF',
P_OA_FLEX_CODE => 'FA_MASS_ADDITIONS',
P_OA_CONCAT_FLEX => 'Y',
P_READ_ONLY_FLAG => 'N',
P_VAL_TYPE => 'DESCFLEX', -- TABLE,JAVA etc.
P_VAL_ID_COL => '', -- Column for table LOV.
P_VAL_MEAN_COL => '', -- Column for table LOV.
P_VAL_DESC_COL => '', -- Column for table LOV.
P_VAL_OBJ_NAME => 'oracle.apps.bne.integrator.validators.
BneDFFValidator', -- Table for table LOV, class for java
P_VAL_ADDL_W_C => '', -- where clause for table LOV.
P_DATA_TYPE => '', -- 1=NUMBER,2=varchar,3=date ?
P_NOT_NULL_FLAG => 'N', -- Y=not null, N=null
P_VAL_COMPONENT_APP_ID => '140', -- NUMBER
P_VAL_COMPONENT_CODE => 'OA_FLEX', -- VARCHAR2
P_SUMMARY_FLAG => 'N', -- VARCHAR2
P_MAPPING_ENABLED_FLAG => 'Y', -- VARCHAR2
P_PROMPT_LEFT => 'Descriptive Flexfield', -- VARCHAR2
P_PROMPT_ABOVE => '', -- VARCHAR2
P_USER_HINT => '', -- VARCHAR2' List - Text','* List -
Text', '* Value','Text','* Date'
P_USER_HELP_TEXT => 'US', -- VARCHAR2
P_LANGUAGE => 'US', -- VARCHAR2
P_SOURCE_LANG => 'US', -- VARCHAR2
P_OA_FLEX_NUM => '', -- VARCHAR2
P_OA_FLEX_APPLICATION_ID => '140', -- NUMBER
P_DISPLAY_ORDER => 803, -- check
P_UPLOAD_PARAM_LIST_ITEM_NUM => '', -- NUMBER
P_EXPANDED_SQL_QUERY => '', -- VARCHAR2
P_LOV_TYPE => 'NONE', -- VARCHAR2
P_OFFLINE_LOV_ENABLED_FLAG => 'N', -- VARCHAR2
P_VARIABLE_DATA_TYPE_CLASS => '', -- VARCHAR2
P_USER_ID => 2 -- NUMBER VERIFY THAT 2 IS CORRCT
dbms_output.put_line('Creating OA_FLEX component');
end;
insert into bne_components_b
(application_id, component_code, object_version_number, component_java_class,
created_by, creation_date, last_updated_by, last_update_login, last
updatedate )
values
(140, 'OA_FLEX',1.0,'oracle.apps.bne.integrator.component.BneOAFlexComponent',
2,to_date('20051201','YYYYMMDD') ,2, 2, to_date('20051201','YYYYMMDD') );
Update bne_interface_cols_b
set last_update_date = to_date('20051201','yyyymmdd')
where application_id = 140
and interface_code = 'FA_MASS_ADD_INTERFACE'
and sequence_num in (1011, 1012);
Update bne_interface_cols_tl
set last_update_date = to_date('20051201','yyyymmdd')
where application_id = 140
and interface_code = 'FA_MASS_ADD_INTERFACE'
and sequence_num in (1011, 1012);
Reference
559392.1Hello.
The process is described in the Oracle Web Applications Desktop Integrator Implementation and Administration Guide manual.
Octavio -
Matrix Reports - How to restrict no. of columns to be displayed in single page ?
Hi all,
This is a problem I have been facing since Reports 2.5.
In a matrix, I can set a restriction on the number of rows to displayed by specifying Maximum no. of records per page on the repeating frame generating the rows.
But the same solution on the repeating frame generating columns has a disastrous effect.
Can any one tell me how to handle this ?
Thanks in advance.
Piyush
nullHi
Try the following link
http://bipublisher.blogspot.com/2009/06/bi-publisher-conditionally-limiting.html
Regards
Debo
Maybe you are looking for
-
Internal speakers will not play, only audio choice is "digital out".
15 inch MacBook Pro. Internal speakers will not play. Output to headphone plug did work. Now I cannot insert headphones into socket, it seems to be too shallow. There is no red glow as mentioned in other posts. I had the red glow issue on an old
-
Workaround: want folder icons instead of random pile icons in dock?
If you don't like the look of the (random) icons that appear for the piles you create in the dock, here's a workaround that should work. Create a folder that you name 1a. Put it in the pile Sort the pile by name. The 1a folder should appear first in
-
Windows 8 Apps close immediately including windows PC settings
Every time I open a app from windows 8 screen it immediately minimises or closes. This includes windows '"PC settings How do I correct this problem ???? I have a Probook 430 G2 with windowss 8.1 64-bit
-
Error(12,61): Parse of component type files failed,
I got this error when i wanted to deploy CreditCardValidation Error(12,61): Parse of component type files failed, check the adf-config.xml file : "java.lang.reflect.InvocationTargetException" how i can resolve this.
-
My iPhone is displaying a "iPhone is disabled" notification. It asked me to enter my password multiple times before locking me out. Can you help with this?