Creating multiple rectangle objects
Hi all
Just having a bit of trouble with a drawing applet i'm creating. At the moment i want the user to be able to click on the screen and the mouse presses and releases define the size of the rectangle. This isn't a problem its just that now i want them to be albe to add more shapes by clicking a new Shape button. at the min my code seems to get stuck in the while loop in the paint method i think, and then it says that the applet is disposed?
Any ideas where i could be going wrong?
Cheeers for any pointers
Heres the code
import java.awt.*;
import java.applet.*;
import java.awt.event.*;
import java.util.*;
public class drawingApplet extends Applet
implements ActionListener, MouseListener
private Button newShape = new Button("New");
private Button button2D = new Button("2D");
//arraylist for objects
ArrayList shapesArray = new ArrayList();
boolean drawObject = true; //Drawing Mode
boolean moveObject = false;
private Color color = Color.black;
int x1,y1,x2,y2,x3,y3,x4,y4 = 0;
int startX,startY,width,height = 0;
Rectangle myRectangle = new Rectangle(startX,startY,width,height);
public void init()
Panel pEast = new Panel();
pEast.setLayout(new GridLayout(7,1));
pEast.add(newShape);
pEast.add(button2D);
setBackground(Color.gray);
newShape.addActionListener(this);
button2D.addActionListener(this);
addMouseListener(this);
public void paint(Graphics g)
Graphics2D g2 = (Graphics2D)g;
g2.setColor(color);
//create Rectangle Object
myRectangle = new Rectangle(50,50,50,50);
shapesArray.add(myRectangle);
Iterator it = shapesArray.iterator();
while(it.hasNext())
//DRAW Object
if(drawObject == true){
g2.draw(myRectangle);
}//--> End of While loop
} //--> End of Paint()
//--> Start of actionPeformed()
public void actionPerformed(ActionEvent a)
if (a.getSource()== button2D){
drawObject = true;
moveObject = false;
}else if(a.getSource()== newShape){
//add rectangle to arraylist
shapesArray.add(myRectangle);
repaint();}
}//--> End of actionPerformed()
//--> Start of section dealing with Mouse Events
public void mouseClicked(MouseEvent e)
public void mouseEntered(MouseEvent e)
public void mouseExited(MouseEvent e)
public void mousePressed(MouseEvent e)
x1 = e.getX();
y1 = e.getY();
if(myRectangle.contains(x1,y1)){
drawObject = false;
moveObject = true;
}else{ //draw the object
drawObject = true;}
}//--> End of mousePressed()
public void mouseReleased(MouseEvent e)
//get the positions of where the mouse was released
x2 = e.getX();
y2 = e.getY();
if(drawObject == true){
if (x1 != x2 && y1 != y2){
//maths to work out where to draw the object
if(x1 < x2 && y1 < y2){//1
startX = x1;
startY = y1;
height = y2 - y1;
width = x2 - x1;}
else if (x1 > x2 && y1 > y2){//2
startX = x2;
startY = y2;
height = y1 - y2;
width = x1 - x2;}
else if (x1 > x2 && y1 < y2){//3
startX = x2;
startY = y1;
height = y2 - y1;
width = x1 - x2;
else if (x1 < x2 && y1 > y2){//4
startX = x1;
startY = y2;
height = y1 - y2;
width = x2 - x1;}
}else if(moveObject == true){
if (x1 != x2 && y1 != y2){
startX = x2;
startY = y2;
width = myRectangle.width;
height = myRectangle.height;
repaint();
}//--> End of mouseReleased()
}Also if anybody has some examples i could look at i would be very grateful. Cheers!!
/* <applet code="AddingRectangles" width="400" height="300"></applet>
* use: >appletviewer AddingRectangles.java
import java.applet.Applet;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
public class AddingRectangles extends Applet implements ActionListener, MouseListener
private Button newShape = new Button("New");
private Button button2D = new Button("2D");
//arraylist for objects
ArrayList shapesArray = new ArrayList();
boolean drawObject = true; //Drawing Mode
boolean moveObject = false;
private Color color = Color.black;
int x1,y1,x2,y2,x3,y3,x4,y4 = 0;
int startX,startY,width,height = 0;
Rectangle selectedRectangle;
public void init()
Panel pEast = new Panel();
pEast.setLayout(new GridLayout(7,1));
pEast.add(newShape);
pEast.add(button2D);
// setBackground(Color.gray);
newShape.addActionListener(this);
button2D.addActionListener(this);
addMouseListener(this);
public void paint(Graphics g)
Graphics2D g2 = (Graphics2D)g;
g2.setColor(color);
//create Rectangle Object
// myRectangle = new Rectangle(50,50,50,50);
// shapesArray.add(myRectangle);
Iterator it = shapesArray.iterator();
while(it.hasNext())
g2.draw((Rectangle)it.next());
} //--> End of Paint()
//--> Start of actionPeformed()
public void actionPerformed(ActionEvent a)
if (a.getSource()== button2D){
drawObject = true;
moveObject = false;
}else if(a.getSource()== newShape){
//add rectangle to arraylist
// shapesArray.add(myRectangle);
repaint();
}//--> End of actionPerformed()
//--> Start of section dealing with Mouse Events
public void mouseClicked(MouseEvent e){}
public void mouseEntered(MouseEvent e){}
public void mouseExited(MouseEvent e){}
public void mousePressed(MouseEvent e)
x1 = e.getX();
y1 = e.getY();
selectedRectangle = null;
Iterator it = shapesArray.iterator();
Rectangle r;
while(it.hasNext())
r = (Rectangle)it.next();
if(r.contains(x1,y1)){
drawObject = false;
moveObject = true;
selectedRectangle = r;
break;
// no rectangle selected
if(selectedRectangle == null)
selectedRectangle = new Rectangle(x1, y1, 0, 0);
drawObject = true;
}//--> End of mousePressed()
public void mouseReleased(MouseEvent e)
//get the positions of where the mouse was released
x2 = e.getX();
y2 = e.getY();
if(drawObject == true){
if (x1 != x2 && y1 != y2){
//maths to work out where to draw the object
if(x1 < x2 && y1 < y2){//1
startX = x1;
startY = y1;
height = y2 - y1;
width = x2 - x1;
else if (x1 > x2 && y1 > y2){//2
startX = x2;
startY = y2;
height = y1 - y2;
width = x1 - x2;
else if (x1 > x2 && y1 < y2){//3
startX = x2;
startY = y1;
height = y2 - y1;
width = x1 - x2;
else if (x1 < x2 && y1 > y2){//4
startX = x1;
startY = y2;
height = y1 - y2;
width = x2 - x1;
if(Math.abs(x2 - x1) > 0 && Math.abs(y2 - y1) > 0)
shapesArray.add(new Rectangle(x1, y1, width, height));
}else if(moveObject == true){
if (x1 != x2 && y1 != y2){
startX = x2;
startY = y2;
width = selectedRectangle.width;
height = selectedRectangle.height;
repaint();
}//--> End of mouseReleased()
public static void main(String[] args)
Applet applet = new AddingRectangles();
Frame f = new Frame("Adding Rectangle");
f.addWindowListener(new WindowAdapter()
public void windowClosing(WindowEvent e)
System.exit(0);
f.add(applet);
f.setSize(400,300);
f.setLocation(200,200);
applet.init();
applet.start();
f.setVisible(true);
}
Similar Messages
-
Creating Multiple Resource Objects for OOTB Connectors
All,
I am trying to create a second AD User resource object for the OOTB connector. I would like to think that the AD Connector (and all connectors, for that matter) was designed to handle the creation of multiple Resource Objects for the same Resource Types, but am I wrong? It doesn't seem like the OIM Connector can handle this easily.
Has anyone created multiple resource objects for a connector? Is this a fairly simple task, or will it require a large effort? Is it even possible? Any pointers?
Thanks!I will provide a little help with the duplication. I found the best way to do it is to import the original connector. Go through the different pieces making each one have a unique name, that is not part of any of the other piece names. You need to have unique names for the following:
1. Resource Object
2. Process Definition - Provisioning
3. IT Resource
4. Form - Process
5. Scheduled Task
After you import the connector, rename each of the following to something unique. I would also update your process form to have a default value of your IT Resource, as well as your scheduled task values to point to the new unique names. Export the 5 items, no dependecies. The adapters will all be the same. Use find and replace for the values and then import the new XML. If it works, duplicate the XML for each of the new workflows you want to create.
-Kevin -
hi i have create an application that load multiple image from file JLabel using the for loop beause everytime the for loop will create a new JLabel imageJLabel() therefore i would like to know is that anyway that i could create multiple object JLabel like this
for(int i=0;i<count;i++)
JLabel imageLabel + i = new JLabel();
i hope to do it like this
JLabel imageLabel1 = new JLabel();
JLabel imageLabel2 = new JLabel();
JLabel imageLabel3 = new JLabel();
This is the code:
try
while(rs.next())
tName.addElement(rs.getString("Name"));
tGoals.addElement(rs.getString("Goals"));
count++;
System.out.println("The numbers of records " + count);
}catch(SQLException sqlex)
System.out.println("Error....");
howPicPanel.setLayout(new GridLayout(count,1,5,5));
showRatePanel.setLayout(new GridLayout(count,1,5,5));
for(i=0;i<count;i++)
JLabel imageLabel = new JLabel();
Icon teampic = new ImageIcon("image/image.gif");
imageLabel.setIcon(teampic);
imageLabel.setText(String.valueOf(tName.elementAt(i)));
imageLabel.setToolTipText(String.valueOf(tName.elementAt(i)));
showPicPanel.add(imageLabel);for(int i=0;i<count;i++)
JLabel imageLabel + i = new JLabel();
}Won't work, but this will:
JLabel [] labels = new JLabel[count];
for( int i=0; i<count; i++ ) {
labels[i] = new JLabel(); -
Creating multiple resource objects at once
Hi,
Business roles are multivalued attributes and in order for OIM to manage them, I am creating them as resources. These resources will have role id and role name as its fields. I have close to 50 biz roles in the system. Is there any way I can create them in bulk than having to create the resource obj, process defn. and process forms for each of them manually?
Thanks,
SupreethaYou can create one workflow and uniquely identity the objects names such as:
RO_NAME, PROV_PROC_DEF, APPR_PROC_DEF, UD_FORM and so on to identify all the objects. Export the workflow. Come up with either code, or some way to find and replace these values with your list of names for your other workflows. Then import the workflows.
You could try and come up with code that takes a template, and then generates a new xml file with a list of values.
-Kevin -
Help trying to create multiple rectangles
Hi, I'm trying to create a five-in-a-row game, and I need lots of rectangles, forming a kind of a net. I've figured out a bit, but the thing is that every new rectangle seems to erase all the former ones, so in the end there's just the last one. I use this code:
import java.awt.*;
import java.awt.event.*;
import java.awt.geom.*;
import javax.swing.*;
public class luffare extends JApplet {
ruta rutor[] = new ruta[400];
public void init() {
for(int a=0;a<20;a++){
for(int b=0;b<20;b++){
rutor[a*20+b] = new ruta(a*10, b*10);
//rutor[a*20+b].setBackground(Color.white);
getContentPane().add(rutor[a*20+b]);
class ruta extends JPanel implements MouseListener, MouseMotionListener{
Rectangle rect;
public ruta(int xPos, int yPos){
rect = new Rectangle(xPos, yPos, 10, 10);
addMouseMotionListener(this);
addMouseListener(this);
public void paintComponent(Graphics g){
Graphics2D g2 = (Graphics2D)g;
g2.draw(rect);
public void mouseReleased(MouseEvent e){}
public void mousePressed(MouseEvent e){}
public void mouseDragged(MouseEvent e){}
public void mouseMoved(MouseEvent e){}
public void mouseClicked(MouseEvent e){}
public void mouseExited(MouseEvent e){}
public void mouseEntered(MouseEvent e){}
I'm really stuck here, can anybody help?
regards,
M?ns WideHey, I'm no Swing expert, actually I'm very much a beginner in Swing! I suggest you go through the Swing tutorials
{color:#0000ff}http://java.sun.com/docs/books/tutorial/uiswing/index.html{color}
and learn about the multitude of features that can be useful to you.
After that, if you have any problems related to Swing, please post in the Swing forum where you will get advice from real experts.
This works, using setBounds(...) with null Layout --I've added the position number to each Ruta (size increased to 20 X 20 for that) so you can see where they go.
file Luffare.javapackage manswide;
import java.awt.*;
import javax.swing.*;
public class Luffare extends JApplet
Ruta rutor[] = new Ruta[400];
public void init ()
setLayout (null);
for(int a = 0; a < 20; a++)
for(int b = 0; b < 20; b++)
rutor[a * 20 + b] = new Ruta (a * 20 + b);
getContentPane ().add (rutor[a * 20 + b]);
rutor[a * 20 + b].setBounds (a * 20, b * 20, 20, 20);
}file Ruta.javapackage manswide;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.border.*;
class Ruta extends JPanel implements MouseListener, MouseMotionListener
Rectangle rect;
int id;
public Ruta (int newId)
id = newId;
setBorder (LineBorder.createBlackLineBorder ());
addMouseMotionListener (this);
addMouseListener (this);
public void paintComponent (Graphics g)
Graphics2D g2 = (Graphics2D)g;
g2.setFont (new Font("Arial", 1, 9));
g2.drawString (Integer.toString (id), 2, 10);
public void mouseReleased (MouseEvent e) {}
public void mousePressed (MouseEvent e) {}
public void mouseDragged (MouseEvent e) {}
public void mouseMoved (MouseEvent e) {}
public void mouseClicked (MouseEvent e) {}
public void mouseExited (MouseEvent e) {}
public void mouseEntered (MouseEvent e) {}
}It's good practise to place each java class in its own file.
db
-- To post code, use the code button or type the code tags -- [code]CODE[/code] is displayed as CODE -
Multiple resource objects provision issue in OIM10g
Hi Team,
We're facing an issue regarding multiple access policy trigger for a specific resource object in OIM.
The scenario is whenever we try to process the enablement or creation of users through flat file recon, users are created / enabled with multiple resource objects in their resource profiles.
When we checked in User Resource Access History report, we observe that the access policy has been triggering multiple times for these users resulting in users with multiple resource objects. Amongst these one shows provisioned/Enabled and the other shows provisioning/in some cases Provisioned/Enabled.
Please advise as this has become an ongoing issue and also has led into data mess-up.
Appreciate your help on this one..
Regards,
SagarThe terminology sounds a little confusing to me:
If you mean you wanna create multiple IT Resources for a single IT Resource Instance so that the user can select the appropriate IT Resource during request creation -> All good upto here. But then since the Object/Request Form attached to a resource would be the same, so any user would always see the same form fields for creationg request.
Example: Users creating request for Oracle Database Accounts but different server locations
If it means you just need to create multiple Resource Objects then its a straighaway standard requirement and could be handled with normal Connector Development methodology.
Example: Users creating requests for different resources like Oracle Database Accounts & Active Directory Accounts -
How to create multiple infoobjects?
Hi Experts ,
I have a requirement where i need to create more than 70 infoobjects. Is there any standard report or function module where we can create multiple infoobjects and a detailed log if any infoobject got any error in between. I know creating infoobjects through RSA1 one by one but looking out for any program where we can create multiple infoobjects.Dear Adi,
While there are FM to activate and Delete Multiple InfoObjects,,,We dont have any proces of creating Multiple Info Objects ata time..
Because each infoobject ahs differnt properties and different charactersitcs...some this is not feasible..
Hope this helps u..
Best Regards,
VVenkat... -
Multiple Dependent Object Creation
I would like to create multiple dependent objects as a single transaction. I have the following custom objects:
WorkingGroup extends DirectoryGroup
WorkingUser extends DirectoryUser
WorkingUserProfile extends ExtendedUserProfile
When a WorkingGroup is created, it needs to create the following objects:
4xAccessControlList
1xWorkingUser + 1xWorkingUserProfiles
1xFolder
And it needs to set relational references between them.
WorkingGroup needs Folder
Folder needs an ACL
WorkingUser needs WorkingGroup, WorkingUserProfile, and an ACL
I want to create the WorkingGroup and have that (preferably in an override but at minimum within a transaction) create the objects it requires. Otherwise when there is an error, my integrity is blasted and I have objects that cannot be easily deleted.Andrew,
Your probably best off avoiding overrides and simply using a
transaction.
Overrides should typically be used to change the way the
repository interacts with itself and with external applications.
I like to think of them as analagous to Database table-level
triggers.
From what you have outlined, it sounds like you want
a "WorkingGroupCreator" object which can create an instance of
WorkingGroup and all it's associated ACLs, Profiles and so forth.
The Creator object should do everything within a Transaction.
If any operation fails, all the work of the Creator is
rolledback.
You probably want a "WorkingGroupDeletor" as well. This will
clean up all the objects associated with the WorkingGroup in a
transactional manner.
I imagine that your WGC might have a form like:
public class WorkingGroupCreator
public WorkingGroupCreator(LibrarySession ls,
String groupName,
String userName,
DirectoryObject[] members,
//save values in private members
public WorkingGroup create()
begin transaction
group = createGroup()
user = createUser()
profile = createUserProfile(user)
acls[] = createAcls(group, user)
folder = createFolder(group, user);
applyAclsToFolder(folder, acls)
completeTransaction();
finally
If transaction not completed
abortTransaction()
return group; -
How do I create multiple objects during runtime?
I don't know how to create multiple objects during runtime, here's my problem:
I get a String as input. Then I create an object called newobject. I put the object in a hashtable with the above string as key.
Then comes the problem, in order to create a new object, I have to rerun the same class, which uses the same name (newobject) to create a 2nd object. Now my hashtable doesn't reference to my 1st object anymore...
Is there anyway I can fill up the hashtable with different objects, and make each key point to each object it was supposed to?
For those who want to see a bit of the program:
public class PlayBalloon{
public Hashtable ht = new Hashtable();
for(){
Balloon pB = newBalloon;
newBalloon=new Balloon(pB);
ht.put("Some input from user", newBalloon);
for(){
ht.get(s).draw;<= s=string, draw=own meth. in Balloon
}I think i can see the problem that you are having. You have, in effect, duplicate keys in your hashtable - ie, two strings used as keys with the same name.
The way that a hashtable works is as follows...
When you ask for a value that is mapped to a key it will go through the table and return the first occurence it finds of the key you asked for. It does this by using the equals() method of whatever object the key is (in your case it is a String).
If you cant use different Strings for your keys in your hashtable then i would consider writing an ObjectNameKey class which contains the String value that you are trying to put in the hashtable and an occurrence number/index or something to make it unique. Remember to override the equals method in your ObjectNameKey object or else the hash lookup will not work. For example
class ObjectNameKey {
private String name;
private int occurence;
public ObjectNameKey(String name, int occ) {
this.name = name;
this.occurence = occ;
public String getName() {
return name;
public String getOccur() {
return occurence;
public boolean equals(Object o) {
if (!(o instanceof ObjectNameKey)) {
return false;
ObjectNameKey onk = (ObjectNameKey)o;
if (onk.getName().equals(name) && onk.getOccur() == occurence) return true;
return false; -
Creating multiple instances of a class in LabVIEW object-oriented programming
How do you create multiple instances of a class in a loop? Or am I thinking about this all wrong?
For instance, I read in a file containing this information:
Person Name #1
Person Age #1
Hobby #1
Hobby #2
Hobby #3
Person Name #2
Person Age #2
Hobby #1
Hobby #2
Hobby #3
Person Name #3
Person Age #3
Hobby #1
Hobby #2
Hobby #3
If I define a Person class with name, age, and an array of strings (for the hobbies), how can I create several new Person instances in a loop while reading through the text file?
FYI, new to LabVIEW OOP but familiar with Java OOP. Thank you!First of all, let's get your terminology correct. You are not creating multiple instances of a class. You are creating Objects of the class.
Use autoindexing to create an array of your class type.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines -
Creating Views on multiple entity-objects
Dear Forum,
Is it possible to make associations and lookups based on multiple entity-objects.
I made a custom view, say view1 based on two entity-objects, say entity1 and entity2.
I used some fields from entity1 and some from entity2. There's a 1 to 1 association between the index of entity1 and entity2.
Now I want to make a master-detail between entity1 and view1. I tried to make links and associations, but that didn't work.
Any ideas?
Kind regards,
ArjenArjen,
I am a bit confused by what it is you need. It appears you may have Entity Object and View Objects mixed up. Entity Objects are one-to-one with database tables. So, for every table one Entity Object, and the other way around. Associations are, pretty much, one-to-one with foreign keys on the database. So, if two tables have a foreign key between them, the two Entity Objects will have an Association between them. In that respect, Entity Objects and Associations are usually 'strictly defined' by the database model.
The layer of View Objects and View Links is where you 'get design control' in the Business Components arena. A View Object can be based on zero, one or more Entity Objects. Viewlink, defining 'Master-Detail' relationships between View Objects (and NOT Entity Objects!!) can but don't have to be based on Entity Associations (i.e. foreign keys), but can be based on any attribute in the 'Master' view to any attribute in the 'Detail' view.
In this respect, your statement that you want to "make a master-detail between entity1 and view1" makes no sense. It sounds like you need to create a View2, and then make a View Link between View1 and View2.
Kind regards,
Peter Ebell
JHeadstart Team -
Create a dinamic new grafic (rectangle) object
hi guys, first thanks all for your help,
i want to create a simple application in javafx that when i clic a button i create a new rectangle in Scene,
, naturally i want set
the dimension, but this is not a problem, my problem i don't know creating the dinamic object
i read this example
http://download.oracle.com/docs/cd/E17802_01/javafx/javafx/1.3/docs/api/javafx.scene/javafx.scene.CustomNode.html
i use the second pattern but don't work :(
can you help me?
best regads
package javafxapplication3;
import javafx.scene.*;
import javafx.scene.paint.*;
import javafx.scene.shape.*;
public class figura1 extends CustomNode{
override function create():Node {
return Group {
content: {
Rectangle {
x: 30
y: 30
width: 100
height: 10
fill:Color.RED
package javafxapplication3;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.text.Text;
import javafx.scene.text.Font;
import javafx.scene.control.Button;
import javafx.scene.Group;
import javafx.scene.shape.Circle;
import javafx.scene.paint.Color;
var g1 = Group {
content: [
Button {
translateX: 15
translateY: 10
text: "Create Rectangle "
action: function() {
figura1{}; // i call class figura1
var stage =Stage {
title: "Application title"
scene: Scene {
width: 250
height:280
content: [
g1,
]// end content
}// end scene
}Edited by: 851168 on 20-mag-2011 6.24
Edited by: 851168 on 23-mag-2011 5.57Moderator advice: Please read the announcements at the top of the forum listing and the forums FAQ linked from every page. They are there for a purpose.
Then edit your post and format the code correctly.
db -
Create confirmation for multiple cost objects PO in SUS
Hi,
Is it possible to create confirmation for multiple cost objects PO ( order type 'MA') in SUS ?
We are going to implement SRM 7.
Thanks & regards,
Afandi-Hi All,
First of all, thanks for your responses..
Right, about the issue, what I explained here was that I am indeed assigning only one cost object: the WBS element. The issue was that even though I am assigning only the WBS element, it was also assigning the cost to the cost center by default. I did some R&D and found the solution to the issue (I was also asked to look for OSS notes but was not satisfied that this issue needs an OSS note to be applied so tried my solution). The issue was in table: T788M (allocate costs to variable account assignment). Here, I created an entry and called it USERGROUP_2 (just a random name) and assigned the variable cost objects (only the WBS and the Cost center) to be displayed. In the next step, I assigned this usergroup to the country in quesion feature (TRVCO). By doing this, I tell the system that only these cost objects are to be considered when an employee wants to assign the cost object. If the system sees that there is no value from the drop down to choose from, it picks up the default cost object (cost center). This was a simple issue that I had to rattle my brains on... but the solution I mention above worked like a hot knife going through butter...
If you guys face this issue, please try this else feel free to get in touch with me on my number below.
Once again, thanks for your responses.
Best regards,
Tanmay Dhingra
+91 880 6666 606 -
How can we create an entity object using multiple tables?
Hi All,
I'm a newbie to OAF.
I'm trying to create a simple page using OAF.
While creating Entity object, there is an option to add the database objects from which we can create our Entity Object.
There we can enter only one database object.
If suppose I need to create a Entity object by using mutiple data base objects, how can I add other database objects?
Is there any option for multiple selection of database objects there?
Thanks in AdvanceUser,
a). You should use the [url http://forums.oracle.com/forums/forum.jspa?forumID=210]OA Framework Forum for this question.
b). Entity objects always correspond to a single table. I think you want to create a View object instead.
c). Really, you want to be using the OA Framework forum.
John -
Updation problem while creating multiple objects from enterprise portal
Hi All,
From enterprise portal i am calling an RFC 'BAPI_PROJECT_MAINTAIN' to create objects .
While trying to create multiple objects simultaneously it gives error "sapuser is currently using, can't be created".
It seems like as i am creating multiple objects by calling RFC repeatedly , while the first one is not updated fully i am sending the second value to be processed.
Pl. tell me how to overcome this. Do I need to add any sleep time in EP or any other method is there in SAP to overcome this situation.
thanks
sandeepDear Sandeep,
I have discussed this problem with EP team lead in my organisation, i have given your email id to him he will forward the solution on your id.
If usefull reward points helpfull....
Regards,
Rajneesh Gupta
Maybe you are looking for
-
Have just down loaded Yosemite over Mountain Lion, Indesign CS5 does not work ( Am dependant on it) although Bridge , Light Room and Elements operate OK How do I solve this rapidly. Can any one help on this issue. Thanks
-
Code Editor..How to create a new procedure/package
Hi, I have starting using SQL Developer after using TOAD for long itme. I got stumped at the first step, wehrein I need to write a new Procedure or package. I did not see any option to do that. I could open any existing codes and modify them, but to
-
What is the best way to host an interactive PDF in a website?
I am making an interactive fashion magazine with DPS and I need it to be put into a website, but haven't found a simple solution yet. I am not very well versed with HTML, so something without too much of that would be good. What type of website would
-
Sutdown of a Database in Shared Server Modus
Hi, I have set up today a database called "db03" in Shared Server Mode. After the installation everything looked fine beside that there was no entry in the listener.ora file for the Database. Anyways I added the entry to the listener.ora and was able
-
Dears, How can I change my OTN account e-mail? Thanks & kisses Verônica