CALL PKG FROM ANOTHER PKG
I HAVE WRITTEN 1ST PKG WITH PROCEDURE AND 2ND PKG WITH FUNCTION
HOW SHOULD I EXECUTE 1ST PKG.PROCEDURE IN 2ND PKG.FUNCTION
WHAT IS THE PROPER METHOD?
No problem,
Now we just need to work on your CAPS LOCK button.....
:)
Similar Messages
-
Is it possible to call methods from another class from within an abstract c
Is it possible to call methods from another class from within an abstract class ?
I found an example in teh JDK 131 JFC that may help you. I t is using swing interface and JTable
If you can not use Swing, then you may want to do digging or try out with the idea presented here in example 3
Notice that one should refine the abstract table model and you may want to create a method for something like
public Object getValuesAtRow(int row) { return data[row;}
to give the desired row and leave the method for
getValuesAt alone for getting valued of particaular row and column.
So Once you got the seelcted row index, idxSelctd, from your table
you can get the row or set the row in your table model
public TableExample3() {
JFrame frame = new JFrame("Table");
frame.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {System.exit(0);}});
// Take the dummy data from SwingSet.
final String[] names = {"First Name", "Last Name", "Favorite Color",
"Favorite Number", "Vegetarian"};
final Object[][] data = {
{"Mark", "Andrews", "Red", new Integer(2), new Boolean(true)},
{"Tom", "Ball", "Blue", new Integer(99), new Boolean(false)},
{"Alan", "Chung", "Green", new Integer(838), new Boolean(false)},
{"Jeff", "Dinkins", "Turquois", new Integer(8), new Boolean(true)},
{"Amy", "Fowler", "Yellow", new Integer(3), new Boolean(false)},
{"Brian", "Gerhold", "Green", new Integer(0), new Boolean(false)},
{"James", "Gosling", "Pink", new Integer(21), new Boolean(false)},
{"David", "Karlton", "Red", new Integer(1), new Boolean(false)},
{"Dave", "Kloba", "Yellow", new Integer(14), new Boolean(false)},
{"Peter", "Korn", "Purple", new Integer(12), new Boolean(false)},
{"Phil", "Milne", "Purple", new Integer(3), new Boolean(false)},
{"Dave", "Moore", "Green", new Integer(88), new Boolean(false)},
{"Hans", "Muller", "Maroon", new Integer(5), new Boolean(false)},
{"Rick", "Levenson", "Blue", new Integer(2), new Boolean(false)},
{"Tim", "Prinzing", "Blue", new Integer(22), new Boolean(false)},
{"Chester", "Rose", "Black", new Integer(0), new Boolean(false)},
{"Ray", "Ryan", "Gray", new Integer(77), new Boolean(false)},
{"Georges", "Saab", "Red", new Integer(4), new Boolean(false)},
{"Willie", "Walker", "Phthalo Blue", new Integer(4), new Boolean(false)},
{"Kathy", "Walrath", "Blue", new Integer(8), new Boolean(false)},
{"Arnaud", "Weber", "Green", new Integer(44), new Boolean(false)}
// Create a model of the data.
TableModel dataModel = new AbstractTableModel() {
// These methods always need to be implemented.
public int getColumnCount() { return names.length; }
public int getRowCount() { return data.length;}
public Object getValueAt(int row, int col) {return data[row][col];}
// The default implementations of these methods in
// AbstractTableModel would work, but we can refine them.
public String getColumnName(int column) {return names[column];}
public Class getColumnClass(int col) {return getValueAt(0,col).getClass();}
public boolean isCellEditable(int row, int col) {return (col==4);}
public void setValueAt(Object aValue, int row, int column) {
data[row][column] = aValue;
}; -
We have a 5s active on our account. After turning on a previously active 4s (it had the same number) The 5s can no longer place call and when you call it from another phone the 4s rings, but will not pick up. Texting over the cell networks works fine. Any suggestions??
hens0861,
Hmm, let's ensure this is working as it should be! So what phone should be active on your account? Did you switch the devices online or how to did you activate the 5s? Please share details.
KarenC_VZW
Follow us on Twitter @VZWSupport -
Calling package from another package
Hi gurus,
Quick question
Say i m in user1 schema.
I want to call package from another package in the same schema. So do i need to grant permission to the calling package to call.Thank you!!Why don't you test it?
create or replace package pack2
is
procedure t2;
end;
Package created.
create or replace package body pack2
is
procedure t2
is
begin
dbms_output.put_line('Inside Pack2 And t2');
end;
end;
Package Body created.
create or replace package pack1
is
procedure t1;
end;
Package created.
create or replace package body pack1
is
procedure t1
is
begin
pack2.t2;
dbms_output.put_line('Inside Pack1 And t1');
end;
end;
Package Body created.
begin
pack1.t1;
end;
Inside Pack2 And t2
Inside Pack1 And t1
Statement processed.
0.11 secondsRegards.
Satyaki De -
Calling method from another class problem
hi,
i am having problem with my code. When i call the method from the other class, it does not function correctly?
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
public class Dice extends JComponent
private static final int SPOT_DIAM = 9;
private int faceValue;
public Dice()
setPreferredSize(new Dimension(60,60));
roll();
public int roll()
int val = (int)(6*Math.random() + 1);
setValue(val);
return val;
public int getValue()
return faceValue;
public void setValue(int spots)
faceValue = spots;
repaint();
@Override public void paintComponent(Graphics g) {
int w = getWidth();
int h = getHeight();
Graphics2D g2 = (Graphics2D)g;
g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
g2.setColor(Color.WHITE);
g2.fillRect(0, 0, w, h);
g2.setColor(Color.BLACK);
g2.drawRect(0, 0, w-1, h-1);
switch (faceValue)
case 1:
drawSpot(g2, w/2, h/2);
break;
case 3:
drawSpot(g2, w/2, h/2);
case 2:
drawSpot(g2, w/4, h/4);
drawSpot(g2, 3*w/4, 3*h/4);
break;
case 5:
drawSpot(g2, w/2, h/2);
case 4:
drawSpot(g2, w/4, h/4);
drawSpot(g2, 3*w/4, 3*h/4);
drawSpot(g2, 3*w/4, h/4);
drawSpot(g2, w/4, 3*h/4);
break;
case 6:
drawSpot(g2, w/4, h/4);
drawSpot(g2, 3*w/4, 3*h/4);
drawSpot(g2, 3*w/4, h/4);
drawSpot(g2, w/4, 3*h/4);
drawSpot(g2, w/4, h/2);
drawSpot(g2, 3*w/4, h/2);
break;
private void drawSpot(Graphics2D g2, int x, int y)
g2.fillOval(x-SPOT_DIAM/2, y-SPOT_DIAM/2, SPOT_DIAM, SPOT_DIAM);
}in another class A (the main class where i run everything) i created a new instance of dice and added it onto a JPanel.Also a JButton is created called roll, which i added a actionListener.........rollButton.addActionListener(B); (B is instance of class B)
In Class B in implements actionlistener and when the roll button is clicked it should call "roll()" from Dice class
Dice d = new Dice();
d.roll();
it works but it does not repaint the graphics for the dice? the roll method will get a random number but then it will call the method to repaint()???
Edited by: AceOfSpades on Mar 5, 2008 2:41 PM
Edited by: AceOfSpades on Mar 5, 2008 2:42 PMOne way:
class Flintstone
private String name;
public Flintstone(String name)
this.name = name;
public String toString()
return name;
public static void useFlintstoneWithReference(Flintstone fu2)
System.out.println(fu2);
public static void useFlintstoneWithOutReference()
Flintstone barney = new Flintstone("Barney");
System.out.println(barney);
public static void main(String[] args)
Flintstone fred = new Flintstone("Fred");
useFlintstoneWithReference(fred); // fred's the reference I"m passing to the method
useFlintstoneWithOutReference();
{code}
can also be done with action listener
{code} private class MyActionListener implements ActionListener
private Flintstone flintstone;
public MyActionListener(Flintstone flintstone)
this.flintstone = flintstone;
public void actionPerformed(ActionEvent arg0)
//do whatever using flinstone
System.out.println(flintstone);
}{code}
Edited by: Encephalopathic on Mar 5, 2008 3:06 PM -
Delay in the Response Group Rining / Call Pickup from another Extension
Dear All,
We have just finished a deployment of Lync 2013 with Sonus 1000 as the Mediation Gateway, we have deloyed polycom VVX 600 phones,
We have two lines E1 and 5 Fxo lines (with same Pilot Number)
I would like the Receptionist to have both E1 DID number and FXO number and her phone to ring when the calls comes from DID line as well as FXO,
I have the below scenario
1) Currently the setup is that Receptionist is configured with the E.164 DID number : (Line URI is Tel:+971XXXX500;ext=500), which work perfectly fine
2) We have added receptionist in Response Group , and setting are (Formal,10 sec , Attendant)
The issue :
1) Call forwarding does not work on Response Group (which is by design it self)
2) When a call comes from the outside to FXO it goes to response group , (there is Music played and the ring on reception is delayed by 2-3 secs) ,
Customer does not want this delay , it should ring immediately with no music,
3) If the receptionist moves from one location to any other location to another , she should have the ability to remotely perform call forward to that extension by simply dialing few codes on the phone ( I already told customer
about PIN based authentication, by customer does like the idea of signing in or signing out)
In DIRE NEED OF HELP,
Regards,
Hasan Reza,Hi,
Did the issue only happen for IP Phone in Response Group or also happen for Lync client in Response Group?
If the issue only happen for IP Phone, it seems to be an known issue. Please Make sure Lync Server update to the latest version and then test again.
Here are several similar case may help you:
https://social.technet.microsoft.com/Forums/lync/en-US/196375a5-3ae9-4452-acbe-2679a8deef80/delay-when-response-group-calls-are-answered
https://social.technet.microsoft.com/Forums/lync/en-US/70306bf5-fcd3-488a-b6f4-2eee1bcc0457/lync-2010-ip-phone-calls-and-response-group-delays
Best Regards,
Eason Huang
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
Eason Huang
TechNet Community Support -
Call String from another method
hey,
Im pretty new to java and Im having problems with calling a String from another method
I have two public voids, in one of them I have a String which I wanna use in another method.
Thankshere is some of my code:
public void getOrder() {
try {
DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
Document doc = docBuilder.parse(new File("c:/orders.xml"));
// normalize text representation
doc.getDocumentElement().normalize();
System.out.println("Root element of the doc is " + doc.getDocumentElement().getNodeName());
// lees orders
NodeList orderlijst = doc.getElementsByTagName("order_naam");
System.out.println("totale aantal orders : " + orderlijst.getLength());
// Element orderitem = (Element) orderlijst.item(0);
System.out.println("name=" + doc.getElementsByTagName("order_naam").item(0).getFirstChild().getNodeValue());
String st =doc.getElementsByTagName("order_naam").item(0).getFirstChild().getNodeValue();
public void createGUI () {
this.removeAll();
lbltest = new JLabel();
lbltest.setBounds(20, 40, 150, 20);
lbltest.setFont(new Font("Verdana", Font.BOLD, 12));
this.add(lbltest);
i want to use the String st in the jLabel in createGUI -
Can we call wizard from another wizard
Hello Everyone,
Can we call wizard function module from another wizard function module?
i tried to call, but the road maps and the documentation part of the screen is gettting overlapped.
Are there any parameters to be changed that the wizards can be called within a wizard?
Points assured.
Thanks in advance,
PrashantHi,
Do you mean you want to access BAPI in ABAP report?
If yes, then YES we can call,
1.Create a report -> In pattern write your BAPI name.
2. It is like your FM , Read correspoding BAPI documentation
3. Fill required parametes.
4. Test run and if successful , final run it.
And from Outside,
You have to establish a connection and create a wrapper and access using avaialble APIs.
Reward if useful! -
Call Dialog from another dialog
hi everyone
can anybody tell me how can we call one dialog from another dialog..
Is it possible...???
if it is, how we can we do ...please tell me with example
thanks in advanceIs it possible...???yes
if it is, how we can we do ...please tell me with example
public static void main(String[] args) {
JDialog parent;
for (int i = 0; i < 5; i++) {
JDialog d = new JDialog(parent, true);
parent = d;
d.setVisible(true);
} -
I have a button where i need to call one event from another... does anyone have any ideas on what the syntax would be?
public class PushButton extends Button
public PushButton()
* Mouse Pressed Event
this.addEventHandler(MouseEvent.MOUSE_PRESSED,
new EventHandler<MouseEvent>() {
@Override
public void handle(MouseEvent e) {
System.out.println("MousePressed");
* Mouse Released Event
this.addEventHandler(MouseEvent.MOUSE_RELEASED,
new EventHandler<MouseEvent>() {
@Override
public void handle(MouseEvent e) {
System.out.println("MouseReleased");
*// Make a call to the mouse pressed event????*
}Hi,
As per your requirement, i hope the below code should work. :)
public class PushButton extends Button
public PushButton()
* Mouse Pressed Event
final EventHandler<MouseEvent> mousePressedEvent = new EventHandler<MouseEvent>() {
@Override
public void handle(MouseEvent e) {
System.out.println("MousePressed");
this.addEventHandler(MouseEvent.MOUSE_PRESSED, mousePressedEvent);
* Mouse Released Event
this.addEventHandler(MouseEvent.MOUSE_RELEASED,
new EventHandler<MouseEvent>() {
@Override
public void handle(MouseEvent e) {
System.out.println("MouseReleased");
// Make a call to the mouse pressed event
mousePressedEvent.handle(e);
}Happy Coding !! :)
Regards,
Sai Pradeep Dandem. -
Call procedure from another procedure
Hi All,
I have a requirement to call a procedure from another procedure and don't want to return to the main procedure again.please suggest me how to achive this .
thanksuser13424229 wrote:
I have a requirement to call a procedure from another procedure and don't want to return to the main procedure again.please suggest me how to achive this .A very strange requirement.. that perhaps you should expand on in order to get proper technical input and advice from forum members.
Assuming a valid requirement, it should be implemented in the following way:
SQL> create or replace procedure ProcB is
2 begin
3 DBMS_OUTPUT.put_line( 'ProcB(): executing...' );
4 end;
5 /
Procedure created.
SQL>
SQL>
SQL>
SQL> create or replace procedure ProcA is
2 E_CEASE_PROCESSING exception;
3 pragma exception_init(E_CEASE_PROCESSING, -20000 );
4 begin
5 DBMS_OUTPUT.put_line( 'ProcA(): executing...' );
6 DBMS_OUTPUT.put_line( 'ProcA(): doing stuff 1...' );
7 raise E_CEASE_PROCESSING; --// typically a conditional instruction
8 DBMS_OUTPUT.put_line( 'ProcA(): doing stuff 2...' );
9
10 exception when E_CEASE_PROCESSING then
11 ProcB;
12 end;
13 /
Procedure created.
SQL>
SQL>
SQL> exec ProcA
ProcA(): executing...
ProcA(): doing stuff 1...
ProcB(): executing...
PL/SQL procedure successfully completed.
SQL> -
Call Workbook from another Workbook
Hello,
I want to call a Workbook from another Workbook just like calling a Query via Report-Report-Interface with restrictions from the selected line.
Does anybody know, if this works in Excel?
Thank you for your answers!
AndreasHi Andreas,
San's response will open the workbook. If you want to also refresh the queries in the workbook, you have the option of setting workbook properties (see the Interaction tab in the BEx Workbook properties dialog) to refresh all queries when the workbook opens; or, use
Run "sapbex.xla!SAPBEXrefresh", True
But, you also mentioned restrictions (filters?) based on the line selected. You can do this using
ReturnValue = Run("SAPBEX.XLA!SAPBEXSetFilterValue", myFilter, "", myRange)
I would suggest an entirely different approach, however. I would suggest that you actually do use RRI; and, if you want to have the RRI query open a particular workbook (instead of in a blank workbook), you set the local properties to "Use permanent template" ... and define the workbook you want the RRI query to embed in as the "permanent template". Then, after the RRI query refreshes and embeds, change the embed option back to whatever the user's default was before.
Here is example code to achieve this:
Sub jump2KPIODS()
Dim myCell As Range, resultRng As Range
Dim ws As Worksheet, myRange As Range
Set myCell = ActiveCell
Set ws = ActiveSheet
If Not BExIsLoaded Then Exit Sub
'ensure that user selected a cell within the query results table!
On Error Resume Next
Set resultRng = Range(ws.CodeName & "_results")
If resultRng Is Nothing Then
MsgBox "Unable to locate query results on " & ws.Name & ".", vbCritical, _
"Unable to jump to KPI ODS query."
Exit Sub
End If
Set myRange = Application.Intersect(myCell, resultRng)
If myRange Is Nothing Then
MsgBox "Please select a cell in the query results table.", vbCritical, _
"Unable to jump to KPI ODS query."
Exit Sub
End If
'set New Workbook on embed ... is based on Permanent Template
Run "sapbex.xla!templatePermanent"
'define the KPI ODS jump workbook as the Permanent Template
wbID = Documentation.Range("M5")
retVal = Run("sapbex.xla!rfcSetTemplate", wbID, "")
'rfcSetTemplate function returns a Boolean
If Not retVal Then
MsgBox "Unable to set workbook for receiver query.", vbCritical, _
"Unable to jump to KPI ODS query."
Exit Sub
End If
'check that jump is valid
retVal = Run("sapbex.xla!SAPBEXcheckContext", "BS01", myCell)
If retVal <> 0 Then
MsgBox "Please refresh query before attempting jump to details.", vbCritical, _
"Unable to jump to KPI ODS query."
Exit Sub
End If
'make the initial jump via RRI to QURY0001
Run "SAPBEX.XLA!SAPBEXjump", "r", "QURY0001", myCell
'set New Workbook on embed ... is selected from list
Run "sapbex.xla!templateChoose"
End Sub
NOTE: the RRI jump query will embed on top of the LAST query embedded in the "target" workbook. So, if there is more than one query in the "target" workbook, be sure that the jump query is the LAST one embedded.
- Pete -
I need to make a several calls to the methods inside EJB1 from EJB2. I was getting
the remote reference of the EJB2 inside the ejbCreate() of the EJB1, is it a good
practice ?? If not, do I need to get remote reference of the EJB2 every time I
need to call EJB2 method??
Thanks in advance.To refer a Ejb from another Ejb include <ejb-ref> in ejb-jar.xml
<session>
<ejb-name>Ejb1</ejb-name>
<ejb-ref>
<ejb-ref-name>Ejb2</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<home>com.ejb.Ejb2Home</home>
<remote>com.ejb.Ejb2</remote>
</ejb-ref>
<session>
Include a <reference-discriptor> in weblogic-ejb-jar.xml
<weblogic-enterprise-bean>
<ejb-name>EjbSession</ejb-name>
<reference-descriptor>
<ejb-reference-description>
<ejb-ref-name>Ejb2</ejb-ref-name>
<jndi-name>com.ejb.Ejb2Home</jndi-name>
</ejb-reference-description>
</reference-descriptor>
</weblogic-enterprise-bean>
In Ejb1 bean class refer to Ejb2 method with a remote reference to Ejb2.
InitialContext initialContext = new InitialContext();
Ejb2Home ejb2Home = (Ejb2Home)initialContext.lookup("com.ejb.Ejb2Home");
Ejb2 ejb2 = ejb2Home.findByPrimaryKey();
Alex Pratt wrote:
I need to make a several calls to the methods inside EJB1 from EJB2. I was getting
the remote reference of the EJB2 inside the ejbCreate() of the EJB1, is it a good
practice ?? If not, do I need to get remote reference of the EJB2 every time I
need to call EJB2 method??
Thanks in advance. -
Xsl question - call xsl from another xsl
Hi,
I have a xsl which should be invoked from another xsl. I have a transformheader.xsl which transforms the header values. I would like to invoke this xsl from various client xsl files.(to transform the header).
transformheader.xsl should take the header as input and give header as output.
Basically I am moving the header transform logic to one xsl file & reuse it.
Can you please help me with the syntax or any links to samples/docs?
transformheader.xsl:
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0">
<xsl:template match="/">
<ns1:header>
<ns1:ebmAID>
<xsl:value-of select="/ns1:header/ns1:ebmBID"/>
</ns1:ebmAID>
<ns1:ebmBID>
<xsl:value-of select="/ns1:header/ns1:ebmAID"/>
</ns1:ebmBID>
</ns1:header>
</xsl:template>
</xsl:stylesheet>
client1.xsl(transforms one message to other, both has the header)
<?xml version="1.0" encoding="UTF-8" ?>
<?oracle-xsl-mapper......>
<xsl:stylesheet version="1.0">
<xsl:template match="/">
<tns:sampleee>
<hdr:header>
===== invoke the transformheader.xsl to insert the header here
</hdr:header>
<tns:body>
<xsl:for-each select="xxxxx">
</tns:body>
</tns:sampleee>
</xsl:template>
</xsl:stylesheet>Here you go:
CreateHeader.xsl
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:inp="http://temp.org/input"
xmlns:out="http://temp.org/output"
>
<xsl:template name="CreateHeader">
<xsl:param name="InputHeader"/>
<out:header>
<out:ebmAID>
<xsl:value-of select="/inp:header/inp:ebmID"/>
</out:ebmAID>
<out:ebmBID>
<xsl:value-of select="/inp:header/inp:ebmContextID"/>
</out:ebmBID>
</out:header>
</xsl:template>
</xsl:stylesheet>Main XSL:
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:inp="http://temp.org/input"
xmlns:out="http://temp.org/output"
>
<!-- Import the createHeader.xsl here -->
<xsl:import href="CreateHeader.xsl"/>
<xsl:template match="/">
<out:RootElement>
<!-- This will inser the header by calling the CreateHeader XSL -->
<xsl:call-template name="CreateHeader">
<xsl:with-param name="InputHeader" select="inp:header"/>
</xsl:call-template>
<xsl:for-each select="/inp:body">
<out:body>
<!-- logic for creating body goes here -->
</out:body>
</xsl:for-each>
</out:RootElement>
</xsl:template>
</xsl:stylesheet> -
Calling Form from Another program
All.
I have program A and program B. While executing Program A i need to call a perform (form) from Program B and result out this needs to flow into program A
Like Program B having a form f_select_data
form f_select_data.
select * from mara into table it_mara
where matnr in s_matnr
endform.
I need to call this from program A and results back to A
a®Try this:.
In Z_PROGRAM use function
..PERFORM get_data_from_z_program in Y_PROGRAM.
In Y_PROGRAM write:
FIELD-SYMBOLS: <qals>. (example for qals table)
* inspection lot data
DATA: t_qals LIKE qals OCCURS 0 WITH HEADER LINE.
DATA: wa_qals LIKE LINE OF t_qals.
ASSIGN ('(Z_PROGRAM)QALS[]') TO <qals>.
IF NOT ( <qals> IS INITIAL ) .
t_qals[] = <qals>.
READ TABLE t_qals INTO wa_qals INDEX 1.
IF sy-subrc = 0.
qals = wa_qals.
ENDIF.
ENDIF.
hope helps..
Maybe you are looking for
-
Is there a way to track the status of a process?
Hi all, after user completes a process, user later might want to know what stage this process is in, user want to keep track. is there a way to do so? i tried the UWL's "Completed tasks" it only shows me some very basic infos. i want to know what st
-
Sharpening not applying in iPhoto '11
When I apply sharpening to my pictures, I can see it being applied in the edit view, but when I switch out of edit view the sharpening is "gone". Am I doing something wrong? Thanks, sherri
-
What are the contents in technical specifications
What are the contents in technical specifications could u plz explain clearly
-
I have not used my ipad2 for about 3 months because I have an ipad3 So today I went to turn it on and it would not power up So I plug it in to get ac to charge nd it will not power t ll
-
can I back my photos to icloud, delete photos in my phone, and access my photos wirelessly when I need them?