Select area in a JPanel,plz help
hi frenz,
i want to select an area in a JPanel by dragging mouse.then i want to findout the components lying in this area and then i want to perform drag and drop operation on tha selected components. please help
me to get the solution of this problem asap.
thanx,
thanx for your reply, actually i m new to swings . below is prtion of my code....
// this is a class which is extending JInternal frame and having an object of class PaintPanel(code of which is given below).that class is painting some grahics in itself. now in this CenterPanel class i m adding some labels to object of PaintPanel. and i want to select components of PaintPanel by selecting an area... with this specification please tell me what shoul i do...
thanx
public class CenterPanel extends JInternalFrame {
public static JLabel lab1, lab2, lab3, lab4, lab5;
public static JLabel lab6, lab7, lab8;
PaintPanel p;
public JLabel temptitle ;
Color sc;
public CenterPanel()
super(null, true, true,true);
Font bigFont = new Font("TimesRoman", Font.BOLD, 14);
Font smallFont = new Font("TimesRoman", Font.PLAIN, 12);
Container c = getContentPane();
c.setBackground(Color.white);
p = new PaintPanel();
p.setBackground(Color.white);
p.setPreferredSize(new Dimension(330,430));
p.setLayout(new FlowLayout());
lab1 = new JLabel("SAUDI ARAMCO WELL DATABASE");
lab1.setFont(bigFont);
add_listener(lab1);
lab2 = new JLabel("WELL CROSS-SECTION");
lab2.setFont(bigFont);
add_listener(lab2);
lab3 = new JLabel("REPORT: CA03R001-P");
lab3.setFont(smallFont);
add_listener(lab3);
lab4 = new JLabel("455-RUS");
lab4.setFont(smallFont);
add_listener(lab4);
lab5 = new JLabel("2000-");
lab5.setFont(smallFont);
add_listener(lab5);
lab6 = new JLabel("18 5/8\" CSG,");
lab6.setFont(smallFont);
add_listener(lab6);
lab7 = new JLabel("87.50#. H40");
lab7.setFont(smallFont);
add_listener(lab7);
lab8 = new JLabel("@430'");
lab8.setFont(smallFont);
add_listener(lab8);
p.add(lab1);
p.add(Box.createHorizontalStrut(10));
p.add(lab2);
p.add(Box.createHorizontalStrut(150));
p.add(lab3);
p.add(lab4);
p.add(Box.createHorizontalStrut(200));
p.add(lab5);
p.add(Box.createHorizontalStrut(250));
p.add(lab6);
p.add(Box.createHorizontalStrut(100));
p.add(lab7);
p.add(Box.createHorizontalStrut(100));
p.add(lab8);
JScrollPane pane = new JScrollPane(p);
c.add(pane);
public void add_listener(final JLabel l)
l.addMouseMotionListener(new MouseMotionAdapter()
public void mouseDragged(MouseEvent m)
l.setBounds(l.getX()+m.getX(),
l.getY()+m.getY(),
l.getWidth(),
l.getHeight());
repaint();
class PaintPanel extends JPanel implements MouseListener,MouseMotionListener
public Rectangle normalShape;
public int initialX =0;
public int initialY = 0;
public int finalX = 0;
public int finalY = 0;
public int finalXRelease =0;
public int finalYRelease = 0;
protected void paintComponent(Graphics g)
addMouseListener(this);
addMouseMotionListener(this);
super.paintComponent(g);
Graphics2D g2d = (Graphics2D) g;
float dash10[] = {10.0f,2.0f,5.0f,2.0f};
setBackground(Color.white);
double scale = MainApplication.zoom;
g2d.scale(scale, scale);
g2d.drawLine(25, 25, 250, 25);
g2d.drawLine(0, 70, 300, 70);
g2d.drawRect(130, 100, 20, 100);
g2d.setStroke(new BasicStroke(0.3f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL,
0, dash10, 0));
g2d.setColor(Color.blue);
if(finalX>initialX && finalY>initialY)
g2d.drawRect(initialX,initialY,finalX-initialX,finalY-initialY);
else if(finalX>initialX &&initialY>finalY)
g2d.drawRect(initialX,finalY,finalX-initialX,initialY-finalY);
else if(finalX<initialX &&initialY<finalY)
g2d.drawRect(finalX,initialY,initialX-finalX,finalY-initialY);
else
g2d.drawRect(finalX,finalY,initialX-finalX,initialY-finalY);
public void mousePressed(MouseEvent e)
initialX = e.getX();
initialY = e.getY();
finalXRelease = initialX ;
finalYRelease = initialY ;
public void mouseReleased(MouseEvent e)
finalX = e.getX();
finalY = e.getY();
repaint();
public void mouseDragged(MouseEvent m)
finalX = m.getX();
finalY = m.getY();
repaint();
// Provide empty implementations for unused events.
public void mouseClicked(MouseEvent e){}
public void mouseEntered(MouseEvent e){}
public void mouseExited(MouseEvent e) {}
public void mouseMoved(MouseEvent e) {}
Similar Messages
-
How to open color selection diaglog in 10g forms Plz help
Hi Everybody
I'm new to oracle 10g forms
I want to open color selection dialog in 10g forms
I've configured demos...nd they r working well....
Now i want to use code in my forms.......But I tried to see it from the source.. But I couldn't understand...
Plz help....If anybody knows...
Thanx in advanceI've added
# Forms applet archive setting for JInitiator
archive_jini=frmall_jinit.jar,colorPicker.jar
# Forms applet archive setting for other clients (Sun Java Plugin, Appletviewer, etc)
archive=frmall.jar,colorPicker.jar
java.io.IOException: Caching not supported for http://192.168.0.106:8890/forms/java/frmall_jinit.jar
at oracle.jre.protocol.jar.JarCache$CachedJarLoader.download(Unknown Source)
at oracle.jre.protocol.jar.JarCache$CachedJarLoader.load(Unknown Source)
at oracle.jre.protocol.jar.JarCache.get(Unknown Source)
at oracle.jre.protocol.jar.CachedJarURLConnection.connect(Unknown Source)
at oracle.jre.protocol.jar.CachedJarURLConnection.getJarFile(Unknown Source)
at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source)
at sun.misc.URLClassPath$JarLoader.<init>(Unknown Source)
at sun.misc.URLClassPath$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.misc.URLClassPath.getLoader(Unknown Source)
at sun.misc.URLClassPath.getLoader(Unknown Source)
at sun.misc.URLClassPath.getResource(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
WARNING: Unable to cache http://192.168.0.106:8890/forms/java/frmall_jinit.jar
java.io.IOException: Caching not supported for http://192.168.0.106:8890/forms/java/colorPicker.jar
at oracle.jre.protocol.jar.JarCache$CachedJarLoader.download(Unknown Source)
at oracle.jre.protocol.jar.JarCache$CachedJarLoader.load(Unknown Source)
at oracle.jre.protocol.jar.JarCache.get(Unknown Source)
at oracle.jre.protocol.jar.CachedJarURLConnection.connect(Unknown Source)
at oracle.jre.protocol.jar.CachedJarURLConnection.getJarFile(Unknown Source)
at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source)
at sun.misc.URLClassPath$JarLoader.<init>(Unknown Source)
at sun.misc.URLClassPath$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.misc.URLClassPath.getLoader(Unknown Source)
at sun.misc.URLClassPath.getLoader(Unknown Source)
at sun.misc.URLClassPath.getResource(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at oracle.ewt.util.FocusUtils.<clinit>(Unknown Source)
at oracle.ewt.lwAWT.LWComponent.<clinit>(Unknown Source)
at oracle.ewt.laf.oracle.OracleLookAndFeel._initCommonFixedDefaults(Unknown Source)
at oracle.ewt.laf.oracle.OracleLookAndFeel._getCommonDefaults(Unknown Source)
at oracle.ewt.laf.oracle.OracleLookAndFeel._getIndexedDefaults(Unknown Source)
at oracle.ewt.laf.oracle.OracleLookAndFeel.getDefaults(Unknown Source)
at oracle.ewt.lwAWT.BufferedApplet.getUIDefaults(Unknown Source)
at oracle.ewt.lwAWT.BufferedApplet.<init>(Unknown Source)
at oracle.ewt.swing.JBufferedApplet.<init>(Unknown Source)
at oracle.forms.engine.Main.<init>(Unknown Source)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
WARNING: Unable to cache http://192.168.0.106:8890/forms/java/colorPicker.jar
proxyHost=null
proxyPort=0
connectMode=HTTP, native.
Forms Applet version is : 10.1.2.0
*** VBean Setting debugMode to ALL
*** VBean Setting beanName to oracle.forms.demos.beans.ColorPicker
*** VBean Failed to instantiate class: oracle.forms.demos.beans.ColorPicker java.lang.ClassNotFoundException: oracle.forms.demos.beans.ColorPicker -
Hi all,
i attended a interview, these are the qes..plz help me with ans..
1. is it possible without using function modules in
bdc(open, insert,close) data transferring? how ...
2. which one is better session/call transection? why?
3. in LSMW what r the methods u r using?
4. in LSMW otherthan recording any method is there? what are they?
5. in LSMW where are u doing field validation? in which step, can u explain?
6. is it possible to run smartform without using
" ssf_function_module_name", how ?
7. how will display secondary list in ALV.
8. how will u call back to secondary lists to base list?
9. how u r printing secondary list in interactive reports?
10. what are the events used in u r ALV reports?
11. how will u access data in secondary list?
12. what is diff b/w bapi created fm and standered bapi fm?
13. in ALE in which programm worked either standalone or any other?
here what is standalone?i know change pointer..Hi
10. what are the events used in u r ALV reports?
Events in alv and their FM The main events in alv and their FM and why we use these:
1. SLIS_PRINT_ALV.
2. SLIS_T_LISTHEADER.
3. SLIS_T_EVENT.
4. SLIS_T_SORTINFO_ALV.
5. SLIS_T_LAYOUT_ALV.
6. SLIS_T_FIELDCAT_ALV.
and in classic reports what is the sequence of events: === Events are
At selection-screen output.
Initialization.
At selection-screen on field
At selection-screen on end of field
At selection-screen on Radiobutton Group R1. (If you have any radio buttons)
At selection-screen on block b1. (If you have any blocks)
Start-of-selection.
Get node. (if the data is retreived from a logical database)
Get node late. (if the data is retreived from a logical database)
Top-of-page. (if the write statement is in the end-of-selection event or we can say that before the first write statement)
end-of-selection.
and fuction modules are
LISTHEADER - Is used to print the header information in the ALV List. Name, Date, Time, ALV Name and other details are called as Header information. EVENT - Basically this is the FM to handle Event's. When the user needs to do some event operation like when double clicking the a particular field we need to perform some operation. These events are captured by this FM. LAYOUT - This FM is used to define the layout of the List. There are many options available in this FM to define the Layout style. FIELDCAT - These are used to populate the List header. We can change them according to our req.
User-defined Text Output Event
Application
print_end_of_list
Define output text to be printed at the end of the entire list
print_top_of_list
Define output text to be printed at the beginning of the entire list
print_end_of_page
Define output text to be printed at the end of each page
print_top_of_page
Define output text to be printed at the beginning of each page
subtotal_text
Define self-defined subtotals texts
Mouse-controlled Actions in the Grid Control Event
Application
button_click
Query a click on a pushbutton in the ALV Grid Control
double_click
Query a double-click on a cell of the ALV Grid control
hotspot_click
Query a hotspot click on columns defined for this purpose in advance
onDrag
Collect information when elements of the ALV Grid Control are dragged
onDrop
Process information when elements of the ALV Grid Control are dropped
onDropComplete
Perform final actions after successful Drag&Drop
onDropGetFlavor
Distinguish between options for Drag&Drop behavior
Processing of Self-defined and Standard Functions Event
Application
before_user_command
Query self-defined and standard function codes
user_command
Query self-defined function codes
after_user_command
Query self-defined and standard function codes
Definition of Self-defined Functions Event
Application
toolbar
Change, delete or add GUI elements in the toolbar
menu_button
Define menus for menu buttons in the toolbar
context_menu_request
Change context menu
onf1
Define self-defined F1 help
All of these can be found under type group SLIS.
Events
SLIS_EV_ITEM_DATA_EXPAND TYPE SLIS_FORMNAME VALUE 'ITEM_DATA_EXPAND',
SLIS_EV_REPREP_SEL_MODIFY TYPE SLIS_FORMNAME VALUE 'REPREP_SEL_MODIFY', SLIS_EV_CALLER_EXIT_AT_START TYPE SLIS_FORMNAME VALUE 'CALLER_EXIT',
SLIS_EV_USER_COMMAND TYPE SLIS_FORMNAME VALUE 'USER_COMMAND',
SLIS_EV_TOP_OF_PAGE TYPE SLIS_FORMNAME VALUE 'TOP_OF_PAGE',
SLIS_EV_DATA_CHANGED TYPE SLIS_FORMNAME VALUE 'DATA_CHANGED',
SLIS_EV_TOP_OF_COVERPAGE TYPE SLIS_FORMNAME VALUE 'TOP_OF_COVERPAGE',
SLIS_EV_END_OF_COVERPAGE TYPE SLIS_FORMNAME VALUE 'END_OF_COVERPAGE',
SLIS_EV_FOREIGN_TOP_OF_PAGE TYPE SLIS_FORMNAME
VALUE 'FOREIGN_TOP_OF_PAGE', SLIS_EV_FOREIGN_END_OF_PAGE TYPE SLIS_FORMNAME
VALUE 'FOREIGN_END_OF_PAGE',
SLIS_EV_PF_STATUS_SET TYPE SLIS_FORMNAME VALUE 'PF_STATUS_SET',
SLIS_EV_LIST_MODIFY TYPE SLIS_FORMNAME VALUE 'LIST_MODIFY',
SLIS_EV_TOP_OF_LIST TYPE SLIS_FORMNAME VALUE 'TOP_OF_LIST',
SLIS_EV_END_OF_PAGE TYPE SLIS_FORMNAME VALUE 'END_OF_PAGE',
SLIS_EV_END_OF_LIST TYPE SLIS_FORMNAME VALUE 'END_OF_LIST',
SLIS_EV_AFTER_LINE_OUTPUT TYPE SLIS_FORMNAME VALUE 'AFTER_LINE_OUTPUT', SLIS_EV_BEFORE_LINE_OUTPUT TYPE SLIS_FORMNAME VALUE 'BEFORE_LINE_OUTPUT',
SLIS_EV_SUBTOTAL_TEXT TYPE SLIS_FORMNAME VALUE 'SUBTOTAL_TEXT' -
We are not able to execute below procedure, plz help me ASAP.
Dear All
I am created one procedure with 4 parameter 1 is Ref Cusrsor rest of 3 are Varchar,But we are not able to execute below procedure, plz help me ASAP.
CREATE OR REPLACE PROCEDURE GETCHART(RPT_CURSOR OUT RPT_PACKAGE.RPT_RESULTS,
V_VITALCHARTING VARCHAR2,
V_DOCIDPATIENTS VARCHAR2,
v_fromdate varchar2,
v_todate varchar2) AS
D1 VARCHAR2(500);
D2 VARCHAR2(500);
G1 VARCHAR2(500);
R1 VARCHAR2(500);
R2 VARCHAR2(500);
R3 VARCHAR2(500);
R4 VARCHAR2(500);
R5 VARCHAR2(500);
H1 VARCHAR2(500);
H2 VARCHAR2(500);
V_COUNT NUMBER;
RC VARCHAR2(100);
RMI VARCHAR2(100);
RMAX VARCHAR2(100);
R12 VARCHAR2(500);
REQ NUMBER;
V_MAX number;
v_idcount number;
RSEQ NUMBER;
RCH VARCHAR2(500);
BEGIN
INSERT INTO TEMPDATA
SELECT ROWNUM G, TIME1
FROM (SELECT distinct TO_CHAR(H.RECORDEDDNT, 'mm/dd/yy hh24:mi:ss') TIME1
FROM VIEW_PATIENTCHART V,
chartingtxheader H,
chartingtxdetails D
WHERE h.docid = d.docidchartingtxheader
and v.VITALCHARTING_PK = h.docidvitalcharting
and v.VITALPARAMETER_PK = d.docidvitalparameter
and v.VITALCHARTING_PK = V_VITALCHARTING --General Vital Signs
and H.DOCIDPATIENTS = V_DOCIDPATIENTS
and TO_DATE(to_char(h.recordeddnt, 'DD/MM/YYYY'),
'DD/MM/YYYY') BETWEEN
TO_DATE(v_fromdate, 'DD/MM/YYYY') AND
TO_DATE(V_TODATE, 'DD/MM/YYYY'));
SELECT MAX(ID) INTO V_MAX FROM TEMPDATA;
V_IDCOUNT := 0;
WHILE V_IDCOUNT < V_MAX loop
FOR J IN (SELECT id, ROWNUM G, vdate time1
FROM (SELECT id, ROWNUM, VDATE
FROM TEMPDATA
WHERE ID BETWEEN V_IDCOUNT + 1 AND V_IDCOUNT + 8)) LOOP
D1 := D1 || 'COL' || J.G || ',';
D2 := D2 || '''' || J.TIME1 || '''' || ',';
END LOOP;
D1 := SUBSTR(D1, 1, LENGTH(D1) - 1);
D2 := SUBSTR(D2, 1, LENGTH(D2) - 1);
DBMS_OUTPUT.PUT_LINE(d1);
SELECT SEQ_GETCHART.NEXTVAL INTO RSEQ FROM DUAL;
G1 := 'INSERT INTO GETDATA2 (IDSLNO,idcount,' || D1 || ') VALUES(' || RSEQ || ',' ||
V_IDCOUNT || ',' || D2 || ')';
--EXECUTE IMMEDIATE G1;
DBMS_OUTPUT.PUT_LINE(d1);
DBMS_OUTPUT.PUT_LINE(SUBSTR(D2, 1, LENGTH(D2) - 1));
DBMS_OUTPUT.PUT_LINE(G1);
EXECUTE IMMEDIATE G1;
FOR K IN (SELECT id, ROWNUM G, vdate time2
FROM (SELECT id, ROWNUM, VDATE
FROM TEMPDATA
WHERE ID BETWEEN V_IDCOUNT + 1 AND V_IDCOUNT + 8)) LOOP
FOR I IN (select s.*, rownum hslno
from (SELECT v.CHARTNAME,
v.PARAMETERNAME_CS,
' ' || v.PARAMETERNAME PARAMETERNAME,
TO_CHAR(H.recordeddnt, 'mm/dd/yy hh24:mi:ss') TIME1,
CASE
WHEN IDSLNO_GN5029 IN (1040, 1041) THEN
CASE
WHEN TO_NUMBER(d.recordedvalue) <
TO_NUMBER(D.MINVALUE) THEN
decode(d.recordedvalue,
null,
d.recordedvalue,
d.recordedvalue || ' ' || 'L')
ELSE
CASE
WHEN TO_NUMBER(d.recordedvalue) >
TO_NUMBER(D.MaxVALUE) THEN
decode(d.recordedvalue,
null,
d.recordedvalue,
d.recordedvalue || ' ' || 'H')
ELSE
decode(d.recordedvalue,
null,
d.recordedvalue,
d.recordedvalue || ' ' || 'N')
END END ELSE d.recordedvalue END IMAGECHAR,
d.minvalue,
d.maxvalue,
D.UOMCODE
FROM VIEW_PATIENTCHART V,
chartingtxheader H,
chartingtxdetails D
WHERE h.docid = d.docidchartingtxheader
and v.VITALCHARTING_PK = h.docidvitalcharting
and v.VITALPARAMETER_PK = d.docidvitalparameter
and v.VITALCHARTING_PK = V_VITALCHARTING --General Vital Signs
and H.DOCIDPATIENTS = V_DOCIDPATIENTS
ORDER BY V.DISPLAYORDER_CS, V.DISPLAYORDER
-- v.PARAMETERNAME_CS,v.PARAMETERNAME
) s
where s.time1 = k.time2) LOOP
select count(1)
into v_count
from GETDATA2 d
where d.PARAMETERNAME_CS = i.PARAMETERNAME_CS
and PARAMETERNAME = i.PARAMETERNAME
and idcount = v_idcount;
IF V_COUNT = 0 THEN
RCH := I.CHARTNAME;
R1 := 'COL' || K.G;
R2 := '''' || I.PARAMETERNAME_CS || '''' || ',';
R3 := '''' || I.PARAMETERNAME || '''' || ',';
R4 := '''' || I.IMAGECHAR || '''';
RC := '''' || I.CHARTNAME || '''' || ',';
RMI := '''' || I.minvalue || '''' || ',';
RMAX := '''' || I.maxvalue || '''' || ',';
R12 := '''' || I.UOMCODE || '''' || ',';
SELECT SEQ_GETCHART.NEXTVAL INTO RSEQ FROM DUAL;
H1 := 'INSERT INTO GETDATA2 (IDSLNO,UMCODE,idcount,CHARTNAME,minvalue,maxvalue,PARAMETERNAME_CS,PARAMETERNAME,' || R1 || ')' ||
' values(' || RSEQ || ',' || R12 || v_idcount || ',' || RC || RMI || RMAX || R2 || R3 || R4 || ')';
EXECUTE IMMEDIATE H1;
ELSE
R5 := 'COL' || K.G;
R4 := '''' || I.IMAGECHAR || '''';
H2 := 'UPDATE GETDATA2 SET ' || R5 || '=' || R4 ||
'WHERE PARAMETERNAME_CS=' || '''' || I.PARAMETERNAME_CS || '''' ||
' AND ' || 'PARAMETERNAME=' || '''' || I.PARAMETERNAME || '''';
EXECUTE IMMEDIATE H2;
END IF;
END LOOP;
end loop;
UPDATE getdata2 s
set s.parametername = s.parametername || ' -' || ' (' || minvalue ||
' -- ' || maxvalue || ') ' || UMCODE
where s.parametername is not null
and idcount = v_idcount
and minvalue != 0
and maxvalue != 0;
UPDATE getdata2 s
set s.parametername = s.parametername || ' -' || UMCODE
where s.parametername is not null
and idcount = v_idcount
and minvalue = 0
and maxvalue = 0;
UPDATE GETDATA2 S
SET S.PARAMETERNAME_CS = NULL
WHERE ROWID NOT IN (SELECT MIN(ROWID)
FROM GETDATA2
WHERE idcount = v_idcount
GROUP BY PARAMETERNAME_CS)
and idcount = v_idcount;
UPDATE GETDATA2 S
SET CHARTNAME = NULL
WHERE ROWID NOT IN (SELECT MIN(ROWID)
FROM GETDATA2
WHERE idcount = v_idcount
GROUP BY CHARTNAME)
and idcount = v_idcount;
UPDATE getdata2 s
set s.parametername = ' PARAMETER'
where s.parametername is null
AND S.PARAMETERNAME_CS IS NULL;
v_idcount := v_idcount + 8;
D1 := null;
d2 := null;
end loop;
for i in (SELECT G.PARAMETERNAME_CS, G.IDSLNO
FROM GETDATA2 G
WHERE G.PARAMETERNAME_CS IS NOT NULL) LOOP
INSERT INTO GETDATA2
(IDSLNO, PARAMETERNAME)
VALUES
(I.IDSLNO - 1 + 0.5, I.PARAMETERNAME_CS);
END LOOP;
update GETDATA2 h set h.PARAMETERNAME_CS = null;
update GETDATA2 h set h.chartname = rcH;
INSERT INTO GETDATA1
SELECT CHARTNAME,
PARAMETERNAME_CS,
PARAMETERNAME,
COL1,
COL2,
COL3,
COL4,
COL5,
COL6,
COL7,
COL8,
COL9,
COL10,
MINVALUE,
MAXVALUE,
UMCODE
FROM GETDATA2
ORDER BY IDSLNO;
OPEN RPT_CURSOR FOR
SELECT * FROM GETDATA1;
END;
CREATE OR REPLACE PACKAGE "RPT_PACKAGE"
as
type RPT_RESULTS is REF CURSOR;
type RPT_VARRAY is VARRAY(2000) of VARCHAR2(2000);
END RPT_PACKAGE;
Execute
declare
type my_newcursor IS REF CURSOR;
begin
GETCHART(my_newcursor,'General Vital Sign','1145561',sysdate-1,sysdate);
end;Parwez wrote:
Dear All
I am created one procedure with 4 parameter 1 is Ref Cusrsor rest of 3 are Varchar,But we are not able to execute below procedure, plz help me ASAP.
see a picture of my car.
my car won't go.
tell me how to make my car go.
How do I ask a question on the forums?
SQL and PL/SQL FAQ -
HT2375 I'm getting a "no input selected " mssg when i try to record a vocal track plz help
I'm getting a "no input selected " mssg when i try to record a vocal track plz help....
HEY MODS... who is posting the support article number in the header...
The one posted in this topic is evem more unhelpful than some of my curt replies.
Bad idea, most of Logic's problems are not covered by support articles. -
how to select the download location? its automatically downloading to users folder in c drive.. i wanna change to my desktop...plz help me out...
Tools -> Options -> Save files to -> Click browse button and browse for folder where you want to save the file.
-
I have problem with my ipad , when i want to update ios 6 to 6.0.1 this message appear " unable to verify update , ios 6.0.1 faild verification because you are no longer connected to the internet" but my ipad is connected . Plz help me .
Not very helpful but I have the same issue. Plugging in and doing the update via. iTunes will probably work but I find that whole experience annoying (downloading apps not on the Mac, etc..)
-
Ok.
So i was putting some new songs on my iPod 20 GB, the one before the colour screen came. the operation hung itself up, for the first time. everything worked well with the ipod when i hooked it off. then i put it on again, and nothing worked. and now there are NO songs on the ipod, BUT i do not believe they are deleted, because both the ipod AND itunes says only 90 MB free space. but when i go on it on my harddrive, and try to check the music files on the ipod, all the folders are in strange chinese-like language, and i can't open anything!
PLZ, any advice? i CAN'T LOOSE MY MUSIC!! PLZ HELP!!!
Windows XPI am really desperate, can't somebody please help?
-
Reports are not called from form in browser plz help
Hi,
I have installed 9iAS+8.1.7 database on the same machine with NT4 server.My system's forms(.fmx) are running well but my reports are not running from my main form.i call reports from the
from as,
Run_Product(reports,'..\iReports\xglrxx12.rep',synchronous,RUNTIME,FILESYSTEM,pl_id,null);
Actually want to know the report's setting when calling from the from in a browser(environment variables,virtual paths etc.).
My database is installed in drive E:\8idb_home\ and 9iAS is on
G:\9iAS_home\.My systems .fmx & .rep files are in "iforms" and "ireports" folder respectively.
Plz help!
Many thanks!Hi,
First of all thanks to Vincent Botteman for solving the prob.
Yes when i changed my call of run_product by excluding the path i have specified when calling from form it then makes a result.
Also specified the entry of your reports .rep files by giving path in reports60_path registery variable as,
Run regedit-->Hkey_Local_Machine-->Software-->Oracle here give the full path of your .rep files as an first entry in reports60_path variable.And finally not mention the path when calling reports from form as,
Run_Product(reports,'xglrxx13.rep',synchronous,RUNTIME,FILESYSTEM,pl_id,null);<--- Correct way.
Run_Product(reports,'..\iReports\xglrxx13.rep',synchronous,RUNTIME,FILESYSTEM,pl_id,null);<--- Wrong way.
Regards! -
Is there any official market or store or anything in Egypt to fix my iphone 4 it jumped from 5th floor and the back hous was crashed and the network sensor was not working good but the phone and the screen and the others things are ok so plz help ???
my iphone is now just coverd with case and the back house is crasedEtisalat, Mobinil and Vodafone provide warranty service in your country. You can also search Google for a 3rd party repair shop near you.
-
Me taskbar icons are not responding. plz help
my taskbars icons are not responding when i click on it...ie it doesnt opens not it responds....
alo like back button which is on upper panel is also not responding...is this any software error or hardware... plz help seriously.... i cant even call any1....Windows or Mac OS X?
-
I FORGOT MY IPAD4(wifi) password and it got disabled now how can i recover it?? By the way the wifi is of and the location services and find my ipad are enabled now what can i do to recover it???? PLZ HELP!!!
Entering your Wifi password will not - unless I'm missing something completely - disable your iPad. The only thing which will disable your iPad that I'm aware of is entering your passcode for iPad incorrectly multiple times.
If this is the case then please see: http://support.apple.com/kb/HT1212
If you have forgotten your password for your router the WPA or WPA2 key as it's also known as they you will need to log in to your Router and setup a new WPA(2) key.
Regards,
Steve -
Plz help selection screen desplay issue
Hi experts
plz help
small query
i have two fields
dateto and date from in my selection screen
i ill have to use parameter for both the feilds i cannot use select-options here
but wen i m using parameter its coming line by line
like
p_dateto "i/o feild"
but i want like we get in select option
p_dateto "i/o feild" p_datfrm "i/o feild"
plz help me doin this .
thanx i9n advance.hey,
why dont u use select-options?
but if u want parameters only,
u can do like below.
selection-screen begin of screen <scrno>.
selecion-screen begin of line.
parameters: date_from type sy-datum,
date_to type sy-datum.
selection-screen end of line.
selection-screen end of screen <scrno>.
Message was edited by:
Hymavathi Oruganti -
Plz help me to get the document UIT 250 in IS-U area...
Hi all,
Can any body plz help me to get the document UIT 250 in IS-U area...
Appreciate ur help..
Regards,
RajaString line1="27-03-2006";
SimpleDateFormat dfInput = new new SimpleDateFormat("EEE MMM d HH:mm:ss zzz yyyy");
Date dateBegin = dfInput.parse(line1.trim()); By the way, I feel there is some mismatch... -
Hi everybody
plz help me
I want exclude numbers thats begins with '2203','2204' and '1252'
Imagine i have amount of numbers like these
'22034500',
'22039600',
'22048500',
'22047800',
'12529865',
'12345678',
'98765432'
When i select from above amoun of numbers it must return me 2 rows
'12345678',
'98765432'
I'm sorry for my bad english ))If the column datatype is varchar2 use below query else use Etbin's query
WITH t AS ( SELECT '22034500' num FROM dual UNION ALL
SELECT '22039600' num FROM dual UNION ALL
SELECT '22048500' num FROM dual UNION ALL
SELECT '22047800' num FROM dual UNION ALL
SELECT '12529865' num FROM dual UNION ALL
SELECT '12345678' num FROM dual UNION ALL
SELECT '98765432' num FROM dual)
SELECT *
FROM t
WHERE substr(num,1,4) NOT IN ('2203','2204','1252')
Maybe you are looking for
-
Itunes won't work due to audio configuration
Help! Just downloaded / updated to Itunes 7.3 on Window XP laptop. Itunes, however, will not work due to problem with "audio configuration".
-
"iTunes was not installed correctly - reinstall" Will I lose my library?
iTunes error 7. Windows error 1114. iTunes WON'T open at all. Can't sync my iPhone or iPod, but more worryingly - I've hundreds of tracks in lots of albums on my iTunes, many of which I've recorded myself live; my accompaniments from Sibelius; rehe
-
New tax code transport to one server to another
Hi all, Could you please let me know for transporting customisation like new tax code from development to testing and testing to production what is the procedure and which type of request it need customisation request or workbench request. Regards, n
-
Can't access web after install
Installed on new SLES11 box. Livetime says it's running, but I can't access at http://<ip> or http://<ip>:8700. When I installed SLES, I used the defaults for server type (Print). Show I add/change to Web/LAMP? Or is it something else? thanks
-
Problem loading image (from JAR)
Hi I was wondering why this code works when running the app in my IDE, but not once exported in a JAR file: public static BufferedImage loadDefaultCover() try return ImageIO.read(new File("./images/default.png")); }