Importing Complex JavaBean model into WebDynpro

Hi,
I am trying to get Data from the EJB, in my Case, Command Bean to WebDynpro.
So i followed this thread:
<a href="/people/balaramnaidu.bankuru/blog/2006/04/23/importing-complex-javabean-model-into-webdynpro-by-creating-relationships-for-the-model-classes in WebDynpro</a>
But one thing does't work here:
I can't import the Complex type java.util.Collection.
But i need to get Data from a DB-View into my WebDynpro.
Is there any other chance to do that?
Here a CodeSnippet from my Command Bean Class:
public BusinessDelegate() throws CreateException
          try
               Context ctx = new InitialContext();
               OracleSessionLocalHome home = (OracleSessionLocalHome)ctx.lookup("localejbs/OracleSessionBean");     
               session = home.create();
          } catch (Exception e)
               e.printStackTrace();
     public void getAllOracleDetails()
          try
               OracleDTO helper[] = session.getOracleData();
               oracleDetailsList = new ArrayList();
               for (int i = 0; i < helper.length; i++)
                    oracleDetailsList.add(helper(i));
          } catch (Exception e)
               e.printStackTrace();
OracleDTO is my HelperClass, where i made all Variable-Declarations I need in the View.
Any ideas?
Would appreciate that!
Bernd

You are not unable to import collection type means u are not able to see that variable in attribute list while importing the model?
This may be due to you have not added getter and setter function for that collection type.

Similar Messages

  • Problem when importing the complex bean model into webdynpro

    hi all,
    when importing the complex bean model into the webDynpro, it was returning the blank.
    Thanks in advance

    Hi,
      show your code for see and understand what could be wrong.
    Here one mine example:
    The model class
    * Created on 27-ott-2006
    * To change the template for this generated file go to
    * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
    package tmp.userslist.comp.model.userslist;
    import java.sql.Connection;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    import javax.sql.DataSource;
    import java.util.Collection;
    import java.util.ArrayList;
    import java.io.Serializable;
    * @author rtagliento
    * To change the template for this generated type comment go to
    * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
    public class AllUsers {
    // implements Serializable {
         private Connection con;
         private ResultSet rs;
         private Statement stmt;
         private String SqlQuery;
         private Collection usersList = null;
         private UserElement users = null;
    //     private Collection empDetailsList=null;
    //     private EmpDetailsHelperClass  empdetails=null;
         public AllUsers(){
              con = null;     
              java.sql.ResultSet rs = null;
              rs = null;
              SqlQuery  = "SELECT * FROM TMP_USERSLIST ; ";
         public Connection getConnection (){
                   return con;
         public void setConnection (Connection c){
              con = c;
         public Collection getUsersList()
              return usersList;
         public UserElement getUsers()
              return users;
         public void setUsers(UserElement class1)
              users = class1;
         public void execute() throws Exception {
              String DEBUG = new String("");
              try {
                   stmt = con.createStatement();
                   rs = stmt.executeQuery(SqlQuery);
                   usersList = new ArrayList();
                   usersList.clear();
                   while (rs.next()){
                        users = new UserElement();
                        users.setID(rs.getString("ID"));
                        DEBUG += "ID: " + rs.getString("ID") + " | ";
                        users.setName(rs.getString("NAME"));
                        DEBUG += "NAME: " + rs.getString("NAME") + " | ";
                        users.setSurname(rs.getString("SURNAME"));
                        DEBUG += "SURNAME: " + rs.getString("SURNAME") + " | ";
                        users.setBirthDay(rs.getDate("BIRTHDAY"));
                        DEBUG += "BIRTHDAY: " + rs.getDate("BIRTHDAY").toString() + " ---------- ";
                        usersList.add(users);
                   rs.close();
              } catch (Exception e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
                   throw new Exception(e.toString() + DEBUG);
    //          throw new Exception(new Integer(usersList.size()).toString() + DEBUG);
    when use it:
         AllUsers AllU = new AllUsers();
    //     AllU.setConnection(myJdbc.getConnection());
         wdContext.nodeAllUsers().bind(AllU);
         wdContext.currentAllUsersElement().setConnection(myJdbc.getConnection());
         try {
              wdContext.currentAllUsersElement().modelObject().execute();
         } catch (Exception e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
    Hope can help.
    Bye

  • Importing Java Bean Model in Webdynpro Development Component

    Hi All,
    Is there any simple tutorial, example  to import java bean model in webdynpro development component.
    I am using NWDS 7.0 SP14 and WAS 7.0.
    it really helps if you can  provide simple EJB as a development component with details how to create a public part and using this bean as java bean model in Webdynpro development component.
    what are the steps to be followed with precautions
    Thanks in Advance,
    Murali

    Hi,
    [Using the Java Bean Model in Web Dynpro|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4072c0d0-c21e-2b10-ab84-e2c183d355de]
    [Using EJBs in Web Dynpro|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1f5f3366-0401-0010-d6b0-e85a49e93a5c]
    you will get more if you search in the forum.
    more help on EJB's
    Re: Help needed in EJB
    http://help.sap.com/saphelp_nw70/helpdata/EN/19/f9bc3d8af79633e10000000a11405a/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70929198-0d36-2b10-04b8-84d90fa3df9c
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1f5f3366-0401-0010-d6b0-e85a49e93a5c
    PradeeP

  • Issue importing Siebel data model into OPM

    I am using OPM 10.2 and havaing a issue importing the Siebel data model in to OPM. I also have 10.2 Siebel connector installed on the desktop.
    In OPM I cannot see the Siebel --> Import Data Model option in the menu.
    Is there any configuration change that need to happen in OPM to do this?
    Edited by: SP1D3R MAN on 17/11/2011 18:02

    1. Make sure that you have the Siebel Connector 10.2.1 from Oracel Software delivery Cloud (formerly E-Devliery), there was a bug with the earlier 10.2 where the Policy Modeling Plugin was not working.
    2. Make sure that the files Oracle.Modeling.Siebel.Exchange.dll, Oracle.Modeling.Siebel.Plugin.dll exist the the Plugins sub-directory of Policy Modeling (default location C:\Program Files\Oracle\Policy Modeling\plugins)
    3. Make sure you are using Policy Modeling 10.2
    if you need to manually copy the dll's they can be found in the siebel connector download at program files\Oracle\Policy Modeling\plugins\

  • Need to import new AP models into WCS

    I am trying to do a predictive wireless survey in WCS Planning Mode; However, it does not include all the APs I need it to. We currently have WCS version:
    Version
    6.0.181.0
    Host
    N/A
    Feature
    Plus
    AP Limit
    700
    Type
    Permanent
    Basically I need to be able to add the following APs and to the Planning mode:
    3502i
    3502E (with AIR-ANT2422DB-R and AIR-ANT5135DB-R antenaes)
    1262
    1142
    Can anyone help me with this? I am not even sure how I would upload these to WCS either, is there a cost involved?

    Excellent, I googled that and it is correct. For others that visit this discussion, here is the document:
    http://www.ciscosystemscapital.biz/en/US/docs/wireless/wcs/release/notes/WCS_RN7_0_172.pdf
    Thanks Leolaohoo!

  • Import JavaBean Model - Invalid class

    Hi,
    I wanted to import a JavaBean Model as described in the Tutorial "Using EJBs in Web Dynpro Applications" (see: https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1f5f3366-0401-0010-d6b0-e85a49e93a5c).
    Problem: i always get an error "Invalid class - JavaBean not available for import", when i want to select a local jar file as JavaBean source, althrough the jar-file contains a valid bean.
    Note:I also dont have a radio button in my GUI for selecting "Deploy time" as mentioned in the Tutorial and as i have seen in a screenshot in the Blog /people/balaramnaidu.bankuru/blog/2006/04/23/importing-complex-javabean-model-into-webdynpro-by-creating-relationships-for-the-model-classes . in this Blog there is already a question about this, but this question has never been aswered...

    Wolfgang,
    See my tips on troubleshooting JavaBean Model Import: /people/valery.silaev/blog/2005/08/30/javabean-model-import-when-it-really-works
    Valery Silaev
    SaM Solutions
    http://www.sam-solutions.net

  • How can I include Java Bean model into the model outside the component

    Hi All,
    I am new to SAP portal. I wanted to create a bean for storing the data and to include that into the application model.
    Please help me with an example .
    Regards,
    Saroj

    Hi,
      Check these blogs.
    The specified item was not found.
    Importing Complex JavaBean model into WebDynpro by creating relationships for the model classes
    JavaBean Model Import: when it really works
    Issue in Importing Java Bean Model
    Regards,
    Harini S
    Consider rewarding points for helpful answers. Post this thread in WD forums for more results.

  • Using Complex Data Types in Import JavaBean Model

    Hi,
    I have searched and read forums and weblogs related to import javabean model.
    But I am not clear about how to use complex data types like ArrayList, Collection etc in my java bean.
    If I use these complex datatypes in my bean, when creating model in WDF it displays the Complex data elements in Model Relation. I dont know how to use this model relation in my WD project.
    Anyone please explain the<b> step by step solution</b> about using complex data type(used in Bean) in WD Project.
    Thanks,
    Krishna Kumar

    Hi Krishna,
    Valery`s blog contains sample code ( http://www.jroller.com/resources/s/silaev/Employees.zip )
    Another blogs from this area:
    /people/anilkumar.vippagunta2/blog/2005/09/02/java-bean-model-importer-in-web-dynpro
    /people/valery.silaev/blog/2005/08/30/javabean-model-import-when-it-really-works
    And forum topics:
    Import JavaBean Model
    Problem Importing JavaBean Model in NetWeaver Developer Studio
    Issue on "Import JavaBean Model"
    import  JavaBean Model: no executable Methods?
    JavaBeans Model Import
    POLL : JavaBean Model Importer
    JavaBean-Model
    Invalid Class - Javabean not available for import
    WebDynpro Using JavaBean Model ->Please Help
    Best regards, Maksim Rashchynski.

  • 求助:如何将amesim模型导入VeriStand中?Help!How to import amesim model into VeriStand?

    您好!
    尝试将AMESim 13的模型生成.dll导入Veristand中。
    AMESim中添加Veristand interface block成功,编译生成FileName_.dll文件后在Veristand中Add Simulation Model时提示Error-307703,Possible reason:The specified compiled model is not compatible with NI Verisand。另外,将AMESim模型和Simulink模型导入Veristand有什么具体步骤?期待解答。非常感谢!
    I will repeat it in English.
    I am trying to import an AMESim model into VeriStand.Anyone knows how i can do this?Is there any standard steps?
    I have make Veristand interface block  into my AMESim model ,compiled successfully and made a DLL file.But when I ''Add Simulation Model'' in Veristand an error occured.
    Error-307703,Possible reason:The specified compiled model is not compatible with NI Verisand.
    Thanks very much in advance.

    您好!
    尝试将AMESim 13的模型生成.dll导入Veristand中。
    AMESim中添加Veristand interface block成功,编译生成FileName_.dll文件后在Veristand中Add Simulation Model时提示Error-307703,Possible reason:The specified compiled model is not compatible with NI Verisand。另外,将AMESim模型和Simulink模型导入Veristand有什么具体步骤?期待解答。非常感谢!
    I will repeat it in English.
    I am trying to import an AMESim model into VeriStand.Anyone knows how i can do this?Is there any standard steps?
    I have make Veristand interface block  into my AMESim model ,compiled successfully and made a DLL file.But when I ''Add Simulation Model'' in Veristand an error occured.
    Error-307703,Possible reason:The specified compiled model is not compatible with NI Verisand.
    Thanks very much in advance.

  • Add new JavaBean Model

    Hello Everybody,
    In my Web Dynpro project I have imported a JavaBean model (including relations and
    the associated helper classes). Now, I want to create a new JavaBean model in the same project and also use some of the model classes from the previous model to define the
    relations belonging to the new model. I tried importing the new JavaBean model with the
    same helper classes, but that is some how not possible (Error :"Model class already exists") . On the other hand, if I do not include the helper classes, the previously imported
    model class are not available in the new model - so how do I define the relations?
    Thanks for the feedback.

    A.H.,
    This is a limitation of WebDynpro JavaBean model wizard -- you may not use same JavaBean more then in one model.
    The only possible but unsupported workaround is to create your *.wdmodel file manually using text/xml editor, then reload project and get new model. It's better to start with new model without same beans, then copy necessary lines from "old" model.
    Valery Silaev
    SaM Solutions
    http://www.sam-solutions.net

  • JavaBeans Model Import

    Hi all,
    Could someone explain requirements for JavaBeans Model Import introduced since SP9?
    For me wizard rejects even plain empty classes or classes with single String property
    Do I need to define some documentation tags as with XMI model???
    Thanks in advance,
    VS

    Thanks, Karin
    I get several steps further.
    However,  after resolving relations and clicking finish I get the following error in NW log (and nothing is imported, of course):
    !MESSAGE Nov 15, 2004 5:55:46 PM          com.sap.ide.webdynpro.ui.service.ServicesUI          [
    Thread[ModalContext,5,main]] Error: Internal error
       Plugin name: Web Dynpro Model Editor Services
       Plugin ID  : com.sap.ide.webdynpro.service.modeleditor
       Class      : com.sap.ide.webdynpro.service.modeleditor.ModelService
       Method     : doImportJavaBeanModel()
       Message    : Failed to create model .com[/code]
    See line in bold -- wizard does not add dot (".") when concatanating package name and model name (or it is just error in logging itself???)
    Regards,
    VS

  • Getting when importing Dynamic PDF into Webdynpro Interactive form

    Hi Gurus,
    I have created a PDF(It has  text box with multiline) in Adobe livecycle Designer and saved as Dynamic PDF, then I imported into Webdynpro interactive form.If I
    import only first page of the form and run WD application, i am getting
    the output, Still text with expand is not working.
    But If I try to import the form with 4 pages and run the WD
    application, it is throwing the following error
    "The following error text was processed in the system SM1 : WebDynpro
    Exception: SOAP Framework error: SOAP Runtime Exception:
    CSoapExceptionFault : SOAP fault found in SOAP document /Transaction
    system failure in method
    rpData./<ns1:com.sap.engine.services.ejb.exceptions.BaseEJBException
    xmlns:ns1="http://sap-j2ee-engine/client-runtime-error">Transaction
    (100,102).
    Please help me on this.
    Thanks,
    John

    Hello,
    I closed this thread. As you opened two.
    Best regards,
    Dezso

  • Importing a Power Designer 12 Model into a DI Datastore

    <p>I was wondering if anyone has had any luck with trying to import a PowerDesigner 12 model into Data Integrator through the Metadata Exchange.  According to the documentation, I should be able to do this using the third party tool MIMB.  The BO DI Documentation says if MIMB is installed it will show up all the choses with DI.  I installed the trial version of MIMB, but I have not been able to get a PowerDesigner model imported into DI.  Just wondering if anyone has had some luck with this.</p>

    Thanks Phillip:
    You're exactly right.
    When we cloned the app in Designer to a different folder, the domains didn't come across properly for some reason. I looked at the domains in the old folder vs the new cloned folder and the Usages in showed that many of the objects in the new folder were missing linkages to the domains. Any object missing a domain linikage in the new Designer folder was coming across to Data Modeler with domain_# as the column data type. For those columns with proper domain links in Designer, it produced two domain entries in Data Modeler after the import: one with the correct domain name and one with the domain_#.
    I imported the domains from the older folder first and then imported the other objects from the new folder and the domain_# entries in Data Modeler were cut down to four, which was caused by domain linkages not present in the older folder but present in the new one.
    Thanks for your help. I understand what's going on now.
    Doc

  • How to Import data models into BPA

    How can data models be imported into BPA? We understand that models can be imported from other
    BPA repositories. We need to import from something that does not start out as a BPA model. We know how to import the data objects using the Process Generator. But do not understand how to efficiently import Cluster or entity objects (representing tables) connected to ERM Attrribute objects (representing fields). Currently only an EPC model can be imported using the process generator. We've tried importing structures using UML import of class models, but the resulting model is not usable in standard data models.
    Any ideas?

    Have a look on this thread:
    Issues Importing BW Model in HANA Studio
    Regards,
    Krishna Tangudu

  • Benefit of importing BW models into HANA.

    Hi All ,
    What is the benefit of importing BW models into HANA and vice versa in BW on HANA ?

    Hi Supriya,
    i think you are mentioning about the migration from BW to BW on HANA here.
    For understanding the benefits , first you need to understand what is HANA. In simple terms HANA is in memory  Data base (it is much more than that ). So being all your data kept in the main memory the speed of the processing will be 300 times better than using a conventional DB. (You can find blogson the perfomance of hana test cases of HANA)
    So in BW on HANA case we will be migrating the underlying DB used in SAP BW (eg : oracle, SQL, or any conventional DB ) into HANA. As i told it is in-memory you will have very high performace gain in your report execution time.In BW on HANA the cubes and DSO will be represented as hana optimised cube / dso .
    Also you can import BW models to HANA, means you can import a BW cube as Native HANA analytic view . Using native HANA modeling will have further performance gains while running reports
    Regards
    Priya

Maybe you are looking for

  • Using S-Video output

    I just got my universal dock, I plugged my audio output thru the line-out of the dock and used the S-Video port to connect to my TV, problem : the sound is playing but not the video, question : does the power port need to be plugged to, and/or do I n

  • Artifact problems burning QT to DVD

    I'm trying to burn a 3 minute QT movie that I made in FCE4 to Roxio Toast 6 and I keep getting artifacts. In preferences I choose 1x speed but when I go to burn it changes to 4x.  What can I do to defeat the artifacts and get a clean burn?  Can I use

  • Special char in contains

    hi, when I try to query with char like '-' or '=' it gives following error ERROR at line 1: ORA-20000: Oracle Text error: DRG-50901: text query parser syntax error on line 1, column 3 The condition in the sql is like this contains (myFILENAME,'-',1)

  • Using two midi controllers with Logic....

    Hi, if i wanted to play two midi controllers (e.g. a Roland A90 set to midi channel 1, and a Novation SL61 set to Midi channel 2), to play two soft synths within logic at the same time, can I do this? I've been reading this topic also:http://discussi

  • HT6030 After update-do I still need "all mail"?  How can I shrink my 70GB Mail folder?

    My gmail/macmail setup is still broken after the update.  My Mail folder has grown from 10 gig to 70 gig, and no matter how I try I can't shrink it.  Any ideas?  Also, I hate having to store the entire Allmail folder from gmail to try to make this wo