GetStart/Enddate from Appointment
Hi,
I try to get the start/endDate of the Appointment.
Code:
int itemlenght = itemsResponse.getItems().getItem().length;
for ( int i=0;i<itemlenght;i++ ) {
Mail gwMail = new Mail();
gwMail = (Mail) itemsResponse.getItems().getItem()[i];
System.out.println( "Titel: " + gwMail.getSubject() );
here a snippet...
"gwMail" would have to show me startDate or endDate! but not!
what am I doing wrong???
The SOAP Response...
PHP Code:
<?xml version="1.0" encoding="UTF-8" ?>
- <env:Envelope xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
- <env:Header>
<ans1:gwTrace xmlns:ans1="http://schemas.novell.com/2005/01/GroupWise/types">false</ans1:gwTrace>
</env:Header>
- <env:Body>
- <gwm:getItemsResponse xmlns:gwm="http://schemas.novell.com/2005/01/GroupWise/methods" xmlns:gwt="http://schemas.novell.com/2005/01/GroupWise/types">
- <gwm:items>
- <gwt:item xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="gwt:Appointment">
<gwt:id>4C582935.GWDom1.GWPo1.100.16F6C31.1.8A.1@4:A.GWDom1.GWPo1.100.0.1.0.1@19</gwt:id>
<gwt:version>1</gwt:version>
<gwt:modified>2010-08-03T12:35:33Z</gwt:modified>
<gwt:container>A.GWDom1.GWPo1.100.0.1.0.1@19</gwt:container>
<gwt:created>2010-08-03T12:35:33Z</gwt:created>
- <gwt:status>
<gwt:accepted>1</gwt:accepted>
<gwt:opened>1</gwt:opened>
<gwt:read>1</gwt:read>
</gwt:status>
<gwt:msgId>4C582935.GWDom1.GWPo1.100.16F6C31.1.8A.1</gwt:msgId>
<gwt:source>personal</gwt:source>
<gwt:delivered>2010-08-03T12:35:33Z</gwt:delivered>
<gwt:security>Normal</gwt:security>
<gwt:subject>Labor day</gwt:subject>
- <gwt:distribution>
- <gwt:from>
<gwt:displayName>Nutzer GroupWise</gwt:displayName>
<gwt:email>[email protected]</gwt:email>
<gwt:uuid>55B01D50-09F6-0000-89F0-1F5AD6335C15</gwt:uuid>
</gwt:from>
- <gwt:sendoptions>
<gwt:statusTracking>All</gwt:statusTracking>
</gwt:sendoptions>
</gwt:distribution>
- <gwt:options>
<gwt:priority>Standard</gwt:priority>
</gwt:options>
<gwt:size>256</gwt:size>
- <gwt:rrule>
<gwt:frequency>Yearly</gwt:frequency>
<gwt:interval>1</gwt:interval>
- <gwt:byDay>
<gwt:day occurrence="1">Monday</gwt:day>
</gwt:byDay>
- <gwt:byMonth>
<gwt:month>8</gwt:month>
</gwt:byMonth>
</gwt:rrule>
<gwt:recurrenceKey>509</gwt:recurrenceKey>
<gwt:[B]iCalId[/B]>2010-08-03T12:35:[email protected]</gwt:iCalId>
<gwt:[B]startDate[/B]>2014-08-31T22:00:00Z</gwt:startDate>
<gwt:[B]endDate[/B]>2014-09-01T22:00:00Z</gwt:endDate>
<gwt:startDay>2014-08-31</gwt:startDay>
<gwt:endDay>2014-09-01</gwt:endDay>
<gwt:acceptLevel>Free</gwt:acceptLevel>
<gwt:allDayEvent>1</gwt:allDayEvent>
- <gwt:timezone>
- <gwt:daylight>
<gwt:month>3</gwt:month>
<gwt:dayOfWeek occurrence="Last">Sunday</gwt:dayOfWeek>
<gwt:hour>1</gwt:hour>
<gwt:minute>0</gwt:minute>
<gwt:offset>7200</gwt:offset>
</gwt:daylight>
- <gwt:standard>
<gwt:month>10</gwt:month>
<gwt:dayOfWeek occurrence="Last">Sunday</gwt:dayOfWeek>
<gwt:hour>2</gwt:hour>
<gwt:minute>0</gwt:minute>
<gwt:offset>3600</gwt:offset>
</gwt:standard>
</gwt:timezone>
</gwt:item>
</gwm:items>
- <gwm:status>
<gwt:code>0</gwt:code>
</gwm:status>
</gwm:getItemsResponse>
</env:Body>
</env:Envelope>
thank you for responding...
regards brat
You have to typecast the item to an Appointment (if it is one).
A Mail object does not have a startDate or endDate element.
>>> On Wednesday, September 22, 2010 at 7:03 AM,
BratmaX<[email protected]> wrote:
> Hi,
> I try to get the start/endDate of the Appointment.
>
>
> Code:
> ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑ ‑‑‑
> int itemlenght = itemsResponse.getItems().getItem().length;
> for ( int i=0;i<itemlenght;i++ ) {
>
> Mail gwMail = new Mail();
>
> gwMail = (Mail) itemsResponse.getItems().getItem()[i];
>
> System.out.println( "Titel: " + gwMail.getSubject() );
> }
> ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑ ‑‑‑
>
>
> here a snippet...
> "gwMail" would have to show me startDate or endDate! but not!
> what am I doing wrong???
>
> The SOAP Response...
>
>
> PHP code:
> ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑ ‑‑‑
> <?xml version="1.0" encoding="UTF‑8" ?>
> ‑ <env:Envelope xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema‑instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
> ‑ <env:Header>
> <ans1:gwTrace
>
xmlns:ans1="http://schemas.novell.com/2005/01/GroupWise/types">false</ans1:g
wTr
> ace>
> </env:Header>
> ‑ <env:Body>
> ‑ <gwm:getItemsResponse
> xmlns:gwm="http://schemas.novell.com/2005/01/GroupWise/methods"
> xmlns:gwt="http://schemas.novell.com/2005/01/GroupWise/types">
> ‑ <gwm:items>
> ‑ <gwt:item xmlns:xsi="http://www.w3.org/2001/XMLSchema‑instance"
> xsi:type="gwt:Appointment">
>
>
<gwt:id>4C582935.GWDom1.GWPo1.100.16F6C31.1.8A.1@4 :A.GWDom1.GWPo1.100.0.1.0.
1
> @19</gwt:id>
> <gwt:version>1</gwt:version>
> <gwt:modified>2010‑08‑03T12:35:33Z</gwt:modified>
> <gwt:container>A.GWDom1.GWPo1.100.0.1.0.1@19</gwt:container>
> <gwt:created>2010‑08‑03T12:35:33Z</gwt:created>
> ‑ <gwt:status>
> <gwt:accepted>1</gwt:accepted>
> <gwt:opened>1</gwt:opened>
> <gwt:read>1</gwt:read>
> </gwt:status>
> <gwt:msgId>4C582935.GWDom1.GWPo1.100.16F6C31.1.8A. 1</gwt:msgId>
> <gwt:source>personal</gwt:source>
> <gwt:delivered>2010‑08‑03T12:35:33Z</gwt:delivered>
> <gwt:security>Normal</gwt:security>
> <gwt:subject>Labor day</gwt:subject>
> ‑ <gwt:distribution>
> ‑ <gwt:from>
> <gwt:displayName>Nutzer GroupWise</gwt:displayName>
> <gwt:email>deradmin@xxx‑xxx.de</gwt:email>
> <gwt:uuid>55B01D50‑09F6‑0000‑89F0‑1F5AD633 5C15</gwt:uuid>
> </gwt:from>
> ‑ <gwt:sendoptions>
> <gwt:statusTracking>All</gwt:statusTracking>
> </gwt:sendoptions>
> </gwt:distribution>
> ‑ <gwt:options>
> <gwt:priority>Standard</gwt:priority>
> </gwt:options>
> <gwt:size>256</gwt:size>
> ‑ <gwt:rrule>
> <gwt:frequency>Yearly</gwt:frequency>
> <gwt:interval>1</gwt:interval>
> ‑ <gwt:byDay>
> <gwt:day occurrence="1">Monday</gwt:day>
> </gwt:byDay>
> ‑ <gwt:byMonth>
> <gwt:month>8</gwt:month>
> </gwt:byMonth>
> </gwt:rrule>
> <gwt:recurrenceKey>509</gwt:recurrenceKey>
>
<gwt:*iCalId*>2010‑08‑03T12:35:33Z_E5AB0024@xx x‑xxx.de</gwt:iCalId>
> <gwt:*startDate*>2014‑08‑31T22:00:00Z</gwt:startDate>
> <gwt:*endDate*>2014‑09‑01T22:00:00Z</gwt:endDate>
> <gwt:startDay>2014‑08‑31</gwt:startDay>
> <gwt:endDay>2014‑09‑01</gwt:endDay>
> <gwt:acceptLevel>Free</gwt:acceptLevel>
> <gwt:allDayEvent>1</gwt:allDayEvent>
> ‑ <gwt:timezone>
> ‑ <gwt:daylight>
> <gwt:month>3</gwt:month>
> <gwt:dayOfWeek occurrence="Last">Sunday</gwt:dayOfWeek>
> <gwt:hour>1</gwt:hour>
> <gwt:minute>0</gwt:minute>
> <gwt:offset>7200</gwt:offset>
> </gwt:daylight>
> ‑ <gwt:standard>
> <gwt:month>10</gwt:month>
> <gwt:dayOfWeek occurrence="Last">Sunday</gwt:dayOfWeek>
> <gwt:hour>2</gwt:hour>
> <gwt:minute>0</gwt:minute>
> <gwt:offset>3600</gwt:offset>
> </gwt:standard>
> </gwt:timezone>
> </gwt:item>
> </gwm:items>
> ‑ <gwm:status>
> <gwt:code>0</gwt:code>
> </gwm:status>
> </gwm:getItemsResponse>
> </env:Body>
> </env:Envelope>
> ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑ ‑‑‑
>
>
> thank you for responding...
> regards brat
Similar Messages
-
Can't delete email from appointment calendar from blackberry 8310?
I currently have a blackberry 8310 with at&t. I deleted an email that i don't use anymore, but it's still showing up in my appointment calendar, how do i get rid of this?
I was hoping that it would be a temporary issue but it is still continuing 24 hours later. I'm fairly certain that it is not an issue with the Mail client because I can delete email from my other accounts; still can't delete email from my .Mac account. I continue to receive the error message in my original post.
Is anyone else experiencing this problem?
Thanks m.bode for responding to my question.
Message was edited by: nolabrew -
Inserting values in a table from a view report in Application Express
Hello.
I have several tables with the sql bellow:
Employee
CREATE TABLE "Employee"
( "Employee_ID" NUMBER,
"Name" VARCHAR2(12) CONSTRAINT "NAME_EMPLOYEE_NN" NOT NULL ENABLE,
"Surname" VARCHAR2(10) CONSTRAINT "SURNAME_EMPLOYEE_NN" NOT NULL ENABLE,
"Address" VARCHAR2(50) CONSTRAINT "ADDRESS_EMPLOYEE_NN" NOT NULL ENABLE,
"Telephone" VARCHAR2(10),
"Personal_ID_Number" VARCHAR2(13),
"Date_of_Employment" VARCHAR2(10) CONSTRAINT "DATA_NN" NOT NULL ENABLE,
"Salary" NUMBER(6,0),
CONSTRAINT "Employee_ID_con" PRIMARY KEY ("Employee_ID") ENABLE,
CONSTRAINT "Employee_CON" UNIQUE ("Personal_ID_Number", "Telephone") ENABLE
Patient
CREATE TABLE "PATIENT"
( "Patient_ID" NUMBER,
"Name_Patient" VARCHAR2(13) CONSTRAINT "NAME_PAT_NN" NOT NULL ENABLE,
"Surname_Patient" VARCHAR2(10) CONSTRAINT "SURNAME_PAT_NN" NOT NULL ENABLE,
"ADSRESS_PATIENT" VARCHAR2(50),
"TELEPHONE_PATIENT" VARCHAR2(10) CONSTRAINT "TEL_PAT_NN" NOT NULL ENABLE,
"EMPLOYEE_ID" NUMBER CONSTRAINT "DENTIST_PAT_NN" NOT NULL DISABLE,
CONSTRAINT "PK_PATIENT" PRIMARY KEY ("PATIENT_ID") ENABLE,
CONSTRAINT "PACIENT_CON" UNIQUE ("TELEFON_PACIENT") ENABLE
ALTER TABLE "PATIENT" ADD CONSTRAINT "PATIENT_CON3" FOREIGN KEY ("Employee_ID")
REFERENCES "Dentist" ("Employee_ID") ON DELETE SET NULL ENABLE
Appointment
CREATE TABLE "Appointment"
( "Appointment_ID" NUMBER,
"Employee_ID" NUMBER CONSTRAINT "NN_Dentist_Appointment" NOT NULL ENABLE,
"Patient_ID" NUMBER CONSTRAINT "NN_PATIENT_Appointment" NOT NULL ENABLE,
"Who_Made" NUMBER,
"Who_Changed" NUMBER,
"Who_Canceled" NUMBER,
"Content" VARCHAR2(1000),
"DATE" DATE,
CONSTRAINT "PK_Appointment" PRIMARY KEY ("Appointment_ID") ENABLE
ALTER TABLE "Appointment" ADD CONSTRAINT "Appointment_CON" FOREIGN KEY ("Patient_ID")
REFERENCES "PATIENT" ("Patient_ID") ENABLE
ALTER TABLE "Appointment" ADD FOREIGN KEY ("Employee_ID")
REFERENCES "Dentist" ("Employee_ID") ENABLE
ALTER TABLE "Appointment" ADD FOREIGN KEY ("Who_Made")
REFERENCES "Employee" ("Employee_ID") ENABLE
ALTER TABLE "Appointment" ADD FOREIGN KEY ("Who_Changed")
REFERENCES "Employee" ("Employee_ID") ENABLE
ALTER TABLE "Appointment" ADD FOREIGN KEY ("Who_Canceled")
REFERENCES "Employee" ("Employee_ID") ENABLE
Dentist
CREATE TABLE "Dentist"
( "Employee_ID" NUMBER,
"Qualifications" VARCHAR2(50),
CONSTRAINT "RB_VRAB_STOMATOLOG_PK" PRIMARY KEY ("Employee_ID") ENABLE
ALTER TABLE "Employee_ID" ADD CONSTRAINT "Dentist_CON" FOREIGN KEY ("Employee_ID")
REFERENCES "Employee" ("Employee_ID") ON DELETE CASCADE ENABLE
I'm trying to make an application in Oracle Application Express and I've tried making an SQL report using the following SQL query:
CREATE OR REPLACE FORCE VIEW "Appointment_REPORT" ("DOCTOR", "PATIENT", "Content", "Date") AS
select concat(concat(v.name,' '),v.surname) as doctor, concat(concat(pa.name_patient,' '),pa.surname_patient) as pactent, p.content, p.date
from Appointment p, Amployee v, Patient pa
where
v.employee_id=p.employee_id
and p.patient_id=pa.patient_id
The SQL works fine and gives me lovely results in my report. However, I don't know how to link the SQL to my actual Appointment table. Deleting, updating or creating new appointments through this view is impossible because I get the following error Unexpected error, unable to find item name at application or page level.
I understand how to make a form on the Appointment table but given how that table contains lots of primary keys (numbers) it's not preferable for the user to have to deal with that.
Can I have some help with linking the two and making it functional?
Thanks in advance.982909 wrote:
Hello.
I have several tables with the sql bellow:You are digging yourself a DEEP hole by using double quote marks & Mixed Case table & column names!
>
CREATE TABLE "Appointment"
( "Appointment_ID" NUMBER,
"Employee_ID" NUMBER CONSTRAINT "NN_Dentist_Appointment" NOT NULL ENABLE,
"Patient_ID" NUMBER CONSTRAINT "NN_PATIENT_Appointment" NOT NULL ENABLE,
"Who_Made" NUMBER,
"Who_Changed" NUMBER,
"Who_Canceled" NUMBER,
"Content" VARCHAR2(1000),
"DATE" DATE,
AVOID using Reserved Words like "DATE" as column or table names!
>
I'm trying to make an application in Oracle Application Express and I've tried making an SQL report using the following SQL query:
CREATE OR REPLACE FORCE VIEW "Appointment_REPORT" ("DOCTOR", "PATIENT", "Content", "Date") AS
select concat(concat(v.name,' '),v.surname) as doctor, concat(concat(pa.name_patient,' '),pa.surname_patient) as pactent, p.content, p.date
from Appointment p, Amployee v, Patient pa
where
v.employee_id=p.employee_id
and p.patient_id=pa.patient_id
The SQL works fine and gives me lovely results in my report. However, I don't know how to link the SQL to my actual Appointment table. Deleting, updating or creating new appointments through this view is impossible because I get the following error Unexpected error, unable to find item name at application or page level.
I understand how to make a form on the Appointment table but given how that table contains lots of primary keys (numbers) it's not preferable for the user to have to deal with that.
Any table can have only ONE Primary Key.
Can I have some help with linking the two and to which "two" do you refer?
making it functional?Since you have told us what functionality is desired or expected,
I don't know what might be a solution. -
How to Get Opportunity Detail's in appointment ?
Hi ,
I am working with a report with Opportunity and Appointment Detail's . If i Select Opportunity fields from Appointment(Activity) subject area i am Error as *"+No results+*
*+This problem may be due to the lack of data or a filter too restrictive+"*
But There are many data and i did not put any filters .
It is a simple Report, the columns are:
EX :
*Ratio = No of Opportunity ~ No of Appointment*
*|User Name | No of Opportunity | No of Appointment | Ratio |*
| Samuel | 25 | 25 | 5 |
| James | 15 | 12 | 3 |
| Thomas | 20 | 18 | 2 |
Please Help Me to solve this ... My Mail ID : [email protected] you can also mail to me ...
Thanks in advance .+
Edited by: Uthaya on Sep 8, 2010 11:48 PMhi
Try with history analysis report
Activity History
regards
raajprabha -
Query started taking longer time with SQL*Net message from dblink
Hi,
Since Yesterday we started see one query which normally used to take 3 min but now it started taking 70 min after a small change do the query instead of accessing view we started accessing directly table.
Both Schema's are on same DB.
Oracle version=11.2.0.2
OS=Solaris 10
Existing Query
WITH ot_symbol_data_v AS
(SELECT dat.symbol, dat.startdate, dat.enddate, oi.currencycode,
dat.primarymarket, primsymb.symbol primarysymbol, dat.mic,
dat.universeid, dat.symbology
FROM onetick_symbol_data@refdata_link dat
LEFT JOIN
(SELECT symbology, universeid, mic, MAX (enddate) enddate
FROM onetick_symbol_data@refdata_link
GROUP BY symbology, universeid, mic) prim
ON prim.symbology = dat.symbology
AND prim.universeid = dat.universeid
AND prim.mic = dat.primarymarket
LEFT JOIN onetick_symbol_data@refdata_link primsymb
ON prim.symbology = primsymb.symbology
AND prim.universeid = primsymb.universeid
AND prim.mic = primsymb.mic
AND prim.enddate = primsymb.enddate
JOIN onetick_isincur_data@refdata_link oi
ON dat.universeid = oi.universeid
JOIN
(SELECT universeid, MAX (enddate) AS enddate
FROM onetick_isincur_data@refdata_link
GROUP BY universeid) oilatest
ON oi.universeid = oilatest.universeid
AND oi.enddate = oilatest.enddate
ORDER BY dat.universeid, dat.mic, dat.symbology, dat.enddate)
SELECT i.instrumentid
|| '||'
|| i.firsttradingdate
|| '000000|'
|| NVL (i.delisteddate, '30001231')
|| '000000|'
|| i.home_market
|| '|'
|| DECODE (imfm.feedid, 0, 'FIXN_RFA', 1, 'ALGO', 2, 'FIXNETIX')
|| '::'
|| osdv.primarysymbol
FROM tibex_meinstrumentview i JOIN tibex_instrumentmicfeedmapview imfm
ON i.isin = imfm.isin
AND i.currencycode = imfm.currencycode
AND i.home_market = imfm.mic
JOIN rd_universeview@refdata_link u
ON i.instrumentid = u.instrumentid AND i.instrumentstatus != 3
and active='Y'
JOIN
(SELECT universeid, DECODE (symbology, 1, 0, 2, 2, -1) feedid,
primarysymbol
FROM ot_symbol_data_v
GROUP BY universeid, symbology, primarysymbol) osdv
ON u.universeid = osdv.universeid
WHERE osdv.feedid = imfm.feedid
ORDER BY i.isin, i.currencycode, i.instrumentid;
New Query
WITH ot_symbol_data_v AS
(SELECT dat.symbol, dat.startdate, dat.enddate, oi.currencycode,
dat.primarymarket, primsymb.symbol primarysymbol, dat.mic,
dat.universeid, dat.symbology
FROM onetick_symbol_data@refdata_link dat
LEFT JOIN
(SELECT symbology, universeid, mic, MAX (enddate) enddate
FROM onetick_symbol_data@refdata_link
GROUP BY symbology, universeid, mic) prim
ON prim.symbology = dat.symbology
AND prim.universeid = dat.universeid
AND prim.mic = dat.primarymarket
LEFT JOIN onetick_symbol_data@refdata_link primsymb
ON prim.symbology = primsymb.symbology
AND prim.universeid = primsymb.universeid
AND prim.mic = primsymb.mic
AND prim.enddate = primsymb.enddate
JOIN onetick_isincur_data@refdata_link oi
ON dat.universeid = oi.universeid
JOIN
(SELECT universeid, MAX (enddate) AS enddate
FROM onetick_isincur_data@refdata_link
GROUP BY universeid) oilatest
ON oi.universeid = oilatest.universeid
AND oi.enddate = oilatest.enddate
ORDER BY dat.universeid, dat.mic, dat.symbology, dat.enddate)
SELECT i.instrumentid
|| '||'
|| i.firsttradingdate
|| '000000|'
|| NVL (i.delisteddate, '30001231')
|| '000000|'
|| i.home_market
|| '|'
|| DECODE (imfm.feedid, 0, 'FIXN_RFA', 1, 'ALGO', 2, 'FIXNETIX')
|| '::'
|| osdv.primarysymbol
FROM tibex_meinstrumentview i JOIN tibex_instrumentmicfeedmapview imfm
ON i.isin = imfm.isin
AND i.currencycode = imfm.currencycode
AND i.home_market = imfm.mic
JOIN universe@refdata_link u
ON i.instrumentid = u.instrumentid AND i.instrumentstatus != 3
and active='Y'
JOIN
(SELECT universeid, DECODE (symbology, 1, 0, 2, 2, -1) feedid,
primarysymbol
FROM ot_symbol_data_v
GROUP BY universeid, symbology, primarysymbol) osdv
ON u.universeid = osdv.universeid
WHERE osdv.feedid = imfm.feedid
ORDER BY i.isin, i.currencycode, i.instrumentid;Most of the wait event is
SQL*Net message from dblink
SQL*Net message to dblink
Regards
NMHi Kim,
uat_trd_owner@UAT001> select * from table(dbms_xplan.display);
PLAN_TABLE_OUTPUT
Plan hash value: 741667790
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | Inst |IN-OUT|
| 0 | SELECT STATEMENT | | 1 | 137 | 21981 (2)| 00:04:24 | | |
| 1 | SORT ORDER BY | | 1 | 137 | 21981 (2)| 00:04:24 | | |
|* 2 | HASH JOIN OUTER | | 1 | 137 | 21980 (2)| 00:04:24 | | |
|* 3 | HASH JOIN OUTER | | 1 | 131 | 422 (4)| 00:00:06 | | |
| 4 | NESTED LOOPS | | | | | | | |
| 5 | NESTED LOOPS | | 1 | 125 | 107 (9)| 00:00:02 | | |
| 6 | NESTED LOOPS | | 20 | 1680 | 87 (11)| 00:00:02 | | |
|* 7 | HASH JOIN | | 1 | 64 | 86 (11)| 00:00:02 | | |
| 8 | VIEW | TIBEX_INSTRUMENTMICFEEDMAPVIEW | 1 | 34 | 84 (9)| 00:00:02 | | |
| 9 | HASH GROUP BY | | 1 | 166 | 84 (9)| 00:00:02 | | |
|* 10 | HASH JOIN RIGHT OUTER | | 267 | 44322 | 83 (8)| 00:00:01 | | |
| 11 | TABLE ACCESS FULL | TIBEX_BOARDFEEDMAP | 1 | 20 | 3 (0)| 00:00:01 | | |
| 12 | NESTED LOOPS OUTER | | 267 | 38982 | 80 (8)| 00:00:01 | | |
| 13 | NESTED LOOPS OUTER | | 267 | 21627 | 80 (8)| 00:00:01 | | |
|* 14 | HASH JOIN | | 267 | 17088 | 80 (8)| 00:00:01 | | |
| 15 | MERGE JOIN CARTESIAN | | 2004 | 88176 | 37 (0)| 00:00:01 | | |
| 16 | INDEX FULL SCAN | TIBEX_EDPDEFAULTFEED_PK | 1 | 3 | 1 (0)| 00:00:01 | | |
| 17 | BUFFER SORT | | 2004 | 82164 | 36 (0)| 00:00:01 | | |
|* 18 | TABLE ACCESS FULL | TIBEX_INSTRUMENT | 2004 | 82164 | 36 (0)| 00:00:01 | | |
| 19 | VIEW | TIBEX_EDPINSTRUMENTMARKETSVIEW | 22040 | 430K| 42 (12)| 00:00:01 | | |
| 20 | HASH GROUP BY | | 22040 | 430K| 42 (12)| 00:00:01 | | |
| 21 | VIEW | | 22040 | 430K| 41 (10)| 00:00:01 | | |
| 22 | SORT UNIQUE | | 22040 | 544K| 41 (57)| 00:00:01 | | |
| 23 | UNION-ALL | | | | | | | |
| 24 | INDEX FAST FULL SCAN| TIBEX_EDPFIXNETIXL1_R01 | 7578 | 162K| 18 (0)| 00:00:01 | | |
| 25 | TABLE ACCESS FULL | TIBEX_EDPIXSYMBOLS | 7494 | 197K| 12 (0)| 00:00:01 | | |
| 26 | TABLE ACCESS FULL | TIBEX_EDPRFALGOSUBSCRIPTION | 6968 | 183K| 7 (0)| 00:00:01 | | |
|* 27 | INDEX RANGE SCAN | TIBEX_MICFEEDMAP_PK | 1 | 17 | 0 (0)| 00:00:01 | | |
| 28 | TABLE ACCESS BY INDEX ROWID| TIBEX_INSTRUMENTFEEDMAP | 1 | 65 | 0 (0)| 00:00:01 | | |
|* 29 | INDEX UNIQUE SCAN | TIBEX_INSTRUMENTFEEDMAP_PK | 1 | | 0 (0)| 00:00:01 | | |
| 30 | VIEW | | 100 | 3000 | 1 (100)| 00:00:01 | | |
| 31 | REMOTE | | | | | | REFDA~ | R->S |
| 32 | REMOTE | UNIVERSE | 20 | 400 | 1 (0)| 00:00:01 | REFDA~ | R->S |
|* 33 | INDEX UNIQUE SCAN | XPKTIBEX_INSTRUMENT | 1 | | 0 (0)| 00:00:01 | | |
|* 34 | TABLE ACCESS BY INDEX ROWID | TIBEX_INSTRUMENT | 1 | 41 | 1 (0)| 00:00:01 | | |
| 35 | VIEW | TIBEX_MELASTEXPRICEINTVIEW | 36 | 216 | 314 (2)| 00:00:04 | | |
| 36 | HASH UNIQUE | | 36 | 1656 | 314 (2)| 00:00:04 | | |
|* 37 | HASH JOIN | | 36 | 1656 | 313 (1)| 00:00:04 | | |
| 38 | VIEW | VW_SQ_1 | 304 | 5776 | 157 (2)| 00:00:02 | | |
| 39 | HASH GROUP BY | | 304 | 7296 | 157 (2)| 00:00:02 | | |
|* 40 | TABLE ACCESS FULL | TIBEX_EXECUTION | 17462 | 409K| 156 (1)| 00:00:02 | | |
| 41 | TABLE ACCESS FULL | TIBEX_EXECUTION | 17463 | 460K| 156 (1)| 00:00:02 | | |
| 42 | VIEW | TIBEX_MSGSEQBYINSTRUMENT | 3908 | 23448 | 21558 (2)| 00:04:19 | | |
| 43 | HASH GROUP BY | | 3908 | 74252 | 21558 (2)| 00:04:19 | | |
| 44 | VIEW | | 11626 | 215K| 21556 (2)| 00:04:19 | | |
| 45 | UNION-ALL | | | | | | | |
| 46 | HASH GROUP BY | | 1460 | 26280 | 8906 (1)| 00:01:47 | | |
| 47 | TABLE ACCESS FULL | TIBEX_QUOTE | 1362K| 23M| 8866 (1)| 00:01:47 | | |
| 48 | HASH GROUP BY | | 677 | 12186 | 11750 (2)| 00:02:21 | | |
| 49 | TABLE ACCESS FULL | TIBEX_ORDER | 1790K| 30M| 11696 (1)| 00:02:21 | | |
| 50 | HASH GROUP BY | | 304 | 5472 | 157 (2)| 00:00:02 | | |
|* 51 | TABLE ACCESS FULL | TIBEX_EXECUTION | 17463 | 306K| 156 (1)| 00:00:02 | | |
| 52 | HASH GROUP BY | | 1 | 40 | 3 (34)| 00:00:01 | | |
|* 53 | TABLE ACCESS FULL | TIBEX_TSTRADE | 1 | 40 | 2 (0)| 00:00:01 | | |
| 54 | HASH GROUP BY | | 717 | 11472 | 229 (1)| 00:00:03 | | |
| 55 | INDEX FAST FULL SCAN | IX_BESTEXREL | 7323 | 114K| 228 (0)| 00:00:03 | | |
| 56 | HASH GROUP BY | | 1911 | 34398 | 13 (8)| 00:00:01 | | |
|* 57 | TABLE ACCESS FULL | TIBEX_MERESUMEPRDTRANSITION | 5216 | 93888 | 12 (0)| 00:00:01 | | |
PLAN_TABLE_OUTPUT
| 58 | HASH GROUP BY | | 3 | 51 | 5 (20)| 00:00:01 | | |
| 59 | TABLE ACCESS FULL | TIBEX_EDPUPDATEREJECT | 48 | 816 | 4 (0)| 00:00:01 | | |
| 60 | HASH GROUP BY | | 1587 | 46023 | 215 (2)| 00:00:03 | | |
|* 61 | HASH JOIN | | 35166 | 995K| 213 (1)| 00:00:03 | | |
| 62 | INDEX FULL SCAN | XPKTIBEX_CONFIGMEGROUP | 4 | 16 | 1 (0)| 00:00:01 | | |
| 63 | TABLE ACCESS FULL | TIBEX_INSTRUMENTADMIN | 87915 | 2146K| 212 (1)| 00:00:03 | | |
| 64 | HASH GROUP BY | | 6 | 102 | 5 (20)| 00:00:01 | | |
| 65 | TABLE ACCESS FULL | TIBEX_BESTEXECPRICELOG | 793 | 13481 | 4 (0)| 00:00:01 | | |
| 66 | HASH GROUP BY | | 1 | 40 | 3 (34)| 00:00:01 | | |
|* 67 | TABLE ACCESS FULL | TIBEX_AUCTIONPRICE | 1 | 40 | 2 (0)| 00:00:01 | | |
| 68 | HASH GROUP BY | | 1587 | 28566 | 236 (2)| 00:00:03 | | |
|* 69 | TABLE ACCESS FULL | TIBEX_ADMINACK | 87915 | 1545K| 233 (1)| 00:00:03 | | |
| 70 | HASH GROUP BY | | 1914 | 34452 | 26 (8)| 00:00:01 | | |
| 71 | INDEX FAST FULL SCAN | INSTRUMENTSTATEMSGSEQ | 23705 | 416K| 24 (0)| 00:00:01 | | |
| 72 | HASH GROUP BY | | 1458 | 26244 | 8 (13)| 00:00:01 | | |
| 73 | INDEX FAST FULL SCAN | TIBEX_FREEZEEOTPK | 5890 | 103K| 7 (0)| 00:00:01 | | |
Predicate Information (identified by operation id):
2 - access("A"."INSTRUMENTID"="C"."INSTRUMENTID"(+))
3 - access("A"."INSTRUMENTID"="B"."INSTRUMENTID"(+))
7 - access("OSDV"."FEEDID"="IMFM"."FEEDID")
10 - access("I"."PRIMARYSTATUSBOARDID"="BOARDFM"."BOARDID"(+))
14 - access("SUBSC"."ISIN"="I"."ISIN" AND "SUBSC"."CURRENCYCODE"="I"."CURRENCYCODE")
filter("SUBSC"."HOMEMARKET" IS NULL OR "SUBSC"."HOMEMARKET"="I"."HOME_MARKET")
18 - filter("I"."INSTRUMENTSTATUS"<>3)
27 - access("SUBSC"."MIC"="MICFM"."MIC"(+))
29 - access("I"."INSTRUMENTID"="INSTRFM"."INSTRUMENTID"(+))
33 - access("A"."INSTRUMENTID"="U"."INSTRUMENTID")
34 - filter("A"."INSTRUMENTSTATUS"<>3 AND TO_DATE("A"."FIRSTTRADINGDATE",'YYYYMMDD')<=SYSDATE@! AND "A"."ISIN"="IMFM"."ISIN"
AND "A"."CURRENCYCODE"="IMFM"."CURRENCYCODE" AND "A"."HOME_MARKET"="IMFM"."MIC")
37 - access("A"."MESSAGESEQUENCE"="MAX(B.MESSAGESEQUENCE)" AND "A"."INSTRUMENTID"="ITEM_0")
40 - filter(("B"."SELLENTITYTYPE"=0 OR "B"."SELLENTITYTYPE"=2) AND ("B"."BUYENTITYTYPE"=0 OR "B"."BUYENTITYTYPE"=2))
51 - filter("INSTRUMENTID" IS NOT NULL)
53 - filter("INSTRUMENTID" IS NOT NULL)
57 - filter("INSTRUMENTID" IS NOT NULL)
61 - access("ADMINUSER"="MEGROUPID")
67 - filter("INSTRUMENTID" IS NOT NULL)
69 - filter("INSTRUMENTID" IS NOT NULL)
Remote SQL Information (identified by operation id):
31 - EXPLAIN PLAN INTO PLAN_TABLE@! FOR SELECT "A1"."UNIVERSEID",DECODE("A1"."SYMBOLOGY",1,0,2,2,(-1)),"A1"."PRIMARYSYMBOL"
FROM (SELECT "A6"."SYMBOL" "SYMBOL","A6"."STARTDATE" "STARTDATE","A6"."ENDDATE" "ENDDATE","A3"."CURRENCYCODE"
"CURRENCYCODE","A6"."PRIMARYMARKET" "PRIMARYMARKET","A4"."SYMBOL" "PRIMARYSYMBOL","A6"."MIC" "MIC","A6"."UNIVERSEID"
"UNIVERSEID","A6"."SYMBOLOGY" "SYMBOLOGY" FROM "ONETICK_SYMBOL_DATA" "A6", (SELECT "A7"."SYMBOLOGY"
"SYMBOLOGY","A7"."UNIVERSEID" "UNIVERSEID","A7"."MIC" "MIC",MAX("A7"."ENDDATE") "ENDDATE" FROM "ONETICK_SYMBOL_DATA" "A7" GROUP
BY "A7"."SYMBOLOGY","A7"."UNIVERSEID","A7"."MIC") "A5","ONETICK_SYMBOL_DATA" "A4","ONETICK_ISINCUR_DATA" "A3", (SELECT
"A8"."UNIVERSEID" "UNIVERSEID",MAX("A8"."ENDDATE") "ENDDATE" FROM "ONETICK_ISINCUR_DATA" "A8" GROUP BY "A8"."UNIVERSEID") "A2"
WHERE "A3"."UNIVERSEID"="A2"."UNIVERSEID" AND "A3"."ENDDATE"="A2"."ENDDATE" AND "A6"."UNIVERSEID"="A3"."UNIVERSEID" AND
"A5"."ENDDATE"="A4"."ENDDATE"(+) AND "A5"."MIC"="A4"."MIC"(+) AND "A5"."UNIVERSEID"="A4"."UNIVERSEID"(+) AND
"A5"."SYMBOLOGY"="A4"."SYMBOLOGY"(+) AND "A5"."MIC"(+)="A6"."PRIMARYMARKET" AND "A5"."UNIVERSEID"(+)="A6"."UNIVERSEID" AND
"A5"."SYMBOLOGY"(+)="A6"."SYMBOLOGY" ORDER BY "A6"."UNIVERSEID","A6"."MIC","A6"."SYMBOLOGY","A6"."ENDDATE") "A1" GROUP BY
"A1"."UNIVERSEID","A1"."SYMBOLOGY","A1"."PRIMARYSYMBOL" (accessing 'REFDATA_LINK' )
32 - SELECT "INSTRUMENTID","UNIVERSEID" FROM "UNIVERSE" "U" WHERE "UNIVERSEID"=:1 (accessing 'REFDATA_LINK' )
127 rows selected.
For trace files
WAIT #18446741324892119016: nam='SQL*Net message to client' ela= 2 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=42151855125079
WAIT #18446741324892119016: nam='SQL*Net message from client' ela= 182 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=42151855125694
=====================
PARSING IN CURSOR #18446741324892117968 len=52 dep=0 uid=474 oct=47 lid=474 tim=42151855125777 hv=1029988163 ad='af4d0890' sqlid='9babjv8yq8ru3'
BEGIN DBMS_OUTPUT.GET_LINES(:LINES, :NUMLINES); END;
END OF STMT
PARSE #18446741324892117968:c=0,e=42,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=1,plh=0,tim=42151855125769
WAIT #18446741324892117968: nam='SQL*Net message to client' ela= 2 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=42151855126145
EXEC #18446741324892117968:c=0,e=262,p=0,cr=0,cu=0,mis=0,r=1,dep=0,og=1,plh=0,tim=42151855126176
*** 2012-11-20 15:18:56.839
WAIT #18446741324892117968: nam='SQL*Net message from client' ela= 10252982 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=42151865379208
CLOSE #18446741324892119016:c=0,e=13,dep=0,type=1,tim=42151865379327
CLOSE #18446741324892117968:c=0,e=28,dep=0,type=3,tim=42151865379370
WAIT #18446741324892082152: nam='single-task message' ela= 47849 p1=0 p2=0 p3=0 obj#=-1 tim=42151865429221
WAIT #18446741324892082152: nam='SQL*Net message from dblink' ela= 107 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=42151865429886
WAIT #18446741324892082152: nam='SQL*Net message to dblink' ela= 2 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=42151865429945
WAIT #18446741324892082152: nam='SQL*Net message from dblink' ela= 926 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=42151865430901
WAIT #18446741324892082152: nam='SQL*Net message to dblink' ela= 2 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=42151865431578
WAIT #18446741324892082152: nam='SQL*Net message from dblink' ela= 2525 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=42151865434125
WAIT #18446741324892082152: nam='SQL*Net message to dblink' ela= 1 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=42151894670108
WAIT #18446741324892082152: nam='SQL*Net message from dblink' ela= 58 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=42151894670178
WAIT #18446741324892082152: nam='SQL*Net message to dblink' ela= 0 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=42151894670235
WAIT #18446741324892082152: nam='SQL*Net message from dblink' ela= 60 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=42151894670310
WAIT #18446741324892082152: nam='SQL*Net message to dblink' ela= 1 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=42151894670337
WAIT #18446741324892082152: nam='SQL*Net message from dblink' ela= 59 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=42151894670407
WAIT #18446741324892082152: nam='SQL*Net message to dblink' ela= 0 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=42151894670464
WAIT #18446741324892082152: nam='SQL*Net message from dblink' ela= 60 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=42151894670539
WAIT #18446741324892082152: nam='SQL*Net message to dblink' ela= 1 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=42151894670566
WAIT #18446741324892082152: nam='SQL*Net message from dblink' ela= 59 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=42151894670636
WAIT #18446741324892082152: nam='SQL*Net message to dblink' ela= 1 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=42151894670693
WAIT #18446741324892082152: nam='SQL*Net message from dblink' ela= 60 driver id=1413697536 #bytes=1 p3=0 obj#=-1 tim=42151894670768Regards
NM -
Passing field value from appoinment into task
Hi,
I need to pass the field values from appointment into the task. I was able to pass values from one record type to another but in this case as both appointment and task belong to the same record type namely activity and they are having the same foreign key namely ActivityId.
So any one please tell me , is it possible to pass values from appointment in to the task or not ?
If so how?
Thanks,
Kirubahar.
Edited by: Kiruba on Mar 4, 2011 6:45 AMWrite a workflow and select the field you want to copy the value into in the Field Name and the value you want to copy in value field, you don't need to use joinfieldValue at all.
cheers
Alex -
Lotus Notes's Calendar Appointment Form
Hi
I am facing a typical problem regarding extracting data from Lotus Notes Calendar Appointment Form through Java programme.
I need to check the appointment of a user on a particular day so that I can fix the meeting in order to avoid the clash with user's existing appointment.
So, I am running a sql query like select description, TimeRange (A field in Appointment from if you open it in Designer) from Appointment where startdate = "2001-06-27".
Now, It is showing me StartDateTime, Description.I am getting StartDateTime,Description and Date but not able to extract EndDateTime. I need EndDateTime so that I can make out that user is busy for some job from 3 to 4 pm let us say for this particular date so, fix the meeting at some another time.
I hope i have cleared my doubt. Please let me know the solution of above problem. My mail id is [email protected] and [email protected]
Thanks
Rakesh
StartDateTimeHi Jim
I am using Lotus Domino Driver 1.1 for making connection with Lotus Notes Database. You can download it from www.lotus.com/developers/devbase.nsf/homedata/homejdbc.
Everything is fine i.e it is connected to db, data is also coming but the problem is still solved which i have written. Please help me out.
Thanks
Rakesh -
On my Palm Pre, it was easy to get alerts from appointment reminders and other apps to repeat if you miss the initial audible notification alert. Unfortunately, with iOS, there seems to be no way to get the alerts to repeat. So, for example, if I have my phone on the charger and miss an appointment reminder, I will not know that I missed it. But if the alert could be programmed to repeat until I acknowledge it, then I wouldn't miss it.
It would also be useful to be notified by repeating audible alert missed Skype calls, missed Voxer communiqués, etc.
Any way to get unacknowledged alerts to repeat?What your asking is not possible with iOS. Please give Apple your feedback here http://www.apple.com/feedback/
-
Can you check for data in one table or another but not both in one query?
I have a situation where I need to link two tables together but the data may be in another (archive) table or different records are in both but I want the latest record from either table:
ACCOUNT
AccountID Name
123 John Doe
124 Jane Donaldson
125 Harold Douglas
MARKETER_ACCOUNT
Key AccountID Marketer StartDate EndDate
1001 123 10526 8/3/2008 9/27/2009
1017 123 10987 9/28/2009 12/31/4712 (high date ~ which means currently with this marketer)
1023 124 10541 12/03/2010 12/31/4712
ARCHIVE
Key AccountID Marketer StartDate EndDate
1015 124 10526 8/3/2008 12/02/2010
1033 125 10987 01/01/2011 01/31/2012
So my query needs to return the following:
123 John Doe 10526 8/3/2008 9/27/2009
124 Jane Donaldson 10541 12/03/2010 12/31/4712 (this is the later of the two records for this account between archive and marketer_account tables)
125 Harold Douglas 10987 01/01/2011 01/31/2012 (he is only in archive, so get this record)
I'm unsure how to proceed in one query. Note that I am reading in possibly multiple accounts at a time and returning a collection back to .net
open CURSOR_ACCT
select AccountID
from
ACCOUNT A,
MARKETER_ACCOUNT M,
ARCHIVE R
where A.AccountID = nvl((select max(M.EndDate) from Marketer_account M2
where M2.AccountID = A.AccountID),
(select max(R.EndDate) from Archive R2
where R2.AccountID = A.AccountID)
and upper(A.Name) like parameter || '%'
<can you do a NVL like this? probably not... I want to be able to get the MAX record for that account off the MarketerACcount table OR the max record for that account off the Archive table, but not both>
(parameter could be "DO", so I return all names starting with DO...)if I understand your description I would assume that for John Dow we would expect the second row from marketer_account ("high date ~ which means currently with this marketer"). Here is a solution with analytic functions:
drop table account;
drop table marketer_account;
drop table marketer_account_archive;
create table account (
id number
, name varchar2(20)
insert into account values (123, 'John Doe');
insert into account values (124, 'Jane Donaldson');
insert into account values (125, 'Harold Douglas');
create table marketer_account (
key number
, AccountId number
, MktKey number
, FromDt date
, ToDate date
insert into marketer_account values (1001, 123, 10526, to_date('03.08.2008', 'dd.mm.yyyy'), to_date('27.09.2009', 'dd.mm.yyyy'));
insert into marketer_account values (1017, 123, 10987, to_date('28.09.2009', 'dd.mm.yyyy'), to_date('31.12.4712', 'dd.mm.yyyy'));
insert into marketer_account values (1023, 124, 10541, to_date('03.12.2010', 'dd.mm.yyyy'), to_date('31.12.4712', 'dd.mm.yyyy'));
create table marketer_account_archive (
key number
, AccountId number
, MktKey number
, FromDt date
, ToDate date
insert into marketer_account_archive values (1015, 124, 10526, to_date('03.08.2008', 'dd.mm.yyyy'), to_date('02.12.2010', 'dd.mm.yyyy'));
insert into marketer_account_archive values (1033, 125, 10987, to_date('01.01.2011', 'dd.mm.yyyy'), to_date('31.01.2012', 'dd.mm.yyyy'));
select key, AccountId, MktKey, FromDt, ToDate
, max(FromDt) over(partition by AccountId) max_FromDt
from marketer_account
union all
select key, AccountId, MktKey, FromDt, ToDate
, max(FromDt) over(partition by AccountId) max_FromDt
from marketer_account_archive;
with
basedata as (
select key, AccountId, MktKey, FromDt, ToDate
from marketer_account
union all
select key, AccountId, MktKey, FromDt, ToDate
from marketer_account_archive
basedata_with_max_intervals as (
select key, AccountId, MktKey, FromDt, ToDate
, row_number() over(partition by AccountId order by FromDt desc) FromDt_Rank
from basedata
filtered_basedata as (
select key, AccountId, MktKey, FromDt, ToDate from basedata_with_max_intervals where FromDt_Rank = 1
select a.id
, a.name
, b.MktKey
, b.FromDt
, b.ToDate
from account a
join filtered_basedata b
on (a.id = b.AccountId)
ID NAME MKTKEY FROMDT TODATE
123 John Doe 10987 28.09.2009 31.12.4712
124 Jane Donaldson 10541 03.12.2010 31.12.4712
125 Harold Douglas 10987 01.01.2011 31.01.2012
If your tables are big it could be necessary to do the filtering (according to your condition) in an early step (the first CTE).
Regards
Martin -
Action with start condition always triggers
Functionality required: "when its 4 days from the actual date an
Audit is to take place an e-mail should be triggered to the
audit attendees"
I have created a new date rule (4 days before - reminder) and
added this date rule to the date profile 000000000003. I am
using this date profile in my actions and have set a new start
condition to trigger an e-mail alert when "todays date" = my new
date rule. I have set up scheduled conditions which are met.
when i create transactions which meet both the scheduled and
start conditions (from my perspective) the action is getting
triggered to send the e-mail reminder. My new date rule is as
follows:
<?xml version="1.0"?>
<TimeRule>
<TimeRuleSource>
<ruleline>
<AssignTimeExp displaytype="AssignTime">
<VarTimeExp displayType="VarTime"
name="RESULT"
position='B'>
<VarObjectExp displaytype="VarObject"
name="SYSTEM"/>
</VarTimeExp>
<MoveTimeExp displaytype="MoveTime" direction="-">
<VarTimeExp displayType="VarTime"
name="ORDERACTUAL"
position="B">
<VarObjectExp displaytype="VarObject"
name="SYSTEM"/>
</VarTimeExp>
<ConstDuraExp displaytype="ConstDura"
duration="4" timeunit="DAY">
<VarObjectExp displaytype="VarObject"
name="SYSTEM"/>
</ConstDuraExp>
</MoveTimeExp>
</AssignTimeExp>
</ruleline>
</TimeRuleSource>
When i test it using various dates it seems to work as expected, it returms false when it should fail and true when it should suceed When tested from within the date rule for the FROM and TO date for todays dates i get the following:
Deadlines
Appointment Type RESULT
From SA 10.02.2007 14:27:52 GMTUK
From
Appointment Type ORDERACTUAL
From WE 14.02.2007 14:27:52
To WE 14.02.2007 14:27:52
Duration
Reference Objects
SYSTEM GMTUK CL_TIMECALENDAR_SIMPLE
In my start condition i am testing for my date rule (4 days
before - reminder) = todays date.
Can anyone explain why my start condition is always being triggered
Thanks in advance
EdHello Easwar Ram,
Thanks for your reply.
No, I didn't create an Action Profile. I use standard profile: /SCWM/TU (Shipping & Receiving - Transportation Unit).
I only have created a new Action Definition, Schedule and Start Conditions for this Definition. All work correctly with the exception of the button 'Start Condition Parameter'.
I don't know why the button appears because I didn't define a Condition Parameter for the Start Condition. And when I click on this button I get an error in standard SAP code:
1) li_bor_object ?= l_context->appl.
2) ls_bor_handle = li_bor_object->get_bor_object( ip_objtype = l_objtype ).
L_context->appl has value '' in the debugger. After line 1 the value of the li_bor_object is '' therefore line 2 terminates the transaction with error.
Maybe this occurs because the Action Profile uses a Persistent Class for Object Type instead of a Business Object Repository? -
Problem with passing date parameters in cursor
Is there any problem in passing date parameters and like clause as below
CURSOR eftcursor(start_date DATE, end_date DATE, where_clause varchar2) IS
select * from r_records
where created_date between start_date and end_date and description like where_clause;
and in the open statement
select to_date('01/06/2010 00:00:00', 'dd/mm/yyyy hh24:mi:ss') into startDate from dual;
select to_date('01/07/2010 00:00:00', 'dd/mm/yyyy hh24:mi:ss') into endDate from dual;
str := '%something%aaaaa%';
open eftcursor(startDate ,endDate , str);
Do i need to do any kind of conversion in the cursor where clause or when i am passing the parameter in open statement.Almora wrote:
Do i need to do any kind of conversion in the cursor where clause or when i am passing the parameter in open statement.No, your code looks correct -- ou're passing a date to the cursor.
You might consider whether you really need an explicit cursor though. An implicit cursor is easier to code and performs better. -
How can I ensure a function is called only once in a query?
I have a function (in a package) that returns the start date and end date to be used by my query. The query was taking bind variables but when I updated it to use the function calls it slowed down a lot.
I tried creating an inline view that selects the start and end date and joins with the other table but this does not help. I thought the inline view would only be run once but this is not the case. I have my function print out a value from a sequence and i see that it is called thousands of times.
Why would the procedure call be so much slower?
How can I ensure that the function is only called once in the query?
This is what I currently have:
SELECT col1, col2
FROM aTable,
(SELECT proc.getStartdate startDate,
proc.getEndDate endDate
FROM dual) dt
WHERE aTable.theDate >= dt.startDate
AND aTable.theDate <= dt.endDate
ThanksThey get the begining and ending dates to be used by the query.
My application uses the Oracle Portal. Each user can select their date range and it is stored as a user preference. The portal API provides funcitons for retrieving the preferences and I have encapsulated it in my procedure so the developers do not need knowledge of the portal. If they just restrict their queries to the dates returned by this function they will get the needed data.
Our work around as been to pass these date variables around as bind variables. -
Testing an CMP EJB module against a Pointbase database and receiving an exception when trying a finder query :
javax.ejb.TransactionRolledbackLocalException: Exception
thrown from bean; nested exception is:
com.sun.jdo.api.persistence.support.JDODataStoreException: JDO77006: SQL
exception: state = null, error code = 0. NestedException:
java.sql.SQLException: Error in allocating a connection. Cause:
java.lang.RuntimeException: Got exception during XAResource.start
Within the NetBeans IDE, I can run a test sql query against the database using the JDBC-Pointbase driver and I get the list of records searched for. In the entity bean, which throws the exception, Im trying a finder method, findAll(), which uses the following EJB QL query: SELECT Object(o) FROM Appointment (o).
Im running the Sun application server platform edition 8.1 2005Q1 with jdk 1.5. I installed the Sun Application server using the NetBeans and Sun application server bundle and I accepted all the default configurations. The NetBeans version is 4.1 build 200505031930. The operating system is Windows 2000 SP4.
How should I start troubleshooting this exception?What are your connection settings? The appserver couldn't connect to the database for the reason given in the exception:
java.sql.SQLException: Error in allocating a connection. Cause:
java.lang.RuntimeException: Got exception during XAResource.start
XAResource sounds like problem with the transaction configuration to me.
-- markus. -
Could someone please check my code
I really do not know whether this code is booking the appointment or not!
The table in the database is apptNo INTEGER PRIMARY KEY NOT NULL AUTO_INCREMENT, doctorNo INTEGER NOT NULL, time INTEGER NOT NULL, date DATE NOT NULL, patient_userID INTEGER NOT NULL,
dateBooked TIMESTAMP NOT NULL);
Is this completely wrong, its supposed to check the date and time entered in the form, and if they equal a date and time already stored in the database then it should return false, however i am unaware of how to write this code so u can check against different doctor's availabilities.
Does this mean i need an availability table?
BOOKAPPT.JSP
<%@ page language="java"
import="java.sql.*, java.io.*, java.util.*, connection.*"
errorPage="error.jsp" %>
<jsp:useBean id="myconn" class="connection.cmhconn"/>
<html>
<head>
<title>Appointment Booked</title>
</head>
<body>
<% if(date == "date")&&(time == "time")
return false;
%>
<p><b><font size="4">Unable to book Appointment please choose another, date and time!</font></b></p>
<%
}else
myconn.connect();
String date = request.getParameter("apptdate");
int time = Integer.parseInt(request.getParameter("appttime"));
myconn.BookAppt(date, time);
myconn.disconnect();
myconn.connect();
int doctorNo = Integer.parseInt(request.getParameter("doctorNo"));
String dateBooked = request.getParameter("date");
myconn.addAppointment(doctorNo, dateBooked);
myconn.disconnect();
%>
Your Appointment has been booked!
<%
%>
</body>
</html>
The bean methods are here:
public ResultSet viewAppointment() throws SQLException, Exception
ResultSet result = null;
try
String queryString = ("SELECT * FROM appointment;");
Statement statement = con.createStatement();
result =statement.executeQuery(queryString);
catch (SQLException sqle)
error = "SQLException: Could not execute query.";
throw new SQLException(error);
catch (Exception e)
error = "Exception: An Exception occured while retrieving user data.";
throw new Exception(error);
return result;
public void addAppointment(int apptNo, int doctorNo, int time, String date, int patient_userID, String dateBooked)
throws SQLException, Exception
if (con != null)
try
PreparedStatement updateAppointment;
updateAppointment = con.prepareStatement("insert into appointment values('', ?, ?, ?, ?, ?);");
updateAppointment.setInt(1, apptNo);
updateAppointment.setInt(2, doctorNo);
updateAppointment.setInt(3, time);
updateAppointment.setString(4, date);
updateAppointment.setString(5, dateBooked);
updateAppointment.setInt(6, patient_userID);
updateAppointment.execute();
catch (SQLException sqle)
error = "SQLException: Update failed, possible duplicate entry";
throw new SQLException(error);
}else
error = "Exception: Connection to databse was lost!";
throw new Exception(error);
public ResultSet viewBookAppt() throws SQLException, Exception
ResultSet result = null;
try
String queryString = ("SELECT date, time FROM appointment;");
Statement statement = con.createStatement();
result =statement.executeQuery(queryString);
catch (SQLException sqle)
error = "SQLException: Could not execute query.";
throw new SQLException(error);
catch (Exception e)
error = "Exception: An Exception occured while retrieving user data.";
throw new Exception(error);
return result;
Thanks in advancedthey are declared in the bean,
public ResultSet viewBookAppt() throws SQLException, Exception
ResultSet result = null;
try
String queryString = ("SELECT date, time FROM appointment;");
Statement statement = con.createStatement();
result =statement.executeQuery(queryString);
catch (SQLException sqle)
error = "SQLException: Could not execute query.";
throw new SQLException(error);
catch (Exception e)
error = "Exception: An Exception occured while retrieving user data.";
throw new Exception(error);
return result;
If this is wrong please tell me how to fix the erro
Thanks again -
Need Help on List of Months between Two Dates
Hello everyone,
I have a table which has startdate & enddate, and need a SELECT statement to list all months between these two dates for each given ID.
I did some test, and could not figure out how to get the startdate & enddate from testing table (instead of hard code them) in the select statement.
Could anybody please help on it (Oracle 11gR2),
Thanks in advance!!!
create table testing(
id number,
start_date date,
end_date date);
insert into testing values(100, to_date('05-FEB-2011', 'DD-MON-YYYY'), to_date('28-MAY-2011', 'DD-MON-YYYY'));
insert into testing values(200, to_date('20-JUN-2011', 'DD-MON-YYYY'), to_date('28-DEC-2011', 'DD-MON-YYYY'));
commit;
select * from testing;
ID START_DAT END_DATE
100 05-FEB-11 28-MAY-11
200 20-JUN-11 28-DEC-11
Elapsed: 00:00:00.01
*for testing.id = 100:*
select to_char(add_months(to_date('05-FEB-2011', 'DD-MON-YYYY'), l - 1), 'YYYY-Mon') Dates
from (select level l
from dual
connect by level <= months_between(trunc(to_date('28-MAY-2011', 'DD-MON-YYYY'), 'MONTH'),
trunc(to_date('05-FEB-2011', 'DD-MON-YYYY'), 'MONTH')) + 1);
DATES
2011-Feb
2011-Mar
2011-Apr
2011-May
Elapsed: 00:00:00.01
*for testing.id = 200:*
select to_char(add_months(to_date('20-JUN-2011', 'DD-MON-YYYY'), l - 1), 'YYYY-Mon') Dates
from (select level l
from dual
connect by level <= months_between(trunc(to_date('28-DEC-2011', 'DD-MON-YYYY'), 'MONTH'),
trunc(to_date('20-JUN-2011', 'DD-MON-YYYY'), 'MONTH')) + 1);
DATES
2011-Jun
2011-Jul
2011-Aug
2011-Sep
2011-Oct
2011-Nov
2011-Dec
7 rows selected.SQL> select * from testing
2 /
ID START_DAT END_DATE
100 05-FEB-11 28-MAY-11
200 20-JUN-11 28-DEC-11
SQL> select id,
2 to_char(add_months(start_date,column_value - 1),'YYYY-Mon') dates
3 from testing,
4 table(
5 cast(
6 multiset(
7 select level
8 from dual
9 connect by add_months(trunc(start_date,'MM'),level - 1) <= end_date
10 )
11 as sys.OdciNumberList
12 )
13 )
14 order by id,
15 column_value
16 /
ID DATES
100 2011-Feb
100 2011-Mar
100 2011-Apr
100 2011-May
200 2011-Jun
200 2011-Jul
200 2011-Aug
200 2011-Sep
200 2011-Oct
200 2011-Nov
200 2011-Dec
11 rows selected.
SQL> SY.
Maybe you are looking for
-
iMovie is gonna make me go insane. please help.
-
Problem with HP Photosmart 7510
Everytime I go to print something on my HP Photosmart 7510 printer I have to shut down the printer and restart it to print anything. It's almost like it goes into sleep mode but doesn't "wake up"
-
I just had a call from an anxious client who has opened her imap email account at home and all 6000 emails are downloading at once (slowly). I have opened the same account on webmail and could see her inbox with no issues, however I then 'checked ema
-
How can I copy and paste events in the calendar?
Does anyone know how to cut and paste or copy and past events in the calendar? The events happen at different times and on different days so I can't just "repeat". Thanks in advance!
-
Using iPhoto Libraries for Wallpaper with Windows XP running in VMWare
I have Windows XP running in a VMWare Fusion virtual setup - ie no bootcamp. I'm guessing this isn't possible, but here goes.... I have all my desktop wallpaper in iPhoto, all my data is on the Mac HDD I'd like to use the libraries for Windows as wel