Creation of Data Control for custom java method  which will return records

Hi Guys,
I have a requirement of creating a a custom java method in App module which will return a record set taking an id as input.In case of single return type it works fine but in case of returning record set it is not working.In my case i have to combine two tables and return it as a single entity as a view in Data Control.
Warm Regards,
Srinivas.

Why don't you just create a custom view object? There's even an example or 2 in the docs:
http://docs.oracle.com/cd/E16162_01/web.1112/e16182/intro_tour.htm#CHDGDIEC (check out "View object on refcursor" example)
Edit: you are aware that you can create a View Object based on more than one table?
John

Similar Messages

  • Method which is return's all the refinement state for Dimension.

    Hi All,
    Is there any java method which is return's all the refinement state for Dimension.
    Ex:
    Brand
    Reebok
    Scholl
    Sebago
    Ravel
    When i clicked All Brand from front end it will select all 4 Brands data.
    Any help will be great appreciation
    Thanks,
    Sunil N

    Not sure what you want to achieve here. If you want to select all the dimension values, then provided the dimension is Multi-select OR you can have N=Id-1+Id-2+Id-3 and it will return all of them. What I'm not sure on is why you would do this, you'll get back precisely the same results (provided every record is tagged with a brand) as if you did nothing, although I guess you might want to allow them to select all then deselect one or more afterwards ... Note you can also use N=<dimension-id>, where <dimension-id> is the id of the actual dimension, and that will return all records that have a value for that dimension, but that won't give you any descriptors (breadcrumbs) other than the dimension name/id.
    Michael

  • Change Message Control for Customer Master data

    Hi Friends,
    I have to choose/populate a message when the user is about to create an already existing customer.
    In SPRO --> Financial Accounting --> Accounts Receivable and Accounts Payable --> Customer Accounts --> Master Data --> Preparations for creating customer master data --> "change message control for customer master data" ...
    OK...
    When u click this it goes into Change View "message control by User" Overview screen wherein u can insert new messages and texts and the type of message ....
    Now .....
    I want to display the 145th message (F4 help of the Message column) ..... it picks up the text "Customer found with same address;check"..... with Online mesasage type 'I' and batch type 'I' and with standard type '-' ..
    I want to have the same message with message types 'E','E', and 'I' respectively.......
    How is this possible (or) what should i do to meet my requirement :-|
    Expecting ur answers
    Thanks in advance ........
    Cheers,
    R.Kripa.

    Hey yes it is not possible (as of now
    I ve met the requirement by just using message statement in the program itself ............
    My requirement is met but still if anyone knows about this do answer / reply
    Thanks
    Cheers,
    R.Kripa.

  • How to create custom Data Control for Iterator?

    Hi,
    I have seen somewhere that is possible to customize set of data controls for all iterators in Data Controll Palette e.g. by adding custom data control (I remember JDev uses Velocity to display data controls). Is there any documentation or tutorial how to do it. Meybe any Oracle ACE will write some steps on his blog.
    Kuba

    I'm looking for any documentation or better some examples to customize files:
    jdev/system/oracle.adfm.dt.faces.10.1.3.41.57/jsp_databinding_templates.xml
    jdev/system/oracle.adfm.dt.faces.10.1.3.41.57/faces_creator_configuration.xml
    This customization may be very useful while developing appliations
    Kuba

  • Should we really go for bean data controls for a new project?

    Hi,
    I am still new data controls and trying to figure out the advantages of using bean data controls for our new project. Our UI is going to have customized UI components and our back end is going to be a tcp/ip server.
    Is it a good idea to develop java beans and then create data controls to bind to UI layer? I think it makes sense to use data controls if we want to use existing java beans. Maybe we would be separating the model layer by using data controls, but only thing it would be doing for us would be the simple object calls to my java beans. Would it be better to use data controls or use I choose to make object calls?
    Thanks,
    Manoj

    Hi,
    the POJO data control will always give you a benefit and develope productivity, unless what you have to build fits on a single page - in which case you may not mind the burdon of manual UI component binding
    Frank

  • 10.1.3.4 - How to access custom java methods in worklist ?

    We want to invoke a custom java method inside of worklist, when the file attachments are added to the worklist. We are planning to modify the auto-generated jsp page to do the same. We have created the custom jar files, but am not sure where to deploy this jar file ? We are not able to compile the jsp /jar. Does anybody have any idea where the custom jar file goes ?

    The bpel\samples\hw\worklistapp\readme will explain you about how to do this.

  • Marriage anniversary date field for customer contact

    Hi
    We like to have Marriage anniversary date field for customer contact.
    We found Birthday field & even Marital Status in Customer Contact. However, Marriage Anniversary Date is missing.
    Please suggest whether it is already avalible somewhere? If yes, how to get it (in XD01/XD02), or what is the alternative then.
    Thanks.
    - Sunil

    Hi,
       I don't think SAP has provided marriage anniversary field , you can very well user REMARKS field to enter the details.
    Regards,
    Siraj

  • Links to Web Service Data Control for complex data types

    Hello Forum members,
    Could anyone please post good reference links to docs/blogs illustrating how to create and use a Data Control for a Web Serice Proxy Client providing interfcae for a complex xml schema ?
    Any help highly appreciated :)

    http://blogs.oracle.com/shay/2010/05/updateinsert_with_adf_web_serv.html

  • Web service data control for asynchronous bpel process

    I have an async BPEL process that I want to call from a JSP page. I followed the tutorial for creating a data control for web services. When the DC was created, it created an initiate operation that requires the ReplyTo and MessageID. I thought these are internal to the runtime stack, so why are they part of the data control? How do I get around it?
    Thanks,
    Rico

    http://blogs.oracle.com/shay/2010/05/updateinsert_with_adf_web_serv.html

  • How to manage the Credit Control for Customer Consignment Process?

    Hi All,
    Could anyone tell me how to manage the Credit Control for Customer Consignment Process?
    Thanks

    Hi, there is not standard solution, we did customized process for consignment credit block , check below
    1. defined status profile - with lock/auto/approved/rejected and new t.code for approval or rejected.
    2. maintained consignment credit limit in Z table
    3. logic for detemining status written in sales order save userexit.
    4. while calcualting the values, system need to check open sonsignment order of customer/ open deliveries/ stocks at customer place MSKU table. and calculate value with MBEW/KONV ect.
    5. if value is less than Z table then status AUTO, which do not need release, if value is greater than Z table put status LOCK means credit block need to release from new T.code.
    Hope you get some idea

  • Why does the Java method ServletContext.getResourceAsStream return null with a know good path to an xsl file?

    iPLANET ISSUE
    Why does the Java method ServletContext.getResourceAsStream return null with a know good path to an xsl file?
    CODE
    ServletContext context = mpiCfg.getServletConfig().getServletContext();
    // Debugging
    out.print(context.getServerInfo());     // Get server info
    out.print(&#8220;getRealPath = &#8221; + context.getRealPath("WEB-INF/xsl/RedirectToAcs.xsl"));
    String strXslName = "RedirectToAcs.xsl";
    InputStream is = context.getResourceAsStream("WEB-INF/xsl/"+ strXslName);
    TRACE FROM THE LOG
    [26/Jul/2002:08:23:15] info ( 2868): [0][][ClearCommerceCcpaMpi][]getServerInfo() = iPlanet-WebServer-Enterprise/6.0, getRealPath() = C:\iPlanet\Servers\web-apps\ccpa\WEB-INF\xsl\RedirectToAcs.xsl
    [26/Jul/2002:08:23:15] info ( 2868): [0][][ClearCommerceCcpaMpi][]strXslName = RedirectToAcs.xsl, is = null
    [26/Jul/2002:08:23:15] info ( 2868): [1][][ClearCommerceCcpaMpi][16]ResourceAsStream is null
    [26/Jul/2002:08:23:15] info ( 2868): [1][][ClearCommerceCcpaMpi][30]Problem reading XSL file.
    DIRECTORY DUMP
    C:\iPlanet\Servers\web-apps\ccpa\WEB-INF\xsl>dir
    Volume in drive C has no label.
    Volume Serial Number is 9457-EBF4
    Directory of C:\iPlanet\Servers\web-apps\ccpa\WEB-INF\xsl
    07/22/2002 05:54p <DIR> .
    07/22/2002 05:54p <DIR> ..
    07/22/2002 05:54p 3,086 RedirectToAcs.xsl
    07/22/2002 05:54p 3,088 Response.xsl
    2 File(s) 6,174 bytes
    2 Dir(s) 1,797,405,696 bytes free

    I think there's supposed to be a forward slash before WEB-INF.
    InputStream is = context.getResourceAsStream("/WEB-INF/xsl/"+ strXslName);

  • 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

  • Need to obtain a handle to Data Controls through a java pgm in Oracle ADF

    Hi
    Through my java pgm i want to access the Data Control which i have created over a Web Service.The reason i need to do that is, once i can obtain a handle to the Data Control i will be able to invoke methods exposed on the Web Service and i want to do it through my pgm.
    I am aware that if i can drag and drop a DC of a web service onto a JSF page, it will be associated with a btn and on click of a btn the webservice method will be called.But my requirement is that i need to do the same through my pgm.
    Thanks !!!

    Hi Ansh
    Thanks for the reply
    I have followed the same link and created a sample app and i am facing some error, error given below.
    jdeveloper 11.1.1.6.0  Warning 'http://xmlns.oracle.com/oracleas/schema/11/
    if you have any solution for this , pls revert.
    Thanks in advance

  • Issue in rendering CustomToolpart to select data source for custom webpart..

    I have a custom webpart in which i have added a tool part.This toolpart should allow me to select any list in the sitecollection which would be displayed on the webpage on doing apply in the webpart properties.The dropdown list with all lists is coming fine.The
    grid is diplaying as well.But in the toolpart,not in the webpart. I cant seem to segregate the two.There is also a textbox in the  toolpart in which the entered text comes in the webpart.But the same approach is failing for the gridview.Please suggest
    what to do.
    Also,i am failing at making a separate category for the toolpart by specifying [category("List settings")]..Any suggestion as to what i'm doing wrong in that are welcome too.
    Here is my webpart class and toolpart class.
    using System;
    using System.ComponentModel;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    using Microsoft.SharePoint;
    using Microsoft.SharePoint.WebControls;
    using Microsoft.SharePoint.WebPartPages;
    using System.Data;
    using Microsoft.SharePoint.Utilities;
    namespace BB.WorkSpaces.Common.WebParts.CustomList
    [ToolboxItemAttribute(false)]
    public class CustomList : Microsoft.SharePoint.WebPartPages.WebPart
    [Browsable(false),
    Category("List Settings"),
    Description("Text Property")]
    // Visual Studio might automatically update this path when you change the Visual Web Part project item.
    private const string _ascxPath = @"~/_CONTROLTEMPLATES/BB.WorkSpaces.Common.WebParts/CustomList/CustomListUserControl.ascx";
    public string ListName
    get
    return _listName;
    set
    _listName = value;
    string _listName;
    public string ListValue
    get
    return _listValue;
    set
    _listValue = value;
    string _listValue;
    public GridView Gv
    get { return gv; }
    set { gv = value; }
    GridView gv;
    protected override void Render(HtmlTextWriter writer)
    base.Render(writer);
    writer.Write(ListName);
    writer.Write("<br />");
    writer.Write(ListValue);
    writer.Write("<br />");
    writer.Write(Gv);
    public override ToolPart[] GetToolParts()
    ToolPart[] allToolParts = new ToolPart[3];
    WebPartToolPart standardToolParts = new WebPartToolPart();
    CustomPropertyToolPart customToolParts = new CustomPropertyToolPart();
    allToolParts[0] = standardToolParts;
    allToolParts[1] = customToolParts;
    allToolParts[2] = new CustomToolPart();
    return allToolParts;
    public class CustomToolPart : Microsoft.SharePoint.WebPartPages.ToolPart
    DropDownList ddl;
    TextBox tb;
    protected override void CreateChildControls()
    ddl = new DropDownList();
    ddl.ID = "ddl";
    // Simply getting the lists of the current web, and displaying them in the dropdown-list.
    SPListCollection lists = SPContext.Current.Web.Lists;
    foreach (SPList list in lists)
    ddl.Items.Add(list.Title);
    tb = new TextBox();
    tb.ID = "tb";
    Controls.Add(ddl);
    Controls.Add(tb);
    base.CreateChildControls();
    public override void ApplyChanges()
    CustomList wp = (CustomList)this.ParentToolPane.SelectedWebPart;
    wp.ListName = ddl.SelectedValue;
    wp.ListValue = tb.Text;
    SPSite site = SPContext.Current.Site;
    SPWeb web = site.RootWeb;
    SPList list = web.Lists[ddl.SelectedItem.Text];
    //SPListItemCollection slist = list.GetItems();
    GridView GV1 = new GridView();
    DataTable dt = list.Items.GetDataTable();
    GV1.DataSource = dt;
    GV1.DataBind();
    this.Controls.Add(GV1);

    Hi,
    According to your post, my understanding is that you have an issue about the custom web part.
    Per my knowledge, we should customize the EditorPart instead of the
    ToolPart to bind the lists to the dropdown list.
    There is a good article about customizing web part, you can refer to it.
    http://www.concurrency.com/blog/create-a-custom-web-part-for-sharepoint-2010/
    More reference:
    http://www.enjoysharepoint.com/Articles/Details/show-all-list-in-dropdown-list-using-visual-web-part-20676.aspx
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Are Multiple (Concurrent) ABAP Data Sources for AS Java UME Possible?

    Hi All,
    We have a solution which is using a JAAS logon module for partner authentication. for reason's I won't go into we have decided that it is best to use an ABAP data source. We will also be using the same JAAS approach for other ABAP applications in the future. Ideally we would configure the same JAAS server to use ABAP UME data sources from ABAP server 1 and ABAP server 2.
    I see there are provisions in the documentation for multiple UME data sources of different types but it doesn't clearly say about different concurrent data sources. IS this even possible? If so is it wise?
    Thanks,
    Doug

    Julius,
    Thanks again for your reply. This is confusing. We have an existing .Net logon application where we centrally administer accounts and where users log in. On successful login they are issued a .net Auth cookie. Our JAAS module takes that cookie, does a web service call back to .Net and authenticates them. So authentication is done on the basis of the .Net cookie, not the java UME. We simply need a java ume to allow users to execute the application that invokes the JAAS module. The application invokes the JAAS module and if they successfully authenticate they are forwarded to the requesting SAP application. So the JAAS ume is really just needed to allow various users to run the JAAS invoking application starter. Ideally we'd use the same starter application for users of SAP Application 1,2,3, etc.
    So that's where the question came from on multiple ABAP  UME data sources for a single Java instance.
    Hope that makes sense. Regardless the answer I guess is not possible but you see the method to our madness. And yes it is madness.
    Thanks,
    Doug

Maybe you are looking for

  • Follow-up srw.message

    hi... just want to follow-up Gladys([email protected]) inquiry because we really need to make it work ASAP!!! Thanks null

  • How do I get my Exchange "home" addresses to show up in Contacts?

    I synch my iPhone contacts from my work Exchange Server.  Ever since I upgraded to IOS7, I cannot see any "home" addresses for my contacts.  All I can see is "work" addresses for each contact.  All phone numbers and e-mails are fine.  It's only cause

  • Wipe Disk, install new OS, import some items from Time Mach.

    I read in another thread to use disk utility to zero my hard disk in the following manner: Creat another Admin User Use "erase" function to delete the space where my curretn user lives This is the best way to rid one self of legacy root junk that may

  • Cannot change resolution of XVR-1200 graphics card

    We have Sun Blade 2500 running Solaris 9 with an XVR-1200 graphics card in it. We need to be able to change the video resolution, but for some reason this system has lost the capability to do so. We've tried repeatedly invoking the "fbconfig -res" co

  • Function Module ITOB_SERIALNO_MODIFY_SINGLE

    Hi All , I m trying to use this FM ITOB_SERIALNO_MODIFY_SINGLE for changing the serial number ( as in transaction IQ02) . When i call this FM it gives me Subrc as 0.. but it doesnt commit in the database.. though i have given an option to commit in t