WDVisibility type paramter in Java Bean(Web Dynpro DC in CE 7.1)

Hi All,
I need to set a WDVisibility type paramter in a java bean and i am able to do so.It imports com.sap.tc.webdynpro.progmodel.api.WDVisibility class .
The problem is when i am creating a Java Bean model  it is not allowing me to select the Java bean class it gives an error message" Invalid Class : No class files found for JavaBean : com/sap/tc/webdynpro/progmodel/api/WDVisibility".
The java Bean class exists in Web Dynpro DC>src folder.
Any Pointers?
Regards
Avinash

Hi Ondrej ,
Refer the above links to convert the component of the first dc as a public part.
Then declare the methods which are written in the component controller of the first DC in the interface controller with the same signature.( When method is called automatically component controller method is called)
In second dc in component controller properties tab add the reference of the first dc.
Then access the method in second dc as
wdthis.wdget<UsedComponent name>Interface.methodname();
Thanks & Regards,
Ardhendu

Similar Messages

  • Created in Web dynpro Java or Web dynpro ABAP

    hi all,
    I have a web application running. Its UI  is created either in web dynpro java or web dynpro ABAP. Is there any way by which we can find out that in which form of UI technology is it created; in web dynrpo java or web dynpro ABAP ?

    Hi,
    I am really not sure if this is recommended..
    Try some negative testing on the application. If the application crashes, the trace of the error occured will tell you what kind of development has been adopted for the Web Dynpro application.
    Another hint can be the port number in the Application URL. If it is not 50xxx, and is somewht like 8xxx, it is surely Web Dynpro for ABAP.
    Regards,
    Alka.

  • Difference between web dynpro java and web dynpro abap

    Hi this is watson maureen,
                 I wnat to know what is  the difference between web dynpro java and web dynpro abap?
    thank
    maureen

    Hi watson,
    Go through these links, you will get the difference between web dynpro java and web dynpro abap
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e0e4940c-035c-2b10-0b9d-eb8f99674f4e
    Web Dynpro: ABAP or Java?
    Regards
    Sreedhar.

  • Web Dynpro Java to Web Dynpro ABAP

    Hi all,
    I am a web dynpro java developer with more than 3 years of portal development experience.
    I am now put into a project with web dynpro ABAP(ESS/MSS customization).
    Would like to know whether I should start concentrating more on ABAP or SAP HR?
    I dont have any ABAP programming exp except that attended a training few years back.
    And on SAP HR,dont have much exp except that have some knowledge on ESS customization in dynpro java.
    Please let me know where I should start to get myself refreshed before starting my work.
    Any advice/docs are invited.
    Also,please let me know whether there is any NWDI required for ESS/MSS customization in webdynpro ABAP.
    Thanks
    Meena

    Hi Meena,
    As you have good experience of Web Dynpro JAVA.
    I think you just need to comcentrate on ABAP skills.
    You need not concentrate on SAP HR as ur work is technical your functional guys will take care of HR module and will help you.
    For starting i would suggest you to just go through the basics of ABAP like Work areas , internal tables etc.
    Then start doing some WD ABAP hands on.
    My scenario is similar.
    I am a portal and WD JAVA person and this is my first WD ABAP assignment.
    I followed the above approach.
    You will find many concepts similar to WD JAVA as this is just the ABAP flavour of Web Dynpro.
    The below link will help you a lot
    [WD ABAP HELP|http://help.sap.com/saphelp_nw04s/helpdata/en/43/1f6442a3d9e72ce10000000a1550b0/frameset.htm]
    I hope it helps.   

  • Using External java within web dynpro DC

    Hi
    I'm new in web dynpro and I'm facing a problem.
    I'm doing a web dynpro DC application and I want to use some external java classes I have created into my DC. But I don't really know how to do it, I tried EJB but I don't exactly how it works.
    by the way, I was using a stand along web dynpro before and this worked fine, I just needed to create a package within my web dynpro project with all my class architecture to have them directly. but now with the DC stuff, it's not the same at all. so please help
    thanks

    Hi
    Better you create a Java Development component and add all your java classes to that DC and build it.
    Create a webdynpro DC to develop front end and add the java DC in used DC's of your Webdynpro DC.
    This is the way you can use the java classes effectively with out redundancy.
    If you create a package inside a normal webdynpro project, then you can not reuse them later in other webdynpro proj
    Go with SAP component model by creating 2 development components one for java and other for webdynpro and define the reusability (Used DC's) in DC Metadata.
    Regards
    Kalyan

  • Returning an array type from a local method in Web Dynpro Java application

    Hi,
    In my project, we have a requirement to display 18 rolling months along with the year, starting from current month.
    How I am going to approach is that I will get the system date and get the current month and send the month and year value to a local method which will return 18 rolling months along with the year.
    But, when I tried to create a new method there is no option to return an array type. It was greyed out.
    So, we can not return an array type from a method from Web Dynpro for Java application?
    If so, what is the alternative and how am I going to achieve it?
    I will appreciate your help!
    Regards
    Ram

    HI
    You can create new methods in
      //@@begin others
      private ArrayList MyMethod(){
           // ** Put your code here
           return new ArrayList();
      //@@end
    Other option are create a context node with cardinality 0...n with one or more attributes, and in your method create the needed registers into this node. To read this values, you only need to read your context node.
    Best regards
    Edited by: Xavier Aranda on Dec 2, 2010 9:41 AM

  • How to do Printing in Java Web Dynpro?

    Hi,
    I have displayed a window in Java Web Dynro of some user data.
    And I want to add a Print button so that the user can print the information.
    I do not want to use Adobe PDF for such printing.
    Can I achieve what I want through coding in Java in Web Dynpro?
    Thanks.

    Hi myke,
          firstly you want to create some method in view,
          create one value attribute like HtmlFile --dat type should be binary
           HtmlFile=bynary..
    public java.lang.String displayPrint( )
        //@@begin displayPrint()
        StringBuffer htmlcontent=new StringBuffer();
         htmlcontent.append("<html><body>");
         htmlcontent.append("<input type=\"text\" name=\"su\" >");
         htmlcontent.append("<input type=\"text\" name=\"se\" >");
         htmlcontent.append("<input type=\"submit\" name=\"sre\" >");
         htmlcontent.append("</html></body>");
              return htmlcontent.toString();
        //@@end
    create one button like..Print.
    action name is-
    public void onActionprint(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
         byte[] content = new byte[4028];
              try {
              content = this.displayPrint().getBytes("UTF-8");
              //HtmlFile==binary
              wdContext.currentContextElement().setHtmlFile(content);
         //  Where content is loaded with data from displayPrint() method, which is holding   the HTML *page to be displayed to the user *
              IWDWindow win =
              wdThis
              .wdGetAPI()
              .getComponent()
              .getWindowManager()
              .createNonModalExternalWindow(WDWebResource
              .getWebResource(content, WDWebResourceType.HTML)
              .getURL(),"ShowVideo");
              win.setWindowSize(445,460);
              win.removeWindowFeature(WDWindowFeature.ADDRESS_BAR);
              win.removeWindowFeature(WDWindowFeature.TOOL_BAR);
              win.removeWindowFeature(WDWindowFeature.MENU_BAR);
              win.open();
              } catch (Exception e) {
              wdComponentAPI.getMessageManager().reportException ("Unable to open        window"+e,false);
    thanks
    jati

  • Introduction to Web Dynpro Java?

    Where can I find a good Introduction to Web Dynpro Java?
    Thanks, JJJ

    Hi,
    Go thru..
    What is Webdynpro?
    What is Web Dynpro?
    Webdynpro Sample Applications and Tutorials
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d
    SAP WebAs Samples And tutorials
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/7d646a6c-0501-0010-b480-bf47b8673143 [original link is broken]
    Basis Webdynpro tutorials....
    http://help.sap.com/saphelp_erp2005/helpdata/en/15/0d4f21c17c8044af4868130e9fea07/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/e9/1fc0bdb1cdd34f9a11d5321eba5ebc/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/3a/d08342a7d30d53e10000000a155106/frameset.htm
    Web Dynpro Sample Applications and Tutorials:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/28113de9-0601-0010-71a3-c87806865f26?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d [original link is broken]
    http://searchsap.techtarget.com/searchSAP/downloads/SAPPRESS.pdf
    Check the following thread u can get lot of materials,
    WeB Dynpro Documents
    Refer these linkshttps://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/web%20dynpro%20tutorial%20and%20sample%20applications.faq
    Why WebDynpro ?
    Why WebDynpro ?
    Why  webdynpro and not BSP or JSP?
    Why webdynpro and not BSP or JSP?BSP to WEB Dynpro
    BSP to WEB Dynpro
    Benifits of using Webdynpro Benifits of using
    Webdynpro
    Java vs. ABAP WEbDynpro Java vs.
    WebDynpro ABAP
    regarding Java related webdynpro
    Regarding Java related Web Dynpro vs. Struts - a few questions
    Web Dynpro vs. Struts - a few What kind of applications are being developed with Web Dynpro?
    What kind of applications are being developed with Web Dynpro?
    http://www.sappro.com/downloads/OptionComparison.pdf
    Hop this will helpful for u..
    Urs GS

  • How to do date validation in Web Dynpro java

    Hi
    We have one requirement that One input field with date type is there.When we take Date type input field then in web dynpro Date navigater is appearing by default.Our requirement is if user enters the date manually in the input filed instead of chossing the date from the Date navigator then how we will do the following date validations manually:
    a. If user is entering the date in any format then it should convert it to dd.mm.yy format.
    b. How to do leap year validation?Suppose user is entering   29.02.20007 then it should display Invalid date.
    c. How to do the follwing date validation:
        Let's say that current running hours(Text Vie
    w) on a given engine is 100, entered on 10-Jun-2008(Running hour date-Text view)).
    -On 15-Jun-2008(New Running Hour Date-input field), I try to enter a value of 300 hours(New running hour-input field).
    -This is impossible, because only 5x24=120 hrs has passed from the previous update.
    -Hence, in this case the maximum value I can enter is 100+120=220.
    Can anybody help me in solving the above 3 date validation?

    Hi Susmita,
    For your 3 rd requirement...
    Initially you will be storing the first date entered by the user right???
    Say that date is D1. and user entered hours is H1.
    now after some days at day D2 user again trying to enter some hours say H2. Now you have to restrict user from entering hours which are
    greater than 24*D2-D1....
    so now you have to get D2-D1....
    For this....
    long l1=youdate1.getTime();   // This will convert your Date D1 into long...
    then,
    Date d=new Date(System.currentTimeMillis());
    long l2=d.getTime();  //which is a long value of current date...
    So Now l2-l1 will give you number of days between past date and today's date...
    So On Save you check for
    if((l2-l1)*24<(H2-H1))
    message("Please enter valied number of hours");
    Hope this will help you....
    Regards,
    Srinivas.

  • Web Dynpro JAVA VS. Web Dynpro ABAP

    Hi,
    I'm interested in advantages and disadvantages of WD JAVA & WD ABAP. Could anybody give me some "detailed" information about it?
    We need any information you can give us.
    regards,
    Sharam

    Hi,
    <b>Web Dynpro for ABAP:</b>
    Web Dynpro for ABAP or Web Dynpro for ABAP (WD4A, WDA) is the SAP standard UI technology for developing Web applications in the ABAP environment. It consists of a runtime environment and a graphical development environment with special Web Dynpro tools that are integrated in the ABAP Workbench (SE80).
      The use of declarative and graphical tools significantly reduces the implementation effort
    1)    Web Dynpro supports a structured design process
    2)      Strict separation between layout and business data
    3)     Reuse and better maintainability by using components
    4)     Automatic operation of the Web Dynpro application using the keyboard
    5)     User interface accessibility is supported
    6)     Full integration in the reliable ABAP development environment
    for more see:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/77/3545415ea6f523e10000000a155106/frameset.htm
    <b>Web Dynpro for Java:</b>
    Web Dynpro is a client-independent programming model of the SAP NetWeaver technology platform for developing user interfaces for professional business applications. It is based on the model view controller paradim which ensures that the business logic is separated from the presentation logic. This architecture is visible in the Web Dynpro perspective of the SAP NetWeaver Developer Studio (NWDS).
    Web Dynpro helps you with the development of Web applications by:
    1)       Ensuring platform-independence with the meta model approach
    2)       Minimizing the implementation effort through declarative programming
    3)      Supporting a structured design process by applying the model view controller paradigm
    4)        Providing reuse and better maintainability by using components
    5)       Providing graphical support with tools in the Web Dynpro perspective
    6)       Providing the SAP NetWeaver Java Development Infrastructure (NWDI) which supports team work with different services such as source code versioning and the Central Build Service.
    for more see:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/15/0d4f21c17c8044af4868130e9fea07/content.htm
    <i>The concept of Web Dynpro ABAP is identical with Web Dynpro Java and offers more or less the same functions</i>
    hope it helps
    regards

  • Recursive Tree  using Web Dynpro java

    Hi
    I've been trying to create a recursive tree using java in Web Dynpro.
    Can you please suggest a good example to try with?

    Hi,
    Check the below links....
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/wd%20java/wd%20tutorials/integration%20of%20a%20tree%20structure%20in%20a%20web%20dynpro%20table.pdf
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/wd%20java/wd%20tutorials/constructing%20a%20recursive%20and%20loadable%20web%20dynpro%20tree.pdf
    http://help.sap.com/saphelp_nw70/helpdata/en/13/4cde139306304480e89d815ffcf891/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/af/44ea406c9d3d43e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/21/ad884118aa1709e10000000a155106/frameset.htm
    Code Example,
    http://help.sap.com/saphelp_nw70/helpdata/en/16/1ec1814e566f4baf943c53ccf48552/frameset.htm
    null

  • Web dynpro JAVA/ABAP?

    All,
    Please give your valuable suggestions related to future of Web dynpro Java and  Web dynpro ABAP.
    Sa_R

    Nothing better than this...
    [/people/jim.spath/blog/2008/04/13/tom-jung-chats-about-web-dynpro-podcast-minor-tweaks-13-apr-08]
    Pearl of wisdom with Master Jung.
    Greetings,
    Blag.

  • Web Dynpro ABAP replaces Web Dynpro Java

    Hi, all!
    The release notes for ESS 1.2 (ERP6.0, Enh.Pack. 2) say that all WDJ applications within travel management have been replaced with WDA. Does anybody know if this reflects a general strategy of SAP - drawing back from WDJ, replacing existing Java-apps with ABAP and developing new scenarios in WDA?
    It would be important to get a definite statement on this issue as we are now implementing ESS on portal basis and have to decide wheater to discard the old ITS-scenarios and modify the new Java-based Web Dynpros or keep the old ITS-services with interal ITS and wait for the WDA applications to arise.
    Any hints are more than appreciated!
    Regards,
    Thomas

    Hi all,
    to stop the discussions please have a look at the identical thread in the Web Dynpro Java forum:
    Web Dynpro Java replaced by Web Dynpro ABAP?
    Additional infos can be found here:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/80965596-d91c-2a10-5fa4-95302ec186e6
    Regards,
    Rainer

  • Can Web Dynpro for ABAP supports Mobile devices as like web dynpro for java

    HI,
    Experts,
    Web dynpro for abap application supports mobile devices as like web dynpro java application supports the mobile devices.
    Thnaks
    shabeer ahmed.

    Hi Shabeer,
    if you are looking for Mobile Web Dynpro, this is only supported with Java: [Mobile Web Dynpro |http://help.sap.com/saphelp_nw04/helpdata/en/7d/28fa3e7cb1d861e10000000a114084/frameset.htm]
    If you are on NW 7.0, check out this documentation:
    [Mobile Web Dynpro Online|http://help.sap.com/saphelp_nw70/helpdata/en/42/c136cb0f241d66e10000000a1553f6/frameset.htm]
    Kind regards
    Stefanie

  • Using ICacheService in Web Dynpro DC

    Dear,
    My Web Dynpro DC application allows users to upload several files. Since I don't want to keep all these files continuously in memory, during the complete user session, I want to temporarily save them to disk. Therefore I'm trying to use the ICacheService interface, <a href="https://media.sdn.sap.com/javadocs/NW04/SPS15/km/com/sapportals/wcm/service/cache/package-frame.html">com.sapportals.wcm.service.cache.ICacheService</a>, part of the Knowledge Management and Collaboration (KMC) API.
    To be able to compile (the code below), I created a separate DC of type "External Library" that contains these 3 jar files: bc.sf.framework_api.jar, bc.sf.service.cache_api.jar and bc.util.public_api.jar. These 3 jar files where obtained from these 3 par files: com.sap.netweaver.bc.sf.par.bak, com.sap.netweaver.bc.sf.service.par.bak and com.sap.netweaver.bc.util.par.bak. It took a little bit of searching to find the required jar files, but anyway, everything compiles fine... The External Library only has a public part of type API.
    As you may have guessed, my problem is to get this working at runtime... I can't deploy the External Library DC (using a public part of type assembly) together with my Web Dynpro, because that causes class loader issues. After all, these jar files are already deployed on the server. But if I don't define any runtime dependency or reference, I get a java.lang.ClassNotFoundException.
    <b>The question is: how to define the runtime reference(s)?</b>
    Should I define a Web Dynpro Sharing Reference like "PORTAL:sap.com/com.sap.km.bs.sf.service"? Then how can I obtain a reference to CacheServiceFactory?
    FYI, we're using SAP NetWeaver 2004 SPS 15.
    FYI, the relevant code I (think I) need looks like
    ICache cache = CacheServiceFactory.getInstance().getCache("CACHE_ID");
    Any help is greatly appreciated!
    Kind regards,
    /Sigiswald

    Hi Sasi,
    Thanks for your reply!
    I don't think your suggestion of creating a public part of type assembly will work. Eventually, this will deploy the jar files on the server, which is not required since they're already deployed and it won't work either because of the same reason (class loader collissions).
    But this is how I actually solved it, to my great surprise it's working perfect. <u>All</u> I had to do was create this sharing reference: "PORTAL:sap.com/com.sap.km.application".
    Note that the referenced par file, com.sap.km.application.par.bak, does not include the CacheServiceFactory class. Neither was it necessary to obtain a reference via WDPortalUtils.getServiceReference.
    Anyway, I'm glad it's working
    Kind regards,
    /Sigiswald

Maybe you are looking for