This type of report ,possible in APEX 3.1(URGENT)
EMPNO: 1234
ENAME: X7C7
DESCRIPTION: DSLFJDSL SDFSDF DFKDSLFJ
SDLFJSDLF DSFSDLFJS FDKFDF
ADDRESS: 23/567/9B
This is a Form like Report, can we create this type of report in
APEX 3.1
David,
that's a good one ! - you are right ! one does not expect that layout as per that name of the template !
I'll go for it !
Meanwhile I tried a "workaround" by creating an own template from scratch - but that is quite timeconsuming as per this recommendation of Larry Linnemeyer:
How to Copy Vertical Report Template
Thanks to Larry !
THXS.
Bernhard
Similar Messages
-
Is this type of query possible (select with rows stopping based on match)
I'm trying to write a SQL query and suspect it can't be done. Or at least, I can't mentally grasp it, despite various stabs with subqueries. I've simplified it by changing the metaphor here a little.
Let's say I have a truck in some city (say, Chicago). There are various roads leading out of that city, with routes we'll label according to compass points (N, NE, SW, etc.) Each truck can carry only one shipment. It starts going along its road, and as soon as it comes to a city that needs its shipment, it stops.
Yes, a cooked example, but it's similar to my problem.
Here is a table:
TABLE: truck_routes
scenario (integer - different possible scenarios)
route (NE, SW, etc. - 8 compass directions)
destination (cities along that road)
sequence_number (order in which to go to those cities)
So if I have a trucks in Chicago, I can say
SELECT route, sequence_number, destination
FROM truck_routes
WHERE scenario = 10 (or whatever)
ORDER BY road_out, sequence_number;
And I'd get a report like this:
SE 1 Gary
SE 2 Valparaiso
SE 3 Plymouth
SE 4 Warsaw
NE 1 Michigan City
NE 2 Kalamazoo
NE 3 Grand Rapids
NE 4 Cadillac
NE 5 Traverse City
So far so good. I have another table with a list of cities that need to receive the shipment:
TABLE: cities
scenario (integer - different possible scenarios)
route (NE, SW, etc. - 8 compass directions)
destination (same keys as in truck_routes)
e.g.:
10 SE Valparaiso
10 SE Warsaw
10 NE Cadillac
10 NE Traverse City
Now...the tricky part...how do I rewrite the query above so that after a truck hits a city that needs a shipment (in that scenario) it stops? In other words, I want a report (for all routes) of what cities the truck will stop at - and as mentioned, it stops at the first one it makes a delivery. I don't want to see rows beyond that. So the report would look like this:
SE 1 Gary
SE 2 Valparaiso
NE 1 Michigan City
NE 2 Kalamazoo
NE 3 Grand Rapids
NE 4 Cadillac
Gary shows up because it doesn't require a delivery. Valparaiso (SE route, sequence_number 2) shows up because it takes the delivery. The rest of the Southeast route doesn't show up. Same thing for the NE route.
There are scenarios where I'd actually want to stop at the city just prior to the delivery destination, etc., and of course in the real world it's more complicated, but I think if I could get this model working I could flesh it out into a real-world query.
I can certainly code something in PL/SQL to do this, or do it in application logic - but I'm wondering if there is a way to do it in a single SQL statement? I suspect there's something that could be built with subqueries and sorting, but...I can't quite reach it ;-)WITH report AS(
SELECT 'SE' route, '1' seq_num, 'Gary' dest FROM DUAL UNION ALL
SELECT 'SE' route, '2' seq_num, 'Valparaiso' dest FROM DUAL UNION ALL
SELECT 'SE' route, '3' seq_num, 'Plymouth' dest FROM DUAL UNION ALL
SELECT 'SE' route, '4' seq_num, 'Warsaw' dest FROM DUAL UNION ALL
SELECT 'NE' route, '1' seq_num, 'Michigan City' dest FROM DUAL UNION ALL
SELECT 'NE' route, '2' seq_num, 'Kalamazoo' dest FROM DUAL UNION ALL
SELECT 'NE' route, '3' seq_num, 'Grand Rapids' dest FROM DUAL UNION ALL
SELECT 'NE' route, '4' seq_num, 'Cadillac' dest FROM DUAL UNION ALL
SELECT 'NE' route, '5' seq_num, 'Traverse City' dest FROM DUAL
cities AS (
SELECT '10' scenario, 'SE' route, 'Valparaiso' city FROM DUAL UNION ALL
SELECT '10' scenario, 'SE' route, 'Warsaw' city FROM DUAL UNION ALL
SELECT '10' scenario, 'NE' route, 'Cadillac' city FROM DUAL UNION ALL
SELECT '10' scenario, 'NE' route, 'Traverse City' city FROM DUAL
need_a_shipment AS (
SELECT r.*
, CASE WHEN EXISTS( SELECT 'Y' FROM cities c WHERE c.route = r.route AND c.city = r.dest )
THEN 'Y'
ELSE 'N'
END need_a_shipment
FROM report r
SELECT route
, seq_num
, dest
, need_a_shipment
FROM need_a_shipment n
WHERE seq_num <= ( SELECT MIN(seq_num) FROM need_a_shipment
WHERE route = n.route AND need_a_shipment = 'Y' )
ORDER BY route DESC, seq_num
ROUTE SEQ_NUM DEST NEED_A_SHIPMENT
SE 1 Gary N
SE 2 Valparaiso Y
NE 1 Michigan City N
NE 2 Kalamazoo N
NE 3 Grand Rapids N
NE 4 Cadillac Y -
Adobe Offline Form - Parse method is not possible for this type
Hi All,
I have developed an application for the offline scenario of interactive adobe form. I tried to load the adobe form from my desktop. After pressing the button "Display form" it throws an error "Parse method is not possible for this type".
If I include wdContext.getNodeInfo().getAttribute("pdfObject").getModifiableSimpleType() in the doInit() method of the view I receive this error -
com.sap.tc.webdynpro.progmodel.context.ContextException: MappedAttributeInfo(UploadView.pdfObject): must not modify the datatype of a mapped attribute
When I comment it out and upload I receive the error enclosed -
Parse method is not possible for this type
Can someone please help me with a step by step solution to this problem?
Any help is highly appreciated.
Many thanks,
DivyaHi Divya,
Please try to do it as stated below:
IWDAttributeInfo attInfo = wdContext.getNodeInfo().getAttribute("pdfObject");
ISimpleTypeModifiable type = attInfo.getModifiableSimpleType();
IWDModifiableBinaryType binaryType = (IWDModifiableBinaryType)type;
Try putting the code in wdInit() or wdDoModifyView().
Let me know if you still face the issue.
Regards,
Arafat -
Parse method is not possible for this type
I have a file upload component and one button in a view.
I have created a binary type context element and mapped it with fileupload component.while clicking the submit button I am getting " Parse method is not possible for this type" exception.
help me out.
Thanks In advanceHi,
Thanks for your response. I have written the following code in wddoinit():
IWDAttributeInfo attributeinfo = wdContext.getNodeInfo().getAttribute(IPrivateSubstanceDocView.IFileUpload02Element.DATA);
attributeinfo.getModifiableSimpleType();
fileUpload02 is my context.
but I am getting a null pointer exception over here.
can ypu please help it.
Actually the case is this is a window, which is opening on click of a hyperlink on another View.
With the action method I am calling this View.
Thus on click of a hyperlink just I am opening a new View then here I am a browse button etc...
PLease help if you can -
Parse method is not possible for this type Exception in web dynpro
I have a file upload component and one button in a view.
I have created a binary type context element and mapped it with fileupload component.while clicking the submit button I am getting " Parse method is not possible for this type" exception.
help me out.Hi sridhar,
Use this code for Upload
context u create one attribute(up),u assign the data type as "Resource"(which is dictionary type)
InputStream text = null;
int temp = 0;
try
File file = new File(wdContext.currentContextElement().getUp().getResourceName());
FileOutputStream op = new FileOutputStream(file);
if(wdContext.currentContextElement().getUp()!=null)
text = wdContext.currentContextElement().getUp().read(false);
while((temp=text.read())!=-1)
op.write(temp);
op.flush();
op.close();
catch(Exception e)
e.printStackTrace(); -
Interval Since Last Panic Report: 2617 sec
Panics Since Last Report: 2
Anonymous UUID: 6D168E95-73E2-470A-B075-A63E48DC381F
Wed Sep 7 07:27:01 2011
panic(cpu 1 caller 0x9d4c97): NVRM[0/1:0:0]: Read Error 0x00003250: CFG 0xffffffff 0xffffffff 0x92000000, BAR0 0x92000000 0x37051000 0x084700a2, D0, P2/4
Backtrace (CPU 1), Frame : Return Address (4 potential args on stack)
0x36cd3958 : 0x21b837 (0x5dd7fc 0x36cd398c 0x223ce1 0x0)
0x36cd39a8 : 0x9d4c97 (0xbea22c 0xc5a840 0xbf8f88 0x0)
0x36cd3a48 : 0x1758a7d (0x6300004 0x5750004 0x3250 0x0)
0x36cd3a88 : 0x173eba0 (0x5750004 0x3250 0x36cd3ab8 0xae7b76)
0x36cd3ab8 : 0x174274f (0x5750004 0x678d004 0x36cd3bc0 0x0)
0x36cd3c18 : 0xadaabb (0x5750004 0x678d004 0x62f30c8 0x0)
0x36cd3c58 : 0xb59cee (0x5750004 0x678d004 0x62f30c8 0x62f3004)
0x36cd3d08 : 0xb5b2df (0x5750004 0x62f7004 0x0 0x0)
0x36cd3d98 : 0xb5d743 (0x5750004 0x62f7004 0x8 0x2)
0x36cd3de8 : 0x17b8283 (0x5750004 0x62f7004 0x0 0x0)
0x36cd3e38 : 0xb5d85b (0x5750004 0x62f7004 0x0 0x0)
0x36cd3ea8 : 0x9c5779 (0x5750004 0x0 0x0 0x0)
0x36cd3f48 : 0x976057 (0x5750004 0x582335c 0x36cd3f68 0x1)
0x36cd3f78 : 0x230235 (0x6318000 0x5750004 0x36cd3fc8 0x552f8c)
0x36cd3fc8 : 0x2a179c (0x863ea0 0x0 0x10 0x6b66a84)
Kernel Extensions in backtrace (with dependencies):
com.apple.nvidia.nv50hal(6.3.6)@0x1656000->0x1a6afff
dependency: com.apple.NVDAResman(6.3.6)@0x96e000
com.apple.NVDAResman(6.3.6)@0x96e000->0xc5bfff
dependency: com.apple.iokit.IOPCIFamily(2.6.5)@0x928000
dependency: com.apple.iokit.IONDRVSupport(2.2)@0x961000
dependency: com.apple.iokit.IOGraphicsFamily(2.2)@0x93f000
BSD process name corresponding to current thread: kernel_task
Mac OS version:
10K549
Kernel version:
Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386
System model name: MacBookPro4,1 (Mac-F42C89C8)
System uptime in nanoseconds: 1480140575764
unloaded kexts:
com.apple.driver.AirPortBrcm43xx 423.91.27 (addr 0xee0000, size 0x1900544) - last unloaded 128268772192
loaded kexts:
com.apple.driver.AppleHWSensor 1.9.3d0 - last loaded 28582227965
com.apple.driver.AppleUpstreamUserClient 3.5.7
com.apple.driver.AppleMCCSControl 1.0.20
com.apple.driver.AudioAUUC 1.57
com.apple.GeForce 6.3.6
com.apple.driver.SMCMotionSensor 3.0.1d2
com.apple.kext.AppleSMCLMU 1.5.2d10
com.apple.filesystems.autofs 2.1.0
com.apple.driver.AppleHDA 2.0.5f14
com.apple.Dont_Steal_Mac_OS_X 7.0.0
com.apple.driver.AudioIPCDriver 1.1.6
com.apple.driver.AppleIntelPenrynProfile 17
com.apple.driver.AppleLPC 1.5.1
com.apple.driver.AppleBacklight 170.0.46
com.apple.driver.ACPI_SMC_PlatformPlugin 4.7.0a1
com.apple.driver.AppleUSBTCButtons 201.6
com.apple.driver.AppleUSBTCKeyboard 201.6
com.apple.driver.AppleIRController 303.8
com.apple.iokit.SCSITaskUserClient 2.6.8
com.apple.BootCache 31.1
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1
com.apple.driver.AirPortBrcm43224 428.42.4
com.apple.iokit.IOAHCIBlockStorage 1.6.4
com.apple.driver.AppleAHCIPort 2.1.7
com.apple.driver.AppleFWOHCI 4.7.3
com.apple.driver.AppleUSBHub 4.2.4
com.apple.driver.AppleIntelPIIXATA 2.5.1
com.apple.iokit.AppleYukon2 3.2.1b1
com.apple.driver.AppleUSBEHCI 4.2.4
com.apple.driver.AppleSmartBatteryManager 160.0.0
com.apple.driver.AppleEFINVRAM 1.4.0
com.apple.driver.AppleRTC 1.3.1
com.apple.driver.AppleHPET 1.5
com.apple.driver.AppleUSBUHCI 4.2.0
com.apple.driver.AppleACPIButtons 1.3.6
com.apple.driver.AppleSMBIOS 1.7
com.apple.driver.AppleACPIEC 1.3.6
com.apple.driver.AppleAPIC 1.4
com.apple.driver.AppleIntelCPUPowerManagementClient 142.6.0
com.apple.security.sandbox 1
com.apple.security.quarantine 0
com.apple.nke.applicationfirewall 2.1.12
com.apple.driver.AppleIntelCPUPowerManagement 142.6.0
com.apple.driver.AppleProfileReadCounterAction 17
com.apple.driver.AppleProfileTimestampAction 10
com.apple.driver.AppleProfileThreadInfoAction 14
com.apple.driver.AppleProfileRegisterStateAction 10
com.apple.driver.AppleProfileKEventAction 10
com.apple.driver.AppleProfileCallstackAction 20
com.apple.iokit.IOFireWireIP 2.0.3
com.apple.nvidia.nv50hal 6.3.6
com.apple.NVDAResman 6.3.6
com.apple.driver.DspFuncLib 2.0.5f14
com.apple.iokit.IOSurface 74.2
com.apple.iokit.IOBluetoothSerialManager 2.4.5f3
com.apple.iokit.IOSerialFamily 10.0.3
com.apple.iokit.IOAudioFamily 1.8.3fc2
com.apple.kext.OSvKernDSPLib 1.3
com.apple.driver.AppleHDAController 2.0.5f14
com.apple.iokit.IOHDAFamily 2.0.5f14
com.apple.iokit.AppleProfileFamily 41
com.apple.driver.AppleBacklightExpert 1.0.1
com.apple.iokit.IONDRVSupport 2.2
com.apple.iokit.IOGraphicsFamily 2.2
com.apple.driver.AppleSMC 3.1.0d5
com.apple.driver.IOPlatformPluginFamily 4.7.0a1
com.apple.driver.BroadcomUSBBluetoothHCIController 2.4.5f3
com.apple.driver.AppleUSBBluetoothHCIController 2.4.5f3
com.apple.iokit.IOBluetoothFamily 2.4.5f3
com.apple.driver.AppleUSBMultitouch 207.7
com.apple.iokit.IOUSBHIDDriver 4.2.0
com.apple.driver.AppleUSBMergeNub 4.2.4
com.apple.driver.AppleUSBComposite 3.9.0
com.apple.iokit.IOSCSIMultimediaCommandsDevice 2.6.8
com.apple.iokit.IOBDStorageFamily 1.6
com.apple.iokit.IODVDStorageFamily 1.6
com.apple.iokit.IOCDStorageFamily 1.6.1
com.apple.driver.XsanFilter 402.1
com.apple.iokit.IO80211Family 320.1
com.apple.iokit.IOATAPIProtocolTransport 2.5.1
com.apple.iokit.IOSCSIArchitectureModelFamily 2.6.8
com.apple.iokit.IOAHCIFamily 2.0.6
com.apple.iokit.IOFireWireFamily 4.2.6
com.apple.iokit.IOUSBUserClient 4.2.4
com.apple.iokit.IOATAFamily 2.5.1
com.apple.iokit.IONetworkingFamily 1.10
com.apple.driver.AppleEFIRuntime 1.4.0
com.apple.iokit.IOUSBFamily 4.2.4
com.apple.iokit.IOHIDFamily 1.6.6
com.apple.iokit.IOSMBusFamily 1.1
com.apple.kext.AppleMatch 1.0.0d1
com.apple.security.TMSafetyNet 6
com.apple.driver.DiskImages 289.1
com.apple.iokit.IOStorageFamily 1.6.3
com.apple.driver.AppleACPIPlatform 1.3.6
com.apple.iokit.IOPCIFamily 2.6.5
com.apple.iokit.IOACPIFamily 1.3.0
Model: MacBookPro4,1, BootROM MBP41.00C1.B03, 2 processors, Intel Core 2 Duo, 2.4 GHz, 2 GB, SMC 1.27f3
Graphics: NVIDIA GeForce 8600M GT, GeForce 8600M GT, PCIe, 256 MB
Memory Module: global_name
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x8C), Broadcom BCM43xx 1.0 (5.10.131.42.4)
Bluetooth: Version 2.4.5f3, 2 service, 19 devices, 1 incoming serial ports
Network Service: AirPort, AirPort, en1
Serial ATA Device: FUJITSU MHY2200BH, 186.31 GB
Parallel ATA Device: MATSHITADVD-R UJ-867
USB Device: Built-in iSight, 0x05ac (Apple Inc.), 0x8502, 0xfd400000 / 2
USB Device: BRCM2046 Hub, 0x0a5c (Broadcom Corp.), 0x4500, 0x1a100000 / 2
USB Device: Bluetooth USB Host Controller, 0x05ac (Apple Inc.), 0x820f, 0x1a110000 / 5
USB Device: Apple Internal Keyboard / Trackpad, 0x05ac (Apple Inc.), 0x0230, 0x5d200000 / 3
USB Device: IR Receiver, 0x05ac (Apple Inc.), 0x8242, 0x5d100000 / 2Yes, others have seen this type of error:
Frequent Panic NVRM[0/1:0:0]: Read...: Apple Support Communities
The conclusion in that thread was that it was a logic-board failure. -
Is it possible to create this type of EFFECT in After Effect
http://www.simonbronson.com/#326097/hmv-xmas-2009
Is it possible to do This type of Graphic Effect in After Effect..?I assume that you're referring to the twisty 3D ribbons.
Zaxwerks 3D Serpentine is good for that:
http://zaxwerks.com/3dserpentine/index.shtml -
Is it possible to make this type of network with router i have?
I have Linksys WRT54GC router at home and i share internet to all my PCs through the router.
Is it possible to share internet firstly through my PC, and then through this router to all other pcs? If it is possible how i should configure my router? If not - do i have to buy some kind of switch to make this type of network?
Example scheme:
(Net)
---------------------------- PC1 (with 2 NIC)
(routing) /
router ------/
| |___ PC2
\___ PC3
I have now this configuration of my PC's and router, but internet on PC2 is not working, but PC2 and router see each other. But ping between PC1 and router (192.168.0.1 192.168.0.2) says "no response":
MY FIRST PC:
http://www.improx.info/mypc.JPG
http://www.improx.info/mypc_2.JPG
Router:
http://www.improx.info/router_1.JPG
http://www.improx.info/router_2.JPG
http://www.improx.info/router_3.JPG
PC2:
http://www.improx.info/pc2.JPG
or i tried this:
http://www.improx.info/pc2_var2.JPG
http://www.improx.info/router_var2.JPG
Sorry for bad english.
Best regards,
Arnas
Message Edited by imuk on 12-19-2007 07:24 AMIt is not clear to me what the exact problem is. The screenshots show that everything is correct. The second PC should have internet with this setup. PC1 won't be able to ping the router on 192.168.0.2 if you block ICMP (anonymous WAN requests) on the router. That setting should be on the Security tab.
I would suggest to set up the WRT as simple wireless access point. That way you still have full LAN connectivity between all your computers. To do that, you have to temporarily wire a computer to a LAN port of the router. Unplug the gateway computer from the router! There is only a single computer connected to the WRT at the moment.
Open http://10.10.10.1/ or whatever LAN IP address you have set on the WRT at the moment. On the Setup tab, change the internet connection type to "Automatic/DHCP", change the LAN IP address from 10.10.10.1 to 192.168.0.2, disable the DHCP server. Now press the save settings button. You'll loose the connection to the router. That's OK.
Now rewire the router. Connect a LAN port of the router to the gateway computer. Do not use the internet port on the WRT! That is the basic setup.
Now wired computers connected to the remaining 3 LAN ports on the WRT should have LAN and internet access. In the same way, wireless clients connect into the ICS LAN and have internet. -
would like to use apex_item to popup a calculator for a text item field, is this possible in apex 4.2.2?
I imagine you could reverse engineer what APEX delivers when you declaratively choose text field with calculator.
For example, the generated source includes an event:
onclick="calculatorPopUp_p_t01();"
These get added to the attributes of your apex_item.text() call.
Alternatively you just paste the entire generated content, escaping the necessary data. -
You are unable create reports on this type of universe
I Created a BW query in Bex Query Designer.By using that Query I created a Universe in Universe Designer. I Exported the universe with Everyone Acess rights.Now, I tried to build a report on this Universe using Desktop Intelligence.When I tried to acess the Universe it is giving the error " you are not authorized to create reports on this type of universe".
So,Please resolve this problem anyone .Hi,
Desktop Intelligence does not support OLAP universes. You should use Web Intelligence to build reports on your universe. Or Crystal Reports but in this case you have to use the BW MDX driver directly.
Regards,
Stratos -
Is it possible to pass on a typedef documentation to a variable of this type?
For documentation purposes and a better readability, I document typedefs by filling in its properties. Sadly, when I create a variable of this type, the comment does not show up in the context help box when moving over the variable. Is there a way to combine the documentation automatically (by configuring LV?
I don't want to document each variable of the typedef and I don't want to write a programme which does this for me.
Thanks a lot!md001 wrote:
No what I mean is when the control type def is open, enter the documentation using the properties of the control itself (the variable), not the control properties accessible through the icon in the top right corner of the control type def (see below).
Also, the documentation of any variable created from the typedef will be the documentation in the typedef at the time of the creation of the variable. If you want the to be able to change the documentation and have the documentations of all the previously created variables updated at the same time, you have to use a "Strict Type Def" instead of simply a "Type Def".
I was under the impression that he was creating constants, since he was talking about "variables."
Bill
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all. -
Need advise on SQL Report base for APEX or jasper
Hello everyone,
I need some advise on how to approach this below report requirement. It has been bugging me for nearly 2 weeks now, and my time is running out.
Here is a simplified version of the database
Four tables: Defendant, Engagement, Service, Event.
A defendant can have more than 1 engagement, but they have only one open engagement at a time.
For each engagement, they will have services and events.
These events can be just general events or events that relates to the service.
Here is the script for the tables and sample data
CREATE TABLE "DEFENDANT"
("DEF_ID" NUMBER,
"FIRST_NAME" VARCHAR2(50 BYTE),
"LAST_NAME" VARCHAR2(50 BYTE),
"ACTIVE" NUMBER DEFAULT 1
Insert into DEFENDANT (DEF_ID,FIRST_NAME,LAST_NAME,ACTIVE) values (1,'Joe','Bloggs',1);
Insert into DEFENDANT (DEF_ID,FIRST_NAME,LAST_NAME,ACTIVE) values (2,'John','Doe',1);
CREATE TABLE "ENGAGEMENT"
("ENG_ID" NUMBER,
"DEF_ID" NUMBER,
"COURT_NAME" VARCHAR2(20 BYTE),
"DATE_JOINED" DATE,
"DATE_TERMINATED" DATE,
"ETHNICITY" VARCHAR2(50 BYTE),
"ACTIVE" VARCHAR2(20 BYTE)
Insert into ENGAGEMENT (ENG_ID,DEF_ID,COURT_NAME,DATE_JOINED,DATE_TERMINATED,ETHNICITY,ACTIVE) values (1,1,'AAA',to_date('01/09/12','DD/MM/RR'),to_date('20/09/12','DD/MM/RR'),'European','1');
Insert into ENGAGEMENT (ENG_ID,DEF_ID,COURT_NAME,DATE_JOINED,DATE_TERMINATED,ETHNICITY,ACTIVE) values (2,2,'BBB',to_date('01/10/12','DD/MM/RR'),null,'Asian','1');
Insert into ENGAGEMENT (ENG_ID,DEF_ID,COURT_NAME,DATE_JOINED,DATE_TERMINATED,ETHNICITY,ACTIVE) values (3,1,'AAA',to_date('22/09/12','DD/MM/RR'),null,'European','1');
CREATE TABLE "EVENT"
("EVENT_ID" NUMBER,
"ENG_ID" NUMBER,
"NOTES" VARCHAR2(20 BYTE),
"RELATED_SERVICE_ID" NUMBER,
"START_DATE" DATE,
"END_DATE" DATE,
"ACTIVE" NUMBER DEFAULT 1
Insert into EVENT (EVENT_ID,ENG_ID,NOTES,RELATED_SERVICE_ID,START_DATE,END_DATE,ACTIVE) values (1,1,null,1,to_date('01/09/12','DD/MM/RR'),to_date('02/09/12','DD/MM/RR'),1);
Insert into EVENT (EVENT_ID,ENG_ID,NOTES,RELATED_SERVICE_ID,START_DATE,END_DATE,ACTIVE) values (2,1,null,1,to_date('23/09/12','DD/MM/RR'),null,1);
Insert into EVENT (EVENT_ID,ENG_ID,NOTES,RELATED_SERVICE_ID,START_DATE,END_DATE,ACTIVE) values (3,1,null,2,to_date('15/10/12','DD/MM/RR'),to_date('16/10/12','DD/MM/RR'),1);
Insert into EVENT (EVENT_ID,ENG_ID,NOTES,RELATED_SERVICE_ID,START_DATE,END_DATE,ACTIVE) values (4,2,null,null,to_date('02/10/12','DD/MM/RR'),null,1);
Insert into EVENT (EVENT_ID,ENG_ID,NOTES,RELATED_SERVICE_ID,START_DATE,END_DATE,ACTIVE) values (5,2,null,2,to_date('03/10/12','DD/MM/RR'),null,1);
Insert into EVENT (EVENT_ID,ENG_ID,NOTES,RELATED_SERVICE_ID,START_DATE,END_DATE,ACTIVE) values (6,3,null,null,to_date('22/09/12','DD/MM/RR'),to_date('23/09/12','DD/MM/RR'),1);
Insert into EVENT (EVENT_ID,ENG_ID,NOTES,RELATED_SERVICE_ID,START_DATE,END_DATE,ACTIVE) values (7,3,null,4,to_date('23/09/12','DD/MM/RR'),null,1);
Insert into EVENT (EVENT_ID,ENG_ID,NOTES,RELATED_SERVICE_ID,START_DATE,END_DATE,ACTIVE) values (8,2,null,null,to_date('12/10/12','DD/MM/RR'),null,1);
CREATE TABLE "SERVICE"
( "SERVICE_ID" NUMBER,
"ENG_ID" NUMBER,
"DESCRIPTION" VARCHAR2(200 BYTE),
"DATE_STARTED" DATE,
"DATE_TERMINATED" DATE,
"ACTIVE" NUMBER DEFAULT 1
Insert into SERVICE (SERVICE_ID,ENG_ID,DESCRIPTION,DATE_STARTED,DATE_TERMINATED,ACTIVE) values (1,1,'Counselling',to_date('15/09/12','DD/MM/RR'),to_date('18/09/12','DD/MM/RR'),1);
Insert into SERVICE (SERVICE_ID,ENG_ID,DESCRIPTION,DATE_STARTED,DATE_TERMINATED,ACTIVE) values (2,1,'Housing',to_date('20/09/12','DD/MM/RR'),null,1);
Insert into SERVICE (SERVICE_ID,ENG_ID,DESCRIPTION,DATE_STARTED,DATE_TERMINATED,ACTIVE) values (3,2,'Treatment',to_date('01/10/12','DD/MM/RR'),to_date('15/10/12','DD/MM/RR'),1);
Insert into SERVICE (SERVICE_ID,ENG_ID,DESCRIPTION,DATE_STARTED,DATE_TERMINATED,ACTIVE) values (4,3,'Housing',null,null,1);
Insert into SERVICE (SERVICE_ID,ENG_ID,DESCRIPTION,DATE_STARTED,DATE_TERMINATED,ACTIVE) values (5,1,'Other',to_date('05/10/12','DD/MM/RR'),null,0);
Insert into SERVICE (SERVICE_ID,ENG_ID,DESCRIPTION,DATE_STARTED,DATE_TERMINATED,ACTIVE) values (6,2,'Treatment',to_date('16/10/12','DD/MM/RR'),null,1);****
And this is the view I am thinking to use as the base for the report
CREATE OR REPLACE FORCE VIEW "BASE_VW"
AS
SELECT Def.Def_Id,
Def.First_Name,
Def.Last_Name,
Eng.Eng_Id,
Eng.Court_Name,
Eng.Date_Joined,
Eng.Date_Terminated,
Eng.Ethnicity,
Ser.Service_Id,
Ser.Description,
Ser.Date_Started AS Service_Start_Date,
Ser.Date_Terminated AS Service_Date_Terminated,
Ser.Active AS Service_Active,
Ev.Event_Id,
Ev.Related_Service_Id,
Ev.Start_Date,
Ev.End_Date,
Ev.Notes,
ev.active AS event_active
FROM Defendant Def
LEFT OUTER JOIN Engagement Eng
ON Def.Def_Id = Eng.Def_Id
LEFT OUTER JOIN Service Ser
ON Eng.Eng_Id = Ser.Eng_Id
LEFT OUTER JOIN Event Ev
ON Ev.Eng_Id = Eng.Eng_Id;****
Requirement:
Report parameter: Start Date, End Date, Court_name
From chosen Court_name, list defendants who currently engage in the court.
For each defendant display
Section 1: Identifying Details: First Name, Last Name, Ethnicity, Date Joined Court
Section 2: All Services currently active that the defendant attend
Section 3: All Events that related to the service that the defendant attend
Section 4: All other events (don't have Related Service ID)
User must be able to download the whole report in spreadsheet or PDF format.
I did try to create a set of union selects (but the format is not that good, when no data return it display nothing, I would rather show some messages like "There is no associated events, rather than nothing")
and it only produces report for 1 defendant at a time.
We use Oracle APEX , so only select statement or PL/SQL Code return select statement is valid for report source.
In our place we use Jasper Report adjacent to APEX, but I have very little experience with Jasper report.
The developer who knows a lot about jasper report is too busy to help me.
Currently, I use union selects like below:
With Current_Engagement As
( Select Eng_Id From Engagement
Where Def_Id =2
And Date_Joined Is Not Null
And ( Date_Terminated Is Null Or Date_Terminated > Sysdate)
And Rownum =1
Select '1.Defendant ID' as col1, 'First Name' as col2, 'Last Name' as col3, 'Court Name' as col4, 'Ethnicity' as col5, 'Date Joined' as col6, 'Date Terminated' as col7
From Dual
Union All
Select Distinct to_char(Def_Id), First_Name, Last_Name, Court_Name, Ethnicity, to_char(Date_Joined), to_char(Date_Terminated)
From Base_Vw Inner Join Current_Engagement Ce On Base_Vw.Eng_Id = Ce.Eng_Id
Union All
select '2.Service ID', 'Service Description', 'Start Date', 'End Date', Null, Null, Null
from dual
Union All
Select distinct to_char(service_id), description, to_char(service_start_date), to_char(service_date_terminated), null, null, null
From Base_Vw Inner Join Current_Engagement Ce On Base_Vw.Eng_Id = Ce.Eng_Id
where service_active =1
Union All
Select '3.Event ID', 'Related Service ID', 'Start Date', 'End date', 'Notes', null, null
From Dual
Union All
Select distinct to_char(event_id), to_char(related_service_id), to_char(start_date), to_char(end_date), notes, null, null
from Base_Vw Inner Join Current_Engagement Ce On Base_Vw.Eng_Id = Ce.Eng_Id
Where Event_Active = 1
and related_service_id is not null
Union All
Select '4.Event ID', 'Start Date', 'End date', 'Notes', null, null, null
From Dual
Union All
Select distinct to_char(event_id), to_char(start_date), to_char(end_date), notes, null, null, null
From Base_Vw Inner Join Current_Engagement Ce On Base_Vw.Eng_Id = Ce.Eng_Id
Where Event_Active = 1
and related_service_id is nulland the result is kind of what I try to achieve (except that I need to work on display a message 'No data found' rather than nothing), But it seems that my code works only for one defendant.
COL1 COL2 COL3 COL4 COL5 COL6 COL7
1.Defendant ID First Name Last Name Court Name Ethnicity Date Joined Date Terminated
2 John Doe BBB Asian 01/10/12
2.Service ID Service Description Start Date End Date
3 Treatment 01/10/12 15/10/12
6 Treatment 16/10/12
3.Event ID Related Service ID Start Date End date Notes
5 2 03/10/12
4.Event ID Start Date End date Notes
4 02/10/12
8 12/10/12
10 rows selected
However, I struggle to find a way to apply this to more than 1 defendant and still keep the format.
Defendant 1
All details related to defendant 1
Defendant 2
All details relayed to defendant 2
Defendant n
All details relayed to defendant nIs it possible to display a report as above by using only SQL script ?
Thanks a lot in advance. I am willing to compensate financially to someone who can give me a solution.
Edited by: Ann586341. View base_vw SQL script is fixed.Thanks a lot Jeneesh. (You are really a guru.)
It is nearly 98% what the requirements ask for.
I just have one more question.
If I add more information into the database, just one more defendant
Insert into DEFENDANT (DEF_ID,FIRST_NAME,LAST_NAME,ACTIVE) values (3,'Minnie','Mouse',1);
--and one in Engagement table
Insert into ENGAGEMENT (ENG_ID,DEF_ID,COURT_NAME,DATE_JOINED,DATE_TERMINATED,ETHNICITY,ACTIVE) values (4,3,'BBB',to_date('05/10/12','DD/MM/RR'),null,'Latin America','1');Then I run the select statment again (without changing anything)
With Current_Engagement As
( Select Eng_Id
From Engagement
Where /*Def_Id =2
And*/ Date_Joined Is Not Null
And ( Date_Terminated Is Null Or Date_Terminated > Sysdate)
--And Rownum =1
titles as
( Select .9 dummy_rn,'1.Defendant ID' as col1, 'First Name' as col2, 'Last Name' as col3,
'Court Name' as col4, 'Ethnicity' as col5, 'Date Joined' as col6,
'Date Terminated' as col7
From Dual
union all
select 1.9,'2.Service ID', 'Service Description', 'Start Date', 'End Date',
Null, Null, Null
from dual
union all
Select 2.9,'3.Event ID', 'Related Service ID', 'Start Date', 'End date', 'Notes',
null, null
From Dual
Union All
Select 3.9,'4.Event ID', 'Start Date', 'End date', 'Notes', null, null, null
From Dual
all_titles as
( select dummy_rn,eng_id,col1,col2,col3,col4,col5,col6,col7
from current_engagement,titles
select col1,col2,col3,col4,col5,col6,col7
from (
select dummy_rn,eng_id,col1,col2,col3,col4,col5,col6,col7
from all_titles
Union All
Select Distinct 1,ce.eng_id,decode(Base_Vw.Eng_Id,null,'No Data',to_char(Def_Id)) def_id,
decode(Base_Vw.Eng_Id,null,'No Data',First_Name) First_Name,
decode(Base_Vw.Eng_Id,null,'No Data',last_Name) Last_Name,
decode(Base_Vw.Eng_Id,null,'No Data',court_Name) Court_Name,
decode(Base_Vw.Eng_Id,null,'No Data',ethnicity) Ethnicity,
to_char(Date_Joined), to_char(Date_Terminated)
From Base_Vw
right outer join Current_Engagement Ce
On Base_Vw.Eng_Id = Ce.Eng_Id
Union All
Select distinct 2,ce.eng_id,
decode(Base_Vw.Eng_Id,null,'No Data',to_char(service_id)),
decode(Base_Vw.Eng_Id,null,'No Data',description) ,
decode(Base_Vw.Eng_Id,null,'No Data',to_char(service_start_date)),
decode(Base_Vw.Eng_Id,null,'No Data',to_char(service_date_terminated)) ,
decode(Base_Vw.Eng_Id,null,'No Data',null),
decode(Base_Vw.Eng_Id,null,'No Data',null),
decode(Base_Vw.Eng_Id,null,'No Data',null)
From Base_Vw
right outer Join Current_Engagement Ce
On Base_Vw.Eng_Id = Ce.Eng_Id
where service_active =1
Union All
Select distinct 3,ce.eng_id,
decode(Base_Vw.Eng_Id,null,'No Data',to_char(event_id)),
decode(Base_Vw.Eng_Id,null,'No Data',to_char(related_service_id)),
decode(Base_Vw.Eng_Id,null,'No Data',to_char(start_date)),
decode(Base_Vw.Eng_Id,null,'No Data',to_char(end_date)),
decode(Base_Vw.Eng_Id,null,'No Data',notes),
decode(Base_Vw.Eng_Id,null,'No Data',null),
decode(Base_Vw.Eng_Id,null,'No Data',null)
from Base_Vw
right outer Join Current_Engagement Ce
On Base_Vw.Eng_Id = Ce.Eng_Id
Where Event_Active = 1
and related_service_id is not null
Union All
Select distinct 4,ce.eng_id,
decode(Base_Vw.Eng_Id,null,'No Data',to_char(event_id)),
decode(Base_Vw.Eng_Id,null,'No Data',to_char(start_date)),
decode(Base_Vw.Eng_Id,null,'No Data',to_char(end_date)),
decode(Base_Vw.Eng_Id,null,'No Data',notes),
decode(Base_Vw.Eng_Id,null,'No Data',null),
decode(Base_Vw.Eng_Id,null,'No Data',null),
decode(Base_Vw.Eng_Id,null,'No Data',null)
From Base_Vw
right outer Join Current_Engagement Ce
On Base_Vw.Eng_Id = Ce.Eng_Id
Where Event_Active = 1
and related_service_id is null
order by eng_id,dummy_rn,col1
;The result is
COL1 COL2 COL3 COL4 COL5 COL6 COL7
1.Defendant ID First Name Last Name Court Name Ethnicity Date Joined Date Terminated
2 John Doe BBB Asian 01/10/12
2.Service ID Service Description Start Date End Date
3 Treatment 01/10/12 15/10/12
6 Treatment 16/10/12
3.Event ID Related Service ID Start Date End date Notes
5 2 03/10/12
4.Event ID Start Date End date Notes
4 02/10/12
8 12/10/12
1.Defendant ID First Name Last Name Court Name Ethnicity Date Joined Date Terminated
1 Joe Bloggs AAA European 22/09/12
2.Service ID Service Description Start Date End Date
4 Housing
3.Event ID Related Service ID Start Date End date Notes
7 4 23/09/12
4.Event ID Start Date End date Notes
6 22/09/12 23/09/12
1.Defendant ID First Name Last Name Court Name Ethnicity Date Joined Date Terminated
3 Minnie Mouse BBB Latin America 05/10/12
2.Service ID Service Description Start Date End Date
3.Event ID Related Service ID Start Date End date Notes
4.Event ID Start Date End date Notes
23 rows selected Is it possible in SQL to display it like this
COL1 COL2 COL3 COL4 COL5 COL6 COL7
1.Defendant ID First Name Last Name Court Name Ethnicity Date Joined Date Terminated
2 John Doe BBB Asian 01/10/12
2.Service ID Service Description Start Date End Date
3 Treatment 01/10/12 15/10/12
6 Treatment 16/10/12
3.Event ID Related Service ID Start Date End date Notes
5 2 03/10/12
4.Event ID Start Date End date Notes
4 02/10/12
8 12/10/12
1.Defendant ID First Name Last Name Court Name Ethnicity Date Joined Date Terminated
1 Joe Bloggs AAA European 22/09/12
2.Service ID Service Description Start Date End Date
4 Housing
3.Event ID Related Service ID Start Date End date Notes
7 4 23/09/12
4.Event ID Start Date End date Notes
6 22/09/12 23/09/12
1.Defendant ID First Name Last Name Court Name Ethnicity Date Joined Date Terminated
3 Minnie Mouse BBB Latin America 05/10/12
2.Service ID Service Description Start Date End Date
No Service Found
3.Event ID Related Service ID Start Date End date Notes
No Event Found
4.Event ID Start Date End date Notes
No Event FoundOr just a 'No data found' would do. I am thinking about create a dummy table which contains only one row with text "There is no data found". And so the outer join with the result, but I still cannot work out how to integrate with the condition in your select statement.
I really appreciate your help. -
How to do this in Crystal Report
I have table a and table b in two database.
I made connections. Want to implement this kind of query in
CR.
How can i do this using add command?. Is it possible to type
in below query in add command of one database and make it work?.
table a and b are in two data database connection.
select * from a
where a.id not exist
(select b.id from b where a.id = b.id)i need to set where condition in crystal report like count {table.support} where ({table.support} = "others")
support
others others myself parent others
then the result should be : 3
how to do this in crystal report ? i'm just a newbie in crystal report.
You should go on a Crystal reports forum for your version of Visual Studio and Crystal reports probably.
SAP Crystal Reports, version for Visual Studio
Please BEWARE that I have NO EXPERIENCE and NO EXPERTISE and probably onset of DEMENTIA which may affect my answers! Also, I've been told by an expert, that when you post an image it clutters up the thread and mysteriously, over time, the link to the image
will somehow become "unstable" or something to that effect. :) I can only surmise that is due to Global Warming of the threads. -
How to print a BLOB (image) on a PDF report using Oracle APEX Listener as Print Server
Hi,
I use APEX 4.2.
I have the following query as SQL text for a Report Queries in Shared Components:
select
customer_id,
cust_first_name,
cust_last_name,
cust_street_address1,
cust_street_address2,
cust_city,
cust_state,
cust_postal_code,
phone_number1,
phone_number2,
credit_limit,
cust_email,
filename,
company_profile,
-- customer_image,
decode(nvl(dbms_lob.getlength(customer_image),0),0,null,
'<img style="border: 4px solid #CCC; -moz-border-radius: 4px; -webkit-border-radius: 4px;" '||
'src="' ||
apex_util.get_blob_file_src('P22_CUSTOMER_IMAGE', customer_id) ||
'" height="75" width="75" alt="Photo Customer" title="Photo Customer" />') customer_image,
mimetype,
image_last_update
from
demo_customers;
I am unable to have the image printed on the PDF report. Even when the P22_CUSTOMER_IMAGE is defined as session state item.
Does someone knows how to print such image/BLOB in a PDF report?
Thanks by advance.
Kind Regards.Hi,
Indeed, I would need a custom layout.
Unfortunately, it seems (according to this white paper) not possible with the APEX listener only. I would need a third pary tool. A pity...
For me strange, that I cannot generate such a report having images or pictures in a pre-definied report layout... Maybe a future enahancement for Oracle.
Kind Regards. -
ABUMN: Posting with trans.type 300 not possible (No acquisition posted)
Hello everyone,
I have seen a few threads on this topic, however I am still not finding a resolution to my issue. I am very new to the FICO configuration scene and probably need a little more hand holding than the others who have asked this question.
I am having and issue using ABUMN while transfering a Capital Investment Project (CIP Asset) under a asset class of AUC, to a standard fixed asset. The CIP has been capitalized. However, when I try to perform the transfer I am receiving the following error:
Posting with trans.type 300 not possible (No acquisition posted)
Message no. AA324
Diagnosis
Transaction type 300 belongs to a transaction type group, which can only be used to post to assets to which posting has already been performed. However, no postings have been made to this asset.
Procedure
Use a transaction type from a transaction type group, which can be used for the first acquisition to an asset.
I have read through SAP NOTE 327088 (for retirements transfer variant 4) and it just doesn't help me with the issue. I know it probably should, but I do not know enough about this process in order for it to make a whole lot of sense.
If anyone can help me with this, it would be greatly appreciated. Again, I am very new, so I will probably have several follow-up questions as well.
Thanks in advance for the help!
RhondaOkay...
I have finally figured this out on my own.
When trying to transfer a capital investment project asset with an AuC class (asset under construction), ABUMN is not to be used.
1st. The internal order needs to be fully settled (KO02). Create a settlement rule "FUL" for the designated fixed asset.
2nd. Run "Actual Settlement" run via KO88.
This should transfer everything from the CIP asset to the fixed asset. You can double check this via the S_ALR_87011967 - ... by Plant report. Run this report prior to performing the steps above and the money will show in the CIP asset account, run it again after the above steps. The CIP should be zeroed out and the fixed asset should now carry the amount.
Maybe you are looking for
-
I have logged in with Itunes Match on my work PC, but after 'gathering information about itunes' Itunes Match says the maximum songs that can be uploaded that were not purchased in itunes is 25000 and iMatch stops. All I want to do is have access and
-
Flattened PDF Form and Barcode not displaying
I see there are a lot of discussions that are not answered in this forum, so I am guessing this will go unanswered as well. But I am looking for a solution for the issue in the subject. I have a simple PDF form built in LiveCycle that I am populatin
-
I've installed the PSE13 upgrade (I currently have PSE9) but it won't open. When I sign in all I get is the revolving squares. It seems to be in a loop or stalled. I've downloaded twice and rebooted twice but still no luck.
-
Top Side Entries - Best Practice to push back to GL
Hello, I'm trying to determine the best practice to get the adjustments made in FM back to the GL. The GL requires more dimensionality than FM captures. How have you done this in the past? Thanks!
-
Hi I need to use multiple tables in DB (10-12 tables, not all identified yet) for DB processing. All those tables reside in one DB. My idea is not to write a procedure but create business services for them and orchestrate for processing. I wish to us