How to create row through VO?

Hai,
I wrote code for creation of Row through ViewObject and i called that method using Mbean. But it is Not at all creating Row. Whether it is right?
ViewObject as=this;
Row r2=getViewObject().createRow();
// Row r2=getCurrentRow();
r2.setAttribute("Sname", Sname);
r2.setAttribute("Sid", sid);
r2.setAttribute("Saddress", Sadd);
r2.setAttribute("Phoneno", Phoneno);
r2.setAttribute("Pincode", Pincode);
r2.setAttribute("Mark", mark);
this.insertRow(r2);
How can i modify code to create Row?

Hi,
I have created the method in ApplicationModuleImpl class
I am using Oracle 10g XE ----- HR Schema ----> LOCATIONS table
I have used the following code :
ViewObjectImpl vo = getLocationsView1();
Row r = vo.createRow();
Integer i = new Integer(4000);
r.setAttribute("LocationId", i);
r.setAttribute("StreetAddress", "Test");
r.setAttribute("PostalCode", "Test");
r.setAttribute("City", "Test");
r.setAttribute("StateProvince", "Test");
r.setAttribute("CountryId", "IT");
vo.insertRow(r);
System.out.println("Test");
this.getDBTransaction().commit();
It inserted the row.
you were not able to see the row beacuse of commit. - may be
The row is not inserted in your case because you have not committed - may be .
Edited by: Moinak on Mar 4, 2011 5:25 AM
Edited by: Moinak on Mar 4, 2011 5:26 AM

Similar Messages

  • How to create po through batch run

    Hi,
    how to create po through batch run (through background job)
    Prashanth

    Hi Prashanth ,
    Run the below program as a background job.
    Make sure that inforecord exists for all and automatic PO are ticked in Vendor and Material Master.
    Program : RM06BB30
    Create a suitable variant.
    Job Creation : Tcode : SM36
    Regards
    Ramesh Ch

  • How to create VPN through tunnel

    how to create vpn through tunnel
    Navaz       

    can you be a little bit more specific what you wnat to achieve?
    Don't stop after you've improved your network! Improve the world by lending money to the working poor:
    http://www.kiva.org/invitedby/karsteni

  • How to create Spool through ABAP program

    How to create spool request for Smartforms through program. So I can go in TCODE SP01 and see the output of my smartforms.

    Include the below code in ur program .......
      DATA: PRINT_PARAMETERS TYPE PRI_PARAMS,
            VALID_FLAG       TYPE C LENGTH 1.
      CALL FUNCTION 'GET_PRINT_PARAMETERS'
      EXPORTING
      IMMEDIATELY = 'X' "C_IMMEDIATELY
    *LAYOUT = 'Z_48_144'
    *LINE_COUNT = '48'
      LINE_SIZE = '255'
    *NEW_LIST_ID = C_NEW_LIST_ID
      NO_DIALOG = 'X'
      RELEASE = 'X'
      IMPORTING
      OUT_PARAMETERS = PRINT_PARAMETERS
      VALID = VALID_FLAG
      EXCEPTIONS
      ARCHIVE_INFO_NOT_FOUND = 1
      INVALID_PRINT_PARAMS = 2
      INVALID_ARCHIVE_PARAMS = 3
      OTHERS = 4 .
      G_PDEST = PRINT_PARAMETERS-PDEST.
      NEW-PAGE PRINT ON PARAMETERS PRINT_PARAMETERS
                        NO DIALOG.
    List of write statements to be output.......
    NEW-PAGE PRINT OFF.
    Reward if useful..............

  • How to create folders through PL/SQL  -  Urgent Please

    Hi,
    We are using Oracle 9i on Windows NT. Is there any way to create a folder in a specified directory through PL/SQL?
    Thank you.

    Well,
    You can and you can't. I don't know how to do that through existing PL/SQL utilities. But, you can create your own utility using java, and wrapping it so you can call it from PL/SQL.
    An example of calling Operating System commands can be found in this zip file
    http://www.ckamco.com/Execute_Command.zip
    Please let me know if this helps at all.
    Thanks
    TwoPigs

  • How to create ringtones through itunes on mac computer?

    Okay so,
    I've made ringtones before but it's been awhile and I know there used to be an option once you purchased the song that from there you could create a ringtone on your computer through itunes and pay 99c for it or whatever but I can't for the life of me find any option on how to create a ringtone. I've searched throughout itunes and looked through the FAQ and support and NOTHING talks about it except for on the iphone there is a section for ringtones but the selection seems extremely limited. Someone please help?

    Type "create iphone ringtone in itunes" into the google search bar.
    There are several ways to make ringtones.
    I prefer garageband.

  • How to create PO through BAPI from custom screen

    Hi SAP Technical Guru,
    i am new to module pool programming.
    i designed custom screen which is like TA me21n means it has one tabstrip and tablecontrol.
    for header details(fields) at tab strip, and item detials(fields) at table control i used.
    now i have to capture screen fields into FM bapi_po_create1 and update the database tables.
    please suggest me how to create Purchase Order through BAPI FM.
    regards,

    here is the sample code
    *tables for passing podata to bapi
    DATA : gt_header   TYPE STANDARD TABLE OF bapimepoheader,
           gt_headerx  TYPE STANDARD TABLE OF bapimepoheaderx,
           gt_item     TYPE STANDARD TABLE OF bapimepoitem,
           gt_itemx    TYPE STANDARD TABLE OF bapimepoitemx,
           gt_account  TYPE STANDARD TABLE OF bapimepoaccount,
           gt_accountx TYPE STANDARD TABLE OF bapimepoaccountx,
    *tables used for passing custom field data to bapi
           gt_custom   TYPE STANDARD TABLE OF bapiparex,
           gt_custdata_in TYPE STANDARD TABLE OF bapi_te_mepoaccounting,
           gt_custdata_ix TYPE STANDARD TABLE OF bapi_te_mepoaccountingx,
    *tables used for cathing messages returned by bapi
           gt_return   TYPE STANDARD TABLE OF bapiret2,
           gt_return1   TYPE STANDARD TABLE OF bapiret2,
    *Work area declaration for passing custom field data to bapi
           w_custom   LIKE LINE OF gt_custom,
           w_custdata_in LIKE LINE OF gt_custdata_in,
           w_custdata_ix LIKE LINE OF gt_custdata_ix,
    *Work area declaration for passing podata to bapi
           w_header   LIKE LINE OF gt_header,
           w_headerx  LIKE LINE OF gt_headerx,
           w_item     LIKE LINE OF gt_item,
           w_itemx    LIKE LINE OF gt_itemx,
           w_account  LIKE LINE OF gt_account,
           w_accountx LIKE LINE OF gt_accountx,
    *work area declaration for cathing messages returned by bapi
           w_return   LIKE LINE OF gt_return,
           w_return1  LIKE LINE OF gt_return1.
    *populating po dat into internal tables
    w_header-comp_code  = 'PH02'.
    w_header-doc_type   = 'TEST'.
    w_header-vendor     = '0000600019'.
    w_header-purch_org  = 'PH02'.
    w_header-pur_group  = '901'.
    w_headerx-comp_code  = 'X'.
    w_headerx-doc_type   = 'X'.
    w_headerx-vendor     = 'X'.
    w_headerx-purch_org  = 'X'.
    w_headerx-pur_group  = 'X'.
    w_item-po_item      = '00001'.
    w_item-short_text   = 'test po'.
    w_item-po_unit      = 'CM'.
    w_item-matl_group   = '01'.
    w_item-po_unit      = 'EA'.
    w_item-plant        = 'PH02'.
    w_item-quantity     = '1.000'.
    w_item-net_price    = '10.00'.
    w_item-item_cat     = '0'.
    w_item-acctasscat   = 'K'.
    APPEND w_item TO gt_item.
    w_itemx-po_item    = '00001'.
    w_itemx-short_text = 'X'.
    w_itemx-matl_group = 'X'.
    w_itemx-po_unit    = 'X'.
    w_itemx-plant      = 'X'.
    w_itemx-stge_loc   = 'X'.
    w_itemx-quantity   = 'X'.
    w_itemx-tax_code   = 'X'.
    w_itemx-net_price  = 'X'.
    w_itemx-item_cat   = 'X'.
    w_itemx-acctasscat = 'X'.
    APPEND w_itemx TO gt_itemx.
    w_account-po_item    = '00001'.
    w_account-serial_no  = '01'.
    w_account-quantity   = '1.000'.
    w_account-gl_account = '0000199999'.
    w_account-costcenter = '0000400011'.
    APPEND w_account TO gt_account.
    w_accountx-po_item    = '00001'.
    w_accountx-serial_no  = '01'.
    w_accountx-quantity   = 'X'.
    w_accountx-gl_account = 'X'.
    w_accountx-costcenter = 'X'.
    APPEND w_accountx TO gt_accountx.
    w_custdata_in-po_item   = '00001'.
    w_custdata_in-serial_no = '01'.
    w_custdata_in-zzttry    = '1000'.
    w_custom-structure = 'BAPI_TE_MEPOACCOUNTING'.
    MOVE w_custdata_in TO w_custom-valuepart1.
    APPEND w_custom TO gt_custom.
    w_custdata_ix-zzttry    = 'X'.
    w_custdata_ix-po_item   = '00001'.
    w_custdata_ix-serial_no = '01'.
    w_custom-structure = 'BAPI_TE_MEPOACCOUNTINGX'.
    MOVE w_custdata_ix TO w_custom-valuepart1.
    APPEND w_custom TO gt_custom.
    *bapi to create po oreders
    CALL FUNCTION 'BAPI_PO_CREATE1'
      EXPORTING
        poheader                     = w_header
        poheaderx                    = w_headerx
    TABLES
      return                       = gt_return
      poitem                       = gt_item
      poitemx                      = gt_itemx
      poaccount                    = gt_account
      poaccountx                   = gt_accountx
      extensionin                  = gt_custom.
    *bapi for po data commit
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
      EXPORTING
        wait   = ' '
      IMPORTING
        return = w_return1.
    *clearing tables & work area
    REFRESH:gt_account,gt_item,gt_itemx,gt_accountx.
    CLEAR:w_header,w_headerx.
    *displaying message returned by bapi
    LOOP AT gt_return INTO w_return.
      WRITE: w_return-type , w_return-id , w_return-number , w_return-message .
    ENDLOOP.

  • How to create unistaller through B1DE installer wizard

    Dear User,
    I have developed an add-on through B1DE code generator wizard and installer wizard, it successfully installs in SAP business one but when i want to uninstall it, i have to remove it manually by deleting *.sbo files and deleting it from SARI table and also from business one add-on folder. Is there any way to automatically create its uninstaller through wizard? like i created installer through installer wizard.
    Any help is appreciated,
    Thanks,
    Farhan

    Thanks Trinidad,
    Problem is almost solved but just to confirm one thing so that i can mark this post as "Solved problem"
    In the ard file generation window (found in SAP business one sdk tools > AddOnRegDataGen.exe), i want to confirm the parameter for install and uninstall. the command line argument for install is /z and for uninstall is /x ? am i right??
    Your reply is ver much appreciated.
    Thanks n regards,
    Farhan

  • How to Create GR through BAPI_GOODSMVT_CREATE - For MB0A T-Code ?

    hi,
           I have sap delivery number, i want to create GR based on Delivery number through BAPI only. I found one BAPI   BAPI_GOODSMVT_CREATE, bt i am not able to understand which paratmeters i supposed to pass to this BAPI. Generally i create GR through MB0A.
          Please find out exact soultion for me ASAP.
    Thanks,
    Saurin  Shah

    hi,
           I have sap delivery number, i want to create GR based on Delivery number through BAPI only. I found one BAPI   BAPI_GOODSMVT_CREATE, bt i am not able to understand which paratmeters i supposed to pass to this BAPI. Generally i create GR through MB0A.
          Please find out exact soultion for me ASAP.
    Thanks,
    Saurin  Shah

  • How To Create User through Pl SQL Block

    Want to create user from pl sql block using dynamic SQl. Used dbms_sql package . But when I run the block it does not recognises the parameter v7 which is a constant in dbms_sql package. Message displayed is Can not access parameter from package being restricted procedure.
    Is there any method to create user through PL SQl block

    hi ranjit,
    hope this will work
    declare
    uname varchar2(30):=&uname;
    pword varchar2(30):=&pword;
    begin
    execute immediate ('grant connect, resource to '| |uname| |' identified by '| |pword);
    end;
    regards

  • How to create WWWBinaryFileAsset through programming

    Hi, Could anybody provide me steps to create WWWBinaryFileAsset through programming.
    I followed below steps but i am getting error,
    MutableRepository pubRepository = getPublishingRepository();
    // pub repository is pointing to /atg/epub/file/SecuredPublishingFileRepository
    wwwBinaryFileAsset = pubRepository.createItem(filesProperties.getWwwBinaryFileAssetItemDescriptorName());
         if (wwwBinaryFileAsset != null) {
         wwwBinaryFileAsset.setPropertyValue(filesProperties.getFilenamePropertyName(), imageName);
         wwwBinaryFileAsset.setPropertyValue(filesProperties.getParentFolderPropertyName(), parentFolder);
         wwwBinaryFileAsset.setPropertyValue("content", new File("D:\\media\\images\\hmc\\Penguins.jpg"));
         pubRepository.addItem(wwwBinaryFileAsset);
    Thanks,
    Raj

    Hi,
    I am able to create project and adding binary file asset to the project with code as i copy/pasted in this query, after creation, also i am able to see the asset in BCC editor as well.
    I can say asset looks like as it was created in BCC editor, means there are nodifferences in assest properties which created through programming from asset created in BCC editor.
    I am not sure what i am missing. But only the problem is, i am getting the error when deploying project from BCC, error stack trace is,
    /atg/epub/DeploymentServer 14000002:Production:atg.deployment.adapter.DistributedDeploymentAdapter.pollTillDataApplied(DistributedDeploymentAdapter.java:2588) Polling Until Data Appplied
    /atg/deployment/DeploymentManager Starting deployment with id: 14000002
    /atg/deployment/DeploymentManager Executing deployment in LOCAL mode
    /atg/deployment/DeploymentManager item = fileMarker:mark7800001 cause = java.lang.IllegalArgumentException: Negative initial size: -1
    /atg/deployment/DeploymentManager at java.io.ByteArrayOutputStream.<init>(ByteArrayOutputStream.java:57)
    /atg/deployment/DeploymentManager at atg.deployment.file.FileDeploymentCommandImpl.getUncompressedInputStream(FileDeploymentCommandImpl.java:398)
    /atg/deployment/DeploymentManager at atg.deployment.file.FileDeploymentCommandImpl.getInputStream(FileDeploymentCommandImpl.java:470)
    /atg/deployment/DeploymentManager at atg.deployment.file.DeploymentProtocolImpl.sendFileDeploymentCommand(DeploymentProtocolImpl.java:913)
    /atg/deployment/DeploymentManager at atg.deployment.file.DeploymentProtocolImpl.sendCommand(DeploymentProtocolImpl.java:179)
    /atg/deployment/DeploymentManager at atg.deployment.file.FileWorkerThread.runCommand(FileWorkerThread.java:716)
    /atg/deployment/DeploymentManager at atg.deployment.file.FileWorkerThread.processMarkerForAddUpdatePhase(FileWorkerThread.java:441)
    /atg/deployment/DeploymentManager at atg.deployment.DeploymentWorkerThread.processMarkerPhase(DeploymentWorkerThread.java:521)
    /atg/deployment/DeploymentManager at atg.deployment.DeploymentWorkerThread.run(DeploymentWorkerThread.java:300)
    /atg/deployment/DeploymentManager message = Deployment Failed time = Wed Jun 20 09:12:50 IST 2012 atg.deployment.DeploymentFailure@93d841 java.lang.IllegalArgumentException: Negative initial size: -1
    /atg/deployment/DeploymentManager at java.io.ByteArrayOutputStream.<init>(ByteArrayOutputStream.java:57)
    /atg/deployment/DeploymentManager at atg.deployment.file.FileDeploymentCommandImpl.getUncompressedInputStream(FileDeploymentCommandImpl.java:398)
    /atg/deployment/DeploymentManager at atg.deployment.file.FileDeploymentCommandImpl.getInputStream(FileDeploymentCommandImpl.java:470)
    /atg/deployment/DeploymentManager at atg.deployment.file.DeploymentProtocolImpl.sendFileDeploymentCommand(DeploymentProtocolImpl.java:913)
    /atg/deployment/DeploymentManager at atg.deployment.file.DeploymentProtocolImpl.sendCommand(DeploymentProtocolImpl.java:179)
    /atg/deployment/DeploymentManager at atg.deployment.file.FileWorkerThread.runCommand(FileWorkerThread.java:716)
    /atg/deployment/DeploymentManager at atg.deployment.file.FileWorkerThread.processMarkerForAddUpdatePhase(FileWorkerThread.java:441)
    /atg/deployment/DeploymentManager at atg.deployment.DeploymentWorkerThread.processMarkerPhase(DeploymentWorkerThread.java:521)
    /atg/deployment/DeploymentManager at atg.deployment.DeploymentWorkerThread.run(DeploymentWorkerThread.java:300)
    /atg/deployment/DeploymentManager
    /atg/deployment/DeploymentManager Unexpected error occurred. DeploymentWorkerThread terminated prematurely. atg.deployment.DistributedDeploymentException: Exceeded allowable error count (0)
    /atg/deployment/DeploymentManager at atg.deployment.DeploymentWorkerThread.processMarkerPhase(DeploymentWorkerThread.java:626)
    /atg/deployment/DeploymentManager at atg.deployment.DeploymentWorkerThread.run(DeploymentWorkerThread.java:300)
    Thanks.
    Edited by: 938890 on Jun 19, 2012 9:09 PM

  • How to create graph through form9i

    dear,
    I mant to know how to create graph in form 9i.Right now i have no idea about graphs use in form9i.
    please reply me as soon as possible.
    my mail id is [email protected]
    If you have any answer related to this problem please mail me in my mail id that i have given .
    with regards
    monika gupta

    Hi Monika,
    http://www.oracle.com/technology/products/reports/htdocs/faq/faq_migration.htm
    http://www.oracle.com/technology/products/reports/10gr2/Reports_guide_to_changed_functionality.pdf
    http://download.oracle.com/docs/html/A90900_01/rwtutorial_graph.htm#1005697
    How do I migrate my charts from Oracle Graphics to the new graph format in Oracle Reports 10g?
    Since release 9i, Oracle Reports uses Business Intelligence Beans (BI Beans) to create and display graphs in reports. There is no direct migration path from Oracle Graphics to the BI Beans graphing functionality. As such, the user will need to rewrite all of their graphs using the new Graph Wizard within the Oracle Reports Builder 10g. Oracle Reports 10g supports over 50 graph types, including 3D graphs. However, keep in mind that it does not support some special types, such as Gantt charts.
    It seems direct graph 6i migration is not possible from reports10g.
    It is asking to use the chart wizard again with your query.
    Please follow the above two link it may helps u a lot.

  • How to create Rows in Database with EJB3.0 Entities - Relationship Problem

    Hi,
    I don't have much experience in writing Entity Java Beans, so if some questions are "dummy-questions", I apologize for that.
    Actual state: I have implemented Entity Java Beans with relationships between them. I can deploy them to JBOSS AS and everything is fine. Then, I want to implement a small client to fill the database with some values to check if my Beans are correct.
    Problem: I have three Beans, that have relationships.
    Entity Flight, Entity FlightSeat and Entity Address
    Flight has a OneToMany relationship with FlightSeat and two ManyToOne relationships with Address (for start- and destinationaddress of the flight)
    No, I want to create Values in the database with the Entities, but I don't know how I have to conside the relationships. How can I add a Flight row to the database? Do I have to specifiy the start- and destinationaddress, when saving the entity Flight with Entitymanager.persist()?? Maybe you know a good Tutorial where I can see, how it is possible to fill the tables?
    Here my Implementation:
    Flight.java:
    package at.ac.tuwien.inetappl.entity;
    import java.io.Serializable;
    import javax.persistence.CascadeType;
    import javax.persistence.Column;
    import javax.persistence.Entity;
    import javax.persistence.GeneratedValue;
    import javax.persistence.GenerationType;
    import javax.persistence.Id;
    import javax.persistence.JoinColumn;
    import javax.persistence.ManyToOne;
    import javax.persistence.OneToMany;
    import javax.persistence.Table;
    import javax.persistence.FetchType;
    import java.util.Date;
    import java.util.Collection;
    @Entity
    @Table (name="REL_FLIGHT")
    public class Flight implements Serializable{
         private long flightid;
         private String company;
         private Date duration;
         private Address startaddress;
         private Address destinationaddress;
         private Collection<FlightSeat> seats;
         public Flight() {}
         public Flight(String company, Date duration, Address startaddress, Address destinationaddress)
              this.company=company;
              this.duration=duration;
              this.startaddress=startaddress;
              this.destinationaddress=destinationaddress;
         @Id @GeneratedValue(strategy=GenerationType.AUTO)
         @Column(name="FLIGHT_ID")
         public long getId()
              return this.flightid;
         public void setId(long flightid)
              this.flightid = flightid;
         @Column(name="COMPANY")
         public String getCompany()
              return this.company;
         public void setCompany(String company)
              this.company=company;          
         @Column(name="DURATION")
         public Date getDuration()
              return this.duration;
         public void setDuration(Date duration)
              this.duration=duration;
         @ManyToOne (optional=false)
         @JoinColumn(name = "START_ADDRESS_ID")
         public Address getStartAddress()
              return this.startaddress;
         public void setStartAddress(Address startaddress)
              this.startaddress=startaddress;
         @ManyToOne (optional=false)
         @JoinColumn(name = "DESTINATION_ADDRESS_ID")
         public Address getDestinationAddress()
              return this.destinationaddress;
         public void setDestinationAddress(Address destinationaddress)
              this.destinationaddress=destinationaddress;
         @OneToMany(cascade = CascadeType.ALL, fetch=FetchType.EAGER, mappedBy="flight")
         //@JoinColumn(name= "SEAT_ID")
         public Collection<FlightSeat> getSeats()
              return this.seats;
         public void setSeats(Collection<FlightSeat> seats)
              this.seats=seats;
    }Address.java:
    package at.ac.tuwien.inetappl.entity;
    import java.io.Serializable;
    import javax.persistence.Entity;
    import javax.persistence.GeneratedValue;
    import javax.persistence.GenerationType;
    import javax.persistence.Id;
    import javax.persistence.Table;
    import javax.persistence.Column;
    @Entity
    @Table (name="REL_ADDRESS")
    public class Address implements Serializable{
         private String land;
         private String city;
         private String street;
         private int streetnumber;
         private int postalcode;
         private long addressid;
         public Address() {}
         public Address (String land, String city, String street,
                   int streetnumber, int postalcode) {
              this.land=land;
              this.city=city;
              this.street=street;
              this.streetnumber=streetnumber;
              this.postalcode=postalcode;          
         @Id @GeneratedValue(strategy=GenerationType.AUTO)
         @Column(name="ADDRESS_ID")
         public long getId()
              return this.addressid;
         public void setId(long addressid)
              this.addressid = addressid;
         @Column(name="LAND")
         public String getLand()
              return this.land;
         public void setLand(String land)
              this.land=land;
         @Column(name="CITY")
         public String getCity()
              return this.city;
         public void setCity(String city)
              this.city=city;          
         @Column(name="STREET")
         public String getStreet()
              return this.street;
         public void setStreet(String street)
              this.street=street;
         @Column(name="STREETNUMBER")
         public int getStreetNumber()
              return this.streetnumber;
         public void setStreetNumber(int streetnumber)
              this.streetnumber=streetnumber;
         @Column(name="POSTALCODE")
         public int getPostalCode()
              return this.postalcode;
         public void setPostalCode(int postalcode)
              this.postalcode=postalcode;
    /code]
    FlightSeat.java package at.ac.tuwien.inetappl.entity;
    import java.io.Serializable;
    import javax.persistence.Column;
    import javax.persistence.GeneratedValue;
    import javax.persistence.GenerationType;
    import javax.persistence.Id;
    import javax.persistence.Entity;
    import javax.persistence.JoinColumn;
    import javax.persistence.ManyToOne;
    import javax.persistence.Table;
    @Entity
    @Table (name="REL_FLIGHTSEAT")
    public class FlightSeat implements Serializable {
         private long seatid;
         private String category;
         private int price;
         private boolean available;
         private Flight flight;
         public FlightSeat() {}
         public FlightSeat(String category, int price, boolean available)
              this.category=category;
              this.price=price;
              this.available=available;
         @Id @GeneratedValue(strategy=GenerationType.AUTO)
         @Column(name="SEAT_ID")
         public long getId()
              return this.seatid;
         public void setId(long seatid)
              this.seatid = seatid;
         @Column(name="CATEGORY")
         public String getCategory()
              return this.category;
         public void setCategory(String category)
              this.category=category;
         @Column(name="PRICE")
         public int getPrice()
              return this.price;
         public void setPrice(int price)
              this.price=price;
         @Column(name="AVAILABLE")
         public boolean getAvailability()
              return this.available;
         public void setAvailability(boolean available)
              this.available=available;
         @ManyToOne()
         @JoinColumn(name="FLIGHT_ID")
         public Flight getFlight()
              return this.flight;
         public void setFlight(Flight flight)
              this.flight=flight;
    FlightBean.java - implementing business methods
    package at.ac.tuwien.inetappl.bean;
    import javax.ejb.Stateless;
    import javax.persistence.EntityManager;
    import javax.persistence.PersistenceContext;
    import javax.ejb.Remote;
    import at.ac.tuwien.inetappl.entity.Flight;
    import at.ac.tuwien.inetappl.entity.Address;
    import at.ac.tuwien.inetappl.entity.FlightSeat;
    import java.util.Collection;
    import java.util.Date;
    import java.util.Iterator;
    import java.io.Serializable;
    import javax.persistence.Query;
    @Stateless
    @Remote(FlightInterface.class)
    public class FlightBean implements FlightInterface, java.io.Serializable {
         //private Collection<Flight> flight;
         @PersistenceContext
         protected EntityManager em;
         /* CRUD METHODS FOR FLIGHT */
         /* CREATE FLIGHT */
         public void createFlight(String company, Date duration, Address start, Address dest)
              Flight flight = new Flight();
              flight.setCompany(company);
              flight.setDuration(duration);
              flight.setStartAddress(start);
              flight.setDestinationAddress(dest);
              em.persist(flight);     
         public void updateFlight(Flight flight)
              em.persist(flight);
         /* DELETE FLIGHT*/
         public void deleteFlight(long id)
               Query q = em.createQuery("DELETE FROM FLIGHT f WHERE f.FLIGHT_ID = :id");
               q.setParameter ("id", new Long(id));
         /* SEARCH METHODS FOR FLIGHT */
         public Collection<Flight> getFlights()
              return em.createQuery("from FLIGHT f").getResultList();
         public Flight getFlight(long id) {
              Flight flight = em.find(Flight.class, new Long(id));
              return flight;
         public String getCompany(long id) {
              Flight flight = em.find(Flight.class, new Long(id));
              String company = flight.getCompany();
              return company;
    }Thanks to all!! I hope somebody can help.
    Greetings,
    RedBaron

    On Wed, 16 May 2007 20:41:21 +0000 (UTC), "bsoliman"
    <[email protected]> wrote:
    >You need to set up virtual directories instead?see
    >
    http://support.microsoft.com/kb/172138
    The actual directories can be wherever
    >is most convenient for you?I keep mine in a folder called
    /clients outside my
    >local web root.
    >
    > Bev
    Understand that virtual directories are not exactly the same
    thing as
    virtual hosts.
    A virtual directory will not act as the root for a site. IIS
    will
    still think that your site root is the overall IIS site root.
    There are some utilities that allow you to switch the folder
    that IIS
    uses as the root. This one works pretty well:
    http://jetstat.com/iisadmin/
    Win
    Win Day, Wild Rose Websites
    http://www.wildrosewebsites.com
    [email protected]
    Skype winifredday

  • Creating rows through entity variable makes updates not possible

    I went through the following basic scenario of using entity variables in my BPEL process running in SOA Suite 11.1.1.3.0.
    We have an ADF business component (SDO) deployed in the SOA environment which represents an updatable View object with all available methods exposed in the service interface. The primary key column in the underlying entity object is filled from an Oracle sequence when the entity is created.
    When triying to make use of this SDO through entity variables later on I encounted the following strange behavior.
    The Create Entity activity being placed alone in the BPEL can successfully create an entity, no problem with that. The transaction gets committed and a new row is inserted in the database. But trying to make this simplest scenario a bit more complex fails... Indeed let's put a simple Assign activity after the Create Entity activity and change some field's value. Running the process results in a fault being thrown with this in the stack trace :
    Caused by: oracle.jbo.service.errors.ServiceException: JBO-25020: View row with key oracle.jbo.Key[2942 ] is not found in Ta
    xOfficeView1.
    at oracle.jbo.common.sdo.SDOValueStoreHelper.constructServiceException(SDOValueStoreHelper.java:2119)
    at oracle.jbo.server.svc.ServiceImpl.constructServiceException(ServiceImpl.java:649)
    at oracle.jbo.server.svc.ServiceImpl.constructRowNotFoundExcep(ServiceImpl.java:659)
    at oracle.jbo.server.svc.ServiceImpl.update(ServiceImpl.java:1630)
    at oracle.jbo.server.svc.ServiceImpl.processChangeObject(ServiceImpl.java:2879)
    at oracle.jbo.server.svc.ServiceImpl.processChangeSummary(ServiceImpl.java:1996)
    at org.stau.sdo.server.serviceinterface.AppModuleServiceImpl.processCSTaxOfficeView1(AppModuleServiceImpl.java:203)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
    This basically means that Create Entity succeeded getting the primary key value from the sequence and prepared the row for creation but a posterior update could not locate it in the view object. Probably the runtime was trying to get the row from the database but since the transaction had not committed yet it did not find the row.
    I've been trying with no success to get any working samples in the Oracle documentation or any traces in Google about using entity variables to create and update rows in the same BPEL. The only references I found were about binding to existing rows and then updating them. I tried this out, it works but I need to CREATE and UPDATE rows!
    Has anyone run into this issue already?

    Hello.
    Yes, I've met this issue.
    The root of the issue in your Entity Object. I suppose that Pk is auto generated by sequence in your database. You should open your EO, then chose Attributes, then double click on primary key attribute. The screen named "Edit Attribute: <your primary key>" opened. Check the box Refresh After "Insert" in the bottom right corner of this screen. It means that after inserting of a new Pk in your table this one will be re-read back to VO and therefore you will be able to update the Entity variable. Clear all, rebuild, redeploy, enjoy.
    You should to do it for all EOs you are going to use for creating Entity variables.

  • How to create cases through IC Webclient

    Dear all,
    We are implementing Case Management to address customer complaints through Contact Center (IC Webclient)
    I need your help to get a basic understanding on Case creation through IC WEB.
    How can we assign an Owner and Processor to a Case.
    What is the use of maintaing  a processor and owner? I could not find any partner function for the processor.
    What is Case Hierarchy? why do we use that.
    while processing an case in a browser, where the user maintain the solution?
    Can I assign an attachment file to a case at the time of creation? If yes, where can I attach?
    Though it sounds simple, I could not find any proper documentation. I request you to educate me in the above process to get a good understanding. I would be grateful if you can send me some documentation or links for case management.
    Your help and suggestions will be highly appreciated.
    Best wishes,
    Raghu ram

    Hi raghu,
    follow the customizing
    1.IMG>CRM>Case mgt-->define case types
    2.assign the status,text,action int no.range for the case types
    3.IMG>CRM>Case mgt>basic settings>determine permitted values for case atributes-->create values for categories, reasons, priorities, authorization
    4.add cases and case searchhe nav bar
    based on the Account/Business Partner the cases can be searched in the ICWC.
    llly cases can be created in the ICWC as well.
    ACses should be linked to create a heirarchy if possible
    For eg: there can more than one customers calling for a similar complaint (say a traffic signal not working) so if an agent has already creted a case for it can be searched and the new call on hand of the agent can be linked to it (this is heirarchy's importance)
    Case owner is the person who creates the case like a construction work is going on at a sight and there are certain complaints received from one specific area this can be mapped via a case wherein the future complaints can be linked to it and analysed.
    Case processor is the engineer onsight who works on the case (he also has previous cases which he can see to get details of the issue at hand via case hierarchy)
    you can attach transactions ,BPs to a case in the linked objects link of case in the ICWC.
    hope this helps
    Regards
    Raj

Maybe you are looking for

  • InDesign missed to update a linked InCopy

    Hello the following happened in a InDesign/InCopy-Workflow: We have several Editors and a view Designers. Everyone is working with PC (Windows XP) InCopy CS2 and InDesign CS2. The Files (incx and indd) are stored on a centralized filestore, so no cop

  • [svn:fx-trunk] 11450: Cleaning up the whitespace in these 3 files ( tabs to spaces).

    Revision: 11450 Author:   [email protected] Date:     2009-11-04 17:10:56 -0800 (Wed, 04 Nov 2009) Log Message: Cleaning up the whitespace in these 3 files (tabs to spaces). QE notes: No Doc notes: No Bugs: No Reviewer: Me Tests run: Checkintests Is

  • AIR runtime on Windows 2003 Server - switch off auto-updates???

    Hello, Trying to switch off auto-updates in Win 03. Have tried: - Adobe settings manager - Updating Windows registry keys Nothing works..updates are still requested Any ideas..?

  • Implementing listener in JTree

    Hi, I am trying to implement a listener for JTree within a class other than the one where is tree is initialized and set. With this listener, I would like to grab the index of the selected child from a tree. Do I only need to implement void ValueChan

  • Migration from Informix to Oracle

    Hi, Could anybody share the case studies/plan/docs related to migrating data from Informix to Oracle.