GetContent method for custom provider

Can someone tell me the major resposibilities of the getContent method of a Custom Content provider? The only javadoc comments for this method is "This method has no effect.". That helps enormously! Thanks.

getContent should return a stringbuffer that contains the content for your channel (usually html).
JP

Similar Messages

  • While doing LSMW standard method for Customer master creation..

    while doing LSMW standard method for Customer master creation.....
    In 13th step I am getting this king of error
    FB012                    Session 1 : Special character for 'empty field' is /
    FB007                    Session 1 session name ZPROJ was opened
    FB109                    Trans. 1 : Transaction xd01 is not supported
    FB016                    ... Last header record ...
    FB014                    ... BKN00-STYPE 1
    FB014                    ... BKN00-TCODE xd01
    FB014                    ... BKN00-KUNNR
    FB014                    ... BKN00-BUKRS
    FB014                    ... BKN00-VKORG A1
    FB014                    ... BKN00-VTWEG 00
    FB014                    ... BKN00-SPART 0
    FB014                    ... BKN00-KTOKD
    FB014                    ... BKN00-KKBER BP01
    FB013                    ....Editing was terminated
    Can anyone help how to solve this?

    Hello TJK,
    <b>FB012 Session 1 : Special character for 'empty field' is /</b>
    This is the special function in LSMW, for empty field system will put / sign automatically, so you need not to worry about that.
    <b>FB007 Session 1 session name ZPROJ was opened</b> It is opening session ZPROJ which is your project name/object name.
    <b>FB109 Trans. 1 : Transaction xd01 is not supported</b>
    Check out your field mapping and conversion rule for object.
    <b>FB013 ....Editing was terminated</b>
    It is not finding proper field mapping rule / file inputs so the sytem terminates the LSMW object.
    Check your field mapping and conversion rule, check your source fields, save the file in tab delimited format.
    Hope this helps.
    Regards
    Arif Mansuri

  • How to use getContent() method in custom JSP Provider to display a HTML Pag

    Hi,
    If anybody knows how to use getContent() method to use in custom jsp providers (developed by ourselves) so that it can be used to retrieve a jsp page (a simple html page) ..
    I want the code in the provider java file to for the getContent method...
    Pls. get back to me asap....if any body has implemented a custom jsp provider...as it's urgent...
    I have alreday placed the JSP file in the directory structure /etc/opt/SUNWps/desktop/default/channel_dir..But still the jsp is not being displayed..
    Pls get me the getContent() method code to retrive the JSP file..
    satyabrata

    Hi,
    You don't have to do anything in the custom JSPProvider's getContent method except the call {  return super.getContent(request,response); } . If all you want is just to show your jsp, then create a channel from the default JSPProvider, and edit the property contentPage of that channel from samplecontent.jsp to your jsp name, save the changes and login again. You should see your JSP.
    Sanjeev.

  • Setter method for custom action attributes

    Hello,
    I'm using Sun App server. The container is saying I need to implement a setter method for a custom action attribute? I defined a set<variable() and this didn't fix the problem. What kind of setter method is it expecting?

    nevermind, found solution

  • Excise invoice clearing method for customs

    Hi Gurus
        this is chandu  , how to clear the excise invoice for imported materials is there  any transactional code to plz tell me 
    Example: if suppose i'm importing a material from USA so how can i clear the customs duty to make a GR at my company  plz help me in thios

    Hi,
    In Import procurement you hve separate pricing procedure, this you will assign to vendor.
    Freight, Customs duties and others create as Planned delivery condition types. While defining the condition type you can define this option. Once you define in this way, while creating Purchase order against to tht condition type you can enter the vendor name(customs vendor).
    For example Freight cost you hve to pay to C&F agent or FFAgent right ? In purchase order select the conditon type and click on details there you can enter the Vendor number. Like this do the same for custom duty condition types and enter customs vendor name.
    In Invoice verification in MIRO select planned derivery costs then the system will show pop screen which contains the vendors entered against condition types. Select the required vendor (FFAgent for Freight charges, customs vendor for customs duties) and post the Invoice verification.
    For material select Goods/Service items in MIRO, system by default it will take Imports vendor.
    Before posting GR for import PO you hve to post the planned delivery costs in MIRO.
    Hope its clear to you, still if u hve any questions let me know.
    Flow is as follows.
    1. create PO and enter the Customs vendor in condition types
    2.Post customs duty in MIRO as planned delivery costs
    3.MIGO
    4.MIRO for Import vendor
    reg
    Durga
    *Assign points if the info useful

  • Decode-method for custom component isn't called

    Hi,
    i have writen a custom component which gets some information by command-link. To make the data from the link accessible, i wrote a decode method in my renderer and in me component. But both method are not called from the faces framework.
    Dows anybody knows what i made wrong???
    Thanks, Sebastian

    Hi,
    thank you for your reply.
    Unfortunately the processDecodes(...) of my component is also not called from the framework. Does anybody knows what i'm making wrong???
    Thanks!

  • RE: Subcontracting for customer provided material

    Hi All,
              We have a customer delivering goods to manufacture and inturn he will be purchasing the goods from us. Can any body give solution. I perepared the Bom with material provided by customer in the components. what extra settings I need ?

    Please explain the scenario in detail.
    If I understand it correctly the customer gets the material from outside and the customer processes the materials and then sends it back. If this is right, we have to decide how the materials are to be treated whether Valuated or non-Valuated.
    If the materials are valuated then it is a normal process as like creating a process order with a special order type and all other steps are similar to regular procesing. Please explain the process in detail so we can suggest a suitable solution.

  • Problem in adding Custom Provider for Work Management Service

    Hello,
    I'm facing an issue in adding custom provider for work management service. As you are aware, Work management service is a Provider model and we
    can integrate with other systems by adding custom providers. So with that confidence, i have started writing a connector as mentioned below.
    Step - 1: Added new provider xml in the below path
    "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\CONFIG\WorkManagementService\Providers"
    Provider Name: provider.bizagitasklist
    Provider XML Content: 
    <Provider ProviderKey="DAA52AF3-A147-4086-8C0C-82D2F83A089D" OverrideProviderKey="" Assembly="adidas.TaskProvider, Version=1.0.0.0, Culture=neutral, PublicKeyToken=5d6f3e6be60a351b" > </Provider>
    Step -2: Added a class which inherits "IWmaTaskProvider" and implemented the override methods.
    public class BizAgiTaskListProvider : IWmaTaskProvider
    public string LocalizedProviderName
    get { return "BizAgiTaskListProvider"; }
    public string ProviderName
    get { return "BizAgiTaskListProvider"; }
    public Microsoft.Office.Server.WorkManagement.CalloutInfo GetCalloutInfo(IWmaTaskContext context, string taskExternalKey, string locationExternalKey)
    return null;
    public DashboardExtensionInfo GetDashboardExtensionInfo(IWmaBasicProviderContext context)
    return new DashboardExtensionInfo { ClassName = "SP.UI.SharePointExtension" };
    public BulkEditResult HandleBulkEdits(IWmaTaskContext context, BulkEdit updates)
    return null;
    public TaskEditResult HandleTaskEdit(IWmaTaskContext context, BaseAggregatorToProviderTaskUpdate taskUpdate)
    return null;
    public void RefreshSingleTask(IWmaTaskRefreshContext context, string externalKey)
    public void RefreshTasks(IWmaTaskRefreshContext context)
    //context.WriteProviderCustomData(
    Step – 3: Written a class to fetch the tasks from BizAgi System which has method to provide the task data.
    But I’m not able to feed those tasks in the class written in Step – 2 as I’m able to find any method which will take Tasks as Input and I’m not
    sure about the format of tasks.
    I’m able to debug the provider, and the breakpoint hitting in only one method and two properties.
    (LocalizedProviderName, ProviderName, GetDashboardExtensionInfo).
    Can you please help me to proceed further in implementing the above solution?
    Best Regards
    Mahesh

    Hi Mahesh,
    Although the implementation of work management service application is based on the provider model, I reckon the current SP 2013 RTM does not support custom providers. Only SharePoint task lists, Project server and MS Exchange are supported for now.
    Regards,
    Yatin

  • Badi method for knb1-atlkn in customer master in ECC 6.0

    Hi all,
    in ECC 6.0 .., customer master under company code data under account management  we have field named "Prev. acct no." ( KNB1-ALTKN ) .....I have to do some validations for that field ....can you ppl advise/suggest me the correct badi method for this purpose ???
    because the control is not stopped in save_data badi method....can u pls advise on the same??????
    pl. do th needful.
    thanks in advance
    jack

    tHANKS

  • Please provide Solution for Customer Condition Group when defining 2 Chrt's

    Dear Guru's,
    Please provide Solution for Customer Condition Group when defining 2 Charecters or 2 digits.
    I have Completed all possible Combinations like AA,BA,1A,A1,01 to 99 etc.. Total Enteries reach upto 1200+ so I am unble to find no more Combinations( without Special Characters & no chance to increase other than 2 Char/digt)..
    Any body Suggest me any Good Combinations or Proper Alternative....
    Thanks,
    Panduranga

    Hi panduranga
    A Customer Condition Group is maintained in only 2 digits .If you want to go for more than 2 digits then you need to take the help of ABAP'er and you need to go for enhancement
    Regards
    Srinath

  • Clone a method for my custom object.

    Hi!
    We have a method:
    comp.saveFrameToPng(compTime, fileObj);
    I have my custom object block.
    Is it possible to clone "saveFrameToPng" method for my custom object?
    I've tried:
    Function.prototype.clone = function() {
        var that = this;
        var temp = function temporary() { return that.apply(this, arguments); };
        for(var key in this) {
            if (this.hasOwnProperty(key)) {
                temp[key] = this[key];
        return temp;
    And then in my custom object:
    function block (comp)
    this.saveFrame = comp.saveFrameToPng.clone();
    But thin won't work properly
    Help me please if this possible.
    Thank you in advance!

    Hi
    static public long powerTwo(long number)
         long ret = 2;
         if(number == 0)
              return 1;//2 to the power of 0 is 1
         else
                    //use a for loop to loop as many times as specified by number,
                    //times 2 to ret every time it loops
         return ret;//return the answer
    }Hope this helps

  • QM_LSMW BY RECORDING METHOD FOR QP01

    Dear QM Experts,
    1.     I am doing LSMW by recording method for QP01 transaction code
    2.     I am facing one problem while recording in inspection characteristic screen
    3.     While saving another screen opens prompting to put inspection method, plant and version for inspection method.
    4.     This is not at all needed as per the requirement.
    I removed default Plant for Inspection Method version, Version Number of the Inspection Method while recording LSMW in inspection characteristic screen. Still it is happening.
    Surprisingly when we create inspection plan though QP01 it never asks for these things.
    Any remedies?
    Best Regards,
    Thanks is advance
    Anand Rao

    Do not use Recording for QP01.
    There is a pragram named "RCPTRA01". It can be selected in step1 of lsmw>>Object Type and Import Method>> Standard Batch/Direct Imput>>Object 0240;Method 0000;Program RCPTRA01; Program Type B.
    Then Step 2, define source structure. In fact you may go to step 4 to have a look at the structure of the target structure. It would be easy to copy that. The source structure would be as below, ZBI001 would be the top level and the others the same lever under ZBI001:
    Source Structures
            ZBI001                    Transaction Header Record for Data Transfer of Routings
                ZBIMPL                   Batch Input Structure for Allocation of Mat. to Task Lists
                ZBIPKO                   Batch Input Structure for Task List Header
                ZBIPPO                   Batch input structure for task list operation
                ZBIPMK                   Inspection characteristics for batch input of task lists
    In step 3, define source fields for source structure. For easy define, you may click "Object Overview">> Table to get the possible fields of the related structure, and then copy to Excel; after that, you may copy the fields directly from Excel to fields difining window in step 3.
    Step 4, assign the source structures to target structures, the target structures are named the same as the source structures above, just without the letter "Z". For example, assign ZBIMPL to BIMPL, ZBIPKO to BIPKO, except ZBI001 is assigned to BI000 and BI001 as well.
    Then Step 5, you may find there are RECTY and default settings are "00" "99" "01" "03" "09" "18" for BI000, BI001, BIMPL, BIPKO, BIPPO and BIPMK. Let alone "99" and imput these value to field "RECTY" in corresponding source structure fields
    Then you may run auto field mapping in step 5, and make some values constant, like PLNTY=Q etc.
    Then a problem with the profile under field "PROFIDNET". Run TCODE 'SPRO' to IMG>Quality Management>Quality Planning>Inspection Planning>General>Maintain Profiles for Default Values>Profile: default values plan/general. You may find there is a box named "Entry tool", tick that box, if not it is not possible to run QP01 in lsmw. And at the same time you may find the profile is 0000001. Key the value to field "PROFIDNET" and make the rule as constant.
    For step 6 there is nothing to do
    in Step 7, unlike other objects, you can use just one .txt file for uploading the inspection plan. When specy file, select "Data for Multiple Source Structures(Seq.file); Delimiter: Tabulator; File structure: Field order Matches source structure definition(as in Seq.file) I find not possible to put field names at start of file, so "Field Order Matching" is very important
    Then how to prepare the file? We can accomplish this with 5 excel sheets
    the fields orders for my customer is like this:
    1)for RECTY 18(Inspection Charatristics):
    MATNR     RECTY     MERKNR     KURZTEXT     VERWMERKM     QPMK_ZAEH     PMETHODE     QMTB_WERKS     STICHPRVER     PROBEMGEH     STELLEN     MASSEINHSW     SOLLWERT     TOLERANZOB     TOLERANZUN
    2)for RECTY 09(Operation):
    MATNR     RECTY     VORNR     STEUS     WERKS     LTXA1     UMREZ     UMREN
    3)for RECTY 03(Header):
    MATNR     RECTY     DATUV     VERWE     WERKS     STATU     PLNME     LOSVN     LOSBS     VAGRP     KTEXT
    4)for RECTY 01(Allocation of Material)
    MATNR     RECTY     MATNR     WERKS     LIFNR     KUNR
    5)for RECTY 00(Transaction Header)
    MATNR     RECTY     TCODE     START
    Creat a new blank sheet and copy the fild contents of these 5 sheets into it, then you can sort the fields in A to Z order with Column A(MATNR), B(RECTY), and C(MERKNR), then the seq.file to be uploaded is completed.
    for example:
    10001042     00     QP01     20090119                                                            
    10001042     01     10001042     1200                                                            
    10001042     03     20090119     5     1200     4     PC     0     99999999          Screw\M16x45\GB/T5783                         
    10001042     09     0010     QM01     1200     inspection     1     1                                        
    10001042     18     10      inspection on material     C101     1200     JF035     1200     GUD5     PC                              
    10001042     18     20      Inspection on size     C102     1200     JF034     1200     GUD5     PC
    Then copy start from Column B, i.e., without the material numbers in Column A, to .txt file.
    Specy the file in Step 7 in lsmw.
    the step 8, assign this .txt file to all structures
    then step 9, 10, 11, 12, 13 Creast Session and run it in at the end.
    Actually this program is not possible for QP02. If you want to make some correction on the inspection plans in SAP, you'd better delete them and upload the revised one.
    This program is very similar to CA01 Production Routing and thus also applicable to CA01. But I recommend using  Object 0170;Method 0002;Program RCPTRA02; Program Type D for CA01, because it provides testing transfer at the end so that you can check out logical errors, and much fastee. Pity that for QP01 there is no such program
    Currenty I am acting as Data cunsultant for an Elevator Manufaturer in China, hope my experience would help for you. My MSN is zhangxiaojun at msn dot com

  • **URGENT** No getter method for property searchText of bean org.apache.stru

    I'm implementing a query page as described in the HowTo ADF_ComplexMasterDetail.zip
    When running the query page, I'm receiving the error:
    javax.servlet.jsp.JspException: No getter method for property searchText of bean org.apache.struts.taglib.html.BEAN
    I have my searchEmployees writen and 'exposed' (at least I can see it in the Data palette). But seems like something is missing, and can't find this searchText beam property specified in the html:text tag.
    Can someone help in this one?
    Here is the Help description inside the HowTo example:
    Section 3
    queryEmployees
    queryEmployeesInDept provides an interface for entering a simple search criteria for querying a list of
    employees. This does not use the Find mode Query By Example functionality that the other query screens
    use, but rather presents a much simpler search interface. The actual search is carried out using a
    function
    searchEmployees that the underlying view object exposes. (See the EmployeesView view object in the
    model project)
    1. Drop a new Data Page onto the page flow diagram call it queryEmployees
    2. In the page flow diagram, drag the searchEmployees operation from the AllEmployeesView
    collection in the Data Control Palette and drop it on top of the new Data Page. This will cause the
    framework to run a search whenever the page is called.
    3. In the Structure pane, locate the queryEmployees node and expand it, select the child node
    paramNames[0], and change it's value attribute to ${param.searchText}. This will pass the URL
    parameter searchText on to the business method to qualify the query.
    4. Drill down into the page and expand the Data Control Palette to select the AllEmployeesView
    collection. Set the Drag and Drop as: list to Read-OnlyTable. Then drag the collection onto the page.
    This will create a tabular containing the query results.
    5. Select the Struts HTML component palette and drag a Form onto the page above the output table. Set
    the handling action to this Data Page (queryEmployees.do)
    6. Drag a text field from the component palette inside of this new form. Set the property attribute of
    the
    <html:text> tag to searchText (the same value you used in the paramNames[0] for the Data Page)
    7. Create a new submit button in the form to submit the search. Set the property attribute of the button
    to
    event_search.
    8. Finally we need to subclass the data page to prevent the search action from being fired when it is not
    appropriate for the page ( for instance when we first display it). To do this we need to Go to Code on
    the Data Page's context menu, and override the invokeCustomMethod() method:
    * We only want to invoke the custom method i.e. the call to change
    * the Where clause on the collection, if the Action has been called with
    * a search event on the page with a search term supplied.
    * If the user got here via a link or another event, we bypass the model call
    * unless a URL parameter event=search is supplied, in which
    * case the method will also be called.
    protected void invokeCustomMethod(DataActionContext actionContext)
    List events = actionContext.getEvents();
    // If the event is "search" do the custom event call
    if ((events != null) && (events.contains("search")))
    String searchTerm = (String)((DynaActionForm)actionContext.getActionForm())
    Get("searchText");
    if (searchTerm != null)
    super.invokeCustomMethod(actionContext);
    }

    Solved with Oracle JDeveloper HowTo:
    Creating Search Pages with Both Fixed and Dynamic Criteria
    Author: Steve Muench, Oracle ADF Development Team
    Date: September 16, 2004
    http://www.oracle.com/technology/products/jdev/howtos/10g/dynamiccrit/index.html

  • Data Binding for Custom Controls?

    Hello,
    I'm a little bit confused of how to use databinding for custom controls.
    I know i can bind a property, as seen here http://help.sap.com/saphelp_uiaddon10/helpdata/en/91/f0f3cd6f4d1014b6dd926db0e91070/content.htm, but how can I map whole arrays?
    My problem is the following:
    I want to create a custom table control in SAPUI5 (as the default one doesn't provide the neccessary options and properties I need), but I can't seem to find an example how to bind "rows".
    There has to be a way to do this properly. All I can think of now, and implemented, is, passing the name of the variable in the model...
    var x = new my.controls.complex.table({data: "/status"});
    var row1 = new my.controls.complex.columnHeaderRow();
    row1.addColumn(new my.controls.complex.column({text: "", rowspan: "2", colspan: "1", content: "FIRST_COL"}));
    x.addColumnsRow(row1);
    x.placeAt("content");
    ...my JSON/model looks like:
    { "status": [ {"FIRST_COL": "a" , ...}, {"FIRST_COL": "b", ... }, ... ], ... }
    (which should translate into /status/0/FIRST_COL, /status/1/FIRST_COL, ... AFAIK)
    ... and then I use this variable name by getting the application-wide model and use the variable passed as key for the model... (please note, this code is just a snippet)
           var sapCore = sap.ui.getCore();
                if (sapCore !== undefined) {
                 var model = sapCore.getModel().getObject();
                 if (model === undefined || model == [] || model == null){ } else {
                  $.each(model, function(idx, item){
                   $.each(oControl.getColumnsRows(), function(idx, item2) {
                    $.each(item2.getColumns(), function(idx, item3){
                     var content = item3.getContent();
                     if (content !== undefined && content != ""){
                      outpLine = outpLine + "<td>" + model[idx][content] + "</td>";
    ...which still leaves me with the problem of to get an event to react to re-render on changes within the data model, as well as when there would be just an control-specific model, or just a sub-node within a model etc.
    So my question is:
    Is there a way/best practice to define data binding in a custom control and have a way to react on it, and how to react on data changes within a custom control?
    Thanks & KR
    Chris

    I create a entirely new control, from sap.ui.core.Control.
    sap.ui.core.Control.extend("my.controls.complex.table",{... });
    I did define a aggregation...
            aggregations : { columnsRows: {type : "my.controls.complex.columnRow", multiple : true, visibility: "public"}     },
    ...yet I'm still unclear how I work with this aggregation and databinding. I know we can use the bindAggreation functionallity, but since the aggregation is a object (my.control.complex.columnRow) I don't know how my JSON model should be able to bind to that aggregation (as well as how would one be able to cascade a aggregation like this down futher? For example if there is an aggregation in the object of my aggregation?), plus it still doesn't solve my problem of how I can react (for example redraw) on model changes.
    Thanks in advance,
    Chris

  • Suggested methods for full backup of XServe RAID data

    I know this is only peripherally related to the discussion topic, but since every other suggestion posted here is followed by the disclaimer that you should make a full backup of your data before proceeding with any major operations on your RAID arrays, I'd like to know what more experienced admins do in order to create a full backup for reasonably fast recovery in case of substantial data loss during maintenance/repair.
    Our current "backup" availability is incremental optical disc archival (our data is mostly "write-once"), but this isn't entirely practical for recovery since it's over a terabyte of data. Since the connected server has a free hot-swappable SCSI drive bay as well as an interface for external SCSI devices, not to mention the fiber channel and ethernet interfaces, the options that I'd consider in order would be:
    1. A handful of 150-500 Gb SCSI hard drives, rotated out of the hot-swappable bay
    2. An external tape drive attached to the SCI interface (with appropriate tape size, maybe the LTO-2 with 200Gb native capacity?)
    3. Some other external SCSI storage device
    4. Larger optical disc archival (I hear there are technologies arriving in the near future)
    5. Network-based option; remote seems impractical due to sheer size, but perhaps local?
    The idea is to make a full backup (long-term solutions are superior of course) of 1-2 Tb of data on the XServe RAID before attempting major surgery. Suggestions for common, accepted, tested, efficient methods for accomplishing this would be greatly appreciated. I apologize if this thread isn't on-topic enough for some of you.
    -Brian

    Brian,
    Tape IMO is kinda yucky (to steal a term from your average 3 year old). It's fairly slow to back up to, it's very slow to restore, and it's actually not that reliable by itself (I worked with a large enterprise customer who said their backups were successful about 70% of the time (!!!)).
    That said, tape has the advantage that you can offsite it and archive it very cheaply, and the media are fairly cheap, so you can make lots of backups, so if one fails, you probably can restore the data from another tape.
    Disks are more expensive initially, but end up being pretty reliable, and you get a lot more flexibility (plus, they're fast).
    An emerging "best of both worlds" backup strategy is what's called disk to disk to tape, where you typically back up to another large "disk," for example a second Xserve RAID. Data is then backed up from the second disk to tape, which is taken offsite... thus tape is used for what it's best at (offsite archival). Restore can be from disk in most cases, which is 10-20x faster than restoring from tape. People use software packages like Netvault's Bakbone or Atempo's Time Navigator, which can handle the whole process, and it works quite well. The backup disks (e.g. the RAID) can be onsite, or can be at a backup site a couple KM away, attached via optical (this is preferable, for DR reasons).
    For cases where a second Xserve RAID is prohibitively expensive, cheaper (and slower) RAID 5 enclosures like Wiebetech's RAIDtech can provide a large (say, 1.6 TB) RAID 5 volume, accessible over FW800 or SATA (not sure if they have a SATA-based one yet).

Maybe you are looking for