Syntax for calling method

Hi,
   I've a component controller : Z_FPM_SPL_REC_SD, which is used a shared data component in my WD application.
It has a method: read_tspl_obj.
The usage defined in another component for it is: Z_FPM_SPL_REC_SD.
I want to call this method read_tspl_obj in process_event method of this component.
What shall be the syntax for the same?
Thanks in advance!
Rohit.

try this
String b = (String)am.invokeMethod("getValue", params);
Thanks,
Prasanna

Similar Messages

  • Syntax for calling html page in PL/SQL package

    Hi,
    I'm trying to call html page (stored on server) in my pl/sql package!
    I have already create html page in pl/sql package code and it's works fine.
    Now create better html page (interface design) and stored on server. I would like to call that stored html page in my pl/sql package.
    What is syntax for calling html page in PL/SQL or could you suggest me some literature.
    In first option I had created ces and stored it on server. Then I call it in pl/sql package like htp.p('<link rel="stylesheet" href="\download\table_style.css" type="text/css">');
    I try someting like that for calling html page but it doesn't works.
    htp.p('<link rel="form" href="\download\interface.htm" type="text/html">');
    Does anyone know syntax for calling html page in pl/sql?!?
    Thanks!

    hello
    I normally use htp.anchor(URL,linkname);
    it works
    ammar sajdi
    www.e-ammar.com/Oracle.htm

  • Required syntax for calling a subscreen.

    hi,
    Can any one tell me the syntax for calling a subscreen.
    my task is to display both bar chart and pie chart adjacently in a single screen.
    Thanks.
    samyu.

    First you define a Subscreen area in the layout of the Screen where you want to call the Subscreen.
    For example the main Screen is ' 0100'.
    The Subscreen Area is ' SSA1' and the Subscreen is ' 0200'.  
    Then in the Flow logic of screen ' 0100' write the following code.
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0100.
    CALL SUBSCREEN SSA1 INCLUDING SY_REPID '0200'.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_0100.
    CALL SUBSCREEN SSA1.
    ===========================================
    The Syntax is :
    CALL SUBSCREEN Subscreen Area INCLUDING Program name 'Subscreen Number'.. 
    Plz reward if it helps..

  • What is the exact syntax for calling remote function module.

    Hi to all
    1.....what is the exact syntax for calling remote function module.?
    Thanks and regards,
    k.swaminath reddy

    hi
    good
    Lets do simple example where you will first create a RFC in one server (say A) and create normal program in othere server (say B). Finally you will call the RFC in A from B.
    Do the following steps for creating RFC in server A.
    1. log on to server A
    2. go to se37
    3. Edit -> function groups-> create function group and give the function group name (say ZGRP).
    4. create a FM ( say Z_TEST_RFC) in se37 providing the function group which is created just now.
    5. go to attribute tab -> choose remote-enabled module from processing type.
    so that your FM will become RFC.
    6. provide the import parameter in import tab.
    we will provide only two import parameters.
    - parameter name : P_NUM1, typing: TYPE, associated type : I & check the pass value (all the parameters of RFC must pass by value).
    - parameter name : P_NUM2, typing: TYPE, associated type : I & check the pass value
    7. provide the export parameter in export tab.
    parameter name : P_SUM, typing: TYPE, associated type : I & check the pass value
    8. write the given simple code in source code tab.
    FUNCTION Z_TEST_RFC.
    P_TOT = P_NUM1 + P_NUM2.
    ENDFUNCTION.
    Do the following steps for creating ABAP program which will call the RFC in server B.
    1. se38 - > creat a program.
    2. write the given simple code.
    data tot type i.
    call function 'Z_TEST_RFC' destination 'XXXXXX'
    exporting
    p_num1 = 10
    p_num2 = 15
    importing
    p_tot = tot.
    write tot.
    please note that XXXXXX is RFC connection which is avialable in sm59 transaction in server A.
    -go to sm59 - > abap connection (list of RFC connection configurations are avialable). choose server B connection and replace it of XXXXXX in the code.
    finally you can execute the normal abap program that will call the RFC and display the result.
    reward point if helpful.
    thanks
    mrutyun^

  • Syntax for calling Stored procedures?

    Seems straightforward but I just can get the syntax.
    Here's the procedure defined in SQL
    CREATE Procedure usp_InsTest
    @title varchar(150),
    @length int,
    @catid int,
    @date datetime,
    @filename varchar(50),
    @typeid int,
    @desc varchar(2000),
    @statusid int,
    @assign char(1),
    @languageid int = null
    as
    Insert into test(TestTitle,TestLength,TestCatID,TestDate,TestFileName,
    TestTypeID,TestDesc,TestStatusID,TestIsAssigned,
    TestLanguageID)
    values (@title,@length,@catid,@date,@filename,@typeid,@desc,
    @statusid,@assign,@languageid)
    GO
    I have tried a number of ways. What is the correct sytax for calling a stored procedure with variables?

    Here's what I've come up with...
    Connection dbConn;
    Driver d = (Driver)Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
    String URL = "jdbc:odbc:" + "cms";
    dbConn = DriverManager.getConnection(URL, "sa", "");
    CallableStatement s;
    String x = "{call usp_InsTest(@title,@length,@catid,@date,@filename,@typeid,@desc,@statusid,@assign,@languageid)}";
    Calendar c = Calendar.getInstance();
    s = dbConn.prepareCall(x);
    s.setString(1,TestTitle);
    s.setInt(2,Integer.parseInt(TestLength));
    s.setInt(3,6);
    s.setDate(4,new java.sql.Date(System.currentTimeMillis()));
    s.setString(5,TestFileName);
    s.setInt(6,Integer.parseInt(TestTypeID));
    s.setString(7,"Test Description");
    s.setInt(8,Integer.parseInt(TestStatusID));
    s.setInt(9,Integer.parseInt(TestIsAssigned));
    s.setInt(10,1);
    ResultSet r = s.executeQuery();
    I get
    java.lang.NullPointerException
    at sun.jdbc.odbc.JdbcOdbcPreparedStatement.clearParameter(Unknown Source)
    at sun.jdbc.odbc.JdbcOdbcPreparedStatement.setChar(Unknown Source)
    at sun.jdbc.odbc.JdbcOdbcPreparedStatement.setString(Unknown Source)
    at CMSBatch.addToDatabase(CMSBatch.java:242)
    at CMSBatch.actionPerformed(CMSBatch.java:312)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    Line 242 is the first setString.
    Is my prepareCall statement correct?

  • Syntax for calling 1000 screen(abap o/p screen) from screen 200.

    Hi all,
    i need to change the SAP program relating to the transaction QA32.i have already changed the program & i added 2 screens in this program by using CALL SCREEN syntax.
    my problem is
    when i execute YQA32 (copy of QA32 with modification) transaction, i am getting the output in the screen 1000.when i double click on any material on that screen (1000), the control will go to screen 200 (CALL SCREEN 200).
      everything is going fine. but in screen 200, i have putted a 'BACK' push button. if i will press 'BACK' on screen 200, it should go to screen 1000 which is normal ABAP output screen(here,the output screen of YQA32).
    if i will put syntax like LEAVE TO SCREEN 1000 OR LEAVE PROGRAM OR LEAVE SCREEN, IT IS NOT WORKING. the control is directly going to program if i will add LEAVE PROGRAM.
    what syntax i need to use to come to screen 1000 from screen 200 in the BACK user command of screen 200.plz suggest.
    Thanks & Regards
    pabitra

    Hi joseph,
    thanks for ur help.The output of QA32 transaction  is comming on the sap standard selection screen '1000'. i am not creating this screen.i just modified sap program relating to transaction QA32 & named it as YQA32.This program is ALV designed.u can check transaction QA32.
      when i will put some data in the selection screen of YQA32 then i will go for execute, then my output comes on screen 1000 which is standard abap screen.i have not created screen 1000. from screen 1000, my control goes to other screen 200 by CALL SCREEN 200 statement.
    so when  i want to back to screen 1000 from screen 200 , i am writting LEAVE TO SCREEN 1000  in the  'BACK' user command of screen 200.but error is comming as screen 1000 does not exist.so plz suggest any syntax for this BACK operation.
    Regards
    pabitra

  • What is the syntax for calling function from class file by jsp

    does anyone here knows what is the syntax of how to call a function from java class file by javascript code or any way to call it?
    and where should i put the calling function code? because the function is called depend on the user click.
    for example
    <%=pc.functionName(a,b)%>
    for the variable a and b, how can i get the value from html textbox and put it in a and b...
    urgent needed...
    thx

    Jsp's are executed before the Html forms are created and loaded. Dont try to use a java code function calling on a javascript click. You'll have to explicitly redirect it into a servlet where in you can call the function you want.
    Well! another way could be using AJAX. That seems to be powerfull enough and it might also serve your purpose.
    Hope this helps

  • Syntax for calling a form & passing a query condition

    I have a stored PL/SQL procedure where I am attempting to link to a master detail form from a button created in the procedure. The procedure is called from a form based on a table.
    I want to pass an id from the first form to the second when the user clicks the button and have that id bring up the master record in the calling form (query condition to be automatically executed).
    I am using the Portal technical FAQ 10.10 as a reference. However, I must be off in the syntax. Here's what I have:
    objectId - contains id from calling form
    OBJECT_ID - column name in called MD form
    elsif (button = 'Subject Matters') then
    PORTAL30.wwa_app_module.link(
    p_arg_names =>
    PORTAL30.wwv_standard_util.string_to_table2('_moduleid:_show_header:OBJECT_ID:_OBJECT_ID_cond'),
    p_arg_values =>
    PORTAL30.wwv_standard_util.string_to_table2('2215270925:YES:'&#0124; &#0124;to_char(objectID)&#0124; &#0124;':%3D'));
    The best I get is the id passed and the called form opened in INSERT mode.
    I have been playing with this for days!
    If anyone spots the error in my code and could point it out, I'd greatly appreciate it.
    Regards,
    Judy

    try this
    String b = (String)am.invokeMethod("getValue", params);
    Thanks,
    Prasanna

  • Syntax for calling on variable movie slip within its parent

    I know my syntax is wrong based on the error I am getting, but I can't figure out any other way to do this:
    Code:
    var menuButtons:Array=["home","liveIntense","liveAblaze","liveBright","liveClean","about","co ntact","shirts","soaps","stickers","blog"];
    for (var i:uint=0; i<menuButtons.length; i++) {
              addButtonListeners(menuButtons[i],menuButtons_mc,clickF);
    function addButtonListeners(buttonName:String,buttonParent:MovieClip,clickFunction:Function):void {
              var button= new buttonParent_mc();
              buttonParent.addChild(button);
              button.x=buttonParent.this[buttonName+"_btn"].x;
              button.y=buttonParent.this[buttonName+"_btn"].y;
              buttonParent.this[buttonName+"_btn"].visible=false;
    Output:
    1084: Syntax error: expecting identifier before this.
    I know the issue is here: buttonParent.this[buttonName+"_btn"].x
    how can I call on moveiclips with different names that are within anothe movie clip?
    Thanks!

    use:
    var menuButtons:Array=["home","liveIntense","liveAblaze","liveBright","li veClean","about","contact","shirts","soaps","stickers","blog"];
    for (var i:uint=0; i<menuButtons.length; i++) {
              addButtonListeners(menuButtons[i],menuButtons_mc,clickF);
    function addButtonListeners(buttonName:String,buttonParent:MovieClip,clickFunc tion:Function):void {
              var button= new buttonParent_mc();
              buttonParent.addChild(button);
              button.x=buttonParent[buttonName+"_btn"].x;
              button.y=buttonParent[buttonName+"_btn"].y;
              buttonParent[buttonName+"_btn"].visible=false;

  • DLL C/C++ syntax for Call Library Function Node

    Hello,
    I am interested in calling DLL from Labview and found several intersting tutorials on the Call Library Function Node. One interesting tutorial is Building a DLL with Visual C++ http://zone.ni.com/devzone/cda/tut/p/id/3056
    One can notice in the example presented in this tutorial that the parameters that are outputs of the exported function are of type pointers. And I am curious about the theory behind this. 
    I looked also at the example in LabVIEW Call DLL.vi and it seems that all outputs are pointers to the desired data type.
    I tried to write a short code where I assign a new value for one parameter in the export function. But this value is not updated in Labview. To make it clear: assume 50 is passed to an input parameter (on the left side of the Call Lib func Node). In the function, i assign 100 to this variable and expect this value on the output in Labview (right side indicator of Call Node) but the output remains 50.
    I am trying to change my code but i get errors in linking (compiling is ok) that I cannot understand. LINK : fatal error LNK1168: cannot open Debug/DoseDLL.dll for writing
    Error executing link.exe.
    I don't get any error with the code provided in the above tutorial   so i am trying to reproduce a similar code...
    Thank you

    Hello,
    Please find attached the source code in C, the DLL and the vi. 
    you notice in the C code that I set variable dose=100 and this is the value I would like to export as an output for labview (right side of Node) for whatever value in the input (i put 50 for input dose). In the current code, the same value of input dose (50) is passed to the output (i assume it has to do with the reference ?). The idea is that variables dose and rate should be set/calculated in the DLL function. 
    Thank you!
    Attachments:
    DoseDLL3.cpp ‏1 KB
    DoseDLL.vi ‏8 KB

  • Help  For Calling Method........!

    I am confused about a problem. When I access the method of EJB A: such as UpdJob(),it works seccessfully,
    also it is successful when access EJB B: insert(...).
    But when I call the both methods at the same time in a method:
    public void bothmethod(){
    B.insert();..........(the method of EJB B)
    A.UpdJob();........(the method of EJB A)
    the result is that the B.insert() is success and the B.UpdJob failed with exception: No Resource Available,ejbStore failed,getConnection...
    It looks failed to connect the database.
    I don't know what's the matter,who can tell me?
    Thanks in advance.

    you may have closed some resources in calling the B.insert(), and then not establish that resource before calling A.UpdJob()

  • Lotus Notes search syntax for GetResourceObjects method

    This works for finding something that "contains" a value:
    <s>searchFilter</s>
    <concat><s>@IsAvailable(ShortName) amp;@Contains(@LowerCase(ShortName);"</s><downcase><ref>accountId</ref>
    </downcase><s>")</s></concat>
    What is the syntax if I need an exact match? Tried "=" and @IsEqual
    Thanks in advance, -T-

    In case anyone cares, the syntax that works is:
    <concat>
    <s>@IsAvailable(ShortName) & "</s>
    <downcase>
    <ref>accountId</ref>
    </downcase>
    <s>"=ShortName</s>
    </concat>

  • ADO Database Connection: Need help with correct syntax for 'Execute' Method

    My server Windows 2008R2 taking more than 30 hours to complete backup
    so next backup getting fail
    is there any option to set start backup after 24 hours if previous backup complete

    I have a script that I am trying to cobble together, but I am stuck at attempting to execute an SQL query against and ADO connection. My code is as follows:Powershell $FQDNUpper = $Computer.ToUpper() + ".domain.dn1.dn2" $FQDNLower = $Computer.ToLower() + ".domain.dn1.dn2" $shell = New-Object -ComObject "Wscript.Shell" # for use later in script $cnn = New-Object -ComObject "ADODB.Connection" $cnn.ConnectionString = "Connection_String" $cnn.Open() $query = "SELECT CAST(ID AS nvarchar(50)) ID FROM Machine WHERE Name=$FQDNUpper AND Role = 0" $rs = $cnn.Execute($query,' ',1) #If statement that will qualify if $FQDNUpper returned anything else try $FQDNLowerWhen executing the code I receive an error:
    PowershellArgument: '2' should be a System.Management.Automation.PSReference. Use [ref].At line:9 char:5+ $rs = $cnn.Execute($query,' ',1)+ ...

  • Syntax for how to call method of one comp in other comp     wd java.

    Let us assume,
    there is method1 in view1 comp1.
    tell me syntax for calling method 1 in view2 comp2
    thanks in advance.
    Edited by: madhu1011 on Nov 9, 2011 11:31 AM

    Hi Madhu,
    This is the situation:
    comp1-> method 1 , view1
    comp2-> view2
    You need to access method1  in view2 of comp2.
    For that, do the following steps:
    1.) First create a method (for eg: method1) in comp1 (under implementation of view1).
            eg: public void method1(){
                    <......some logic...>
    2.)Save the meta data.
    3.) In comp2, you will find an option called used components. In that right click and add the component comp2. (Carefully select comp1 itslef).
    4.)Save the meta data.
    5.) Then go to view2 of comp2 and take implementaion part and right the following logic in wddoinit() (or any other standard or custom method).
    wdThis.wdGetComp2Interface().getMethod("method1"); 
    By this way, we can access the method1 of comp1 in comp2.
    Regards,
    Jithin

  • Best practice for calling application module methods and plsql code

    In my application I am experiencing problems with connection pooling, I seem to be using a lot of connections in my application when only a few users are using the system. As part of our application we need to call database procedures for business logic.
    Our backing beans, call methods on the application module which in turn call a database procedure. For instance in the backing bean we have code like this to call the application module method.
    // Calling Module to generate new examination/test.
    CIGAppModuleImpl appMod = (CIGAppModuleImpl)Configuration.createRootApplicationModule("ky.gov.exam.model.CIGAppModule", "CIGAppModuleLocal");
    String testId = appMod.createTest( userId, examId, centerId).toString();
    AdfFacesContext.getCurrentInstance().getPageFlowScope().put("tid",testId);
    // Close the call
    System.out.println("Calling releaseRootApplicationModule remove");
    Configuration.releaseRootApplicationModule(appMod, true);
    System.out.println("Completed releaseRootApplicationModule remove");
    return returnResult;
    In the application module method we have the following code.
    System.out.println("CIGAppModuleImpl: Call the database and use the value from the iterator");
    CallableStatement cs = null;
    try{
    cs = getDBTransaction().createCallableStatement("begin ? := macilap.user_admin.new_test_init(?,?,?); end;", 0);
    cs.registerOutParameter(1, Types.NUMERIC);
    cs.setString(2, p_userId);
    cs.setString(3, p_examId);
    cs.setString(4, p_centerId);
    cs.executeUpdate();
    returnResult=cs.getInt(1);
    System.out.println("CIGAppModuleImpl.createTest: Return Result is " + returnResult);
    }catch (SQLException se){
    throw new JboException(se);
    finally {
    if (cs != null) {
    try {
    cs.close();
    catch (SQLException s) {
    throw new JboException(s);
    I have read in one of Steve Muench presentations (Oracle Fusion Applications Team' Best Practises) that calling the createRootApplicationModule method is a bad idea, and to call the method via the binding interface.
    I am assuming calling the createRootApplicationModule uses much more resources and database connections that calling the method through the binding interface such as
    BindingContainer bindings = getBindings();
    OperationBinding ob = bindings.getOperationBinding("customMethod");
    Object result = ob.execute()
    Is this the case? Also is using getDBTransaction().createCallableStatement the best way of calling database procedures. Would it be better to expose plsql packages as webservices and then call them from the applicationModule. Is this more efficient?
    Regards
    Orlando

    Thanks Shay, this is now working.
    I successfully got the binding to the application method in the pagedef.
    I used the following code in my backing bean.
    package view.backing;
    import oracle.binding.BindingContainer;
    import oracle.binding.OperationBinding;
    public class Testdatabase {
    private DCBindingContainer bindingContainer;
    public void setBindingContainer (DCBindingContainer bc) {this.bindingContainer = bc;}
    public DCBindingContainer getBindingContainer() {return bindingContainer;}
    public static String validateUser()
    // Calling Module to validate user and return user role details.
    System.out.println("Getting Binding Container from Home Backing Bean");
    BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
    System.out.println("Obtain binding");
    OperationBinding operationBinding = bindings.getOperationBinding("calldatabase");
    System.out.println("Set username parameter");
    operationBinding.getParamsMap().put("p_userId",userId);
    System.out.println("Set password parameter");
    operationBinding.getParamsMap().put("p_testId",examId);
    Object result = operationBinding.execute();
    System.out.println("Obtain result");
    String userRole = result.toString();
    System.out.println("Result is "+userRole);
    }

Maybe you are looking for

  • In ALV Report Filter selection should be case sensitive

    Dear All, since one field is case sensitive in database table , i have to fetch that in alv report , but when i am applying  filter on that field its is simply fetching data with case description.  if its in caps it should fetch caps data but in   sm

  • How to populate data in a new page when user place mouse on table cell

    Hi friends, i am working on OAF. I have one table with data coming from the backend. In a table some cells repersents wiht "P" or "C", till that Ok. but when user place mouse pointer over the cell, data should be populated in addtion text( babul text

  • Deleting referenced files in Aperture 3

    With version 3, I'm trying Aperture for the first time and have a deletion question. I've imported both ways: 1) "in the Aperture Library", and 2) "in their current location" My question concerns method 2, aka Referenced Files. Is there an option tha

  • Function to unformat HTML code

    I start to build a report with CF Report Builder (8) and at some point, I realize that one of the field I need to display have HTML code (e.g.: <p>, <b>, etc...). The fact is that this field is using a Rich Editor (FCKEditor) when input the text. Unt

  • Edit postDelete postReport this postReply with quote create attachment for

    Hello all, i want to create an attachment for billing document. i read that i need to run 'SO_DOCUMENT_INSERT_API1' and 'BINARY_RELATION_CREATE' . but it would be very helpfull to see a code example. Thanks Moshe