Reusable components

Hi Experts,
Can anybody provide me some material on Reusable components in SAP/ABAP HR to have better understanding of the concept.
Gd points will be awarded for the well wishers of mine.
Regards,
Rahul

Hi Anand,
I would say, that you are not able to open a new window or trigger a navigation
from the component controller thru a call from anaother component.
So the descision whether to show the view or to send directly must be done by the
using component.
The EMAIL component provides the view which you can embedd in the using component in a new window or just a simple view (ViewContainerUIElement).
The using component then decides whether it should call the method directly, or navigates to the view which contains the interface view of the EMAIL component.
Hope this helps,
Sascha
Message was edited by:
        Sascha Dingeldey

Similar Messages

  • Error: "Variable State has been used outside the reusable components"

    When I open a query in the ad hoc query designer I get several error messages like "Variable State has been used outside the reusable components."  I don't what this means or how to fix it.
    "State" is one of the variables used.  And there is a error for every variable that is used.
    All the variables are in the free characteristics.
    When I open the query in Query Designer, it is ok.
    Any ideas?

    Hi Fong,
    PLease check the following link:
    http://help.sap.com/saphelp_nw04/helpdata/en/1f/03223c5f00612be10000000a11402f/content.htm
    It states that:
    You cannot integrate variables into the query directly.
    However, you can use variables in reusable structures, or restricted or calculate key figures, which are used in the Ad-hoc Query Designer
    Hope this helps...

  • Reusable Components outside ADF app

    Hi,
    If I create in JDev 11 declarative reusable component based on standard JSF components or Trinidad (without any ADF parts), can I use this component outside ADF applcation e.g. in application created with Seam and RichFaces. This question covers both - technical possibilities and licensing.
    Kuba

    anyone ? :)

  • Advise needed on writing reusable components/customizations

    My application requires heavy styling of the DataGrid
    control. Some of it is plain for the looks of things and the others
    are for data visualization.
    Many, if not all of the styling customizations will be
    interesting for reuse in other projects as well, so that I am
    attempting to create them as generic components in a library.
    Now, on one hand I would like each customization be its own
    component (be it an extended class in ActionScript or an MXML
    component) so that I can pick and chose them as needed for other
    projects. But then how do I combine a couple of styles for a
    DataGrid if each one of them is an extension of the DataGrid class?
    For example, I would have Style1DataGrid.as,
    Style2DataGrid.as, and Style3DataGrid.as and would like to use
    "styles" 1 and 3 for my applicationA and "styles" 2 and 3 for my
    applicationB.
    How should I go about this kind of reuse? What
    method/approach do you use for such a scenario?
    Thanks

    There are a few stept involved.
    1 To be able to pass a comma delimited list of items you are interested in, you need to change the lovPopup.jsp to take an extra parameter, e.g. <bean:parameter id="lovDescriptorAttributeNames" name="lovDescriptorAttributes" value=""/>
    2 Modify the JavaScript function jspLovPopup to take this as a (string) parameter. In this function you use this string to find the items in the calling form and put pointers to these items in a global variable.
    3 Change the lovSearchResults.jsp page to take a comma delimited list of values as a parameter.
    4 Modify the JavaScript function chooseLovValue to take this as a (string) parameter. In this function you copy these values to the items in the global variable with pointers.
    Jan Kettenis
    JHeadstart Team

  • Building reusable components

    I've built a few classes that extend from UIComponent, These
    components do some custom drawing in updateDisplayList and properly
    implement the measure method.
    When I give the class to others to use, it shows up in their
    toolbox in the designer, but when they drag it into a container, it
    is sized 0x0 by default and never draws itself. How do I give it a
    default size that is not 0x0 and how do I make it paint itself in
    the designer?
    Looking back at the forums, I see a few other people have had
    this question but they never got an answer. So please, if you from
    Adobe and know what the answer is, even if the answer is "its not
    possible", please answer the question.
    Thanks,
    Robert Temple
    Sr. Director Advanced Development
    ESPN.com

    I think the way custom components are displayed in the design
    view has been improved in Flex Builder 3. Maybe download the beta
    and have a look. I'm not sure to be honest, but I seem to remember
    this being talked about.
    cheers
    glenn

  • Creating reusable components

    What is the best way to create a custom component that can be
    used by more than one flex application? For example, I've made a
    component that I want to be able to use in both a web flex
    application, and one the runs on AIR.
    Is there a way to add my own controls permanently to Flex
    Builder 3 ?

    You would create a library (SWC) for this. Then include your
    library in the project settings. Otherwise, if you need to tweak
    things the general convention is to put your component AS or MXML
    files in src/com/yourdomain/yourcomponent.

  • Reusable JSF components - bundling a converter with a text field

    I am trying to create reusable text fields for different types of data (notes, amounts, percentages) that will use a JSF converter to implement formatting.
    Here is what I have done
    - created an application in JDeveloper that contains my components as JSF declarative components
    - created the Converter classes
    - registered the converter classes in faces-config.xml of the reusable components project
    - added my Converters to the inputText fields for each of my declarative components using the property palette
    - deployed the components as a jar file using the ADF Library Jar File archive type
    - created a second application to act as a consumer of the components
    - imported the jar file into the component palette using a file system connection
    - added the jar file to the active project's component library
    - added a converter entry for the converter I am trying to use to this project's faces-config.xml
    - created a consumer jspx page and dragged and dropped the control onto the page
    I put some system.outs in the getAsString() and getAsObject() methods of the converter I am trying to use and they are not output when I run the page. I've also set breakpoints in those methods to see if they are being called.
    I have no indication that my converter is being called.
    Can someone please confirm that what I am trying to do is possible using the declarative components?
    Any insight appreciated.
    Dave

    Actually this is working. I made the incorrect assumption that getAsString() in the converter class would be called on the initial request.
    Another thing I just noticed is that it is not necessary to reference the converter in the faces-config.xml of the consuming project. Not sure how this works, but its a nice feature :)

  • Reusable pluggable Components

    Hi,
    Please name, suggest some J2EE Reusable Components that I can develop.
    The Components can use any or all of these
    Java, JSP, Struts, JDBC, XML, XSL and so forth -
    even webservices
    Thanks in advance.

    If you're not smart enough to think of them, you're not smart enough to build them.

  • Create reusable jsf components as jsf components

    Hi
    I'm new to JSF (and J2EE in general, I used to use WebObjects a decade ago). I'm using JSF 1.2
    so, I'd like to know if it is possible to create reusable jsf components designing some jsp page ?
    I'm particularly interressed in reusable components that, when used, are not leafs in the html trees (but so support that the reusing page provide some piece of html to be put "inside")
    Is there any way to do that ? (WebObjects, a decade or so ago, allowed to do that...)
    Thanks for your help
    cd

    Use Facelets instead of JSP. Then you can make use of ui:composition for this.
    By the way, J2EE is dead, it's called Java EE now. This keyword must give you more r|decent Google results.

  • Creating ReUsable TaskFlows

    hi All,
    I'm using ADF BC, JDev 11G. I need to reuse the task flows built as a part of different applications. I've included the sources by opening the respective projects(model and ViewController). Following the instructions from Packaging a Reusable ADF Component into an ADF Library I was able to create the File System.
    The error is that I'm not able to use that taskflow as a button on the page in a different application. I'm getting error MDS-00013. How to solve this issue.
    Is there a simpler method to create reusable components, task flow etc.
    Stack Trace:
    Root cause of ServletException.
    oracle.adf.controller.ControllerException: ADFC-02001: ADF Controller cannot find '/WEB-INF/task-flow-definition_3.xml'.
    at oracle.adfinternal.controller.metadata.provider.MdsMetadataResourceProvider.getMetadataObjects(MdsMetadataResourceProvider.java:448)
    at oracle.adfinternal.controller.metadata.provider.MdsMetadataResourceProvider.loadUnmutalbeMetadataResources(MdsMetadataResourceProvider.java:358)
    at oracle.adfinternal.controller.metadata.provider.MdsMetadataResourceProvider.getResources(MdsMetadataResourceProvider.java:170)
    at oracle.adf.controller.internal.metadata.MetadataService.getTaskFlowDefinition(MetadataService.java:214)
    at oracle.adfinternal.controller.activity.TaskFlowCallActivityLogic.findTaskFlowDefinition(TaskFlowCallActivityLogic.java:931)
    oracle.mds.core.MetadataNotFoundException: MDS-00013: no metadata found for metadata object "/WEB-INF/task-flow-definition_3.xml"
    at oracle.mds.core.MetadataObject.getBaseMO(MetadataObject.java:936)
    at oracle.mds.core.MDSSession.getBaseMO(MDSSession.java:2398)
    at oracle.mds.core.MDSSession.getMetadataObject(MDSSession.java:1042)
    at oracle.mds.core.MOResolver.getMetadataObjects(MOResolver.java:202)
    at oracle.adfinternal.controller.metadata.provider.MdsMetadataResourceProvider.getMetadataObjects(MdsMetadataResourceProvider.java:402)
    Suggestions would be appreciated...
    Thanks in Advance...
    Jyothi

    Hi,
    Once you create a file system connection to the directory where you have deployed your ADF Library, you can expand the library in the Resource palette. You can right click it to add it to an active project in your app. If you have multiple projects, choose one that you wanna add the library to.
    If you have reusable task flows you will find ADF Taskflows node under the jar in the resource palette. Just drag and drop the task flow as a region or a dynamic region in your jspx page. Or if you wanna use it as a task flow call or return, then you can see the jar in the component palette. Just expand the drop down in the component palette, choose the jar. Then drag and drop the task flow.
    BTW if you have a db connection etc packaged in your jar an dif you are reusing them, then the password wont be included. Expand the app resources accordion, choose your connection and enter the password for your db connection.
    Thanks.

  • How to Devlopment Components

    I am developing web dynpro components and I realized that I have lot of reusable components that I am re-creating in each project.  Can some one explain how development components work to create reusable objects.
    Can we create reusable views.  I am creating a customer selection, that I might need in multiple applicaitons.  Any links / documents on how to build development components is really appreciated.
    Thanks

    Hi,
    Pl go this it clearely explained https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f727d100-0801-0010-4cbd-b0ad5c161945
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/wdjava/use%2bcomponents%2bin%2bbigger%2bweb%2bdynpro%2bprojects%2b(componentization)
    Regards
    Ayyapparaj

  • Regarding upgrade of web report\web templates functionalites BW 3.5-BI 7.0

    hi all,
             I m working on a Upgrade study from BW 3.5 to BI 7.0 for Web Templates,web items and java scripts.
    Below is the scenario of the client system:
    New web templates are created from the 6 master web templates available for publishing to a custom Portal (created using BSP and hosted on the WAS). TOOLBAR and FOOTER are custom web templates used in all Master Templates and contain various JavaScript functions and footer code respectively.
    TOOLBAR provides the Toolbar, header and buttons functionalities in the Master Templates via the contained Javascript functions. FOOTER displays the date and time of issue as well the logged in user.
    FOOTER1 and FOOTER2 are web items derived from FOOTER web template. They have different set of web item properties and are used to create web templates used through the custom Portal.
    It is observed from BW Tables that out of 100 unique Web Templates available in the system, 90 are using TOOLBAR template and 95 are using FOOTER template.
    No external Javascript .js files are used in the Web templates. Most of the Javascript functionality is contained in TOOLBAR and no other custom javascript in master templates. However, there are some derived web templates where custom javascript is contained.
    Following is the process to create custom Web Templates in development server that are eventually transported to QA and Production:
    1)     The appropriate master template is identified and saved with new name in developer role.
    2)     Dataprovider is added to corresponding web items.
    3)     From the library, properties are transferred from master template to the custom template.
    4)     Report title is added in HTML tab.
    5)     No changes are needed in the Web Templates Properties except change of value in  “Show Jump Target in” field to the portal Frame ConPortal or _self in case RRI is to be used.
    6)     Some properties like Title, Width in Pixel, Affected Data Provider, etc. needs to be adjusted. Changes can be done to web items seen in Overview tab except the FOOTER and TOOLBAR web items. These web items are saved as reusable components in Library.
    7)     After all the changes the web template created is transported from development server.
    To summarize, all master data for creation of web templates like reusable master templates, web items in library, web templates containing Javascript code are stored in dev. server. Custom web templates created from these are transported.
    I want to validate the sequence of migration as below:
    Following sequence has to be followed for the Web Templates and Queries Migration in development BI 7.0 Server:
    1)     Migrate the Individual BEx Queries first and perform functional testing.
    2)     Migrate the TOOLBAR template manually (create as new in BI 7.0 Toolset) and FOOTER template automatically (using Migration Tool).
    3)     Manually migrate the JavaScript code in TOOLBAR. Please refer to section ..for more details.
    4)     Migrate the library of reusable web items, if any.
          (What to do if web item is custom or is not supported in BI 7.0)
    5)     Migrate the Master Web Templates manually (create as new in BI 7.0 Toolset) and automatically (wherever possible) and perform functional testing.
    6)     Migrate the custom web templates automatically (wherever possible) and manually, if automatic migration is not possible. Perform functional testing and data provider binding.
    7)     Perform jump target binding wherever applicable.
    8)     Transport custom templates, TOOLBAR and FOOTER to QA and Production subsequently.
    Also i have the following questions:
    1. How to migrate functionalities accessed thru web templates like jump queries, general navigation blocks with filter, table interface, and are data providers automatically linked to web items or have to be done manually post migration.
    2. Do we need to migrate the library of reusable web items also.
    3. After migrating the master  web templates and javascript containing templates to BI 7.0, can we migrate automatically the custom webtemplates derived from master templates and containing the custom javascript that is now avaialbe in BI 7.0, will they pick up the custom code automatically.
    thanks in advance
    Regards
    praveen

    No resolution found

  • Unit testing or integration testing?

    Here it says that this example is more of an explanation of framework than best practice because of the conflation of integration/unit testing concepts: http://docs.flexunit.org/index.php?title=Using_Asynchronous_Startup
    My question is, how do you define a line here between unit testing and integration testing? What kind of UI components asynchronous tests are then considered to be unit tests and not yet integration tests? Many books recommend having 100% code coverage with unit tests. How would this example look like, to be considered only a unit test and not integration test?

    The question about which levels of testing to do are really dependent upon you. Let me explain a bit more.
    If you are building an application, and only an application, then functional testing probably covers most of your needs. In an application environment, you have a relatively narrow pathway of options and interactions that a user might follow. So long as you test those options well, your app will probably work as well.
    Where I see the real value of unit testing is testing for the unknowns. If you have a class that will be used in multiple applications in multiple ways, or perhaps it is intended to be a reusable class where others in your organization will use it in the future, then you want lower level testing. You want to have the best coverage you can because you want to know that, regardless of the way someone chooses to use the code, it will likely function or at least fail gracefully.
    The same is true for integration. If I am creating a Flex component, then I can unit test part of it, but not all. So, I want to use integration tests to ensure that it works in as many circumstance as possible. Further, Flex components have a life cycle, so testing them when they are not on the display list isn't really a valid test..
    So, to summarize, I see unit and integration w/Flex about testing possibilities and trying to achieve realistic code coverage for known and possible use cases. I see functional testing as testing those components in very specific use cases.
    Which do you need? Depends. Are you developing reusable components across (n) projects, likely the first 2 and maybe the last. Are you an application developer testing that an application works in documented business cases? Just functional will likely work.
    Hope that helps,
    Mike

  • Is this a fare assessment of JSF (RI 1.1)?

    After playing with JSF for a week, I need to tell my manager what I think of JSF. If anyone takes issue with anything I've written below, I'd be interested to hear from you.
    David
    JSF generates HTML its own way. The commonly adopted process of producing a page design in pure HTML, getting the layout 'just so', then implementing a dynamic version doesn't work with JSF because you can't hope to generate exactly the same HTML. You find yourself having to adapt the screen design to fit in with JSF's way of doing things, or at least come up with a different HTML solution that can be generated by JSF.
    The following is a commonly occurring frustration with JSF development: You know how you would achieve something using fundamental principles (e.g. servlets, HTML and scriptlets) but you can't find a way to make JSF achieve the same thing. It often feels like a battle, trying to get JSF to do something that would be quite straightforward if you had more control.
    Some of the UI control types are restricted in the ways they may be used. For example, the h:selectOneRadio component, which models a radio button group, assumes all the buttons are located within the same parent element without any interspersed HTML between the buttons. There are many cases where this is too restrictive, e.g. a design where each row of a table begins with a radio button (as a means of allowing the user to select only a single row of the table).
    Some control types are not provided (at least in Sun's Reference Implementation), e.g. HTTP file upload. You can implement your own custom components, but this is not trivial.
    Quirky behaviour during development slows you down. For example, actions not firing when command buttons are clicked turns out to be due to unreported page translation problems. Have to deduce what's causing the problem by selectively commenting out different portions of the page.
    The Sun JSF RI is buggy. After running into a few problems and consulting the Sun JSF forum it becomes clear that the current Sun RI (1.1) suffers from a significant number of awkward bugs.
    Limited ability to manipulate the GUI using client side scripting (e.g. to add new rows to a data entry table without the need for a round trip to the server).
    JSF is designed to be used with tools but tool support is currently not great. Sun Java Studio Creator looks good on paper but is rather clunky in practise. Its page layout editor only allows components to be positioned absolutely (i.e. fixed size and co-ordinates). This negates one of the great virtues of HTML, i.e. that it can allow content to flow naturally and components can be positioned according to CSS rules.
    In summary, the promise of rapid development with JSF is not achieved in practise due to a variety of problems. Many of the problems are to do with the immaturity of JSF. However, the lack of control over the generated HTML (assuming it's impractical to implement custom components to solve each new requirement for custom HTML) seems to be an inherent restriction.
    End

    Layout is way to restrictive when using tables for rendering in JSF. This is an RI issue, and most likely not the spec as I am sure the spec does not say layout must be implemented with tables.
    I am not sure I agree with your comment that a JSP, Servlet, HTML, CSS, javascript developer is less productive than a competent JSF developer. I think JSF is a great prototyping tool, but I don't think it is as flexible as using the fundamental technologies leveraged by JSF. I run into situations where I have to customize components straight from the fundamental tehcnologies. Based on this experience, I will run into situations where the components in JSF will require some sort of customization for a customer. I have found customers that are picky about the presentation and will move components around sometimes as little as a couple pixels. Or they will require slightly different behavior in a component than what is default. The other thing I have learned working in a corporation is that branding changes every couple years. How much investment should it take to rebrand all your JSF pages when you can make it so your pages created in fundamentals leverages one CSS for the entire site? Then when the rebranding comes, all you need to do is modify the CSS and not the JSFs. In particular, I am referring to layout and not look.
    Let's say a new javascript or AJAX library comes out with some whiz bang widgets. It is a lot easier to develop with that code in fundamental technologies than in JSF. We can see this with AJAX. AJAX capabilities have been around for a while now, but JSF is playing catchup. That means, if you wanted to take advatage of the benefits of AJAX when it was first around, you would have to write custom code or wait for the widgets to come out. What would have google done for google maps if they had to wait around for JSF to catch up(if hypothetically they are using j2ee)? After all, I am certain they haven't received nice publicity which turned into revenue of some sort by being an example of AJAX design. Where would AJAX be without compelling examples of AJAX? It might still be a side note or we would be using the javascript calls directly to do the asynchronous call back to the server. So, there is something to be said about not having to wait for JSF components to manifest themselves. However, that is not to say that google couldn't have invested in its own set of components, but I am not google and I consume already created components or I put the new widgets directly in the page without leveraging the JSF lifecycle. But your choice in JSF is either to use f:verbatim or create the JSF components. Does your boss want to invest in creating JSF components that may or may not be reused? This is a tough question all bosses should ask whenever venturing down the road of extra development for purposes of reuse. When is the return going to be realized on the investment in creating components? In addition, corporations like to reorganize their business units such that the project may or may not survive the reorg. Where is the investment now? If I was a boss, I would not want my developers creating reusable components as it is a distraction. If I run a second project, I might then look into creating reusable components out of the work from the first project. But I certainly would not do it on the first project. You have no way of knowing if that code will be reused. Essentially, anytime something new that comes out that could be leveraged swiftly in an HTML page, requires more work on the JSF developers part.
    By the way, I have to learn how to use f:verbatim correctly. Currently, code that I have stuck in f:verbatim is being rendered outside a subview. I might be using this incorrectly though. I am also using dwr, which I am unsure if I can incorporate into a JSF subview/view without f:verbatim since dwr requires calling a dwr servlet and not the faces servlet. I guess I might be able to get around this by assigning the action on a form dynamically to call dwr instead of faces.
    Just my 1/2 cent(I try not to spend my two cents all at once),
    TacoEater

  • Recursive Reportin in Obiee 11g

    Hi,
    Is recursive reporting possible in obiee 11g answers?
    If someone has done that then please guide me.
    Regards,
    HZ

    user8194977 wrote:
    Hi.
    I have a task flow that has 2 pages(parameters form and then table fetched from database). It's work perfectly, but now I need to proceed a "transition" to the same table. Of course I can done it by adding a second task flow with the same structure, but the problem is that "transition" can be infinite recursive...Andrey,
    What do you mean by "a transition to the same table" ? A transition to the same page?
    "adding a second task flow with the same structure"
    By definition, task flows are meant to be reusable components. If it is well-defined, you should be able to reuse the same taskflow.
    You should explain what your trying to achieve instead of what you're doing!

Maybe you are looking for