ADF Struts UIX - how write where clause whith date in ViewObject
Hello
I need to write a search form with two date fields and then query a where clause between to_date('date 1') and to_date('date 2').
the query may be writed in ViewCriteria class or using Application module method like this
AssureViewImpl assureView=getAssureView1();
assureView.applyViewCriteria(null);
assureView.setWhereClause("NUM_ASSU = :1");
assureView.setWhereClauseParam(0,numAss);
thanks a lot for your help
Does the user always specify both start and end dates?
Similar Messages
-
How to write WHERE clause in dynamic record group in oracle forms
hi this is s.v.eswar,PLZ HELP ME
i am new to oracle forms
i want to write where clause in dynamic recordgroup
this is the code i have written
DECLARE
MGR_ITEM ITEM:=FIND_ITEM('MGR');
RG_ID_MGR RECORDGROUP:=NULL;
MGR_DUMMY NUMBER;
BEGIN
RG_ID_MGR:=FIND_GROUP('MGRNUMBER');
IF ID_NULL(RG_ID_MGR) THEN
RG_ID_MGR:=CREATE_GROUP_FROM_QUERY('MGRNUMBER','SELECT DISTINCT TO_CHAR(EMPNO),TO_CHAR(EMPNO) FROM EMP WHERE JOB='MANAGER''); --THIS IS THE LINE I AM GETTING ERROR
END IF;
IF NOT ID_NULL(RG_ID_MGR) THEN
MGR_DUMMY:=POPULATE_GROUP('MGRNUMBER');
IF MGR_DUMMY=0 THEN
POPULATE_LIST(MGR_ITEM,'MGRNUMBER');
END IF;
END IF;
END;
COMPILE TIME ERROR
1)I have written where clause like this WHERE JOB='MANAGER'
then oracle compiler has given error like
ENCOUNTERED THE SYMBOL 'MANAGER' WHEN EXPECTING ONE OF THE FOLLOWING .,().........etc
(FOR THE ABOVE ERROR I JUST REMOVED SINGLE CODES AND WRITE LIKE THIS ----->WHERE JOB=MANAHER)------>THEN COMPILED SUCESSFULLY)
AND I RUN THE FORM
RUN TIME ERROR
FRM-41072: CAN NOT CREATE GROUP 'MGRNUMBER'Hi there
pls have a look here
Dependent drop down lists in forms 6i
hope this helps...
regards,
Amatu Allah -
ADF BC View Objects: Disappearing where clauses
Playing around with the 11g Technical Preview I find out that sometimes the where clauses - added to View Objects by means of the new "Join Type" field in the VO-editor UI - disappear.
I'm not able to reproduce exactly and "on demand", but it seems to happen when the sources of more than one View Object are open simultaneously and/or the XML definition of a View Object is edited directly on the Source-tab.Today I succeeded in reproducing:
Two tables:
TAB_MASTER:
ID NUMBER NOT NULL
DESCRIPTION VARCHAR2 NOT NULL
TAB_DETAIL:
ID NUMBER NOT NULL
MASTER_ID NUMBER NOT NULL
DESCRIPTION VARCHAR2 NOT NULL
TAB_DETAIL.MASTER_ID is a foreign key referencing TAB_MASTER.ID.
Steps to reproduce:
1. Generate default ADF BC objects from database tables.
2. Open definition of TAB_DETAIL View Object.
3. Go to the Entity Objects tab
4. Add TAB_MASTER Entity Object to the Selected Entities Objects. Association and Join Type are filled in automatically.
5. Go to the Query tab and go to SQL tab in de Property Inspector. Where clause is filled.
6. Go to the Attributes tab and click Add from Entity...
7. Add TAB_MASTER.DESCRIPTION attribute.
8. Again, go to the Query tab and go to SQL tab in de Property Inspector. Where clause is still filled.
9. Go to the Attributes tab and select MASTER_ID attribute.
10. Click icon to add List Of Values
11. In List Of Values dialog add View Object TAB_MASTER and add the correct pairs of List Return Values for the ID and (MASTER) DESCRIPTION attributes.
12. After completing the List Of Values dialog go to the Query tab -> SQL tab again. The where clause added to join the Entity Objects (see step 5.) is cleared, resulting in a wrong SQL statement for the View Object. -
How build where clause in select statement in FM for Virtual provider
Hi
I looking for example of FM for Virtual provider where I find code how assign to select statement "where" clause value from query variable.
In following code how build t_r_custtype range and how assign value to it.
CODE********************************
TYPE-POOLS: abap.
initialize
CLEAR: e_t_data, e_t_msg.
this is specific to infoprovider VIRTPROV
CHECK i_infoprov = 'VIRTPROV'.
FIELD-SYMBOLS: <l_s_sbook> TYPE sbook,
<l_s_data> TYPE ANY.
DATA: l_t_component TYPE abap_compdescr_tab,
l_t_sbook TYPE TABLE OF sbook.
initialize
CLEAR e_t_data.
Data selection / only Business Customer
SELECT * FROM sbook
INTO CORRESPONDING FIELDS OF TABLE l_t_sbook
WHERE custtype in t_r_custtype.
ENDCODE********************************
Thanks a lot
AdamHello,
Would you like fill the ranges in Customer exit for BEx..?
If Yes. please refer the attachment for the whole code...
"Sample code in Customer Exit in BEx"
IF i_step = 2.
CASE i_vnam.
WHEN 'ZDAY_CX'.
LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'ZDAY_IN'.
CLEAR: l_s_range.
ZT_DT1 = loc_var_range-low.
ZT_DT2 = loc_var_range-HIGH.
CALL FUNCTION 'DATE_CREATE'
EXPORTING
ANZAHL_JAHRE = 0
ANZAHL_KALTAGE = 0
ANZAHL_MONATE = '-1'
ANZAHL_TAGE = 0
DATUM_EIN = ZT_DT1
DATUM_EIN_ULT = ' '
ULTIMO_SETZEN = ' '
IMPORTING
DATUM_AUS = ZFIDAY .
E_TT =
E_ULTKZ =
CALL FUNCTION 'DATE_CREATE'
EXPORTING
ANZAHL_JAHRE = 0
ANZAHL_KALTAGE = 0
ANZAHL_MONATE = '-1'
ANZAHL_TAGE = 0
DATUM_EIN = ZT_DT2
DATUM_EIN_ULT = ' '
ULTIMO_SETZEN = ' '
IMPORTING
DATUM_AUS = ZLSDAY.
E_TT =
E_ULTKZ =
l_s_range-low = ZFIDAY .
l_s_range-high = ZLSDAY .
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
ENDLOOP.
*****************************************End*************************************
**To get the From date (For Text Variable) as per the user input date interval range**
WHEN 'ZR_S'.
LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'ZDAY_IN'.
CLEAR: l_s_range.
ZT_DT1 = loc_var_range-low.
ZT_DT2 = loc_var_range-HIGH.
CALL FUNCTION 'DATE_CREATE'
EXPORTING
ANZAHL_JAHRE = 0
ANZAHL_KALTAGE = 0
ANZAHL_MONATE = 0
ANZAHL_TAGE = 0
DATUM_EIN = ZT_DT1
DATUM_EIN_ULT = ' '
ULTIMO_SETZEN = ' '
IMPORTING
DATUM_AUS = ZFIDAY .
E_TT =
E_ULTKZ =
l_s_range-low0(2) = ZFIDAY6(2).
l_s_range-low+2(1) = '.'.
l_s_range-low3(2) = ZFIDAY4(2).
l_s_range-low+5(1) ='.'.
l_s_range-low6(4) = ZFIDAY0(4).
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
ENDLOOP.
*****************************************End*************************************
Please let me know if any clarification required..
Rinku.. -
Problem commit w/intermedia adf struts uix & 1 step submit/commit to user
JDev 9051, ADF, Struts, ix & Intermedia
Problem:
Inserting intermedia data type (ORDSYS.ORDIMAGE) AND wanting the "commit to happen behind the scenes" so the user does not have to press submit and then commit.
I am having a problem committing a record to the DB when the form contains an intermedia data type. If I do not fill in the image column (using file upload) it works fine. My work around for now is to commit twice.
To create a new entry that contains intermedia data type (ORDSYS.ORDIMAGE) I am using the following flow of events.
NOTE: THIS DOES NOT WORK IF I UPLOAD AN IMAGE, HOWEVER, IF I LEAVE THE IMAGE COLUMN BLANK IT WORKS FINE.
01. start at browseInventory.uix
02. press create button which triggers event named createInventoryEvent
03. which gives control to createInventoryFoward
04. which fires Data Action named createInventoryAction
05. which forwards to formInventory.uix
06. user supplies data and presses the submit button which triggers event named commitInventoryEvent
07. which gives control to commitInventoryFoward
08. which fires Data Action named commitInventoryAction
09. which forwards to browseInventory.uix
NOTE: THIS WORKS IF I DO UPLOAD AN IMAGE (COMMIT TWICE)
01. start at browseInventory.uix
02. press create button which triggers event named createInventoryEvent
03. which gives control to createInventoryFoward
04. which fires Data Action named createInventoryAction
05. which forwards to formInventory.uix
06. user supplies data and presses the submit button which triggers event named commitInventoryEvent
07. which gives control to commitInventoryFoward
08. which fires Data Action named commitInventoryAction
09. which (on success) fires Data Action named commitInventoryAction_2
10. which forwards to browseInventory.uix
BTW - is there some codes I can use to display an image (Struts Config - Page Flow) on the OTN forums if I am hosting the image?
Thanks,
Bill G...Did you ever get a soluction for the duoble commit thingie?
cause I cuirrently have the smae problem. It seems that it uses the first commit to instantiate the object, and the second commit to actually upload it to the database. -
I'm running Forms 6i client/server.
I have defined a where clause in the Property Palette for a Data Block.
What I like to do is to extend the where clause with a subquery, but
how can this be done? I mean, should I put the code in a trigger, which trigger?
Regards
Roarsimple where clause with sub_query
My block has name is dc_gmod. In the where pallete I put the text (and the all is work good!!!):
exists
select 1 from ttt.xxxxx_table v
where (dc_gmod.cd_gmod = v.cd_gmod)
and
(instr(:fst.tmp_nm,cd_place,1) > 0
or
cd_place IN
(select U_UNIT from ttt.xxxxxxxxx_tabe
where RG_U = :QA.RG_UNIT_RUN
AND SID = :QA.SID
AND SERIAL# = :QA.SERIAL
1.The dc_gmod.cd_gmod - is full name my block_name and item_name.
2. The ttt.xxxxx_table is full name of my table what is source for block dc_gmod
3. The cd_place is ITEM of BLOCK dc_gmod -
I am creating a coditional query for one of my data blocks.
What I need to do is build a where clause on the fly and pass
that back to my block using the Set_BLock_Property built in. I
am able to do this but I am having problems with the fact that I
don't know how to correctly pass a date back. It seems when
specifying a date in a where clause it needs to have single
quotes around this. But when ever I try to embed the quotes in
the string I am not successful. I have even tried appending the
quotes using the chr function doing something like.
Where_Clause := 'Birthday <= 'Spencer,
I think chr(39) will give you the correct character. For example,
Where_Clause := 'Birthday <= ' -
Hi specialist's,
i have a simple question about a select, but I think I do not see the forrest becaus of too many trees ...
I have a table where timestamps are stored in seconds-since-epoch.
I select a human readble format with this statement:
select to_char(DATE '1970-01-01' + TRXTIMESTAMP / (24*3600*1000), 'DD-MM-YYYY HH24:MI:SS') as timestamp from txlog;
TIMESTAMP
19-10-2013 09:31:27
19-10-2013 09:31:27
19-10-2013 09:31:27
Now I want to filter i.e. for dates of 19-01....
My first try was this:
select to_char(DATE '1970-01-01' + TRXTIMESTAMP / (24*3600*1000), 'DD-MM-YYYY HH24:MI:SS') as timestamp from txlog
where timestamp like '19-%'
Result:
ORA-00904: "TIMESTAMP": invalid identifier
My next try was this:
select to_char(DATE '1970-01-01' + TRXTIMESTAMP / (24*3600*1000), 'DD-MM-YYYY HH24:MI:SS') as timestamp from txlog
where 1 like '19%'
Result: 0 rows!
If I change this to
... where 1 like '%'
I get all rows.
What is wrong with my selects ???Felix_GG wrote:
Hi specialist's,
i have a simple question about a select, but I think I do not see the forrest becaus of too many trees ...
I have a table where timestamps are stored in seconds-since-epoch.
I select a human readble format with this statement:
select to_char(DATE '1970-01-01' + TRXTIMESTAMP / (24*3600*1000), 'DD-MM-YYYY HH24:MI:SS') as timestamp from txlog;
TIMESTAMP
19-10-2013 09:31:27
19-10-2013 09:31:27
19-10-2013 09:31:27
Now I want to filter i.e. for dates of 19-01....
My first try was this:
select to_char(DATE '1970-01-01' + TRXTIMESTAMP / (24*3600*1000), 'DD-MM-YYYY HH24:MI:SS') as timestamp from txlog
where timestamp like '19-%'
Result:
ORA-00904: "TIMESTAMP": invalid identifier
My next try was this:
select to_char(DATE '1970-01-01' + TRXTIMESTAMP / (24*3600*1000), 'DD-MM-YYYY HH24:MI:SS') as timestamp from txlog
where 1 like '19%'
Result: 0 rows!
If I change this to
... where 1 like '%'
I get all rows.
What is wrong with my selects ???
Firstly, why not store timestamps as timestamps?
Anyway, Your first select refers to the alias 'timestamp' which is only accessible in an outer query, not from within the where clause.
Try
Select * from (
select to_char(DATE '1970-01-01' + TRXTIMESTAMP / (24*3600*1000), 'DD-MM-YYYY HH24:MI:SS') as timestamp from txlog
where timestamp like '19-%';
But timestamp is not a good choice for an alias, as it is a keyword.
Your second select is obvious - the number 1 will never be like '19%', but it will work
in the third select: as 1 is indeed like '%' (anything). -
Correct way to do "where " clause on date type column
Hi,
I am using a following query in Oracle 10.2.0.3 express edition database to retrieve the rows greater than a certain date.
select from FLOWS_020100.WWV_FLOW_ACTIVITY_LOG1$ where TIME_STAMP > to_date('31-OCT-12');*
This query returns all the rows including the rows with TIME_STAMP == '31-OCT-12'.
This TIME_STAMP column is defined as below in this table:
COLUMN_NAME DATA_TYPE DATA_LENGTH NULLABLE CONSTRAINT_TYPE INDEX_TYPE
TIME_STAMP DATE 7 N C NORMAL
Table has 420 rows with '31-OCT-12' being the smallest date and '16-NOV-12' being the biggest.
Is there anything wrong in my above query?
Why is ">" returning the rows that include primary key where-clause value also?
Can you please guide what is the correct syntax for this date comparison?
Thanks for your time and help.
Best Regards.907882 wrote:
Hi,
I am using a following query in Oracle 10.2.0.3 express edition database to retrieve the rows greater than a certain date.
select from FLOWS_020100.WWV_FLOW_ACTIVITY_LOG1$ where TIME_STAMP > to_date('31-OCT-12');*
This query returns all the rows including the rows with TIME_STAMP == '31-OCT-12'.
This TIME_STAMP column is defined as below in this table:
COLUMN_NAME DATA_TYPE DATA_LENGTH NULLABLE CONSTRAINT_TYPE INDEX_TYPE
TIME_STAMP DATE 7 N C NORMAL
Table has 420 rows with '31-OCT-12' being the smallest date and '16-NOV-12' being the biggest.
Is there anything wrong in my above query?
Why is ">" returning the rows that include primary key where-clause value also?
Can you please guide what is the correct syntax for this date comparison?
Thanks for your time and help.
Best Regards.Remember that a date column also contains a time part. Therefore your query would pick up
rows with a time_stamp of 31-Oct-12 13:40:09, for example. Now that is greater than 31-Oct-12
(which is really 31-Oct-12 00:00:00), so it is picked up.
You probably want >= to_date('1-Nov-2012', 'dd-mon-yyyy')
Note: always use a format mask in a to_date, otherwise if the default format mask changes, your code will break.
BTW: please mark your threads as answered, if they have been:
>
Handle: 907882
Status Level: Newbie
Registered: Jan 13, 2012
Total Posts: 9
Total Questions: 6 (5 unresolved)
>
Edited by: Paul Horth on Nov 27, 2012 9:30 AM -
How and where does Delivery Date get calculated in ME51N
Hi,
Can anyone please let me know the point where the delivery date is calculated in ME51N ?
i enter the Material and Plant and press enter and Delivery Date ( = Current Date ) gets populated automatically. I need to find out where it happens.
Because there is a requirement that the Delivery Date should be equal to the Current Date + some Lead Time, instead of the current Date. So, I need to find a BADI or exit.
For the transaction ME51N, there is only one Customer Exit - MEREQ001. And if I put a break-point at the compnents of this exit, the control doesnt go to these exits when I press Enter.
And there is a BADI 'ME_REQ_POSTED', which gets triggered when we save ME51N, but it should be triggered even when we press enter.
Please help me with all the above details.Hi Dagny,
This is related to PO stuff. Probably the logic may be useful for you.
You can try out enhancements:
LMEKO001
LMEKO002
And you try out below code.
FIELD-SYMBOLS: <beket> TYPE ANY TABLE.
DATA: l_date TYPE d
l_ebelp TYPE ebelp,
w_beket TYPE beket,
t_beket TYPE STANDARD TABLE OF beket,
w_data TYPE ty_data.
* Get the item number in the correct format.
l_ebelp = komp-kposn+1(5).
* Get the tabe with Delivery Schedule data.
ASSIGN ('(SAPLMEPO)ETT[]') TO <beket>.
t_beket[] = <beket>[].
READ TABLE t_beket INTO w_beket WITH KEY ebelp = l_ebelp.
*l_data = w_beket-eindt.*
Here l_data has the delivey date field you can even modify this data and update what ever u want.
Thanks,
Raj
Edited by: Raja gurrala on Jul 23, 2009 3:24 PM -
ADF and JQuery: How can I get the data back to server listener.
Jdeveloper 11g Version 11.1.1.2.0
I use Jquery to draw the signature. How can I get the svgOutput back to my server listener.???
e.getSource give me the error e.getSource is not function.
Both of function saveSignatureCapture(which calling from ADF button) and $('#save-output').click(function (event) can not send the the data back to my server listener.
Thanks.
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<af:document id="dSignature" title="Signature Capture">
<af:resource type="javascript" source="../resources/lib/jquery/jquery-1.4.2.min.js"/>
<af:resource type="javascript" source="../resources/js/jquery.drawbox.js"/>
<af:resource type="javascript">
var svgOutput = '';
function saveSignatureCapture(e) {
var signatureText = $('#drawbox-data').val();
var source = e.getSource();
var type = 'saveSignatureCapture_ServerListener';
var immediate = true;
var params = {
signatureText : signatureText
AdfCustomEvent.queue(source, type, params, immediate);
function beginSignatureCapture(e) {
$('#drawbox').drawbox( {
caption : 'This is a caption', lineWidth : 3, lineCap : 'round', lineJoin : 'round', colorSelector : true
$('#view-output').click(function () {
svgOutput = window.open('data:image/svg+xml,' + $('#drawbox-data').val());
svgOutput.document.close();
return false;
$('#save-output').click(function (event) {
var signatureText = $('#drawbox-data').val();
var source = $(document);
var type = "saveSignatureCapture_ServerListener";
var immediate = true;
var params = {
signatureText : signatureText
AdfCustomEvent.queue(source, type, params, immediate);
return false;
$(document).ready(beginSignatureCapture);
</af:resource>
<af:panelStretchLayout id="psSignature">
<f:facet name="bottom"/>
<f:facet name="center">
<af:panelGroupLayout id="pgSignature" layout="vertical">
<f:verbatim>
<div id="divSignature">
<canvas id="drawbox" width="600" height="200">
<p>Your browser does not support <canvas></p>
</canvas>
</div>
<br/>
<br/>
<a href="#" id="view-output">View Rendered SVG Output</a>
<br/>
<br/>
<a href="#" id="save-output">Save Signature</a>
</f:verbatim>
<af:spacer width="10" height="10" id="s10"/>
<af:panelGroupLayout id="pghl14" layout="horizontal" halign="center">
<af:commandButton text="Save Signature" id="cbSaveSignatureButtonId" partialSubmit="true">
<af:clientListener method="saveSignatureCapture" type="click"/>
<af:serverListener type="saveSignatureCapture_ServerListener"
method="#{backingBeanScope.mainBackingBean.saveSignatureCapture_ServerListener}"/>
</af:commandButton>
</af:panelGroupLayout>
</af:panelGroupLayout>
</f:facet>
<f:facet name="start"/>
<f:facet name="end"/>
<f:facet name="top"/>
</af:panelStretchLayout>
</af:document>
</f:view>
</jsp:root>Edited by: user553450 on Sep 17, 2010 4:02 PM
Edited by: user553450 on Sep 17, 2010 4:13 PMHi Frank,
Thank you so much for your advice, I got lot of knowledge from your book and articles since I am in transition from forms to JDeveloper.
By surrounding <af:panelStretchLayout id="psSignature"> with <af:form id="f1">
Now the following code is work on Firefox, everything fine, I can get the data back and call my server listener as I expected.
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<af:document id="d1" title="Signature Capture">
<af:resource type="javaScript" source="../resources/js/excanvas.js"/>
<af:resource type="javascript" source="../resources/lib/jquery/jquery-1.4.2.min.js"/>
<af:resource type="javascript" source="../resources/js/jquery.drawbox.js"/>
<af:resource type="javascript">
function saveSignatureCapture(e) {
var signatureText = $('#drawbox-data').val();
alert(signatureText);
var source = e.getSource();
var type = 'saveSignatureCapture_ServerListener';
var immediate = true;
var params = {
signatureText : signatureText
AdfCustomEvent.queue(source, type, params, immediate);
function beginSignatureCapture(e) {
var cmd = "$('#drawbox').drawbox({lineWidth:3,lineCap:'round',lineJoin:'round',colorSelector:true});";
if (navigator.userAgent.indexOf('MSIE') != - 1) {
setTimeout(cmd, 1000);
else {
$('#drawbox').drawbox( {
caption : 'This is a caption', lineWidth : 3, lineCap : 'round', lineJoin : 'round', colorSelector : true
</af:resource>
<af:form id="f1">
<af:panelStretchLayout id="psSignature">
<f:facet name="bottom"/>
<f:facet name="center">
<af:panelGroupLayout id="pgSignature" layout="vertical">
<f:verbatim>
<canvas id="drawbox" width="600" height="200">
<p>Your browser does not support <canvas></p>
</canvas>
</f:verbatim>
<af:spacer width="10" height="10" id="s10"/>
<af:panelGroupLayout id="pghl14" layout="horizontal" halign="center">
<af:commandButton text="Save Signature" id="cbSaveSignatureButtonId" partialSubmit="true">
<af:clientListener method="saveSignatureCapture" type="click"/>
<af:serverListener type="saveSignatureCapture_ServerListener"
method="#{backingBeanScope.mainBackingBean.saveSignatureCapture_ServerListener}"/>
</af:commandButton>
</af:panelGroupLayout>
</af:panelGroupLayout>
</f:facet>
<f:facet name="start"/>
<f:facet name="end"/>
<f:facet name="top"/>
</af:panelStretchLayout>
</af:form>
<af:clientListener method="beginSignatureCapture" type="load"/>
</af:document>
</f:view>
</jsp:root> However, I got the error following error when I run the page from IE8.
Assertion failed: Incorrect use of AdfRichUIPeer.GetDomNodeForCommentComponent.AdfRichCommandButton[oracle.adf.RichCommandButton] id=cbSaveSignatureButtonId StackTrace:function(x217)[AdfRichCommandButton[oracle.adf.RichCommandButtonId]..........
FYI, the following simple testing code has the similar error in IE8 too (not for Firefox).
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<af:document id="d1">
<af:resource type="javaScript" source="../resources/js/excanvas.js"/>
<af:form id="f1">
<f:verbatim>
<canvas id="drawbox" width="600" height="200">
<p>Your browser does not support <canvas></p>
</canvas>
</f:verbatim>
</af:form>
</af:document>
</f:view>
</jsp:root>The error is: Assertion failed: Incorrect use of AdfRichUIPeer.GetDomNodeForCommentComponent.AdfRichDialog[oracle.adf.RichDialog] id:::msgDlg StackTrace function(x217).......
Your advice is very much appreciated. -
Decode in where claus with date comparasion
hi
i m using this query can we compare date in decode function in where claue if yes how
SELECT PPA.START_DATE,
PPA.END_DATE
FROM pa_project_assignments PPA,
PA_CONTROL_ITEMS PCI
WHERE DECODE(PPA.START_DATE < PCI.ATTRIBUTE1,PCI.ATTRIBUTE1,PPA.START_DATE) BETWEEN (PCI.ATTRIBUTE1) AND (PCI.DATE_REQUIRED)
AND PPA.END_DATE BETWEEN (PCI.ATTRIBUTE1) AND( PCI.DATE_REQUIRED)
AND PPA.PROJECT_ID=PCI.PROJECT_IDThis works.
SELECT * FROM emp
WHERE
CASE WHEN hiredate < SYSDATE THEN
hiredate
ELSE SYSDATE
END BETWEEN SYSDATE-10000 AND SYSDATEIn your CASE
SELECT PPA.START_DATE,
PPA.END_DATE
FROM pa_project_assignments PPA,
PA_CONTROL_ITEMS PCI
WHERE
case when PPA.START_DATE < PCI.ATTRIBUTE1 then
PCI.ATTRIBUTE1
else
PPA.START_DATE
end BETWEEN PCI.ATTRIBUTE1 AND PCI.DATE_REQUIRED
AND PPA.END_DATE BETWEEN PCI.ATTRIBUTE1 AND PCI.DATE_REQUIRED
AND PPA.PROJECT_ID=PCI.PROJECT_IDCheers!!!
Bhushan -
To prepare VAT Register -India Localization , how / from where to pull data
A VAT Register report is required as featured below with the selection criteria/parameters and column names.
1. Output VAT Register Report Detailed with From Date and To Date Selection Range
Document Number Document Date Customer Name Customer VAT Reg No Base Document Total Vat Amount Vat Rate Gross Total
Which table (s) has / have the VAT information stored under India localization - 2007B running on MSSQL 2005.
Thank youHI Joy,
We are using this SP as Purchase Register to get the details of not only vat, but BED, Ecess, Cess and Cst. I have called this SP in SAP through Biz-reporter add on.
Create PROC [dbo].[PurchaseRegister1]
@DATEFROM datetime,
@DATETO datetime
AS
SELECT DISTINCT T0.DOCENTRY, T0.[DOCNUM], T1.[DSCRIPTION],T1.[ITEMCODE],
CONVERT(VARCHAR(10), T0.[DOCDATE], 3) AS DOCDATE , T1.[QUANTITY], T1.[PRICE], T1.[TAXCODE], T1.[VATSUM],
( T1.LINETOTAL +T1.[VATSUM]) AS 'ROW TOTAL', ( T1.LINETOTAL) AS 'BASIC' , T0.[CARDCODE] AS 'VENDOR CODE',
(SELECT DISTINCT ISNULL(SUM(PCH4.TAXSUM),0) FROM PCH4 WHERE PCH4.STATYPE=-90 AND PCH4.DOCENTRY=T0.DOCENTRY AND PCH4.LINENUM = T1.LINENUM )BED,
(SELECT DISTINCT ISNULL(SUM(PCH4.TAXSUM),0) FROM PCH4 WHERE PCH4.STATYPE=-60 AND PCH4.DOCENTRY=T0.DOCENTRY AND PCH4.LINENUM = T1.LINENUM )CESS,
(SELECT DISTINCT ISNULL(SUM(PCH4.TAXSUM),0) FROM PCH4 WHERE PCH4.STATYPE=8 AND PCH4.DOCENTRY=T0.DOCENTRY AND PCH4.LINENUM = T1.LINENUM)HCESS,
(SELECT DISTINCT ISNULL(SUM(PCH4.TAXSUM),0) FROM PCH4 WHERE PCH4.STATYPE=4 AND PCH4.DOCENTRY=T0.DOCENTRY AND PCH4.LINENUM = T1.LINENUM)CST,
(SELECT DISTINCT ISNULL(SUM(PCH4.TAXSUM),0) FROM PCH4 WHERE PCH4.STATYPE=1 AND PCH4.DOCENTRY=T0.DOCENTRY AND PCH4.LINENUM = T1.LINENUM)VAT,(SELECT DISTINCT ISNULL(TAXID11,0) FROM CRD7 WHERE CRD7.CARDCODE =T0.CARDCODE AND TAXID11 IS NOT NULL) AS TINNO,DISCSUM,
T0.[CARDNAME] AS 'VENDOR NAME' , T0.[COMMENTS] FROM OPCH T0
INNER JOIN PCH1 T1 ON T0.DOCENTRY = T1.DOCENTRY
--INNER JOIN OITM T2 ON T1.ITEMCODE = T2.ITEMCODE
INNER JOIN PCH4 T3 ON T1.DOCENTRY =T3.DOCENTRY AND T1.LINENUM=T3.LINENUM
INNER JOIN CRD7 T4 ON T0.CARDCODE = T4.CARDCODE
WHERE (T0.Docdate>=@DATEFROM AND T0.Docdate <=@DATETO)
You can check the statype of the tax types in the OSTT table.
Hope this helps.
Thanks,
Joseph -
select * from table WHERE column1 = to_date(1998-12-21, 'YYYY-MM-DD')
the columns has date in the form of 1998-12-21. I am getting the following error
the error is
DB2 sql 0171n the datatype, length, or value of argument "1" of routine "to_date" is in correct sql state = 42815This is an Oracle forum.
Please take your DB2 questions elsewhere. -
Dynamic query in where clause while looping in an internal table.
Hi,
Had a small question : How can i make a dynamic query for the WHERE clause while looping at an internal table.
i want to implement a dynamic where clause query for the below example.
it_cfx_col is an internal table and wa_cfx_col is a work area for it_cfx_col
DATA :
i_cfx_col TYPE TABLE OF cfx_col,
wa_cfx_col LIKE LINE OF i_cfx_col.
DATA : count TYPE i VALUE 0.
DATA : l_where_clause TYPE string,
l_where_clause2 TYPE string,
l_name type string.
l_name = 'NANDANOM'.
l_scenario = 'collaboration'.
LOOP AT it_cfx_col INTO wa_cfx_col
WHERE CREATED_BY = l_name
AND SCENARIO = l_scenario.
count = count + 1.
some business logic implemented using the work area wa_cfx_col
endloop.
Now i want to write a dynamic query for the where clause.
DATA : count TYPE i VALUE 0.
DATA : l_where_clause TYPE string,
l_where_clause2 TYPE string,
l_name type string.
l_name = 'NANDANOM'.
l_scenario = 'collaboration'.
l_where_clause = 'CREATED_BY = l_name'.
l_where_clause2 = 'AND SCENARIO = l_scenario'.
if l_scenario is not initial.
CONCATENATE l_where_clause l_where_clause2
INTO l_where_clause SEPARATED BY space.
endif.
LOOP AT i_cfx_col INTO wa_cfx_col
WHERE (l_where_clause).
count = count + 1.
some business logic implemented using the work area wa_cfx_col
endloop.
when i compile this i get an error message as { Statement concluding with "...(l_where_clause)" ended unexpectedly}
Even i changed the initilization of the variable l_where_clause2 to [ l_where_clause2 = 'AND SCENARIO = l_scenario.'. ]
added the end of line demarkation ".", but still i got the same error message.
Is it a limtation in ABAP that i cannot write a dynamic query for the where clause while looping at an internal table?
Regards,
omHi savita,
there in no such 1 limitaion in abap for dynamic query .. i think the error meassge is only beacuse of your synatx delcartaion.
>> LOOP AT i_cfx_col INTO wa_cfx_col
WHERE (l_where_clause).
count = count + 1.
some business logic implemented using the work area wa_cfx_col
endloop.
afted delclarataion also , in the where statement you should specify both the field name and value bname
LOOP AT i_cfx_col INTO wa_cfx_col
WHERE l_where_clause = 'CREATED_BY = l_name' .
count = count + 1.
hope it helps.
regads
priya.
Maybe you are looking for
-
Opening an external file containing javascript code
I'm trying to develop a PDF in two languages. When pushing a button, all questions and list-of-values for possible answers should be translated. I created and initialized several variables with the two language phrases with javascript. Everything is
-
Hello Friends, I have a custom list where I want to upload an image when clicking on it would direct to me to a page of my choice....is it possible without coding? I just have designer 2010
-
Airport express networking question
Can I plug a computer into the ethernet port of Airport Express with a cable, then connect to my Time Capsule via wireless?
-
NET BOOK VALUE OF THE ASSETS NOT APPEARING IN THE BALANCE SHEET
Hi, I have uploaded the old assets by using the T.code As91, but the values of the assets are not appearing in the Balance Sheet.Please help in solving this issue Ramaswamy
-
Hi All, I've got a Spark DropDownList (I'm on Flex SDK 4.0, Flash Builder 4). That DropDownList has an ArrayCollection as its dataProvider property, and in response to user gestures, I change the filterFunction on the ArrayCollection (and call ArrayC