Creating a multi level views in webdynpro for java

Hi,
My requirement is i need to create a webdynpro application with 3 screens .
first screen will be a search screen for example with first and last names fields .so when i give search criteria it will display the search results in the second screen below the first screen(search screen) and some of the fields in the result screen wil have a hyperlink so when i click on that it will display the details of that row in the details view below that results view
in simple terms
search screen
results screen
detail screen
please let me know the way to develop this kind of application in webdynpro for java
points will be rewarded for the helpful answer.

Hi Bala,
            Here you have two options.
<b>I. Display all views at one time:</b>
Open  Navigation Modeler,
Create  a <b>ViewSet</b> with properties column 1, rows 3.
1. In the tool selection list, select Embed View.
2. In the layout area of the Navigation Modeler, click on the cell of the view set in which the view is to be embedded.
3.In the wizard, choose Embed New View and, in the next window, enter a name for the view.
4.Use the package that you entered for the component definition or select another package by choosing Browse.
5.Choose Finish.
Create 3 views with names search screen,results screen and detail screen.
Use plugs to navigate.
<b>II. Display one view at a time:</b>
Create a main View. Insert <b>ViewContainerUIElement</b>
Open  Navigation Modeler.
1. In the layout area of the Navigation Modeler, click on the cell of the <u>ViewContainerUIElement</u>.
2.In the wizard, choose Embed New View and, in the next window, enter a name for the view.
3.Use the package that you entered for the component definition or select another package by choosing Browse.
4.Choose Finish.
Create 3 views with names search screen,results screen and detail screen.
Use plugs to navigate.
You can use <b>visibility</b> property also as another option to show/hide the views in both of these.
regards,
Siva

Similar Messages

  • How to use BAPI in webdynpro for java application

    Hi all,
    Please help in getting started with calling a BAPI in a webdynpro for java application. I have got only the content needed to call a BAPI in a webdynpro for abap application but not in java. Kindly provide me some documents if possible.
    Thanks in advance

    Hi ,
    U have Created One Bapi u want to work with web Dyn pro for java Application Right .
    U need the Following
    1) NWDS (Netweaver Devloper Studio )
    2) jdk1.4 or Above installed in your system .
    After Installation of NWDS .
    1) Just Take J2EE Enginee Details
      a) Go to Window -> preferences  -> J2ee Enginee - > give ur port number , Host name Details . and click finsh .
    Go To Web Dyn Pro Perspective Click onj2EE engine .
    Click On Refresh U will see Green Colour button .
    Now ur Ready to import Ur BAPI .
    1) Go to File -> New -> Project - > Web Dyn pro Project -.
    Give Name , pkg Name Click On Finish .
    2) Expand ur project hirarchy -> go TO Application -> Right Click -> Create Application - > Give Application name and Pkg name -> Click on Finish .
    3) Now ur View And Controller Are Created by Default .
    4) Go to Model-> Right Click on it-> Create Model -> Give Model Name & Pkg name Should diff from Application pkg the Click On Next
    a) Here u have to Two JCo Destination Name Like Model Data And Meta data & R/3 System Details like System Number , Host name  Etc -> then Click on next .
    b) Here u will text filed where u want to search for ur Required BAPI . Type ur BAPI Name Click on Search . Ur bapi will be displyed In Down . click on Next .
    c) Now Ur model is Importedint into NWDS .Map ur model data To Controller and Controller Element to View Elements .
    After ur Model .
    Go to -> Project Name -> Right Click -> go to -> Deploy New Archive .
    after wards u have to go Apllication -> Right click -> deploy and Run .
    ur output will be displyed thru Browser .
    Thats it
    Regards ,
    venkat

  • Problems between Xcelsius and WebDynpro for Java

    How should I do to show Xcelsius in WebDynpro for Java?
    How should I transport data between Xcelsius and WebDynpro?
    How should I control WebDynpro with Xcelsius?For example,firing plugs in Xcelsius like in WebDynpro to change one view to another.
    How should I do to execute a Java method in Xcelsius?For example,scheduling a job on clicking a button in Xcelsius.
    Besides these,I also want to know the same problems between other BOE contents and WebDynpro for Java.
    Regards,
    Abe

    Hi Pradeep:
    Well that purely depends on the business application (project) your client is proposing. Following are very few factors which will drive for creating web-based applications:
    VC: it's a UI modeling tool (non-programming) for creating rapid creation of web-based applications.
    WD: its a powered by Java and ABAP with which you can create robust business applications.
    If your client is very choosy about rapid application development, reporting, rich user interface, to reduce TCO then VC is the choice. Or if the project contains typical integration with SAP and non-SAP systems, complex business logic development, integration with WCM systems...etc then WDJ is the option.
    If you’ve some sort of custom development with facilitating the Development Infrastructure (NWDI) then WDJ is the only option I could say.
    We hope with NW CE 7.1.1(referred by Priyanka Singh) tighter integration between these TWO tools may over come the ambiguity of using them.
    Tnx,
    MS

  • RE:(URGENT)WebDynpro For Java

    hi all,
    I have done an application in webdynpro for java that i.e accesing a java Bean by creating a model.
    In my model i have taken three variables i.e a,b,c
    after that i have exported the jar file of that bean...and i have created model in my webdynpro application.
    in that model i have taken that jar file and i have taken in used model to....
    After that in  diagram view of the webdynpro componnt i have mapp that model to cntroller and from controller to the view after that i am able to use the three variables from the bean as my context attributes.....
    so i have binded those attributes(from Bean) to inputfields in view layout....
    so after that when i have deployed the webdynpro application the input fields are getting disabled so iam not able to give any values....
    and when iam clicking the submit button the error iam getting is null pointer exception....
    even i have tried with different cardinality values of that node ......but my problem was not solved so plz help me out in solving this issue as soon as possible.............

    HI Mahesh,
    If you have mapped variables correctly then check following
    Your variables a,b,c wherever you declared them instantiate them.
    and be sure that that getter setter methods are exist.
    e.g if a,b,c are in your bean file then
    as a = new a's class,
    and check getter methods for a
    i.e. getA() and setA(a's class) methods.
    after this export as jar and use this new jar to create model.(It will be good if you create a new model deleting prv one)

  • Charts creation with Webdynpro for Java

    Hello everyone,
    I am really new to SAP technologies and I have to create charts showing statistics for an application based on CE 7.1 and Webdynpro for Java.
    I would like to have some inputs about the best way to achieve this, I saw it exists a business graphics UI and flash islands to use flex with webdynpro.
    Thank you for your opinions
    Regards,
    Joh

    Hi Johann,
    Please refer to this link might help for your requirement:
    [Click Here|http://wiki.sdn.sap.com/wiki/display/WDJava/WebDynproforJavaDemo+Kit]
    Hope it helps
    Regards
    Arun

  • Adobe Interactive forms & WebDynpro for java problem with IE7 and IE8

    I have Interactive form ui-element in WebDynpro for java (ver. 7 SP 10) application. It works fine with IE6, but in IE7 (or IE8) it doesn't show that ui-element at all. We have tried to change IE7 security & advanced settings, but we have not made any progress. We have also tried to install/uninstall different Adobe reader versions etc.

    I know a little more about the problem now. After viewing the XML source I change the property of the inputfield.
    It was like this:
                <field name="verdipers_felt" y="130.7001mm" x="180.1801mm" w="101.6004mm" h="44.4501mm" locale="no_NO" access="ReadOnly">
    but i changed the access to be nonInteractive
                <field name="verdipers_felt" y="130.7001mm" x="180.1801mm" w="101.6004mm" h="44.4501mm" locale="no_NO" access="nonInteractive">
    now view2 shows the linebreak as in view1... Buut! when im going back to view1 from view2, the linebreaks gets converted into spaces
    thats pretty wierd, aint it?

  • Problem in connecting to database from webdynpro for java

    Hi
    I have a problem in connecting to database from webdynpro application
    I am using oracle 10 express edition as database and was able to connect to database from a java application.But  was unable to connect from a webdynpro for java.
    <b>I guess webdynpro for java uses open sql instead of vendor sql(I looked in the visual admin ,DB is using open sql) so unable to connect to database.Am i right.?</b>
    Do i need to make any settings in the visual admin to make it work?
    How to solve this problem.Please give me pointers
    Thanks
    Bala

    Hi,
    For connecting to Oracle, either you can use the normal JDBC connectivty code directly which is given below :
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@Oracle_server_ip:Oracle port:SID of the Database","user_name","password");
    Statement stmt = conn.createStatement();
    ResultSet rs = stmt.executeQuery("your query");
    In case you want to fetch data through ejbs, these are the steps to be followed :
    1) Open the J2EE perspective
    2) Create an EJB Module project
    3) Right click on ejbModule, create a new EJB (select your EJB type)
    4) While creating the ejb itself, you can add business methods by clicking ‘Next’ in the UI. Another option is after creating the ejb, write the method in the bean, then select the method from ejb-jar.xml -> <bean name> ->method. Right click and select ‘propogate to local & remote’.
    5) Double click on ejb-j2ee-engine.xml. select your bean and specify a Jndi name for eg: “MyJndi”.
    6) Right click on the EJB project and add ‘classes12.zip’ file (provided by Oracle) to it’s build path. (under libraries tab). Also check the same file under ‘Order & Export’.
    7) Create an Enterprise Application project.
    8) Right click on the EJB module project and select add to EAR project, then select the created EAR project.
    9) Right click on the EJB project, select ‘Build EJB Archive’
    10) Right click on the EAR project, select ‘Build Application Archive’
    11) Open the WebDynpro perspective, open a new project, right click on the project ->properties. Do the following configurations :-
    • Java Build path - select the EJB project from ‘projects’ , check the selected project under ‘Order & Export’
    • Project references – select the EAR project
    • WebDynpro references – select ‘sharing references’ tab, click add & make an entry as : <vendor>/<EAR project name without .ear extension>
    You can find the vendor name under ‘application-j2ee-engine.xml’ file of the EAR project. By default it is ‘sap.com’. So if my EAR project’s name is ABC, my entry would look like ‘sap.com/ABC’
    12) Now the configurations are over and the EJB can be invoked by writing the client code inside the webdynpro component. Like:
    InitialContext context = new InitialContext();
    Object obj = context.lookup("MyJndi");
    MyEJBHome home = MyEJBHome)PortableRemoteObject.narrow(obj,MyEJBHome.class);
    MyEJB mybean = home.create();
    int a = 0;
    a= mybean.add(10,15);
    wdContext.currentContextElement().setSum(a);
    where ‘MyEJB’ is my EJB name and ‘MyJndi’ is my JNDI name
    To connect to Oracle , you can write the usual Java code (given below) as a business methos of the ejb (similar to add() method in the example). And access it like mybean.<businessMethodName>().
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@Oracle_server_ip:Oracle port:SID of the Database","user_name","password");
    Statement stmt = conn.createStatement();
    ResultSet rs = stmt.executeQuery("your query");
    Extracted from Re: Webdynpro and Oracle
    http://help.sap.com/saphelp_webas630/helpdata/en/b0/6e62f30cbe9e44977c78dbdc7a6b27/frameset.htm
    May be of use to understand the VA Conf /people/varadharajan.krishnasamy/blog/2007/02/27/configuring-jdbc-connector-service-to-perform-database-lookups
    Regards
    Ayyapparaj

  • Retrieve already deployed webdynpro for java source code from portal server

    HI ,
       We have webdynpro for java apllication already deployed on the J2EE server.  We found the ear file related to this application.  But I am not able to make any changes to the ear file in NWDS as it cannot be directly imported into NWDS.  We do not have NWDI for software logistics and the resource who built the WDJ application has left the company.  Is there any way that I can retrieve the complete source code of the application from the portal.  I need to make some changes to Webdynpro component and its view.  I have worked with basis team to retrieve the ear file from portal server.  But I could not make any progress just with the ear file.  Thank you for your help in advance
    Regards,
    KMM.

    You are probably breaking some license agreement by de-compiling the content of the 'war' files. Why not ask the people who provided the 'war' file if you could have the source and build system.

  • Changes in Webdynpro for Java MDM appl for Italian

    Dear Expert,
    I came across one requirement in my project where in we have to rollout our existing MDM applicaiton in Italian. The current code is working very fine in English but now we have to modify our code to work with Italian as well.
    In our SAP landscape the Vedor/Master is created from the Portal(Customized Webdynpro for Java code). I got following document on this requirement but i want some more guidense on this...
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b0e8aedc-cdfe-2c10-6d90-bea2994455c5?quicklink=index&overridelayout=true
    Thanks and Regards,
    M.D.Sahu

    Just giving you few more detail about my issueu2026.
    For a multilingual text field I have written the code like below u2013
    MultiregionValue multiregionValue = new MultiregionValue();
    multiregionValue.setValue(Region_Properties.getRegionCode(),new StringValue(wdContext.currentRequestInformationElement().getMDM_CITY()));
    NewRec.setFieldValue(FID_MDM_CITY,multiregionValue);
    Which is working fineu2026.
    But the following code for multilingual Lookup field is not working..
    LookupValue lookUpValue = new LookupValue(wdContext.currentAccountGroupElement().getId());
    multiregionValue.setValue(Region_Properties.getRegionCode(),new LookupValue(wdContext.currentAccountGroupElement().getId()););
    NewRec.setFieldValue(FID_AccountGroup,multiregionValue);
    I am getting following error while running this codeu2026
    Can not set value of type 'LOOKUP' to MultiregionValue of type 'STRING
    Please help to get it resolved.

  • Instalation to try webdynpro for java

    Hi Experts,
    I'm trying to perform an instalation to make some tests with webdynpros for java.
    In our office we have a 2003 Server Standard edition, but I don't know if I have to install the programs on the  Server or on a Personal Computer.  I don't know anything about sistem managing or administration
    We have downloaded this tryal versions:
    - SAP NetWeaver 2004 SP16 --> version java+webdynpro
    - SAP NetWeaver 7.0 (2004s) SP9 --> version JavawebdynproComposite Application Framework
    A workmate of mane have tryed to install them but he says that he can't complete the installation c'ause an error is recieved at the middle of the instalation.
    Does anybode please can give me a clue about how do I have to instal it, where; and wich version? The tests i want to make are about creating webdynpro applications with netweaver developer studio.
    Thank-you very much.
    Artur.

    Hi,
    You can get installation guides for every installation you require in service market place.
    Try refering this link
    https://service.sap.com/instguides.
    Hope it helps..
    Regards,
    Srujana.

  • Basic TableUI element to Retrieve Data from DB in WEbDynPro For Java

    Hi Experts,
    I am new to WebDynPro for java.Can any body please help me out from this issue.
    I am trying to display records from DataBase by Using Table UI element.
    DBTable Contains 10 rows.
    I have created a Node and Attributes(for every column) .
    I am using JDBC code to retrieve data from database and assigning to Attributes.
    But in Table UIElement its displaying only last record from database as first row in UIElement.
    Its over writing previous rows.
    Can any body please help me the correct procedure to retrieve data from DataBase.
    Thanks and Regards,
    Shashikiran.B

    Hi,
    Iterate through the result set object
    populate the context node
    Ex:Replace the context nodeName with that of yours.
    ResultSet resultSet = stmt.getResultSet();
           //Iterate through the resultset
           while(resultSet.next())
                //Create element of the context node
               IWDNodeElement nodeElement = wdContext.nodeOrders().createElement();
               //assign value from the database to the context attribute
               //Replace attributeName with your attribute name
               //Replace value with resultSet.getShort("<ColumnName>")
               nodeElement.setAttributeValue(attributeName, value);
               //Add the element to your node
               wdContext.nodeOrders().addElement(nodeElement);
    Regards
    Ayyapparaj

  • Team Calendar UI element in WebDynpro for java

    Hello Experts.
    We need to create an application like TeamCalendar.While searching sdn i found this pdf
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e012e6a2-8d21-2a10-1bb8-d9b606f3474c
    which says there is some ui called TeamCalendar or something like that in WebDynpro for Java but I'm unable to find it..Can anyone tell me where to find it?

    You can get the developer studio for the SAP NetWeaver Composition Environment (CE) 7.1.
    Simply download it from the Downloads section - the first link is for CE :). https://www.sdn.sap.com/irj/sdn/nw-ce-downloads
    In it you will find the development infrastructure and the DTR perspectives. for working with them see the CE documentation -> http://help.sap.com/saphelp_nwce10/helpdata/en/45/3c66688c604c2ce10000000a1553f6/frameset.htm
    Points are welcome if it is useful
    Koti Reddy

  • Dynamic destinations for adaptive web service in webdynpro for java

    Hi,
    Please advice me on how to create dynamic destination for adaptive web service model in webdynpro for java.
    Regards,
    Patana

    Hi,
    If this is the case, then use the HTTP destination for this.
    What you need to do is:
    1. Create one HTTP destination in visual administrator at services-> Destinations. Provide HTTP url of the your web service and the security options.
    2. Specify this HTTP destination in the code before executing web service model.
    Write following code for that:
    wdContext.current<node name>Element().modelobject()._setHTTPDestination(<Specify HTTP destination name>);
    Then execute your web service model.
    Now, whenever you want to change the server on which your web service is running, make change in the HTTP Destination in visual administrator.
    Refer this link,
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b2bc0932-0d01-0010-6d8e-cff1b2f22bc7
    Regards,
    Sunaina Reddy T

  • Webdynpro for Java Edit and Save.

    Dear all,
    ter cal
    iam working on webdynpro for java i want simple code for EDIT and SAVE  after calling a rfc in for using NWDS webdynpro for java.
    1)HOW TO SAVE AND EDIT THE FRONT WEBDYNPRO FOR JAVA APPLICATION
    2)AFTER SAVING AND THE DATA THAT SHOULD BE SAVED IN PA30 ARE PA20 AND IN PARTICULAR TABLE ALSO.
    PLEASE GIVE ME GOOD TIPS.

    Hi Kishore,
    Creating/Updating entries in tables through Bapis (RFC calls) work in the same way as it is done for other Bapis like those for returning values or even structures. All you have to do is
    1. Import the model, create a model node in your context and bind it to the Input structure of the model under used models.
    2.Create an istance of the Model input structure, like
         Z_Test1_Input input = new Z_Test1_Input();
    3. Set attibutes directly under the input structure
         input.setAttr1("XYZ");
    4. Set attributes under any other structure under Input Structure by first creating the instance of the sub-structure
        Z_SubStruct1 subStrc1 = new Z_SubStruct1();
        subStrc1.setSubAttr1("ABC");
    5. Add all available instances of sub-structures to the instance of input structure
        input.set<SubStruct1>(suStrc1);
    6. Add all available instances of tables under Input Structure after setting attributes within using
    for (int iCount = 0; iCount < wdContext.nodeVn_ContactInfo().size(); iCount++) {
          Z_Table1 zTable1 = new Z_Table1();
          IPublic<YourComponent>.IVn_Table1Element tab1Ele = wdContext.nodeVn_Table1().getVn_Table1ElementAt(iCount);
          zTable1.set<TableAttr>(tab1Ele .getVa_Attr1());
          input.add<Table1>(zTable1);
    7. Bind the instance of input structure to the model node.
       wdContext.nodeMn_TestModel().bind(input);
    8. Execute the model object and then invalidate the output structure under model node (Put this code in try catch block)
       wdContext.currentMn_TestModelElement().modelObject().execute();
       wdContext.nodeMn_TestModel().nodeOutput().invalidate();
    9. Retrieve values from the attributes, tables and structures under the Output Node of the Model Node (Mn_TestModel) as usual
    and store wherever in context as required. In case of output tables, you need to use FOR loop to iterate through the tables and access elements within using index (using wdContext.node<YourRequiredNode>().get<YourRequiredNode>ElementAt(int index)).
    Hope it is helpful.

  • Comparison between WebDynpro for ABAP vs. WebDynpro for Java ??

    Hi,
       Can someone tell me when should we go for WebDynpro for ABAP and when WebDynpro for Java. Is there any link where SAP recommends the one for the other.
    Thanks in advance
    Regards
    Mukesh

    Hi Mukesh,
    Both are having its own strengths!! )
    I think it all depends on your project requirement and the availabel resources.
    If the developer is good in OOPs ABAP then he must go for Web Dynpro ABAP. But if anyone is good in JAVA then that person should go for Web Dynpro JAVA.
    *In Short almost all Features supported in webdynpro ABAP are also Possible in webdynpro Java.
    1] Webdynpro Java
    Supports,
    webservice
    RFC Models
    Accessing Portal information in Java
    Easy sending E-mail
    Strictly follows MVC architecture which seperate Business logic and Process flow.
    Webdynpro Java is webbased programming model to develop SAP Applications.
    Easy to learn
    Easy to integrate in Enter prise portals.
    Dynanamic Programming
    *Easy access to R/3 Via RFC technology (Models)
    2] Web Dynpro ABAP
    As the name suggests Web Dynpro for ABAP uses exactly the same meta model as its cousin Web Dynpro for Java. A Web Dynpro component, a Web Dynpro view, a Web Dynpro model, a Web Dynpro controller have the same semantics both for ABAP and Java. The main difference is the designtime environment, the development infrastructure and the runtime environment.
    The designtime environment is properly embedded in the ABAP Workbench where Web Dynpro artifacts are simply a new category like BSP applications or classical dynpro based applications before. Also no surprises regarding the development infrastructure. The correction and transport system keeps track on all changes that are done, versions them and helps to propagate the Web Dynpro application from development to production like you would do with ordinary BSP or dynpro-based applications.
    Last not least the execution platform is the ABAP server that produces application content ready to be integrated in the NetWeaver Portal seamlessly. Features like portal eventing can be used between applications written in ABAP or applications developed with Java.
    Hope this helps and solve your Problem
    Cheers,
    Darshna.

Maybe you are looking for