Radio Button Problem in Webdynpro For Java

Hi to all,
               I am new to Webdynpro. I want to create four Radio buttons which will fetch the data from the RFC. I have created a Context value node called options and created four value attribute under that options node.
The Problem is if i use the Radio button group by index i could map only one attribute at the "texts" field of Radio button group. how do i map the other values.
or Is there any other way of using Radio button for such of requirements.
Please if any one bring me the Solution to this issue it would be more help ful to me.
Thanks in advance...
Regards,
Malar.

Hi Thenmalar,
If you want to have four radiobutton then you need to have only one value attribute within the node.
Assume you want to have 4 radio buttons named one, two, three and four
1. Create a value node called Radio and create a value attribute within this node called Value
2. Bind this attribute to the radiobutton group.
3. Define the values of these radiobuttongroup at runtime(in WDDoInit() method of the view)
IPrivate<viewname>.IRadioElement ele = wdContext.nodeRadio().createRadioElement();
ele.setValue("one");
wdContext.nodeRadio().addElement(ele);
IPrivate<viewname>.IRadioElement ele1 = wdContext.nodeRadio().createRadioElement();
ele1.setValue("two");
wdContext.nodeRadio().addElement(ele1);
IPrivate<viewname>.IRadioElement ele2 = wdContext.nodeRadio().createRadioElement();
ele2.setValue("three");
wdContext.nodeRadio().addElement(ele2);
IPrivate<viewname>.IRadioElement ele3 = wdContext.nodeRadio().createRadioElement();
ele3.setValue("four");
wdContext.nodeRadio().addElement(ele3);
You will get the values one, two, three and four at runtime.
Regards,
Murtuza

Similar Messages

  • Radio button problem in webdynpro abap

    Hi Guys,
    In the selection screen i have 2 radio buttons PO and RP.
    user is allowed to select either of the one so i have created 1 radio button group.
    scenario 1:
    when user clicks on radio button 1 and then click the submit button.
    now he wants to change his selection so he again enter and click the radio button 2 and click on subnit button.
    if he goes again he can see the radio button 2 selected.so it is working fine.
    Scenario 2:
    when user clicks on radio button 2 and then click the submit button.
    now he wants to change his selection so he again enter and click the radio button 1 and click on subnit button.
    if he goes again he can see the radio button 2 selected.so it is not working fine.
    The coding is as follows:
    on action submit i have writtent the following code
    IF ls_iohncust_values-repplanonly IS NOT INITIAL.
                 IF ls_iohncust_values-repplanonly EQ 'PO'.
                   ls_profgen_custval-cust_attr      = 'REPONLY'.
                   ls_profgen_custval-cust_value     = 'X'.
                 ELSEIF ls_iohncust_values-repplanonly EQ 'RP'.
                   ls_profgen_custval-cust_attr      = 'REPPLAN'.
                   ls_profgen_custval-cust_value     = 'X'.
                 ENDIF.
               ENDIF.
    Kindly let me know why scenario 2 is not working.

    Hi Vijay,
    IF ls_iohncust_values-repplanonly IS NOT INITIAL.
                 IF ls_iohncust_values-repplanonly EQ 'PO'.
                   ls_profgen_custval-cust_attr      = 'REPONLY'.
                   ls_profgen_custval-cust_value     = 'X'.
                 ELSEIF ls_iohncust_values-repplanonly EQ 'RP'.
                   ls_profgen_custval-cust_attr      = 'REPPLAN'.
                   ls_profgen_custval-cust_value     = 'X'.
                 ENDIF.
        ENDIF.
    As I can see there is no such issue in selecting data in secord scenario. It might be the case that it's not getting cleared so you can just clear your node ls_iohncust_values-repplanonly after your endif on submit action.

  • 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

  • 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

  • Problem in Uploading excel file using WebDynpro for Java

    Hi  All
    I have followed for Uploading excel file using WebDynpro for Java added by  Tulasi Palnati
    I done all, but I'm getting 500 Exception please contact u r system admin meag  at run time also  Jxl/Workbook class not found msag  but i downloaded Jxl.jar file and  there is no error signals  in coding part. How can I solve the Problem.
    Thanks
    Polaka

    Please ask the people in the Web Dynpro Java forum for a solution.

  • 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)

  • Basic TableUI element to Reset Data in WEbDynPro For Java

    Hi Experts,
    I am new to webdynPro for java . Can anybody plz help me out.
    i wrote the following code to retrieve data from DB. which is working very much fine.
    public void
    onActionGetRecords(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
    while(rs.next()){
    tabstrip.comp.wdp.IPrivateSearchEmployee.IEmpDetailsElement elt= wdContext.nodeEmpDetails().createEmpDetailsElement();
                          elt.setSNo(rs.getString(1));
                          elt.setName(rs.getString(2));
                          elt.setPlatform(rs.getString(3));
                          elt.setPhNo(rs.getString(4));
                          elt.setCity(rs.getString(5));
                          wdContext.nodeEmpDetails().addElement(elt);
    Now my problem is when i call this action its adding the rows to Table UI elements.
    Can anybody please help
    how to reset values in TableUI element when i click on reset button OR when i call onActionGetRecords(-----) methods,
    Please help me .....
    thanks and Regards,
    Shashikiran

    hi,
    if you want the data to be erased(reset)
    in your code
    tabstrip.comp.wdp.IPrivateSearchEmployee.IEmpDetailsElement elt= wdContext.nodeEmpDetails().createEmpDetailsElement();
    elt.setName("");
    elt.setPlatform("");
    elt.setCity("");
    wdContext.nodeEmpDetails().addElement(elt);
    by this way you can reset all the values present in the table
    and can you make it more clear for on action getrecords
    or  you acn use the remove method to remove the table element
    wdContext.nodeXXX().removeElement();
    thanks and regards
    fazal
    Edited by: fazal ahamed on Apr 2, 2008 4:10 PM

  • 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

  • Accessing portal roles in webdynpro for java

    Hi,
    Please let me know how to access portal roles in webdynpro for java.
    Rgds,
    Patana

    Hi ,
    Please use this API to access the portal roles:
    IRoleFactory fact=UMFactory.getRoleFactory();
    Also see this code to get more information of role using code:
    IRoleFactory rolef=UMFactory.getRoleFactory();
    IRoleSearchFilter searchfilterrole= rolef.getRoleSearchFilter();
    ISearchResult searchResult = rolef.searchRoles(searchfilterrole);
    while(searchResult.hasNext())
    String unq=(String) searchResult.next();
    IRole role1=rolef.getRole(unq);
    String roleName = role1.getDisplayName();
    String roleID = role1.getUniqueID();
    // Once you get the informationof role you can use it in your application as per your requirement.
    Also please note that:
    You should add "com.sap.security.api.jar" to your project`s java build path for getting the Portal Security API's.
    I hope this solves the problem. Please revert back incase you need any further informationon this.
    Thanks and Regards,
    Pravesh

  • 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.

  • ESOA & Webdynpro for Java.

    Hi ESOA gurus,
    I am working on Webdynpro for Java,Enterprise Portal.I would like to know how ESOA is related to me.
    Going forward if i want to Work on ESOA what are the prerequistics.
    Reward points will be awarded for suitable answer.
    Thanks in Advance,
    Lina.

    Hi Lina,
    Please go through this link. I this will be helpful for you.
    http://www.sercononline.com/suntechnovate07/images/images/13%20-%20Rajiv%20Jain%20-%20SAP.pdf
    What is Enterprise SOA and Enterprise SOA?
    SOA is an increasingly popular concept. But it never really took off, because there has been no standard middleware or application programming interfaces that would allow it to take root. There were attempts to build them, then Web services came along and gave it a boost. The Web services underlying architecture dovetails perfectly with the concept of Enterprise SOA —so much so, in fact, that some analysts and software makers believe that the future of Web services rests with Enterprise SOA. SAP came up with the startergic decision on coverting the Webservice methodolgy to Enterprise Services Methodology "Which would have business semantics attached as capability".
    So how does EnterpriseEnterprise SOA differ from Web services?
    Most Web services implementations are point-to-point, where you have an intimate knowledge of the platform to which you're connecting. The implementation is fairly solid and the interface doesn't really change,. That means that the Web service is not made available publicly on the network, and cannot be "discovered" — in a sense, it's hard-coded in the point-to-point connection. In an Enterprise SOA implementation, information about the Enterprise services and how to connect to it is published in a UDDI-built directory, and so that Enterprise service can be easily discovered and used in other applications and implementations.
    Why use Enterprise SOA?
    A number of factors are driving the move toward Enterprise SOA. Cost savings is one. If you can reuse services you've already built, then you don't have to spend as much time and money developing new applications. Another factor is the increasing success of Web services. As companies build more Web services, unless they have an overarching architecture. For example, what happens when one of those Web services has been incorporated into other applications, but then the Web service is changed without telling developers of those applications? An overall architecture needs to be built to make sure that doesn't happen. Perhaps most importantlyis that an Enterprise SOA "increases a business's flexibility and lets it more quickly adapt to changing business needs." Most Web services are being used primarily "to solve point-to-point integration problems." But these solutions "can't solve the larger integration problems in converting hundreds of systems" to an overall, single enterprise architecture. For that, SAP Enterprise SOA is needed.
    But while the basic Web services architecture fits neatly into the Enterprise concept, there are still roadblocks to setting them up. Notable among them, Is security, identity management issues, and management problems — having software that will be able to track and manage hundreds or dozens of Web services and their development and deployment. SAP Software is just becoming available to do that. On the security side, the issues still haven't been solved.
    Reward points if useful.
    Cheers,
    Swamy Kunche.

  • Documentum Foundation Service (DFS) and webdynpro for java

    Hi All,
    Anybody have any experience calling web service created in documentum and using it in webdynpro for Java?
    Main problem I am facing is I cannot use ContextRegistryService.
    We used AXIS2 for generating the proxy and it is solved.
    Thanks
    Raktim
    Edited by: Raktim Banerjee on Jan 21, 2010 2:40 PM

    We used Axis2 for proxy.

  • Problem generating stubs for Java EJB web service deployed in OAS

    I created an EJB web service and I've successfully deployed it in my Oracle App Server. Some of the methods work fine but others produce the ff error:
    org.apache.soap.SOAPException - java.lang.IllegalArgumentException: No Serializer found to serialize [classname] using encoding style [encoding]It seems that the objects specified as parameters in the web service methods exposed are the only ones that had stubs generated for them. Other objects I use, which are usually wrapped inside a Vector, did not have generated stubs.
    Example:
         public String loginUser(UserDTO userDTO) throws RemoteException, NamingException, SQLException;
    public String addItems (Vector vecItems) throws RemoteException, NamingException, SQLException; // where vecItems is a collection of ItemDTO objects     In this scenario, stubs were generated for the UserDTO class, but not for the ItemDTO class. In effect, calling the addItems method resulted to the exception I mentioned above.
    I did a workaround wherein I declared a dummy method which accepted all the types of objects I needed as parameters so all the necessary stubs can be generated, but this fix doesn't feel like it's the proper solution to my problem.
    If anyone can help me, it would be greatly appreciated. Thanks!

    Crossposted:
    Problem generating stubs for Java EJB web service deployed in OAS

  • Suggestion for a good book for webdynpro for java

    Hi, I am new to this technology,and i know a little bit basics,but i want to learn in depth regarding Webdynpro For Java and my backend is SAP R/3
             can anyone suggest me  a good book for webdynpro for java

    Hi padma,
    Check this link.
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#9">Web Dynpro Sample Applications and Tutorials</a>
    Re: Guides for new entrant to Webdynpro
    Regards,
    Mithu

Maybe you are looking for