OVS, but no input parameters.

I would like to create an OVS input help for an InputField UI element, but in my case the search input parameters are obtained programmatically and need not to be inserted by the user.
In the WDValueServices.addOVSExtension() method, I tryed to specify as queryInputNode a node with no attribute. The result is the following:
a) no input field is displayed
b) the Go button is displayed
c) the onQuery method is called without pressing the Go button
Is there any way to get rid of the Go button, which is useless?
Thank you in advance.
Regards,
Livio
Edited by: Livio Lazzeri on Jan 14, 2010 4:59 PM

No, because the selection is among objects having several attributes and not among simple key/values pairs.
Livio.

Similar Messages

  • Can some selection conditions as PL/SQL procedure input parameters

    Dear All,
    I need to write a PL/SQL procedure so as to compute the different query only by changing the input parameters. But those input parameters need to be like a PL/SQL table selection conditions. Like:
    one of the query I need two conditions:
    customers.zip = 60606
    customers.zip = employees.zipMy procedure can compute the query like:
    select customers.cno, cname, employees.eno, ename
    from customers, orders, employees
    where customers.cno = orders.cno and
          employees.eno = orders.eno and
          C; 
    where C is the conjunction of the conditions in the input parameter.
    Please help and thanks in advance!

    Well, it's easy enough to do what you want....
    SQL> conn scott/tiger
    Connected.
    SQL> CREATE OR REPLACE FUNCTION flexi_q (pn_deptno IN NUMBER, pv_string IN VARCHAR2 := NULL)
      2  RETURN sys_refcursor AS
      3    return_value sys_refcursor;
      4  BEGIN
      5    IF pv_string IS NULL THEN
      6          OPEN return_value FOR SELECT * FROM emp WHERE deptno = pn_deptno;
      7    ELSE
      8          OPEN return_value FOR 'SELECT * FROM emp WHERE deptno = :1 AND '
      9          ||pv_string USING pn_deptno; 
    10    END IF;
    11    RETURN return_value;
    12  END;
    13  /
    Function created.
    SQL> var rc refcursor
    SQL> exec :rc := flexi_q(30)
    PL/SQL procedure successfully completed.
    SQL> print rc
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM
        DEPTNO
          7499 ALLEN      SALESMAN        7698 20-FEB-81       1600        300
            30
          7698 BLAKE      MANAGER         7839 01-MAY-81       2850
            30
          7900 JAMES      CLERK           7698 03-DEC-81        950
            30
          7654 MARTIN     SALESMAN        7698 28-SEP-81       1250       1400
            30
          7844 TURNER     SALESMAN        7698 08-SEP-81       1500          0
            30
          7521 WARD       SALESMAN        7698 22-FEB-81       1250        500
            30
    6 rows selected.
    SQL> exec :rc := flexi_q(30, 'SAL > 1400')
    PL/SQL procedure successfully completed.
    SQL> print rc
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM
        DEPTNO
          7499 ALLEN      SALESMAN        7698 20-FEB-81       1600        300
            30
          7698 BLAKE      MANAGER         7839 01-MAY-81       2850
            30
          7844 TURNER     SALESMAN        7698 08-SEP-81       1500          0
            30
    SQL> The real question is: do you really want to do this? Fundamentally you are handing over control of your app to any nimrod who thinks they know how to write SQL. It's just about allowable for them to add simple restrictions but they could add in anything - correlated sub-queries, extravagant sorts, etc. Even if they don't deliberately exploit this hole you still have a fundamentally untunable part of your app.
    It would be much better to have some additional parameters that allows the users to choose from several off-the-peg queries. If you have a user demanding the ability to write "any report I need" I recommend talking to them. The chances are they simply have a pet query, probably embodied in an Excel spreadsheet, they run once every month. Give them a view to meet that need and they'll be happy.
    Cheers, APC

  • OVS with no input parameter

    Hi,
    I'm trying tu implement an Object Value Selector for one of my inputfields.
    I use an RFC fonction module that gives a list of values that the OVS should use. I follow the tutorial on OVS but the difference is that my RFC function does not have input parameters, it only outputs a list.
    The result is that when I am press the OVS button of my inputfields, I get the following error :
    [code]java.util.NoSuchElementException
         at java.util.TreeMap$EntryIterator.nextEntry(TreeMap.java:1024)[...]
    [/code]
    I do not do anything in the method applyInputValue because I do not have input parameters so I can't set them but this is probably causing the problem.
    How can I correct this ?
    Thanks,
    Sylvain

    Hi NagaKishore,
    Here is the code I use in my wdInit() method of the view :
    IWDAttributeInfo[] ovsStartUpAttributes = { wdContext.nodeOVSNode().getNodeInfo().getAttribute("Mtart") };
              IWDOVSContextNotificationListener listener = wdThis.wdGetOVSCustomController().getOVSListener();
              WDValueServices.addOVSExtension("Selection type article", // not used yet
              // fields bound to startup attributes will be OVS-enabled
                  ovsStartUpAttributes,
                   wdThis.wdGetOVSCustomController().getOVSInputNode(),
                   wdThis.wdGetOVSCustomController().getOVSOutputNode(),
                   listener);
    The applyInputValues() method of the OVS custom controller is empty.
    My rfc module is returning a list of all material types available in the system. THere is no input parameter, and the result is a list of type Mtart.
    Regards,
    Sylvain

  • Calling report from a form with user input parameters

    Hello,
    I am new to Oracle reports. I have an application coded in 6i. I am currently running the application in Oracle Forms Builder 9i. There are also few reports which are called from the forms. Since the application was developed in 6i, the report was called using Run_Product. The forms pass a set of user parameters to the report using the parameter list pl_id. The syntax used was Run_Product(REPORTS, 'D:\Report\sales.rdf', SYNCHRONOUS, RUNTIME,FILESYSTEM, pl_id, NULL);
    I learnt that the Run_product doesnt work in 9i and we need to use run_report_object. I have changed the code to use run_report_object and using web.show_document () i am able to run the report from the form. There are 2 parameters that need to be passed from forms to reports. The parameters are from_date and to_date which the user will be prompted to enter on running the form. In the report, the initial values for these parametes are defined. So, the report runs fine for the initial value always. But when i try to change the user inputs for the form_date and to_date, the report output doesnt seem to take the new values, instead the old report with the initial values(defined in the report) runs again.
    Can someone give me the code to pass the user defined parameters to the report from the forms? I have defined a report object in the forms node as REPTEST and defined a parameter list pl_id and added form_date and to_date to pl_id and used the following coding:
    vrepid := FIND_REPORT_OBJECT ('REPTEST');
    vrep := RUN_REPORT_OBJECT (vrepid,pl_id);
    But this doesnt work.
    Also, Should the parameters defined in the forms and reports have the same name?

    Thanks for the quick response Denis.
    I had referred to the document link before and tried using the RUN_REPORT_OBJECT_PROC procedure and ENCODE functions as given in the doc and added the following SET_REPORT_OBJECT_PROPERTY in the RUN_REPORT_OBJECT_PROC :
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,' FROM_DATE='||:BLK_INPUT.FROM_DATE||' TO_DATE='||:BLK_INPUT.TO_DATE||' paramform=no');
    But this also dint work. Please help me understand what difference does setting paramform=no OR paramform=yes make?
    In the report, i have defined the user parameters as FROM_DATE and TO_DATE respectively so that they match the form datablock BLK_INPUT items FROM_DATE and TO_DATE.
    My WHEN_BUTTON_PRESSED trigger is as below:
    DECLARE
    report_id report_object;
    vrep VARCHAR2 (100);
    v_show_document VARCHAR2 (2000) := '/reports/rwservlet?';
    v_connect VARCHAR2 (30) := '&userid=scott/tiger@oracle';
    v_report_server VARCHAR2 (30) := 'repserver90';
    BEGIN
    report_id:= find_report_object('REPTEST');
    -- Call the generic PL/SQL procedure to run the Reports
    RUN_REPORT_OBJECT_PROC( report_id,'repserver90','PDF',CACHE,'D:\Report\sales.rdf','paramform=no','/reports/rwservlet');
    END;
    ... and the SET_REPORT_OBJECT_PROPERTY code in the RUN_REPORT_OBJECT_PROC procedure is as:
    PROCEDURE RUN_REPORT_OBJECT_PROC(
    report_id REPORT_OBJECT,
    report_server_name VARCHAR2,
    report_format VARCHAR2,
    report_destype_name NUMBER,
    report_file_name VARCHAR2,
    report_otherparam VARCHAR2,
    reports_servlet VARCHAR2) IS
    report_message VARCHAR2(100) :='';
    rep_status VARCHAR2(100) :='';
    vjob_id VARCHAR2(4000) :='';
    hidden_action VARCHAR2(2000) :='';
    v_report_other VARCHAR2(4000) :='';
    i number (5);
    c char;
    c_old char;
    c_new char;
    BEGIN
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_FILENAME,report_file_name);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_SERVER,report_server_name);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE,report_destype_name);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESFORMAT,report_format);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,' FROM_DATE='||:BLK_INPUT.FROM_DATE||' TO_DATE='||:BLK_INPUT.TO_DATE||' paramform=no');
    hidden_action := hidden_action ||'&report='||GET_REPORT_OBJECT_PROPERTY(report_id,REPORT_FILENAME);
    hidden_action := hidden_action||'&destype='||GET_REPORT_OBJECT_PROPERTY(report_id,REPORT_DESTYPE);
    hidden_action := hidden_action||'&desformat='||GET_REPORT_OBJECT_PROPERTY (report_id,REPORT_DESFORMAT);
    hidden_action := hidden_action ||'&userid='||get_application_property(username)||'/'||get_application_property(password)||'@'||get_application_property(connect_string);
    c_old :='@';
    FOR i IN 1..LENGTH(report_otherparam) LOOP
    c_new:= substr(report_otherparam,i,1);
    IF (c_new =' ') THEN
    c:='&';
    ELSE
    c:= c_new;
    END IF;
    -- eliminate multiple blanks
    IF (c_old =' ' and c_new = ' ') THEN
    null;
    ELSE
    v_report_other := v_report_other||c;
    END IF;
    c_old := c_new;
    END LOOP;
    hidden_action := hidden_action ||'&'|| v_report_other;
    hidden_action := reports_servlet||'?_hidden_server='||report_server_name|| encode(hidden_action);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,'pfaction='||hidden_action||' '||report_otherparam);
    -- run Reports
    report_message := run_report_object(report_id);
    rep_status := report_object_status(report_message);
    IF rep_status='FINISHED' THEN
    vjob_id :=substr(report_message,length(report_server_name)+2,length(report_message));
    message('job id is'||vjob_id);pause;
    WEB.SHOW_DOCUMENT(reports_servlet||'/getjobid'||vjob_id||'?server='||report_server_name,' _blank');
    ELSE
    --handle errors
    null;
    END IF;
    In the code - " hidden_action := hidden_action ||'&'|| v_report_other; " in the RUN_REPORT_OBJECT_PROC procedure above, how do i make sure that the v_report_other variable reflects the user input parameters FROM_DATE and TO_DATE ??? v_report_other is initialised as v_report_other VARCHAR2(4000) :=''; in the procedure. Will ensuring that the v_report_other contains the user input parameters FROM_DATE and TO_DATE ensure that my report will run fine for the input parameters?
    Thanks in advance.
    Edited by: user10713842 on Apr 7, 2009 6:05 AM

  • How to make input parameters as optional in the function definition

    I have created a function for a data service which is at the Normalized layer and has 3 input parameters.
    This function is called at the Integration layer in which we have to pass only one parameter. But for the remaning 2 parameters it is throwing an error as we cannot pass those parameters.
    Is it possible that we can pass less number of parameters in the higher layer.
    I had also made those parameters as optional in the function definition(by applying '?' while defining the arguments-e.g. $x as xs:string?), but error was thrown while generating the query plan.
    I have attached a Demo project, in which i have defined a function at the normalized layer and this function is been called at the integration layer.
    Thanks,
    Kinjal

    Thanks mreiche for the reply
    But the problem is that while writing
    function myfunction( arg1 as xs:string, $arg2 as xs:string?) { ... }
    in function definition in the normalized layer, the query plan is throwing following error:-
    com.bea.ld.QueryException: Cannot generate XQuery for the function {ld:DemoProject/Normalized/TestGeo}getGeo:3
    at weblogic.rjvm.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:108) at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:290)
    at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:248) at com.bea.ld.Server_ydm4ie_EOImpl_816_WLStub.executeFunction(Unknown Source)     at workshop.liquiddata.xds.views.queryplan.QueryPlanPanel.compileFunction(QueryPlanPanel.java:583) at workshop.liquiddata.xds.views.queryplan.QueryPlanPanel.access$900(QueryPlanPanel.java:39) at workshop.liquiddata.xds.views.queryplan.QueryPlanPanel$5.run(QueryPlanPanel.java:469) at java.lang.Thread.run(Thread.java:534)
    Caused by: com.bea.ld.QueryException: Cannot generate XQuery for the function {ld:DemoProject/Normalized/TestGeo}getGeo:3 at com.bea.ld.EJBRequestHandler.invokeFunction(EJBRequestHandler.java:720) at com.bea.ld.EJBRequestHandler.executeFunction(EJBRequestHandler.java:339) at com.bea.ld.ServerBean.executeFunction(ServerBean.java:95) at com.bea.ld.Server_ydm4ie_EOImpl.executeFunction(Server_ydm4ie_EOImpl.java:312)
    at com.bea.ld.Server_ydm4ie_EOImpl_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:491)
    at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:120)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:434)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:429)
    at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:35)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
    Caused by: com.bea.ld.server.FunctionCallQueryBuilder$QueryBuilderException: The following parameter type is not supported: {http://www.w3.org/2001/XMLSchema}string?
    at com.bea.ld.server.FunctionCallQueryBuilder.addParameter(FunctionCallQueryBuilder.java:257)
    at com.bea.ld.server.FunctionCallQueryBuilder.buildQuery(FunctionCallQueryBuilder.java:99)
    at com.bea.ld.EJBRequestHandler.invokeFunction(EJBRequestHandler.java:716)
    But no error is thrown when I call this function at the Integration layer,using
    for $f in mfunction( 'test', () )
    and the output which i get is as expected.

  • Hierarchy on HANA Calculation View with Optional Input Parameters Fails

    Hi,
    Has anyone succeeded in building a hierarchy on top of a calculation view with optional input parameters, where an input parameter is not filled?
    The original requirement came from the wish to create a parent child hierarchy on a calculation view that was copied into the customer space from a HANA Live Financial Statement query view, but I have found the following when creating a simple level hierarchy on a calculation view that consumes one table. The Calculation View has one Input Parameter where the 'mandatory' box is unchecked.
    Calculation view reads ECC table FAGLFLEXT
    Simple level based hierarchy on fields PRCTR, RACCT and SEGMENT
    Input parameter is used as a filter for PRCTR with logic ("EMPTY" = '$$P_PROFITCTR$$' or "PRCTR" = '$$P_PROFITCTR$$')
    When I run the view I see the following behaviour in HANA Studio and Analysis for Excel
    Before building the hierarchy I could run the view with or without the Input Parameter
    After building the hierarchy I can run the view with the Input Parameter filled, but it fails when the Input Parameter is not filled.
    Error message is "error: search table error:  [2426] missing placeholder; missing value for mandatory parameter P_PROFITCTR"
    P_PROFITCTR is not a mandatory parameter, but the selection for the hierarchy view thinks it should be. I don't find any notes around this issue, so I don't think it's version related, however the version I have used for this test is 1.00.70.
    It's a shame we can't currently build the hierarchy as the parent child relationship is provided in HANA Live view NewGLFinancialStatementQuery.
    Thanks,
    Ken

    Hi Ken,
    We have been facing similar issue. We have even tried to set default value and as optional parameter. View still fails to create hierarchy (we are not using HANA live). As mentioned on page 97 of HANA modelling guide input parameter is mandatory from engine point of view. Hierarchy is generated as column view during the initial activation of calculation view and therefore expect a value by caller.
    This seems to be a product error. Some one from HANA development team should explain this issue in detail. I would expect someone like Thomas Jung reply to us.
    At the moment, we cant use input parameter for date prompt which gives us calendar popup feature for date selection. Hierarchies just don't work with input parameter. We are missing something.
    Regards
    Angad

  • Crystal Report with standard Input-Parameters in InfoView

    Hi there,
    i've created a crystal report which has non-optional input parameters, e.g, Date from ... Date to ...
    I've managed to fill this parameter with standard parameters if the user does not choose a value. e.g. date is today - 14 days.
    If i start the report in crystal and do not enter a input-parameter, it gets it input parameer automatically, see:
    (if not hasvalue({?PARA_TA_von}) then ({PW_BO_HU_TA.LTAP-WDATU}>=CurrentDate-14) else ({PW_BO_HU_TA.LTAP-WDATU}>={?PARA_TA_von}))
    It works perfectly in crystal. But if i start the Report in Webintelligence Infoview, it doesn't work and i get the message to enter the input-parameters....
    Any idea ?
    Thanks,
    Sebastian

    Hi Ingo,
    I have tried the sample reports and other crystal reports created with data sources other than SAP which all work fine. The problem happens on all clients and the server when running reports with SAP data source.
    I did find an error in the Tomcat logs.
    [/SAP].[jsp] Thread [http-8080-Processor24];  Servlet.service() for servlet jsp threw exception
    java.lang.NoClassDefFoundError: com/crystaldecisions/Utilities/LengthLimitedDataInputStream
    I did manage to run one report which had 4 records but the other reports which vary from 432 - 2500 records return the error found in the tomcat logs.
    I will be installing BOE XI 3.1 on my desktop to see if the still issue occurs in this release.
    Thanks and Regards,
    Paul.

  • FM: PROCESS_HU_INBOUND_DLVRY - wrong length of input parameters

    Hello,
    I am trying to pack materials into Handling Units in inbound delivery. Therefore i am using the Function Module PROCESS_HU_INBOUND_DLVRY, but it doesnu2019t work like it should.
    After some further investigation and debugging of the function module i came to the conclusion that the Import parameters, stated bellow are of wrong file type / length:
    u2022     I_SAVE_STEP     TYPE     C
    u2022     I_PACKING_ACTIVITY     TYPE     C
    u2022     I_PACK_TYPE     TYPE     C
    Please see the picture bellow:
    [pic1|https://photos-1.dropbox.com/i/o/rxYQUhHzQaBUWNTUAmo8WMQHWXCD8oOeBSg4TOqFHBc/204699/1317888000/9aef875/01.png]
    Some further technical info:
    u2022     When the function module is called the input parameters are compared to the constants, declared in the Include: RLMOBDDL, please see pictures bellow
    [pic2|https://photos-2.dropbox.com/i/o/LIKxPZdNN8jSf18uM8SkNN5BAjomb0MG8mNOID3xeCE/204699/1317888000/c94cd10/02.png]
    u2022     The FM is called with the input parameters:
    o     I_SAVE_STEP = ITEM
    o     I_PACKING _ACTIVITY = PACK
    o     I_PACK_TYPE = MAT
    u2022     Input parameters are of the type C u2013 the default length is only ONE. Because of that the input parameters are trimmed down to length 1, so the FM actually works with wrong values:
    o      I_SAVE_STEP = I
    o     I_PACKING _ACTIVITY = P
    o     I_PACK_TYPE = M
    u2022     The wrong values are then compared to the constants which are length 2, 3 and 4, as shown in the picture bellow.
    [pic3|https://photos-3.dropbox.com/i/o/-LMF6MJiG_rFhZ4p9bxldorpUo-aVX_HjRU2RnMxsro/204699/1317888000/e5c2f1b/03.png]
    So the FM PROCESS_HU_INBOUND_DLVRY does actually nothing, because the comparing of the input parameters with CONSTANTS fails.
    Thanks in advance.
    Kind regards,
    M

    Hi Marko,
    call the fm in test mode (F8) and you will see, that these parameters are not of type C(1) but C without limited length. You can call it with varaiable parameter length for these parameters.
    Regards,
    Klaus

  • KM API: Need to add LastModified in input parameters

    Hi All,
    I am trying to add LastModified parameter in my input selection. i already have Service area, country, owner and Document Category as my input parameters. Also i need to select Date from calender.
    Thanks
    Sweta

    Hi Again,
    let me clarify more.
    i am using KM reports. for this i have to use LastModified as my input parameter. in my code i have already added LastModified as my input parameter which is selectin date from calender, but i want it to choose date in from-to format i.e it shoud select date range. Also, i need to know how i can filter my data on the basis of LastModified option.
    i need it urgently. Can anyone help me out on this.
    thanks
    Sweta Sharma
    Edited by: Sweta Sharma8 on Apr 29, 2010 11:31 AM

  • Odata and Input Parameters

    Hello Experts,
    I have an Odata Service with multiple Input Parameters. I am creating a Dialog to allow user to enter values for Input Parameters and then show my Odata Model in a Table.
    I have two questions:
    1.) I will create a dialog that will contain Textboxes for entering Input parameters. Now I want to know how to pass these Text field values to my Odata Input Parameters.
    2.) I want my Dialog to be loaded first - As soon as I launch my index.html file - I want the dialog to appear and after entering Input Parameters, I want to load my Odata Model in table. How to achieve it?
    Regards,
    Rohit

    Hi Maksim,
    Thanks for your reply
    For now I am not using dialog but am using a panel to get input parameters and then another panel to show the table.
    I have created the panels as follows:
    The code is:
    sap.ui.jsview("testid.testr", {
           getControllerName : function() {
                  return "testid.testr";
           createContent : function(oController) {
    var updatePanel = new sap.ui.commons.Panel("updPanel").setText('Enter Input Parameters');
    var layoutNew = new sap.ui.commons.layout.MatrixLayout({width:"auto"});
                 var oVal1 = new sap.ui.commons.TextField("cArea",{tooltip: "Controlling Area", width: "200px", editable:true});
                 var oVal2 = new sap.ui.commons.TextField("sDate",{tooltip: "Start Date", width: "200px", editable:true});
                 var oVal3 = new sap.ui.commons.TextField("eDate",{tooltip: "End Date", width: "200px", editable:true});                
                 var oExcButton = new sap.ui.commons.Button({
                     text : "Submit"});
                 layoutNew.createRow(new sap.ui.commons.Label({text: "Controlling Area: "}), oVal1 ); 
                        layoutNew.createRow(new sap.ui.commons.Label({text: "Start Date: "}), oVal2 );
                        layoutNew.createRow(new sap.ui.commons.Label({text: "End Date: "}), oVal3 ); 
                        layoutNew.createRow(new sap.ui.commons.Label(),oExcButton);
                 updatePanel.addContent(layoutNew);
                 var tPanel = new sap.ui.commons.Panel("tbPanel").setText('Table');
                 var oModel = new sap.ui.model.odata.ODataModel("/Test/View/Services/testcv.xsodata/",false);
                         var oTable = new sap.ui.table.Table("TestTab",{tableId: "tableID",
                               visibleRowCount: 7,
                               firstVisibleRow: 3,
                               selectionMode: sap.ui.table.SelectionMode.Single,
                               navigationMode: sap.ui.table.NavigationMode.Paginator,
                               fixedColumnCount: 2
                         oControl = new sap.ui.commons.TextField({editable:false}).bindProperty("value","SAPClient");
                          oTable.addColumn(new sap.ui.table.Column({label:new sap.ui.commons.Label({text:"SAP Client"}),
                                template: oControl, sortProperty: "SAPClient", filterProperty: "SAPClient", width: "125px" }));
                          oControl = new sap.ui.commons.TextField({editable:false}).bindProperty("value","ControllingArea");
                          oTable.addColumn(new sap.ui.table.Column({label:new sap.ui.commons.Label({text:"Controlling Area"}),
                                template: oControl, sortProperty: "ControllingArea", filterProperty: "ControllingArea", width: "125px" }));
                          oTable.setModel(oModel);
                               var sort1 = new sap.ui.model.Sorter("CostCenter");
                                oTable.bindRows("/TestCalcView", sort1);
                 tPanel.addContent(oTable);
                 var oLayout = new sap.ui.commons.layout.VerticalLayout("Layout1",{
                    content: [updatePanel,tPanel]
                 //oLayout.createRow(updatePanel);
                 oLayout.setWidth('auto');
                    return oLayout;
    I want that when I click on Submit button the data is loaded in the table.
    Can you please let me know where to define the Input Parameters of Odata Service
    Can you please help me in how to get the values of textfields and how to pass them as Input parameters to Odata.
    Regards,
    Rohit

  • Duplicating Data Sets depending on input parameters

    I originally posted this question as part of Oracle Reports but I think its not really an Oracle Report issue, its more an SQL Issue. I am on Oracle 9i.
    I need to generate a Report that is based on a maximum of 6 input parameters.
    Three of them belong to Customer ID# and 3 belong to Number of Copies that need to be printed on the Report.
    Parameters for Customers: P_CUST_ID1, P_CUST_ID2, P_CUST_ID3
    Parameters for the Number of Copies: P_N1, P_N2, P_N3
    So, at any given point, there could be a maximum of 3 Customer ID's passed to the main query. Here is an example of what the input parameters could look like.
    User chose to enter values for Customer ID's 1 and 2 and left it blank for Customer 3.
    Customer ID1   1001         Number of Copies   2
    Customer ID2   1002         Number of Copies   3
    Customer ID3   ----         Number of Copies   -The Query that retrieves data looks something like this. The query below is intended to fetch Customer Home and Office Addresses.
    Of course, it is possible that there might be No home or Office Address or both.
    SELECT    c.cust_no,
              c.saln||c.first_name||' '||c.last_name cust_name,
              a.address_type,
              a.street,
              a.city||' '||a.province||' '||a.postal_code city,
              '('||a.tel_area||') '||a.tel_number telephone
    FROM      customer c, customer_address a
    WHERE     c.cust_no = a.cust_no
    AND       c.cust_no IN (:P_CUST_ID1, :P_CUST_ID2, :P_CUST_ID3);Based on my query:
    Customer ID 1001 has 3 Addresses (2 Home and 1 Office) --> Total number of Records = 3
    Customer ID 1002 has 2 Addresses (1 Home and 1 Office) --> Total number of Records = 2
    The output should be something like this. I have put a Label Copy1, Copy2 and Copy3 to show
    how the data will appear for readability.
    Cust No Customer Name      Address Type    Address Line 1         Address Line 2        Telephone
    Copy1
    1001    Mr Robert Green    H               2100 Picket Fences     Vancouver BC V6E 2C9 (604)726-5555
    1001    Mr Robert Green    H               2300 Happy Valley      Vancouver BC V6G 2N8 (604)308-5555
    1001    Mr Robert Green    O               1200 Davie Street      Vancouver BC V1V 1X1 (604)211-5555
    Copy2
    1001    Mr Robert Green    H               2100 Picket Fences     Vancouver BC V6E 2C9 (604)726-5555
    1001    Mr Robert Green    H               2300 Happy Valley      Vancouver BC V6G 2N8 (604)308-5555
    1001    Mr Robert Green    O               1200 Davie Street      Vancouver BC V1V 1X1 (604)211-5555
    Copy1
    1002    Ms Cynthia Brown   H               261 King Street W      Calgary AB M5A 1N1   (416)432-5555
    1002    Ms Cynthia Brown   O               150 Bloor St W         Calgary AB M1W 1S3   (416)321-5555
    Copy2
    1002    Ms Cynthia Brown   H               261 King Street W      Calgary AB M5A 1N1   (416)432-5555
    1002    Ms Cynthia Brown   O               150 Bloor St W         Calgary AB M1W 1S3   (416)321-5555
    Copy3
    1002    Ms Cynthia Brown   H               261 King Street W      Calgary AB M5A 1N1   (416)432-5555
    1002    Ms Cynthia Brown   O               150 Bloor St W         Calgary AB M1W 1S3   (416)321-5555Scripts for the table creation and INSERTs
    CREATE TABLE CUSTOMER
        "CUST_NO"    VARCHAR2(4 BYTE) NOT NULL,
        "SALN"       VARCHAR2(4 BYTE),
        "FIRST_NAME" VARCHAR2(20 BYTE),
        "LAST_NAME"  VARCHAR2(20 BYTE),
        CONSTRAINT "CUSTOMER_PK" PRIMARY KEY ("CUST_NO")
    Insert into CUSTOMER values ('1001','Mr','Robert','Green');
    Insert into CUSTOMER values ('1002','Ms','Cynthia','Brown');
    Insert into CUSTOMER values ('1003','Dr','David','Taylor');
    CREATE TABLE CUSTOMER_ADDRESS
        "CUST_NO"      VARCHAR2(4 BYTE) NOT NULL ENABLE,
        "ADDRESS_TYPE" VARCHAR2(1 BYTE) NOT NULL ENABLE,
        "STREET"       VARCHAR2(20 BYTE),
        "CITY"         VARCHAR2(20 BYTE),
        "PROVINCE"     VARCHAR2(2 BYTE),
        "POSTAL_CODE"  VARCHAR2(10 BYTE),
        "TEL_AREA"     VARCHAR2(3 BYTE),
        "TEL_NUMBER"   VARCHAR2(10 BYTE)
    Insert into CUSTOMER_ADDRESS values ('1001','H','2100 Picket Fences','Vancouver','BC','V6E 2C9','604','726-5555');
    Insert into CUSTOMER_ADDRESS values ('1001','H','2300 Happy Valley','Vancouver','BC','V6G 2N8','604','308-5555');
    Insert into CUSTOMER_ADDRESS values ('1001','O','1200 Davie Street','Vancouver','BC','V1V 1X1','604','211-5555');
    Insert into CUSTOMER_ADDRESS values ('1002','H','261 King Street W','Calgary','AB','M5A 1N1','416','432-5555');
    Insert into CUSTOMER_ADDRESS values ('1002','O','150 Bloor St W','Calgary','AB','M1W 1S3','416','321-5555');
    Insert into CUSTOMER_ADDRESS values ('1003','O','435 Richmond Street','Calgary','AB','M5A 4T6','416','453-5555');Any help or pointers in this regard would be great.
    I could have adopted a procedure to use Temporary tables but I really would prefer not going in that direction as there could be quite a few reports that need to be generated in this manner.
    Thanks and have a great weekend.

    Hi,
    Roxyrollers wrote:
    Hi Frank,
    Here is my piece of code that I was working on Friday... Okay, but what's wrong with the solution I posted on Saturday?
    WITH     report_parameters     AS
         SELECT  :p_cust_no_1 AS cust_no, :p_no_copies_1 AS no_copies  FROM dual  UNION ALL
         SELECT  :p_cust_no_2 AS cust_no, :p_no_copies_2 AS no_copies  FROM dual  UNION ALL
         SELECT  :p_cust_no_3 AS cust_no, :p_no_copies_3 AS no_copies  FROM dual
    ,     cntr          AS
         SELECT     LEVEL     AS n
         FROM     (
                   SELECT  MAX (no_copies)     AS max_no_copies
                   FROM     report_parameters
         CONNECT BY     LEVEL     <= max_no_copies
    SELECT    c.cust_no,
              c.saln||c.first_name||' '||c.last_name cust_name,
              a.address_type,
              a.street,
              a.city||' '||a.province||' '||a.postal_code city,
              '('||a.tel_area||') '||a.tel_number telephone
    ,       t.n                -- If wanted
    FROM      customer           c
    ,        customer_address   a
    ,       report_parameters  p
    ,       cntr               t
    WHERE     c.cust_no           = a.cust_no
    AND       c.cust_no           = p.cust_no
    AND       p.no_copies          >= t.n
    ORDER BY  c.cust_no
    ,       t.n
    ,            a.address_type
    ;Output, given your sample data and parameters:
    CUST CUST_NAME       A STREET               CITY                      TELEPHONE                 N                                                    
    1001 MrRobert Green  H 2100 Picket Fences   Vancouver BC V6E 2C9      (604) 726-5555            1                                                    
    1001 MrRobert Green  H 2300 Happy Valley    Vancouver BC V6G 2N8      (604) 308-5555            1                                                    
    1001 MrRobert Green  O 1200 Davie Street    Vancouver BC V1V 1X1      (604) 211-5555            1                                                    
    1001 MrRobert Green  H 2100 Picket Fences   Vancouver BC V6E 2C9      (604) 726-5555            2                                                    
    1001 MrRobert Green  H 2300 Happy Valley    Vancouver BC V6G 2N8      (604) 308-5555            2                                                    
    1001 MrRobert Green  O 1200 Davie Street    Vancouver BC V1V 1X1      (604) 211-5555            2                                                    
    1002 MsCynthia Brown H 261 King Street W    Calgary AB M5A 1N1        (416) 432-5555            1                                                    
    1002 MsCynthia Brown O 150 Bloor St W       Calgary AB M1W 1S3        (416) 321-5555            1                                                    
    1002 MsCynthia Brown H 261 King Street W    Calgary AB M5A 1N1        (416) 432-5555            2                                                    
    1002 MsCynthia Brown O 150 Bloor St W       Calgary AB M1W 1S3        (416) 321-5555            2                                                    
    1002 MsCynthia Brown H 261 King Street W    Calgary AB M5A 1N1        (416) 432-5555            3                                                    
    1002 MsCynthia Brown O 150 Bloor St W       Calgary AB M1W 1S3        (416) 321-5555            3                                                     WITH DOES work in Oracle 9.1, and higher. Are you getting an error message that starts with "SP"? Those are SQL*Plus errors, that occur before your code is even sent to the database. In extremely old versions of SQL*Plus, a statement cannont begin with the keyword WITH. The best solution is to upgrade SQL*Plus, but you could also re-wqrite the query so WITH is not the first word of the statement. In this case, you could also use in-line views instead of WITH.
    I tried to generate duplicate data sets as a Sub-Query like RP suggested and it seems to be working except the ordering seems to be messed up for Mr Robert Green. The correct order should have been Home, Home, Office and then Home, Home, Office again...The order above seems to be what you want, but there are many different reasons why a small set of sample data might just happen to appear in the right order.
    Explain why you want that order. If you can say what you want in English, somebody can help you code it in SQL.
    I don't recommend any solution that uses UNION. It will be inefficient, and difficult to debug and to maintain.

  • ORA-22275 inserting into the CLOB column using ODBC input parameters

    Hi all,
    I'm having problem with INSERT into the CLOB column via bound input parameters.
    After calling SQLExecDirect() I'm getting following error:
    [Oracle][ODBC][Ora]ORA-22275: invalid LOB locator specified
    Adding defaults to the table definitions does not help. If I embed parameter values into the SQL statement - everything works just fine.
    I use Oracle 9.2 with latest Oracle ODBC driver 9.2.0.4 under Windows XP.
    Any ideas appreciated...
    Vlad
    Code looks like this:
    SQLBindParameter(hstmt,1,...);
    SQLBindParameter(hstmt,2,...);
    SQLBindParameter(hstmt,3,...);
    SQLExecDirect(hstmt,...);
    SQL statement looks like this:
    insert into tst_table (id,str_fld,clob_fld1,clob_fld2) values (50, ? , ? , ?)
    Table looks like this:
    CREATE TABLE tst_table (
         id          number (10,0)     NOT NULL ,
         str_fld          nvarchar2 (50)     NOT NULL ,
         clob_fld1     nclob          NOT NULL ,
         clob_fld2     nclob          NOT NULL ,
         CONSTRAINT PK_tst_table PRIMARY KEY
              id
    I tried to add defaults to the table, but result is the same:
    CREATE TABLE tst_table (
         id          number (10,0)               NOT NULL ,
         str_fld          nvarchar2 (50)               NOT NULL ,
         clob_fld1     nclob     default EMPTY_CLOB()     NOT NULL ,
         clob_fld2     nclob     default EMPTY_CLOB()     NOT NULL ,
         CONSTRAINT PK_tst_table PRIMARY KEY
              id

    You need to provide the data at execution time (i.e. SQL_LEN_DATA_AT_EXEC(0) in the SQLBindParameter followed by a series of SQLPutData calls). If you go to Metalink
    Top Tech Docs | Oracle ODBC Driver | Scripts & Sample Code
    has some sample code that shows you how to do this.
    Justin

  • Pluggable Mappings and Input Parameters

    Hi All,
    I have a mapping which receives 2 input parameters. I have created a pluggable mapping to which I would like to pass those same values. Is is possible to pass parameter values into a pluggable mapping such that these values are NOT part of the input signature?
    thanks
    Ok, I have more information. When I deploy my mapping, I found the following code commented out of the main procedure:
    -- register custom input parameters:
    -- Temp fix until selective registration ensures correct handling of complex types
    -- wb_rt_mapaudit_util.register_custom_param(x_audit_id,
    -- '"MY_PARAM"',
    -- TO_CHAR("MY_PARAM"));
    What is the "selective registration" that they mention and how do I do it?
    thanks, again
    Edited by: philip_b on Mar 26, 2010 8:39 AM

    Thanks for responding David. I am using Client: 10.2.0.1.31 and Repo: 10.2.0.1.0
    I was hoping I didn't have to include it in the signature because I didn't want these values to be part of the incoming dataset; that just complicates the mapping logic for me.
    It would make sense to me that the pluggable mapping should have access to the parent mapping's parameter values.
    Why is the parameter registration code commented out inside the generated package? Do you know what it is referring to when it mentions "selective registration"? I can't find any reference to it:-/
    Someone else had the same issue last year on the following thread, but there were no responses to the issue:
    wb_rt_mapaudit_util register_custom_param call commented out in gen'd sql

  • SAP HANA Input parameters in SAP BO Analysis

    Hi, dear experts.
    Please help me with one problem in SAP BO Analysis. Problem is: in sap hana studio i made calculation view that has some input parameters (Param. type - Direct, Sematic Type - Date, Data type - Date). Then i made filter with this parameters in one of projection of my calculation view. When i push data preview in Hana Studio all input parameters are ready to input and they also have "Value help dialog". All is great! SAP HANA Studio version is 1.0.7000 (Build id: 386119). HANA DB version is 1.00.70.00.386119.
    On workstation i installed SAP BO Analysis edition for Microsoft Office 32-bit and driver for SAP HANA 70 Client Win32, made ODBC connection to HANA server. From SAP BO Analysis I found my view and started it. I see my input parameters, and see "value help dialog", but i can't choose value: it's not available for input. Here is the problem: what i have to do to enter the parameters?
    I also try to use variable but value help dialog is empty. Please help me with this issue.
    Message was edited by: Tom Flanagan

    Hello Andrei,
    Tested on:
    HANA Rev 70
    Have tested for variables and the value help is coming.
    Regards,
    Krishna Tangudu

  • How to create a list of Input Parameters ? (BAPI)

    Hi guys,
    I'm executing a BAPI in my webdynpro app, the Bapi has various input parameters (simple and structure).  
    I needed to fill an input structure, and that was ok... BUT, now I need to create and fill dynamically the same input structure but with more than 1 record. 
    Example
    -->MyBAPI
    >MyStructure (1)
    >MyStructure (2)
    >MyStructure (3)
    >MyStructure (...n)
    I have tried to create nodes dynamically but I just receive errors.. =(  
    Could you recommend me anything ?
    Thanks and regards
    Diego

    Hi,
    You could use one of the following methods to add more than one element to a node of upper cardinality greater than one.
    MyBAPI.MyStructure.addElement(int arg0, IWDNodeElement arg1)
    MyBAPI.MyStructure.addElement(IWDNodeElement arg0)
    Incase the MyBAPI node is a model node you could also use
    MyBAPI.MyStructure.bind(Collection arg0)
    Thanks and Regards,
    Sam Mathew

Maybe you are looking for