Problem with Advanced Table-in-Advanced Table
Hi all,
I have one Advanced Table-in-Advanced Table. I have done everything as mentioned in Jdev guide . But i am getting Null Pointer Exception like
java.lang.NullPointerException
at oracle.apps.fnd.framework.webui.OAAdvancedTableHelper.updateInnerTableProperties(Unknown Source)
at oracle.apps.fnd.framework.webui.OAAdvancedTableHelper.processRequestAfterController(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanTableHelper.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAAdvancedTableHelper.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.beans.table.OAAdvancedTableBean.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.beans.layout.OAHeaderBean.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanTableHelper.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAAdvancedTableHelper.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.beans.table.OAAdvancedTableBean.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.beans.layout.OAHeaderBean.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(Unknown Source)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
at OA.jspService(_OA.java:75)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:453)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:591)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:515)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259)
at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:50)
at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:335)
at OA.jspService(_OA.java:84)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:453)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:591)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:515)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
May i get any help for this.........
Thanks
Thanks Anoop Singh .....
First I have created 2 VOs. One for UserMaster which have the primary key like "userId". Second VO having UserDetails. I have created one view link for these two tables. I have Designed UserMasterTable.It is working alone. Then I add detail for this outer table . This details is "header " by default. So I have added one more AdvanceTable in "headerRN" for "user details". I set properties as follows..
For My UserMasterTable
==================
View Instance = MasterDetailsVO1
Detail View Attribute = ShowFlag
View Link Instance = UserResultLink
Child View Attribute = UserId
For My UserMasterTable
==================
View Instance = InnerDetailsVO1
View Link Instance = MasterInnerLink
Thanks......
Similar Messages
-
Problem with Indesign CC 2014 and tables
Problem with Indesign CC 2014 and tables. The text rearranges itself when I delete or add something in a table; the footnotes to the text associated with the overlap even getting unreadable. Just click on the chain symbol in the window and everything is fine. Why?
try circumventing your cc app and see if that helps:
if you follow all 7 steps you can directly download a trial here: Adobe CC 2014 Direct Download Links: Creative Cloud 2014 Release | ProDesignTools
if you have a problem starting the download, you didn't follow all 7 steps, or your browser does not accept cookies.
the most common problem is caused by failing to meticulously follow steps 1,2 and/or 3 (which adds a cookie to your system enabling you to download the correct version from adobe.com).
failure to obtain that cookie results in an error page being displayed after clicking a link on prodesigntools.com or initiates the download of an incorrect (eg, current) version. -
Problem with background formatting in pivot table
Hello,
I have a problem with background formatting in pivot table. I can't change background (light blue rectangular in upper left corner). Do you have any idea how to do it?
Here is the link to the picture of the pivot table:
http://img163.imageshack.us/img163/110/unledfyq.png
I would be grateful for any help.
Regards,Hey,
Check this link once, you will need java script to acheive this:
http://everythingoracle.com/obieehdom.htm
scroll down to this topic: Parsing using HTML DOM
Please award points if helpful.
Thanks,
-Amith. -
Problems with type ... is table of - values
Hello,
please look at the following procedure:
CREATE OR REPLACE PROCEDURE fct_s_snpdb_ersetzung_einzeln (
p_tnr IN VARCHAR2,
p_ersetzung IN VARCHAR2
IS
-- DECLARE VARIABLES
p_ersetzung_rep VARCHAR2(4000);
v_test_table NUMBER;
TYPE nersetzungtab IS TABLE OF VARCHAR2(4000)
--s_snpdb_tnr_ersetzung.ersetzung%TYPE
INDEX BY BINARY_INTEGER;
v_ersatzliste nersetzungtab;
v_anzersatzliste NUMBER;
v_test VARCHAR2(4000);
v_instr NUMBER;
i NUMBER := 1;
BEGIN
SELECT 1
INTO v_test_table
FROM all_tables
WHERE table_name LIKE 'S_SNPDB_TEMP_ERSETZUNG';
IF (v_test_table <> 1) THEN
EXECUTE IMMEDIATE 'create table s_snpdb_temp_ersetzung (tnr_ersetzung varchar2(19))';
END IF;
EXECUTE IMMEDIATE 'truncate table s_snpdb_temp_ersetzung';
IF (p_tnr IS NOT NULL) THEN
p_ersetzung_rep := '''' || p_tnr || ''',' || p_ersetzung;
p_ersetzung_rep := REPLACE(p_ersetzung, '''', '');
ELSE
p_ersetzung_rep := REPLACE(p_ersetzung, '''', '');
END IF;
v_instr := INSTR (p_ersetzung_rep, ',');
WHILE (v_instr > 0) LOOP
v_test := TRIM(SUBSTR(p_ersetzung_rep, 1, v_instr - 1));
v_ersatzliste(i) := v_test;
p_ersetzung_rep := SUBSTR(p_ersetzung_rep, v_instr + 1);
v_instr := INSTR(p_ersetzung_rep, ',');
i := i + 1;
END LOOP;
--now the problem comes
FOR f IN 1 .. i LOOP
EXECUTE IMMEDIATE 'INSERT INTO s_snpdb_temp_ersetzung VALUES(:tnr)'
USING v_ersatzliste(i);
END LOOP;
END fct_s_snpdb_ersetzung_einzeln;
The inputvalue for p_ERSETZUNG = 'A42020002 39 ','A42020004 55 ','A54017901 02 ','A54017901 03 ','A42020002 60 ','A42020004 15 '
I want to separate each value in separate row of a table.
It runs fine until the "insert into" statement.
Here I get the error "no data found". This means, that the variable v_ersatzliste(i) contains no value. I used the debugger, the separation of the value runs fine, but why the variable v_ersatzliste(i) has no values. I didn't find the problem.
Its not the first time, I use "type ... is table of", but till now I never had problems with this.
What could be the reason for no founded data in my variable.
Thanks in advance
D. Mildnerohhh yes, you're right.
I think I should go home now :-).
Thanks very much. -
Problem with clip area occurred when table content is transited
Platform: JavaFX 1.2.1.
Hi all
<b>Preface</b>: I created my own table because the cell content should be not standart: buttons, progress bars, etc...and text as well.
There is no standart decision for this and simple there is no table control in JavaFx as well :) (swing JTable in a SwingComponent wrap
doesn't fix the problem - only combo box, check box, text box can be placed into a cell). So, I did the following: I created a sequence
of instances of the Group class. Each instance represents one cell of the table. I put a rectangle (Rectangle class) as a cell visualization
and other controls(buttons, progress bars, text, etc. as a cell content) to each Group instance (cell). All cells in the sequence are located
in rows and columns as in a usual table. and I put this sequence of cells to one common Group. The whole area of all rows and columns is large
so I use the clip variable of the Group class (common Group) and two scrollbars (vertical and horizontal) to transit the rows and
columns. It's simple thing as in a usual table.
<b>Problem description</b>: when I transit a thumb of a scrollbar (whatever horizontal or vertical) part of each border cells appear out of common
Group clip area, i.e. that part of each border cell (as on the left, rigth side of the clip area for horizontal scrollbar so as on the top, botton
side of the clip area for vertical scrollbar) that should be disapeared is appeared over other GUI controls located near this table. I tried to
use ClipView - the problem is reproduced as well. Screenshot here:
Initial state:
http://foto.nnov.ru/psh500/0/86/51/e1/4e/a0/ae/0bd8ef7ebf233614.png
Screenshots with bugs:
http://foto.nnov.ru/psh500/0/f8/1c/28/77/b5/79/f53bbc4fd8ba8158.png
http://foto.nnov.ru/psh500/0/3a/95/c3/6c/0e/4f/9aff2e16a544bb37.png
Help please.
Thanks in advance!Code is simple. There are two classes: TableColumn.fx and Table.fx. And as an example of use: Main.fx
* TableColumn.fx
package mytabletest;
import javafx.scene.Group;
public class TableColumn {
public var name: String;
public var width: Number;
public var rows: Group[];
* Table.fx
package mytabletest;
import javafx.scene.CustomNode;
import javafx.scene.Group;
import javafx.scene.Node;
import javafx.scene.control.ScrollBar;
import javafx.scene.layout.LayoutInfo;
import javafx.scene.shape.Rectangle;
import javafx.scene.text.Text;
import javafx.scene.text.TextOrigin;
import javafx.scene.transform.Translate;
import javafx.scene.paint.Color;
public class Table extends CustomNode {
// Table width
public var width:Number;
// Table height
public var height:Number;
// Table row hight
public var rowHeight:Number = 25;
// Space between two cells
public var rowMargin:Number = 2;
var tableContent : Group;
// Columns
var columns: TableColumn [];
var scrollBarWidth: Number = 8;
// Cliping area: visible active area of the table
var clipWidth = bind width - scrollBarWidth;
var clipHeight = bind height - scrollBarWidth;
// Vertical scrollbar
var vScrollBar: ScrollBar = ScrollBar {
height: bind clipHeight
clickToPosition: true
min: 0
max: 5
vertical: true
// Horizontal scrollbar
var hScrollBar: ScrollBar = ScrollBar {
width: bind clipWidth
clickToPosition: true
min: 0
max: 3
vertical: false
// Scroll bars triggers to transit table content in X and Y coordinates
var vScrollBarTrigger = bind vScrollBar.value on replace {
(tableContent.content[0] as Group).translateY =
- vScrollBar.value * (rowHeight + rowMargin);
var hScrollBarTrigger = bind hScrollBar.value on replace {
(tableContent.content[0] as Group).translateX =
- hScrollBar.value * clipWidth / getNumOfColumns();
public override function create():Node {
return Group {
content: [
// Scrollbars
Group {
translateX: bind clipWidth
content: [vScrollBar]
Group {
translateY: bind clipHeight
content: [hScrollBar]
tableContent = Group {
clip:
Rectangle {
width: clipWidth
height: clipHeight
content: [Group{}]
* Calculates locations for the table columns
function calcLocations(columns:TableColumn[], e:Integer) {
var position : Number = 0;
if (getNumOfColumns() > 0) {
for (i in [0..e - 1]) {
position += columns.width;
return position;
* Adds row to the table
* @param obj sequence of objects to be added to a new row
public function addRow(obj: Group[]): Boolean {
var cell: Group;
var row = getNumOfRows() + 1;
var isEven = row mod 2 == 0;
for (column in columns){
cell = Group {
transforms: Translate.translate(
calcLocations(columns, indexof column) + indexof column * rowMargin,
((rowHeight + rowMargin) * row))
clip:
Rectangle {
width: column.width
height: rowHeight
content: bind [
Rectangle {
width: column.width
height: rowHeight
fill: Color.rgb(147, 0, 255)
Group {
content: [obj[indexof column]]
layoutInfo: LayoutInfo {
width : column.width
height: rowHeight
insert cell into column.rows;
insert cell into (tableContent.content[0] as Group).content;
return true;
* Sets columns to the table.
public function addColumn(name: String, width: Number): Void {
// Check if the name is an empty string then column name will be the
// following: "Column{i}" where i is a number of columns (zero based)
var columnName : String = if(name == "") "Column{getNumOfColumns()}" else name;
var column: TableColumn = TableColumn {
name: columnName
width: width
//Add column head
var cell: Group;
cell = Group {
var rec: Rectangle;
transforms: Translate.translate(
calcLocations(columns, getNumOfColumns()) + getNumOfColumns() * rowMargin, 0)
clip:
Rectangle {
width: width
height: rowHeight
content: bind [
rec = Rectangle {
width: width
height: rowHeight
Group {
var node : Node = Text {
textOrigin: TextOrigin.TOP
content: columnName
transforms: bind
Translate.translate(width / 2 - node.boundsInLocal.width / 2,
rowHeight / 2 - node.boundsInLocal.height / 2 + 2)
content: [node]
insert cell into column.rows;
insert cell into (tableContent.content[0] as Group).content;
insert column into columns;
* Returns number of rows
public function getNumOfRows(): Integer {
if(sizeof columns > 0) {
return sizeof columns[0].rows - 1; // The first cell is a column title
else {
return 0;
* Returns number of columns
public function getNumOfColumns(): Integer {
return sizeof columns;
* Main.fx
package mytabletest;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.Group;
* @author Naight
var table : Table = Table {
translateX: 100
translateY: 100
width: 200
height: 200
Stage {
title: "Application title"
width: 400
height: 400
scene: Scene {
content: [table]
table.addColumn("Column1", 100);
table.addColumn("Column2", 100);
table.addColumn("Column3", 100);
for(i in [0..9])
table.addRow([Group{}, Group{}, Group{}]); -
Problem with text formatting within a table in Adobe Forms
Hi all,
I have a table on a non-interactive Adobe form (which is a copy of the standard expense form PTRV_EXPENSE_FORM. The table in ABAP has a text field with CHAR50. On the form, the text field has a width which allows approximately 35 characters. Therefore the text wraps onto a second line. My problem is that the text is not formatted and words are just split randomly.
For example:
The fox ran across the fields and into the woods.
would be output as:
The fox ran across the fields and i
nto the woods.
How can the text be formatted to only output complete words?
I have tried defining the textfield as text only and rich text, but nothing changes the output.
Interestingly, even if I change the font size from say 10 to 8, the text is output the same, even though there is enough space for at least one more word on the first line.
Has anyone else come across this problem?
Thanks,
PatriciaHi Syed
The table is IT_RECEIPTS_ADD_INFO, field VALUE_CHAR. In the form it is called Receipts_addl_info.
I have just found out that the data is being re-formatted in the interface. That caused the problem. Many, many thanks for your help.
Best regards
Patricia -
Problem with ORA-19025 when joining tables
I am querying a table that stores xml datata in an xml column. I an query this column without problems. If I join the table with another table (not xml). I get the error below.
ORA-19025: EXTRACTVALUE returns value of only one node
19025. 00000 - "EXTRACTVALUE returns value of only one node"
*Cause: Given XPath points to more than one node.
*Action: Rewrite the query so that exactly one node is returned.
I don't seem to have any subnodes in the fields I am querying and I dont know how joining to the second table introduces the problem.
This produces the error I mentioned before
SELECT a.NAME,
EXTRACTVALUE(xmltype(a.DOCUMENTATION), '/metadata//idinfo/citation/citeinfo/title') TITLE,
EXTRACTVALUE(xmltype(a.DOCUMENTATION), '/metadata//idinfo/citation/citeinfo/origin') ORIGIN,
EXTRACTVALUE(xmltype(a.DOCUMENTATION), '/metadata//idinfo/citation/citeinfo/pubdate') PUBLICATION_DATE,
GDB_ITEMTYPES.NAME
FROM GDB_ITEMS_vw a, GDB_ITEMTYPES b
where a.UUID = b.UUID
This one gives no error
SELECT a.NAME,
EXTRACTVALUE(xmltype(a.DOCUMENTATION), '/metadata//idinfo/citation/citeinfo/title') TITLE,
EXTRACTVALUE(xmltype(a.DOCUMENTATION), '/metadata//idinfo/citation/citeinfo/origin') ORIGIN,
EXTRACTVALUE(xmltype(a.DOCUMENTATION), '/metadata//idinfo/citation/citeinfo/pubdate') PUBLICATION_DATE,
FROM GDB_ITEMS_vw a
I am using 11g 2
Any suggestions are welcome
Thanks
Edited by: user3444035 on Mar 18, 2011 1:43 PMHi,
Could you give some sample data from GDB_ITEMS_vw and GDB_ITEMTYPES? -
Problem with field type STRING in table
Hi Experts,
I am new to ABAP. I have created a new transparent table which hold error info. One of the field has to store data of size about 1500 char.
Since CHAR type is not acceptable for this field So I gave STRING type. Now when I try to create a TABLE parameter in a RFC enabled functional module using "LIKE YERROR" Then I get a error:
"YERROR must be a flat structure. You cannot use internal tables, strings, references, or structure as component"
Why is this error? How to resolve it? Is it because I have used a field of type STRING in the table? If this is the problem then what other type can I use?
What are other know problems with using STRING type?
Please help!
Thanks
GopalHi,
Try to declare it as type LCHR , it can hold up to 32000 chars.
Regards
vijay -
Problems with links and the "advanced" field
Has anyone else had problems with the advanced field when
making a new link? It seems I have to edit it three or four times
before it will actually take the link I put in ("
http://www.blah.com/" instead of
"../../"). Anyone else?I am having the same problem... although I am only trying to link between "One of My Pages" i.e navigation menus.
It is pretty random which links work and which don't as far as I can tell anyway.
The links work fine when I activate hyperlinks in iWeb but as soon as I publish to a folder some of them don't.
I will post if I find a solution, but I have read and tried just about everything.
Best
PowerBook G4 Mac OS X (10.4.9) 1.25 GB RAM -
Problem with sorting and filtering of table
Hello,
using VC 7.1 SP5 I have created [this|http://img232.imageshack.us/img232/2460/screenshotsr0.png] model. The webservice returns a collection of structured elements. The table is meant to display values of top-level attributes. This works as expected.
However, the table cannot be sorted or filtered. What is the reason for this? How can I fix that?
I tried to store the result of the web service in a data bridge. That did not succeed.
Best regards
AlexanderHi Natty,
How are you trying to sort it?
I want to be able to sort the table by clicking on the table column headers. Furthermore, I want be able to filter the table by using the built-in table feature. However, table sorting and filtering seem to be disabled for this particular table, whereas other tables in my model provide the desired features.
Best regards
Alexander -
Problem with Incident_date column in CS_INCIDENTS_ALL_B table
Hi everyone,
I am using date range search in CS_INCIDENTS_ALL_B table using the column INCIDENT_DATE. As this is a standard table, a index is already defined there on the column INCIDENT_DATE.
If I am using the following query: [26-OCT-2010 is today's date]
SELECT *
FROM cs_incidents_all_b
WHERE incident_date BETWEEN TO_DATE ('25-OCT-2010 00:00:00',
'DD-MON-RRRR HH24:MI:SS'
AND TO_DATE ('26-OCT-2010 23:59:59',
'DD-MON-RRRR HH24:MI:SS'
the Explain plan is showing following values for Cost, Bytes and Cardinality:
Cost:4 Bytes:559 Cardinality:1
If I am running the same query for the date range '01-OCT-2010' and '02-OCT-2010'
SELECT *
FROM cs_incidents_all_b
WHERE incident_date BETWEEN TO_DATE ('01-OCT-2010 00:00:00',
'DD-MON-RRRR HH24:MI:SS'
AND TO_DATE ('02-OCT-2010 23:59:59',
'DD-MON-RRRR HH24:MI:SS'
Explain plan is showing following values - Cost:3,643 Bytes: 2,217553 and Cardinality: 3,967. [this query is taking more time compared to above one].
As per my notice, this cost is not depending on the number of rows resulting from the query. This is because, the number of rows resulted in first query (25-OCT-2010 to 26-OCT-2010) is 120 where as number of rows from second query (01-OCT-2010 and 02-OCT-2010) is only 2.
If I increase the date range such that the duration is 1 month, the cost is still increasing and Index range scan is not being used at all.
Please suggest me how can I write a query that results in a same cost and execution time for all the date ranges.
Thanks in advance,
SamIn 11.5.9, the problem and resolution codes are stored in FND_LOOKUP_VALUES table with lookup type as 'REQUEST_PROBLEM_CODE' and 'REQUEST_RESOLUTION_CODE'. I'm hoping you could still use these tables to find problem codes, even if you were on 11.5.10 or R12.
Join would be something like:
WHERE fnd_lookup_values.lookup_type = 'REQUEST_PROBLEM_CODE'
AND fnd_lookup_values.problem_code = cs_incidents_all_b.problem_code
Regarding restricting the query for Depot Repair service requests, you need to restrict by the the incident_type_id for this type of SRs (like id for Depot incident type is 10003 for us).
HTH
Alka -
Problem with field "batch number" and table "et_item" at BBP_CONF_CHANGE
Hi experts!,
I have a problem when I use the badi BBP_DOC_CHANGE_BADI and with the method BBP_CONF_CHANGE.
I want to fill the field "batch number" at web SRM with the PO number, I thought to write it at suitable or appropriate field at table "et_item" but this table has not any similar field which I can write it.
Thanks in advance.
Best Regards.Hello,
we cannot fill the BATCH field because it is not available in the table ET_ITEM in the method BBP_CONF_CHANGE.
Do you know how can we fill a default value in this field when the user is creating or modifying a confirmation item?
Thank you.
Best regards. -
Problem with primary/secondary keys in table with included structures
Dear ABAPers,
we have a structure which is supposed to be included in the definition of several tables.
The problem is the following:
depending on the application table that includes this structure, 3 or 4 fields of that structure may
or may not be necessary to enhance the table key. As far as I know included structures can only
completely be marked as keys. Therefore I suggested to split up the structure into two parts,
one part with the possible candidates that may become key fields, and the rest, and of course
a structure that unites both of these substructures. So when it comes to reusing this structure
the developer would have the choice to select the structure with all of the fields in case no field
is needed as additional key, or the developer would have to implement both of the substructures
separately with the option to mark the key-part of it as key in his table.
But unfortunetaly this suggestion of mine was refused as being too complicated and I am supposed
to define all the fields in one flat structure and to "enhance" the primary keys (that always will exist)
by secondary keys.
Does anybody know how that is supposed to work without defining double indexes?
I cannot activate a table without having primary keys defined and any unique secondary index would
allways include all of the primary keys.
Thanks in advance for you help
(I'm sorry that you cannot be granted reward points for just reading the extensive problem description)
regards
AndreasDear Rob,
since your answer was helpful and since it was the only one I will grant you full points on that.
Thanks again for your input. In case other developers should look this thread up being confronted
with the same kind of problem, here is how we solved it:
We added an artificial primary key (a number of type NUMC 8) to the table which is supposed to
include the structure. This key alone takes care of the uniqueness of eacht entry.
All the others fields that we want to have available for a fast direct access, including the ones
from the included structure, are put together in a secondary index.
best regards
Andreas -
Problem with column sorting in af:table
Hi,
I am populating an af:table using programmatic view object. One of the columns of the table has its sorting set to true. However, when i click on the sort arrow in the column, no data is loaded, and it displays a message "No data to display."
Kindly, help me in resolving the issue. Thanks in advance for yours assistance.
Regards,
Max.Hi all,
I have an exact scenario what you explained. Let me explain my scenario and the way i implemented.
Mine is also custom java data source implementation where i get data from a service. Followed the implementation details given in document.
How the framework works:
1. code to retrieve data from service is written inside executeQueryForCollection.
2. hasNextForCollection returns true or false based on the no. of data fetched. setFetchComplete(true) is set when it reaches the end of retrieved data.
3. createRowFromResultSet will be called until setFetchComplete is set to true.
Worked fine and i am able to get the data in my view object.
1st Issue:
Since the code to retrieve data from service is written inside executeQueryForCollection, everytime it is getting executed whenever executeQuery is called (eg. in-memory filtering/sorting, table filtering, table sortine), which is a performance issue. I don't want to call my service often since i've retrieved all the data already.
Tried:
I added an if condition inside executeQueryForCollection to skip service call (skipped only service call but not hasNextForCollection() and super.executeQueryForCollection()) by adding a service call flag. Default flag value is false. Whenever we need service call, we need to set the flag (i.e. it is actually a property with setter and getter) to true, followed by executeQuery().
2nd issue:
when user performs table filtering/sorting, since i skipped the service call, since there is no rows to populate, createRowFromResultSet() will not be called and so i couldn't see any data in table at all. (I don't know why it expect me to give data.)
Tried:
To solve this, i added a local variable to keep the retrived data from service. Whenever i perform service call, i'll keep the data in a local variable. By doing this, whenever executeQueryForCollection is called, i'll check the service call flag. It will be false. In the else part i set the local variable data as user data for collection. The only difference in this implementation is that instead of serving the data from service, i serve data from the local variable. By doing this, filtering/sorting is working fine and i am able to avoid the service call too (but i am not able to avoid the createRowFromResultSet().) -
Problem with RFC and a Z Table
hi;
i´ve created a Z table as a transparent table.... now in a function module a need to save data in that table, i do the next:
zfactura-vbeln_vf = i_factura.
zfactura-posicion = i_posicion.
zfactura-fecha_em = i_fecha.
zfactura-hora_em = i_hora.
zfactura-usuario_em = i_usuario.
APPEND zfactura.
but i get this message:
The data object "ZFACTURA" has no structure and therefore no component called "VBELN_VF" .
How can i solve this to save data in that table.
Thanks on advance
David Fúnez
Tegucigalpa, Hondurasthis is the structure of the table ZFACTURA.
MANDT MANDT CLNT 3 0 Mandante
VBELN_VF VBELN CHAR 10 0 Número de documento comercial
POSICION CHAR2 CHAR 2 0 Componente del número de versión
FECHA_EM BLDAT DATS 8 0 Fecha de documento en documento
HORA_EM TIMS TIMS 6 0 Campo de tipo TIMS
USUARIO_EM CHAR12 CHAR 12 0 Campo carácter longitud 12
FECHA_EC BLDAT DATS 8 0 Fecha de documento en documento
HORA_EC TIMS TIMS 6 0 Campo de tipo TIMS
USUARIO_EC CHAR12 CHAR 12 0 Campo carácter longitud 12
ESTADO CHAR10 CHAR 10 0 Campo de texto, longitud 10
FECHA_RB BLDAT DATS 8 0 Fecha de documento en documento
HORA_RB TIMS TIMS 6 0 Campo de tipo TIMS
USUARIO_RB CHAR12 CHAR 12 0 Campo carácter longitud 12
The area has been declared in the function module:
DATA zfactura. -
Weird problem with mysql query and data table buttons !!!!
Hi,
I'm using jsc 2 update 1 on windows and mysql 4.1 . I have a page with a data table. One column of the data table contains "Details" buttons.
Source query for the table is :
SELECT tbl_tesserati.idtbl_tesserati idTesserato,
tbl_tesserati.num_tessera,
tbl_tesserati.nome,
tbl_societa.codice_meccanografico
FROM tbl_tesserati
INNER JOIN tbl_rel_tesserato_discipline_societa ON tbl_tesserati.idtbl_tesserati = tbl_rel_tesserato_discipline_societa.id_tesserato
INNER JOIN tbl_cariche ON tbl_rel_tesserato_discipline_societa.id_carica = tbl_cariche.idtbl_cariche
INNER JOIN tbl_qualifiche ON tbl_rel_tesserato_discipline_societa.id_qualifica = tbl_qualifiche.idtbl_qualifiche
INNER JOIN tbl_discipline ON tbl_rel_tesserato_discipline_societa.id_disciplina = tbl_discipline.idtbl_discipline
INNER JOIN tbl_societa ON tbl_rel_tesserato_discipline_societa.id_societa = tbl_societa.idtbl_societa
LEFT JOIN tbl_province ON tbl_societa.provincia_sede_sociale = tbl_province.idtbl_province
LEFT JOIN tbl_comuni ON tbl_societa.comune_sede_sociale = tbl_comuni.idtbl_comuni
LEFT JOIN tbl_rel_tesserato_discipline_praticate ON tbl_rel_tesserato_discipline_praticate.tessera_id=
tbl_rel_tesserato_discipline_societa.idtbl_rel_tesserato_discipline
LEFT JOIN tbl_discipline_praticate ON tbl_discipline_praticate.idtbl_disciplina_praticate=tbl_rel_tesserato_discipline_praticate.disciplina_praticata_id
WHERE
tbl_tesserati.cognome LIKE ?
AND tbl_tesserati.nome LIKE ?
AND tbl_rel_tesserato_discipline_societa.id_societa LIKE ?
AND tbl_tesserati.idtbl_tesserati LIKE ?
AND tbl_cariche.idtbl_cariche LIKE ?
AND tbl_qualifiche.idtbl_qualifiche LIKE ?
AND tbl_tesserati.data_nascita >= ?
AND tbl_tesserati.data_nascita<= ?
AND tbl_discipline.idtbl_discipline LIKE ?
AND codice_affiliazione LIKE ?
AND tbl_societa.denominazione LIKE ?
AND YEAR(tbl_rel_tesserato_discipline_societa.data_scadenza) LIKE ?
AND (tbl_province.nome LIKE ? OR tbl_province.nome IS NULL)
AND ( tbl_comuni.nome LIKE ? OR tbl_comuni.nome IS NULL)
The tbl_tesserati.data_nascita is a mysql date field.
The click event handler code for the "Details" Button is:
public String btnModificaTesserato_action() {
try{
TableRowDataProvider rowData= (TableRowDataProvider)getBean("currentRowTesserati");
getRequestBean1().setId_tesserato((Long)rowData.getValue("idTesserato"));
} catch(Exception ex) {
log("errore nella query",ex);
return "dettaglioTesseratoSocieta";
}When i run the project and open the page the table is correctly rendered and populated with some rows. But when i click on details button nothing happens, the page is simply reloaded.
If i set a breakpoint in the code line TableRowDataProvider rowData= (TableRowDataProvider)getBean("currentRowTesserati");the debbuger does not stop the code execution ! As if the button was never clicked!
I tried to modify the source query to :
SELECT tbl_tesserati.idtbl_tesserati idTesserato,
tbl_tesserati.num_tessera,
tbl_tesserati.nome,
tbl_societa.codice_meccanografico
FROM tbl_tesserati
INNER JOIN tbl_rel_tesserato_discipline_societa ON tbl_tesserati.idtbl_tesserati = tbl_rel_tesserato_discipline_societa.id_tesserato
INNER JOIN tbl_cariche ON tbl_rel_tesserato_discipline_societa.id_carica = tbl_cariche.idtbl_cariche
INNER JOIN tbl_qualifiche ON tbl_rel_tesserato_discipline_societa.id_qualifica = tbl_qualifiche.idtbl_qualifiche
INNER JOIN tbl_discipline ON tbl_rel_tesserato_discipline_societa.id_disciplina = tbl_discipline.idtbl_discipline
INNER JOIN tbl_societa ON tbl_rel_tesserato_discipline_societa.id_societa = tbl_societa.idtbl_societa
LEFT JOIN tbl_province ON tbl_societa.provincia_sede_sociale = tbl_province.idtbl_province
LEFT JOIN tbl_comuni ON tbl_societa.comune_sede_sociale = tbl_comuni.idtbl_comuni
LEFT JOIN tbl_rel_tesserato_discipline_praticate ON tbl_rel_tesserato_discipline_praticate.tessera_id=
tbl_rel_tesserato_discipline_societa.idtbl_rel_tesserato_discipline
LEFT JOIN tbl_discipline_praticate ON tbl_discipline_praticate.idtbl_disciplina_praticate=tbl_rel_tesserato_discipline_praticate.disciplina_praticata_id
WHERE
tbl_tesserati.cognome LIKE ?
AND tbl_tesserati.nome LIKE ?
AND tbl_rel_tesserato_discipline_societa.id_societa LIKE ?
AND tbl_tesserati.idtbl_tesserati LIKE ?
AND tbl_cariche.idtbl_cariche LIKE ?
AND tbl_qualifiche.idtbl_qualifiche LIKE ?
AND tbl_tesserati.data_nascita >= ?
OR tbl_tesserati.data_nascita<= ?
AND tbl_discipline.idtbl_discipline LIKE ?
AND codice_affiliazione LIKE ?
AND tbl_societa.denominazione LIKE ?
AND YEAR(tbl_rel_tesserato_discipline_societa.data_scadenza) LIKE ?
AND (tbl_province.nome LIKE ? OR tbl_province.nome IS NULL)
AND ( tbl_comuni.nome LIKE ? OR tbl_comuni.nome IS NULL)
Using this query everything works well !! The click handler works and the debugger too !!
I changed only the AND in OR !!!
I also tried to change mysql-x-x-connector driver but without solving my problem.
Can someone help me ?
Thanks
GiorgioYou'll find that it is more to do with the way MySql deals with dates than anything else! Depending on how your date field is setup, then try using a BETWEEN statement for those 2 lines in your first query e.g.
AND ( tbl_tesserati.data_nascita BETWEEN ? AND ?)
The date column needs to be in the ISO format to work. If you examine your second query output, you might discover that the output is only going to refer to one parameter (probably the OR one). Did you manage to view the output logs from the application server? You would have got an idea from there with a message like stating a conversion error'.
Alternatively, you could try using the to_days() function and convert it directly to a number which would be a lot easier to deal with. For example:
AND to_days(tbl_tesserati.data_nascita >= ? )
AND to_days( tbl_tesserati.data_nascita<= ? )
Or try the BETWEEN version with to_days() and see what you get.
More info about date formatting (v5) here:
http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html#function_to-days
Before I forget, sometimes you may need to treat dates as Strings rather 'Long' as you did.
As a matter of interest, did you try your query in a different piece of software?
If my queries are a little more complicated, I tend to try MySql queries out in the free MySql query browser and also double check in another to verify certain issues. I found it easier to develop SQL in a seperate program then import the final version to JSC making the required modifications for parameters.
Message was edited by:
aerostra
Maybe you are looking for
-
Getting Error while creating multiple Orders using Sales order Create BAPI
Hi, I am trying to create 2 orders thru the Sales order create BAPI before I commit and save the orders. The Orders are getting created and the BAPI is coming back with success, but it is not setting the system status on the line items of the 1st ord
-
How to get the error message which causes Synonym Invalid?
Hi, I created a synonym in USER_B for a table in USER_A. I have given all priveleges to USER_B from USER_A. I created a package. In that I am using this synonym. Its working fine. Today I have seen that.. the synonym is showing as invalid. Even I rec
-
Creating Virtual directory doubts
i tried following ways to create virtual directory. but none didn't work. i have a war file named MyTestPage.war , it will work if i place it under webapps in the tomcat directory. but i want to create a virtual directory C:\myDir\TomcatVirtualDir i
-
Slow wifi with Ralink rt3290 network adapter
I formated my laptop and installed win 7 x64 once again.My wifi was fine before but now I have installed all the drivers from HP support and my wifi speed is very slow although other laptops in my house have normal speed (about 10 times faster).I hav
-
Applet/javascript communication with 1.4 plug in
I have a javascript function that queries an applet parameter using the following code: var applet = window.parent.frames["FRAME_NAME"].document.applets[0]; var errorStatus = applet.ErrorStatus; The applet has a "getErrorStatus" method. This all work