Problem in Modeling in webdynpro view composition?

hi
I have made the project TutWD_ViewComposition_init given in help library but getting null pointer exception
at:
public java.lang.String getImageSourceCa(IPrivateImageView.IContextElement element)
    //@@begin getImageSourceCalc(IPrivateImageView.IContextElement)
    if (wdContext.currentContextElement().getComponentUsageName().equals("LeftImageCompInst")) {
      return "leftperson.jpg";
    } else {
      return "rightperson.jpg";
    //@@end
If anybody has made this project and rectified this problem plz give reply.
regards
Nidhideep

hi
Armin and sunil ,i knw that component usage is null,i can solve this problem by context mapping,but problem is see the code:
public java.lang.String getTrayTitleCalc(IPrivateImageView.IContextElement element)
    //@@begin getTrayTitleCalc(IPrivateImageView.IContextElement)
       String groupName =
          "Instance of Web Dynpro Component 'ImageComp' named '"
            + wdContext.currentContextElement().getComponentUsageName()
            + "'";
       return groupName;
    //@@end
  //@@begin javadoc:getImageSourceCalc(IPrivateImageView.IContextElement)
Declared getter method for attribute ImageSourceCalc of node Context
@param element the element requested for the value
@return the calculated value for attribute ImageSourceCalc
  //@@end
  public java.lang.String getImageSourceCalc(IPrivateImageView.IContextElement element)
    //@@begin getImageSourceCalc(IPrivateImageView.IContextElement)
    if (wdContext.currentContextElement().getComponentUsageName().equals("LeftImageCompInst")) {
      return "leftperson.jpg";
    } else {
      return "rightperson.jpg";
Hw come my method getTraytitle gets the componentUsage while getImageSourceCalc donot ?
I think it is some conceptual problem rather than coding mistake .Plz do give ur views.
Regards
Nidhideep

Similar Messages

  • Problem in assigning Webdynpro view to BPM task

    hello all,
    I have a webdynpro application using EJB Model. Now I am trying to embed this application into BPM. When I am assigning the view to a bpm task then it will show error that data type not supported like that.
    In Component Controller's context and Interface's context I am using context node through model node binding and in the model node i am using some Java Native datatypes like java.util.Date/java.lang.Long etc that are not supported in BPM tasks i think.
    How can I handle this prob. thks in advance. It will very useful for me if somebody have some example that uses the webdynpro views along with EJB Model in that.

    Hi kapitsu,
    not every data type is suppported by BPM.
    May you have a look at
    [Data Type Compatibility|https://help.sap.com/saphelp_nwce711/helpdata/en/63/9f9ca5bb234502bd7b02c91ac6040a/content.htm]
    Or at
    [SAP Message 1266539|https://websmp130.sap-ag.de/sap%28bD1kZSZjPTAwMQ==%29/bc/bsp/spn/sapnotes/index2.htm?numm=1266539]
    There are also some examples where it works:
    [CE 7.1 Samples|SAP NetWeaver Composition Environment Samples Center ]
    [Modeling Your First Process with SAP NetWeaver Business Process Management|SAP NetWeaver Business Process Management Resource Center;
    Maybe it helps.

  • Add WebDynpro views to existing J2EE app

    I am having a hard time understanding how i can add webdynpro views to my existing war file.  I use Spring, and not EJB's. 
    I would prefer to have the deployment coupled such that the WebDynpro is within the same classloader as my existing servlets(struts, velocity).  I need this because the application uses Toplink for it's O-R, and I would like to share the cache between the Dynpro views, and my struts views.
    How would I set up such a project within developer studio?
    thanks,
    Craig

    Ok, my previous email has skipped too many steps, as I am unable to get things wired as I would have hoped.
    Here is the problem in more detail.  I have a jar file pago.jar.  It has all the domain modeling.  We have use AspectJ in creating our domain model (pago.jar) so I understand that I cannot compile that within the SAP DevStudio.  I continue to build that within eclipse.
    I have a web-application which contains jsp's, velocity files, etc which reference the pago.jar.
    I would like to add Dynpro components to access the pago.jar.  Ideally I need pago.jar to be loaded within the same classloader as the existing web-application which can be deployed on the SAP j2ee server.  However, I am quite happy just getting a WebDynpro hitting my domain model as a first step.
    I thought I could create a DC for the pago.jar.  But then i quickly get stuck.  How do i create a DC which simply wraps this pago.jar?  Which type of DC do I create?  How do I add the pago.jar to it? 
    Then with this DC, do I just add a reference to it from my Dynpro DC?
    Thanks alot in advance!
    craig

  • Error opening Webdynpro view of NWDS 7.3

    I just installed NWDS 7.3 patch 1. Installed JDK 1.6.0_07.  NWDS is  having problem showing Webdynpro view.  When i open the webdynpro view and drag a UI control all i get is the below screen.
    In the error log i get the below error message. I was able to compile and deploy the DC, but having problem see the webdynpro view in the Studio. Please help on what need to be done. I tried this on Windows XP and Windows 7 , and ran into the exact same issue.
    org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NoClassDefFoundError: com/sap/security/core/server/csi/XSSEncoder)
        at org.eclipse.swt.SWT.error(SWT.java:3884)
        at org.eclipse.swt.SWT.error(SWT.java:3799)
        at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:137)
        at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3885)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3506)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
        at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
    Caused by: java.lang.NoClassDefFoundError: com/sap/security/core/server/csi/XSSEncoder
        at com.sap.tc.ls.renderer.base.AbstractRenderer.writeXmlEscaped(AbstractRenderer.java:1168)
        at com.sap.tc.ls.renderer.base.AbstractRenderer.writeXmlEscaped(AbstractRenderer.java:1118)
        at com.sap.tc.ls.renderer.base.AbstractRenderer.writeXmlEscaped(AbstractRenderer.java:1098)
        at com.sap.tc.ls.renderer.ie6.LSPageHeaderRenderer.renderPageHeaderFragment(LSPageHeaderRenderer.java:843)
        at com.sap.tc.ls.renderer.ie6.LSPageHeaderRenderer.render(LSPageHeaderRenderer.java:290)
        at com.sap.tc.ls.renderer.base.BaseRenderManager.render(BaseRenderManager.java:944)
        at com.sap.tc.webdynpro.clientimpl.designtime.LightspeedDesigntimeClient$RenderManager.render(LightspeedDesigntimeClient.java:48)
        at com.sap.tc.ls.renderer.ie6.LSFlowLayoutRenderer.renderFlowLayoutItemFragment(LSFlowLayoutRenderer.java:878)
        at com.sap.tc.ls.renderer.ie6.LSFlowLayoutRenderer.renderFlowLayoutFragment(LSFlowLayoutRenderer.java:812)
        at com.sap.tc.ls.renderer.ie6.LSFlowLayoutRenderer.render(LSFlowLayoutRenderer.java:252)
        at com.sap.tc.ls.renderer.base.BaseRenderManager.render(BaseRenderManager.java:944)
        at com.sap.tc.webdynpro.clientimpl.designtime.LightspeedDesigntimeClient$RenderManager.render(LightspeedDesigntimeClient.java:48)
        at com.sap.tc.ls.renderer.ie6.LSScrollContainerRenderer.renderScrollArea_RenderContent(LSScrollContainerRenderer.java:1574)
        at com.sap.tc.ls.renderer.ie6.LSScrollContainerRenderer.renderScrollAreaInnerFragment(LSScrollContainerRenderer.java:1456)
        at com.sap.tc.ls.renderer.ie6.LSScrollContainerRenderer.renderScrollContainerFragment(LSScrollContainerRenderer.java:984)
        at com.sap.tc.ls.renderer.ie6.LSScrollContainerRenderer.render(LSScrollContainerRenderer.java:358)
        at com.sap.tc.ls.renderer.base.BaseRenderManager.render(BaseRenderManager.java:944)
        at com.sap.tc.webdynpro.clientimpl.designtime.LightspeedDesigntimeClient$RenderManager.render(LightspeedDesigntimeClient.java:48)
        at com.sap.tc.webdynpro.clientimpl.designtime.LightspeedDesigntimeClient$1.run(LightspeedDesigntimeClient.java:158)
        at com.sap.ide.mmservices.core.general.MetamodelService.runWithCache(MetamodelService.java:53)
        at com.sap.tc.webdynpro.clientimpl.designtime.LightspeedDesigntimeClient.render(LightspeedDesigntimeClient.java:149)
        at com.sap.ide.webdynpro.viewdesigner.ur.RenderingService.renderDelta(RenderingService.java:462)
        at com.sap.ide.webdynpro.viewdesigner.ViewDesignerPart.renderDelta(ViewDesignerPart.java:2018)
        at com.sap.ide.webdynpro.viewdesigner.ViewDesignerPart.access$900(ViewDesignerPart.java:197)
        at com.sap.ide.webdynpro.viewdesigner.ViewDesignerPart$ViewChangedListener$1.run(ViewDesignerPart.java:2695)
        at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
        at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
        ... 22 more

    Hi ,
    I think your Jdk is not compatible with the NWDS version so please change it to 32 bit JDK and try.
    I think this will sure work .
    Thanks & Regards,
    Meghal Shah

  • Java.exe Error while creating the Model in Webdynpro

    Hi,
    I am creating the Model in Webdynpro Project. I have given the SAP r3 user id Passord details. after giving these details and clicking on next, it is giving an Error as " *Javaw.exe has  got  some problem needs to close. sorry for the inconvenence*". NWDS is getting closed if I click on Ok in the Pop-up window message.
    I did re install the  NWDS as well. but still the  problem is persisting. and not able to proceed further.appreciate the quick resolution .
    Rajyalakshmi
    09739066796

    hi
    This error occurs mainly due to the reason that particular plugin is not there in the NWDS.
    So please try to reinstall the NWDS or try tracing out whether that particular plugin is there or not.
    Thank,
    kris

  • DYNAMIC CHANGE OF TABLE CONTENTS IN WEBDYNPRO VIEW

    Hi,
      I have a requirement to display a table contents, and there are two buttons, When i select some records and clk on a button i need to delete these records in the database table as well as in webdynpro view.
    I am able to delete the records in database but the contents of table in view of webdynpro remains unchanged. Can anyone tell me how to delete the contents in the view also??
    Regards
    Naveen

    Hi Naveen,
    You need to Refresh the data you are binding to the table to make the latest data
    visible on the screen.
    On action of the button you are deleting entries from the database. After this
    Fetch data again from the database and bind to the node of the table.
    Hope this solves your problem..
    Regards,
    Ismail.

  • NWDS WebDynpro views are not refreshing after changes in layout...

    Hello experts..
    I'm using NWDS 7.0.13 and every time I'm modifiying a webdynpro view in layout mode the view does not refresh, instead I get this message:
    This program cannot display the webpage
    Most likely causes:
    You are not connected to the Internet.
    The website is encountering problems.
    There might be a typing error in the address.
    What you can try:
    Check your Internet connection. Try visiting another website to make sure you are connected.
    Retype the address.
    Go back to the previous page.
    More information
    In order to display the changes I have made, I have to close the WD View and re open it, the funny thing is my other team mates can change their views and see their changes inmediately without closing/opening the view.. hope anybody can help me out on this one..
    Thanx in advance..
    JV

    Hi Armin, thanx for your answer and effectively I have installed IE7, I read other posts and after reading the "solutions" I rather close and open my WD views insted of removing security patches of IE.. I guess I'll have to wait until SAP fixes this and meanwhile I'll work the way I just mentioned.
    I'll let this question unanswered until this fix comes out.
    Cheerio !
    JV

  • Built Error In Creating Web Service Model In WebDynpro

    Hi All,
    Every time I create a webservice model in webdynpro I get the following error log in PDE Runtime ---> Error Log.
    com.sap.cms.util.exception.client.CMSClientVersionConflictException: Version conflict: to call method "readSystemMessages" the minimum server version is "Release6.40 SP16 Patch level 00" but the used server has only version "Release 6.40 SP15 Patch level 00"
         at com.sap.cms.client.organizerAPI.CMSTransportOrganizerAPI.versionCheck(CMSTransportOrganizerAPI.java:1232)
         at com.sap.cms.client.organizerAPI.CMSTransportOrganizerAPI.readSystemMessages(CMSTransportOrganizerAPI.java:1164)
         at com.sap.cms.client.ideAPI.CmsConfiguration.readSystemMessagesMap(CmsConfiguration.java:445)
         at com.sap.ide.eclipse.component.devconf.DevConfManager.getSystemMessages(DevConfManager.java:744)
         at com.sap.ide.eclipse.component.provider.listener.DevConfLoginListener.showSystemMessages(DevConfLoginListener.java:97)
         at com.sap.ide.eclipse.component.provider.listener.DevConfLoginListener.loginPerformed(DevConfLoginListener.java:91)
         at com.sap.ide.login.UserValidator$1.run(UserValidator.java:161)
         at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
         at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:98)
         at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:1999)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1733)
         at org.eclipse.jface.operation.ModalContext$ModalContextThread.block(ModalContext.java:136)
         at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:261)
         at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:357)
         at com.sap.ide.login.UserValidator.getData(UserValidator.java:411)
         at com.sap.ide.login.UserValidator.getDefaultServerData(UserValidator.java:131)
         at com.sap.ide.login.UserValidator.getDefaultServerData(UserValidator.java:116)
         at com.sap.ide.login.actions.LoginActionDelegate.run(LoginActionDelegate.java:79)
         at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
         at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:207)
         at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:456)
         at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent(ActionContributionItem.java:403)
         at org.eclipse.jface.action.ActionContributionItem.access$0(ActionContributionItem.java:397)
         at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(ActionContributionItem.java:72)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2022)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1729)
         at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1402)
         at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
         at com.tssap.util.startup.WBLauncher.run(WBLauncher.java:79)
         at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
         at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.sap.ide.eclipse.startup.Main.basicRun(Main.java:286)
         at com.sap.ide.eclipse.startup.Main.run(Main.java:795)
         at com.sap.ide.eclipse.startup.Main.main(Main.java:602)
    com.sap.engine.services.webservices.jaxrpc.exceptions.ProxyGeneratorException: Proxy Generator Error. Problem with WSDL file parsing. See nested message.
         at com.sap.engine.services.webservices.jaxrpc.wsdl2java.ProxyGenerator.generateProxy(ProxyGenerator.java:179)
         at com.sap.ide.ws.proxygenerator.InternalHelperFunctions.generateInterfaces(InternalHelperFunctions.java:343)
         at com.sap.ide.ws.proxygenerator.ProxyGeneratorWrapper.generateProxy(ProxyGeneratorWrapper.java:340)
         at com.sap.ide.ws.proxygenerator.ProxyGeneratorWrapper.generateStandAlone(ProxyGeneratorWrapper.java:271)
         at com.sap.ide.metamodel.importers.webservice.GenerateWS.doGenerate(GenerateWS.java:92)
         at com.sap.ide.metamodel.importers.webservice.WebServiceModelImporter.doImport(WebServiceModelImporter.java:116)
         at com.sap.ide.webdynpro.modeleditor.wizards.model.creation.ModelWizard$9.run(ModelWizard.java:1133)
         at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
    Caused by: com.sap.engine.lib.xml.util.NestedException:  Element passed is not WSDLD Document !
         at com.sap.engine.services.webservices.wsdl.WSDLDOMLoader.loadDefinitions(WSDLDOMLoader.java:797)
         at com.sap.engine.services.webservices.wsdl.WSDLDOMLoader.loadWSDLDocument(WSDLDOMLoader.java:1116)
         at com.sap.engine.services.webservices.jaxrpc.wsdl2java.ProxyGenerator.generateProxy(ProxyGenerator.java:175)
         ... 7 more
    Kindly suggest me something as I can over come this problem, It is not happening only to one single node,but across all the nodes which are connected to the NetWeaver server.
    Thanks and Regards
    Yajush Mishra

    Hi
    It seems that version problem becouse used server has only version Release 6.40 SP15 Patch, ask you basis guy to update the Patch SP16  from SP15.
    Thanks

  • Getting errors while creating model in webdynpro(using JAVA)

    hii ,
    am using EJBs ....n while creating model in webdynpro, while trying to include jars of wrapper class and command bean in model its giving an error that the jars already exist in model classes....
    plz help out....

    hi,
    if you r importing the bean for second or nth time , delete your previous imports from model  in your application and also delete the previous mappings in the component controller and corresponding view controllers and recreate it.(importing the JARs of both EJB and Bean in WD Library and recraete the java build paths,references) .
    revert back if issue persists..
    Thank you
    Shravan.

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

  • FORCAST MODEL IN FORCASTING VIEW

    Dear All,
            I want to get material list in mara when forcast model available.
    (Forcast model in Forcasting view mm02)
    my problem is how to mapped the field, material number and forcast model.
    if you already mapped please send the information or send me the steps
    how to find mapping like dat.
    Thanks in advanced

    markf12 wrote:
    This is probably a simple question but I can't seem to figure this out or find out about it in the help.sometines when I'm working on a page element the margnins and padding are shown in the design view window. most often they are not visable. How can I choose to show the margin and paddign of elements in the Design view? I have the View>visua laids>box model selected. It only shows up seemingly randomly.
    I suspect there is a keyboard combination or something I need to invoke so I can have control over shwoing the margin and padding when I want to see it.
    thanks for any help.
    Should show up if you click the border of a container. Then if you want to see that actual measurements hover over the border again.

  • Create Wire Model in webdynpro FPM.

    Hi Friends,
    Please , Help Me How to create Wire Model by Webdynpro FPM. Please Give me Step by Step  process.
    i have done Form, list, search and Tree but i am not geting how to do Wire Model. So Please Give me Step by step Review to create Wire Model with FPM.
    it's Urgent.
    Thanks.
    Pappu  Mehta
    Edited by: Pappu Kumar Mehta on Nov 18, 2011 3:38 AM

    Wire Model
    The wire model can be used to create running FPM application by pure configuration or at least with minimal coding effort. The runtime interdependencies between UIBBs are defined by configuration entities called “wires” which are based on reusable “connector” classes implementing the dependency semantics. The primary use cases for the wire model are object models with generic access interfaces (for example, ESF, BOPF, or BOL).
    A wire controls the runtime interdependencies between two UIBBs; that is, they determine the data content of the target UIBB depending on user interaction changing the “outport” of the source UIBB. Outports can be of type lead selection, selection or collection. For example, the execution of a search on a Search GUIBB will change its collection outport and may therefore change the data content of a result list displayed in a separate List GUIBB. Similarly, changing the lead selection in a list of sales orders may change the data content of another list displaying the associated sales order items.
    In order to be part of a wire model, a UIBB needs to implement a certain Web Dynpro interface which in turn provides a feeder model implementation. The FPM GUIBBs are automatically integrated if their feeder classes implement the feeder model interface.
    Application areas or object models define their own namespaces for which their connector classes, feeder model classes can be reused. Moreover, they typically need to provide a transaction handler class which manages transaction events like save, modify or check and global message handling.
    Wires are defined on the level of the floorplan configuration. For each model UIBB contained in the floorplan configuration, a source UIBB with specified outport can be defined. Furthermore, a connector class and, potentially, connector parameters must be maintained.
    If the floorplan contains composite components (tabbed components), the model UIBBs contained in the tabbed components can also be wired. However, in order to provide better reusability of composite components, it is also possible to define intrinsic wiring for tabbed components. A tabbed component can define a model UIBB as a “wire plug” (this is usually a master UIBB), which serves as an entry point for the wiring of the tabbed component from the enveloping floorplan component. If a wire plug is configured for a tabbed UIBB, only the wire plug UIBB can be wired from outside.
    Transaction Handler class
        The transaction interface provides methods for handling global and transactional events. In the FPM configuration editor, one transaction handler implementation can be assigned on the level of the wire model. However, it is not mandatory to specify. But it can be used for wring some specific logic for Application level events.
    Interface “IF_FPM_WIRE_MODEL_TRANSACTION” is implemented for creating transaction handle class.
    Method
    Method description
    START
    It is called at the starting of FPM application. It provides 3 things “FPM Massage manger instance”, “Property bag of FPM Application”, and “Runtime information of FPM”.  Here, we can also specify application commit capability.
    AFTER_FLUSH
    This method is called after FLUSH has been called for all current UIBBs. It can be used to flush buffers.
    AFTER_PROCESS_EVENT
    This method is called after PROCESS_EVENT has been called for all current UIBBs. It can be used for handling transactional events for example SAVE or CHECK. Moreover, it can be used to collect messages which here not handled inside UIBBs and to forward them to the FPM message handler.
    AFTER_PROCESS_BEFORE_OUTPUT
    This method is called after PBO has been called for all current UIBBs. It can be used to collect messages at the latest possible point in time before screen output.
    AFTER_NEEDS_CONFIRMATION
    This method is called after NEEDS_CONFIRMATION has been called for all UIBBs. It can be used to analyze and add confirmation requests.
    IS_DIRTY
    This method can be used to indicate a dirty state for the work protection mode.
    Connector Class
        The “IF_FPM_CONNECTOR” connector interface comprises an interface, “IF_FPM_CONNECTOR_DEF”, defining the access by the FPM framework and an interface “IF_FPM_CONNECTOR_RUN” for runtime access by the application feeder model.
    The definition interface possesses a static attribute, “SV_NAMESPACE”, which should be filled with the namespace (ex. ‘FPM_DEMO’ or ‘BOL’ or user specific) in the class constructor of a connector implementation (for example in a common superclass).
    Method for “IF_FPM_CONNECTOR_DEF”
        Method
    Method description
    GET_PARAMETER_LIST
    Connector classes can be parameterized to flexibly control their runtime behavior. The parameter values are maintained for the wires in the FPM configuration editor. A parameter is defined by a name, its data type and a descriptive text.
    INITIALIZE
    With this method the connector is initialized with the parameter values. This method is called by the FPM runtime upon UIBB instantiation.
    GET_PARAMETER_VALUE_SET
    With this method, a connector implementation can provide a value set for each parameter. For example, in an object model a parameter may carry the association name. For a wire between specified UIBBs, the method may provide a list of all associations between the source and target business object node.
    SET_INPUT
    Receives an object reference carrying the actual data of the connected outport. This method is called before the UIBB‟s PBO by the FPM runtime.
    Method for “IF_FPM_CONNECTOR_RUN”
        Method
    Method description
    GET_OUTPUT
    Returns an object reference carrying the actual data to be displayed by a UIBB. This method can be called by the UIBB at PBO for example in the GET_DATA method of a feeder class.
    IS_CREATE_ALLOWED
    Returns a Boolean indicator whether entity creation is allowed. This method can be called by the UIBB at PBO to dynamically control the activation of create buttons for example to maintain the action usage parameter in the GET_DATA method of a feeder class.
    CREATE_ENTITY
    Creates and returns a data entity which can be arbitrarily typed. This method can be called by an action handler of the UIBB for example in the PROCESS_EVENT method of a feeder class.
    There are total seven methods in connector interface “IF_FPM_CONNECTOR” that should be implemented in connector class. We should also create class constructor for setting “Namespace”. “SET_OUTPUT” and “GET_OUTPUT” is bridge between FPM components, so these methods should be implemented properly.
    Wire for Free UIBBs
        Wire model is implemented on Web Dynpro component by implementing “IF_FPM_UIBB_MODEL” Web Dynpro interface. It contains only one method “GET_MODEL_API” which is used to set “FPM Feeder Model” for Free GUIBBs. It contains only one parameter “RO_FEEDER_MODEL”. So, we have to create a FPM Feeder Model class and assign to that parameter.
        FPM Feeder Model Class – Interface “IF_FPM_FEEDER_MODEL” is implemented for creating Feeder Model Class.
        Method for “IF_FPM_ FEEDER_MODEL”
        Method
    Method description
    GET_NAMESPACE
    Returns the namespace of the underlying application area. Method is called at design time.
    SET_CONNECTOR
    Called upon instantiation of a UIBB. It hands over the connector (reference to IF_FPM_CONNECTOR_RUN) which can be accessed for data retrieval at PBO.
    GET_INPORT_KEY
    Returns a reference to an object key which characterizes the meta data type expected at the import (for example the business object node). Method is called at design time.
    GET_OUTPORTS
    Provides a table of outports comprising the object key, the port type an identifier and a descriptive text. Method is called at design time.
    GET_OUTPORT_DATA
    Returns an object reference carrying the actual data identifier for a certain port. Method is called at runtime.
            Assistance class can also be used as Feeder Model Class and reference “WD_ASSIT” can used as Feeder model instance.
    Ex:    METHOD get_model_api .
      ro_feeder_model = wd_assist.
    ENDMETHOD.
    Wire for GUIBBs
        Nothing special we need to do that.  Interface “IF_FPM_FEEDER_MODEL” is also implemented on feeder class for getting port support. We need to set port manually using structure “IF_FPM_FEEDER_MODEL=>CS_PORT_TYPE”. It contains three constants “COLLECTION”, “SELECTION” and “LEAD_SELECTION”. It should be properly configured.
    Source Codes:
    Code for Transaction handler class:
    class ZCL_MY_TRAN_HANDLER definition
      public
      create public .
    public section.
    *"* public components of class ZCL_MY_TRAN_HANDLER
    *"* do not include other source files here!!!
      interfaces IF_FPM_WIRE_MODEL_TRANSACTION .
    protected section.
    *"* protected components of class ZCL_MY_TRAN_HANDLER
    *"* do not include other source files here!!!
    private section.
    *"* private components of class ZCL_MY_TRAN_HANDLER
    *"* do not include other source files here!!!
      data MO_MSG_MAN type ref to IF_FPM_MESSAGE_MANAGER .
    ENDCLASS.
    CLASS ZCL_MY_TRAN_HANDLER IMPLEMENTATION.
    * <SIGNATURE>---------------------------------------------------------------------------------------+
    * | Instance Public Method ZCL_MY_TRAN_HANDLER->IF_FPM_WIRE_MODEL_TRANSACTION~AFTER_FLUSH
    * +-------------------------------------------------------------------------------------------------+
    * +--------------------------------------------------------------------------------------</SIGNATURE>
    method IF_FPM_WIRE_MODEL_TRANSACTION~AFTER_FLUSH.
      return.
    endmethod.
    * <SIGNATURE>---------------------------------------------------------------------------------------+
    * | Instance Public Method ZCL_MY_TRAN_HANDLER->IF_FPM_WIRE_MODEL_TRANSACTION~AFTER_NEEDS_CONFIRMATION
    * +-------------------------------------------------------------------------------------------------+
    * | [--->] IO_EVENT                       TYPE REF TO CL_FPM_EVENT
    * | [--->] IT_UIBBS                       TYPE        FPM_T_UIBB_COMPONENTS
    * | [<-->] CT_CONFIRMATION_REQUESTS       TYPE        FPM_T_CONFIRMATION_REQUESTS
    * +--------------------------------------------------------------------------------------</SIGNATURE>
    METHOD if_fpm_wire_model_transaction~after_needs_confirmation.
    *----- which event
      CASE io_event->mv_event_id.
    *----- start over
        WHEN if_fpm_constants=>gc_event-start_over.
    *----- raise confirmation request if state is dirty
          CHECK if_fpm_wire_model_transaction~is_dirty( ) = abap_true.
          APPEND cl_fpm_confirmation_request=>go_data_loss TO ct_confirmation_requests.
      ENDCASE.
    ENDMETHOD.
    * <SIGNATURE>---------------------------------------------------------------------------------------+
    * | Instance Public Method ZCL_MY_TRAN_HANDLER->IF_FPM_WIRE_MODEL_TRANSACTION~AFTER_PROCESS_BEFORE_OUTPUT
    * +-------------------------------------------------------------------------------------------------+
    * +--------------------------------------------------------------------------------------</SIGNATURE>
    method IF_FPM_WIRE_MODEL_TRANSACTION~AFTER_PROCESS_BEFORE_OUTPUT.
      RETURN.
    endmethod.
    * <SIGNATURE>---------------------------------------------------------------------------------------+
    * | Instance Public Method ZCL_MY_TRAN_HANDLER->IF_FPM_WIRE_MODEL_TRANSACTION~AFTER_PROCESS_EVENT
    * +-------------------------------------------------------------------------------------------------+
    * | [--->] IO_EVENT                       TYPE REF TO CL_FPM_EVENT
    * | [<-()] RV_RESULT                      TYPE        FPM_EVENT_RESULT
    * +--------------------------------------------------------------------------------------</SIGNATURE>
    method IF_FPM_WIRE_MODEL_TRANSACTION~AFTER_PROCESS_EVENT.
      CASE io_event->mv_event_id.
        WHEN ''.
        WHEN ''.
        WHEN OTHERS.
      ENDCASE.
    endmethod.
    * <SIGNATURE>---------------------------------------------------------------------------------------+
    * | Instance Public Method ZCL_MY_TRAN_HANDLER->IF_FPM_WIRE_MODEL_TRANSACTION~IS_DIRTY
    * +-------------------------------------------------------------------------------------------------+
    * | [<-()] RV_IS_DIRTY                    TYPE        BOOLE_D
    * +--------------------------------------------------------------------------------------</SIGNATURE>
    METHOD if_fpm_wire_model_transaction~is_dirty.
      rv_is_dirty = cl_fpm_wire_model_col_factory=>work_protection_is_dirty( )

  • Problem with Digital Editions page view

    I used Digital Editions on two books just recently and was able to fit each page of the ebook to it's full height from top to bottom.
    I just downloaded my third book to DE, and I can't seem to find the button to fit each page to their full heights (top/bottom). Instead, it's stuck on dual-page view. The single-page view button option isn't even there on the third book, but IS there on the first two books. I downloaded a fourth book and it's experiencing the same problem; stuck in dual-page view with no single-page option.
    If I try to re-size the DE window to force it into a single page view, the page numbers are all messed up appearing at random spots of each page rather than at the top right where they are suppose to be.
    I re-installed DE but the problem still persists. Is this a problem with the books in specific? Or something else?
    Thanks

    http://visguy.com/vgforum/index.php?topic=5849.15
    Paul Herber, Sandrila Ltd. Engineering and software shapes for Visio
    Sandrila Ltd

  • Problem on using Crystal Report Viewer on windows application ("specified type is not valid ")

    Hi
    I am having problem on using Crystal Report Viewer on one of my windows application.
    I am not sure how to put the Crystal Report Viewer 11 Control onto the tool box.
    I could found a Crystal Report Viewer control on my computer, but it is version 8.5.
    I have also found another one which is Called Crytal ActiveX Report Viewer, i don't think it is the one I can use. As when I try to load a dummy report on to the Crytal ActiveX Report Viewer, It return an error. "specified type is not valid"
    Please see the Code sample below.
    private sub loadReport()
         Dim r as New ReportDocument
         'v is the name of the Crystal ActiveX Report Viewer Control
         r.Load("C:\Report1.rtp")
         v.ReportSource(r) <---It throw error on this line.
    End Sub
    Could you give me some advice about what have I done wrong, How to check if I have set up the Crystal Report Component correctly in my Visual Studio 2005 Standard edition.
    Thanks in advances.
    Many thanks
    Chi

    VS 2005 Standard and Express editions do not come with Crystal Reports; only the Professional and higher editions will have CR bundled. However, I believe you can purchase CR XI R2 Developer and it will give you the components you need to create a VS .NET 2005 application using the Standard edition.
    -MJ

  • How to call a Webdynpro view from BSP page (MVC) in a new window?

    Dear Experts,
    kindly advise how to call a webdynpro view from BSP application after performing an event (through button or hyper link).
    Regards,
    Sarat.

    Hi,
    This has been discussed many times in several forums.
    Please check the method CL_WD_UTILITIES=>CONSTRUCT_WD_URL, to create a runtime url for your WD Application and call this URL.
    Refer thread: Call Webdynpro Application from BSP Application
    Hope this will be useful!
    Regards,
    Meganadhan S

Maybe you are looking for