Question about function parameters

Looking at a piece of code.
A function is defined with 3 parameters.  None of the parameters are "default" parameters.
Call to the function only passes 2 paramters.  ie myfunc(parm1,parm2).  Have read the docs regarding
function parameters.  Not sure how this is working (which it is).   Am I missing something ?
I am new to flex so it could be I am missing a fundamental concept of flex.
thanks.

Thanks but its not defaulted.
Here is the call
mystuff.call(buildstuff, parms);
here is the definition:
public class mystuff{
  public function call (remote1:string,  remote2:Function, parms:Object):void{
    remote1 = "prefix." + remote1;
    different.call(remote1, new Responder(remote2, this.onFault),parms);
public function onFault(fault:String):void{
  Alert.show(fault, "Error:", mxcontrols.Alert.OK);
thanks.

Similar Messages

  • Question about function with in parameters

    Hello,
    I have a question about functions with in-parameters. In the HR schema, I need to get the minimum salary of the job_id that is mentioned as an in-parameter.
    this is what I am thinking but I dont know if it's correct or not or what should I do next!
    create or replace function get_minimum_salary (i_job_id in varchar2)
    return number
    as
    begin
    SELECT min_salary INTO min_sal
    FROM jobs
    where job_id = get_minimum_salary(xy);
    RETURN i_job_id;
    end get_minimum_salary;
    thanks in advance
    EDIT
    Thanks for your help all.
    Is it possible to add that if the i_job_id which is the in type parameter does not have a minimum salary then use the following function to register an error:
    create or replace procedure insert_error (i_error_code in number,
                                                      i_error_message in varchar2)
    as
    begin
    insert into error_table (error_user, error_date, error_code, error_message)
    values (user,sysdate,i_error_code,i_error_message);
    end insert_error;
    This function is basically to say that an error has occured and to register that error, at the same time I need to print out the error using the dbms_out.put_line.
    Any ideas of how to do that?
    Thanks again
    Edited by: Latvian83 on Jun 1, 2011 5:14 AM

    HI
    I have made little bit changes in ur code. try this
    create or replace function get_minimum_salary (i_job_id in varchar2)
    return number
    as
    v_Min_sal jobs.salary%type=0;---- Variable declaration
    begin
    SELECT min_salary INTO v_ min_sal
    FROM jobs
    where job_id = i_job_id;
    RETURN v_Min_sal;
    end get_minimum_salary;
    Regards
    Srikkanth.M

  • Question about parsing parameters through url

    Hello,
    I have some questions about parsing parameters through a url.
    What I want to build is a page with some text fields and maybe one drop down list. After user enter values into the text fields and select one option in the drop down list, then press the submit button, a report will be opened, which according to the parameters parsed.
    These were what I have done:
    1. create a blank page and a region
    2. create one text field in the region, the name is FIRSTNAME
    3. create one hidden items FN, of which the source value is item FIRSTNAME
    4. create a process. the type is "Set Preference to value of Item" which set PN with the value of FIRSTNAME when the page submitted
    5. create a button "Submit Page and Redirect to URL", in the URL I entered:
    http://dianti.local.net:9704/xmlpserver/~shichao/GuestFolder/orderdetail/orderdetail.xdo?_xpf=&_xpt=0&_xdo=%2F~shichao%2FGuestFolder%2Forderdetail%2Forderdetail.xdo&FIRSTNAME=&FN.&_xt=orderdetail&_xf=pdf&_xmode=4
    My problem is: it seems working for the first time after I entered a value in the FIRSTNAME text field and press submit button, but when I come back to the page (the report was opened in the same page, wondering how to open it in a new window?), the value is saved in the text field and after I enter another value and submit the page again. It still parse the old value to the report. The value of the parameter doesn't change.
    What's the reason? and is this the correct way to build what I want?
    Thank you in advance.
    Best Regards,
    Shichao

    Hi Scott,
    Thank you again for the help.
    But this didn't answer my question exactly. I have tested what you created and the problem remains. When I first time enter a value in the text field and press the button, it goes to page 2, but the parameter didn't parsed. When I go back to page 1 and then click the button again. After that I can see the value I parsed on page 2. Same thing happens when I try to enter a new value. So which means the button has to been pressed twice to parse the parameter.
    Due to the limitation of my knowledge of Apex. I don't know how to fix it. Could you please help me again and hope you understand what the problem is. Thank you very much.
    Shichao

  • AIR auto update error, and question about POST parameters

    Hello,
    I'm getting a Download Failed error in the AIR autoupdating process;
    There was an error downloading the update. Error# 16822
    I recall this working once, the very first time that I tried it.
    My app.xml file contains this line:
        <version>12</version>
    and my update.xml file contains:
    <update xmlns="http://ns.adobe.com/air/framework/update/description/1.0">
      <version>12</version>
      <url>http:/players.biemedia.com/ooyala/Composer/Composer.air</url>
      <description>12 - Bug fixes and prepopulating defaults for player creation screen</description>
    </update>
    Pasting the URL into a browser works.
    However, this stuffresides on cloudfront.  in the past i have noticed that if something tries to send post parameters along with the request, cloudfront will deny the request.  Is it possible that the AIR app is sending POST parameters when hitting the download URL, and could this behavior be new in the last 6 months or so?
    Any other ideas?
    Thanks,
    Gerry

    Just Got The Solution for Error 16811 &  16816
    Note Following things to avoide update error
    No 1.>
    You xml schema for update descriptor.xml in  server should look similar to this
    <?xml version="1.0" encoding="utf-8"?>
    <update xmlns="http://ns.adobe.com/air/framework/update/description/2.5">
      <versionNumber>2.0</versionNumber>
      <url>http://localhost/SerialHunter/SerialHunter.air</url>
      <description><![CDATA[
    SerialHunter Version 2.0 by Rajendra Khope
    This new version includes:
        * AutoUpdate
        * Enhaced UI functions
        * Ability to add providers       
      ]]></description>
    </update>
    Note xmlns="http://ns.adobe.com/air/framework/update/description/2.5"
    and versionNumber instead of version
    Also make similar changes in appxml version field (in Burrito its by default versionNumber )
    No 2>
    if u are using code to display veesion number make sure it should look like:
    var appXML:XML = NativeApplication.nativeApplication.applicationDescriptor;
    var ns:Namespace = appXML.namespace();
    pnlMain.title=appXML.ns::name+" v "+appXML.ns::versionNumber
    Thats it...!
    Rajendra Khope
    bkrajendra at gmail dot com

  • Question about function RRT_BROWSE_MEASURES

    To experts or SAP guys familiar with this abap function
    RRT_BROWSE_MEASURES
    In this function, in form _
    browse_measures
    ->
    _browse_cubes
    , it will save cube info in a buffer table,
    g_sx_cache-cube
    My question is, when will this buffered table be cleaned, at some intervals or until the user logs off? I have this question because it has caused some problem in our code.
    Thanks,
    Ray

    useless, close it

  • 5th Generation 80GB iPOD - Questions about functionality

    All - I have a new 80GB video iPOD. The question I have is if I leave it just sit on my desk overnight and not plugged into my PC or power, I come in the next morning and go to use it and it seems as though it is shutdown. I press the button to turn it on, an Apple appears and it boots up. After that it appears to be fine, I am just curious if this is normal or not? Thanks in advance!

    The iPod Nano and the Fifth Generation iPods have a feature called hibernation. Quote: "This allows the iPod to go into a power conservation mode after 14 hours of inactivity but resume operation in the same state as when it was last used. When the iPod wakes from hibernation, you will see the Apple logo displayed for a moment before the menu appears": iPod: About Sleep, Deep Sleep, Hibernation, and Sleep Timer

  • Basic question about functionality of SSF

    Hello,
    we are working on a process with external party to receive a csv file from there.
    The file will be duplicated and the duplicate converted into a data file which we use to import data into an R/3 system.
    Now the csv file will be enhanced by a pkcs7 based signature which we have to verify. After successful verification the duplication step will be started and the file will be moved to the archive.
    My question is, because I have never worked with SSF:
    Is the SSF / the SAPSECULIB able to do such a verification and if yes, are there any conditions for use of SSF, e.g. third party products (for which purpose)?
    Best regards
    Dirk

    Yes, that's possible - notice: SAPSECULIB is part of the shipment (in contrast to SAPCRYPTOLIB). You can "play around" with the ABAP test program SSF02 to get familiar with the topic.

  • Question about functional of a FI/CO infoCube

    Hi all,
    I'm a new BW consultant. I've an assignment that investigating about functionals of 0FIGL_C01 and 0SD_C03 infocubes and their queries.
    Does anyone know something about that? please help me
    Regards,
    Chuong Hoang

    hi,
    check the following link about infocube of fi
    http://help.sap.com/saphelp_nw70/helpdata/en/36/8d863c651f11d3971b006094b969cf/frameset.htm
    these are the queries regarding that cube
    Technical name: 0FIGL_C01_Q0001_SCOR
    link
    http://help.sap.com/saphelp_nw70/helpdata/en/36/8d863c651f11d3971b006094b969cf/frameset.htm
    Technical name: 0FIGL_C01_Q0050
    link
    http://help.sap.com/saphelp_nw70/helpdata/en/36/8d863c651f11d3971b006094b969cf/frameset.htm
    Technical name: 0FIGL_C01_Q0030
    link
    http://help.sap.com/saphelp_nw70/helpdata/en/36/8d863c651f11d3971b006094b969cf/frameset.htm
    Technical name: 0FIGL_C01_Q0020
    link
    http://help.sap.com/saphelp_nw70/helpdata/en/36/8d863c651f11d3971b006094b969cf/frameset.htm
    Technical name: 0FIGL_C01_Q0010
    link
    http://help.sap.com/saphelp_nw70/helpdata/en/36/8d863c651f11d3971b006094b969cf/frameset.htm
    Technical name: 0FIGL_C01_Q0040
    link
    http://help.sap.com/saphelp_nw70/helpdata/en/36/8d863c651f11d3971b006094b969cf/frameset.htm
    Technical name: 0FIGL_C01_Q0002_SCOR
    link
    http://help.sap.com/saphelp_nw70/helpdata/en/36/8d863c651f11d3971b006094b969cf/frameset.htm
    0sd_c03 infocube link
    http://help.sap.com/saphelp_nw70/helpdata/en/71/1769372b2b7d20e10000009b38f842/frameset.htm
    query
    Technical Name: 0SD_C03_Q007-billing document
    link
    http://help.sap.com/saphelp_nw70/helpdata/en/17/cd5e407aa4c44ce10000000a1550b0/frameset.htm
    Technical Name: 0SD_C03_Q006-delivers
    link
    http://help.sap.com/saphelp_nw70/helpdata/en/17/cd5e407aa4c44ce10000000a1550b0/frameset.htm
    Technical Name: 0SD_C03_Q011
    link
    http://help.sap.com/saphelp_nw70/helpdata/en/17/cd5e407aa4c44ce10000000a1550b0/frameset.htm
    Technical Name: 0SD_C03_Q008
    link
    http://help.sap.com/saphelp_nw70/helpdata/en/17/cd5e407aa4c44ce10000000a1550b0/frameset.htm
    Technical Name: 0SD_C03_Q0014
    link
    http://help.sap.com/saphelp_nw70/helpdata/en/17/cd5e407aa4c44ce10000000a1550b0/frameset.htm
    Technical Name: 0SD_C03_Q004
    link
    http://help.sap.com/saphelp_nw70/helpdata/en/17/cd5e407aa4c44ce10000000a1550b0/frameset.htm
    Technical Name: 0SD_C03_Q010
    link
    http://help.sap.com/saphelp_nw70/helpdata/en/17/cd5e407aa4c44ce10000000a1550b0/frameset.htm
    Technical Name: 0SD_C03_Q005
    link
    http://help.sap.com/saphelp_nw70/helpdata/en/17/cd5e407aa4c44ce10000000a1550b0/frameset.htm
    Technical Name: 0SD_C03_Q003
    link
    http://help.sap.com/saphelp_nw70/helpdata/en/17/cd5e407aa4c44ce10000000a1550b0/frameset.htm
    Technical Name: 0SD_C03_Q009
    link
    http://help.sap.com/saphelp_nw70/helpdata/en/17/cd5e407aa4c44ce10000000a1550b0/frameset.htm
    hope this help you
    regards
    harikrishna N

  • Questions about function ---- showModalDialog()

    <html>
    <head>
    <meta charset="UTF-8">
    </head>
    <body>
    <h1>This is indexHtml!</h1>
    <button onclick="clickMe()">click Me!</button>
    </body>
    <script type="text/javascript">
    function clickMe() {
    var paramObj = new Object();
    paramObj.parentWin = "1111";
    paramObj.showtype = "2222";
    paramObj.definedate = "33333";
    paramObj.valueColName = "5555";
    paramObj.nowDate = "666666";
    paramObj.oldEffDate = "77777";
    var url = "./test.html";
    var rtn = window.showModalDialog(url, paramObj);
    </script>
    </html>
    <html>
    <head>
    <meta charset="UTF-8">
    <title>test</title>
    </head>
    <body>
    <h2>This is testHtml!!</h2>
    <button onclick="clickMe()">click Me!</button>
    </body>
    <script type="text/javascript">
    window.onload = function() {
    var gParam = window.dialogArguments;
    alert(gParam);
    function clickMe() {
    var paramObj = new Object();
    paramObj.parentWin = "1111";
    paramObj.showtype = "2222";
    paramObj.definedate = "33333";
    paramObj.valueColName = "5555";
    paramObj.nowDate = "666666";
    paramObj.oldEffDate = "77777";
    var url = "./test2.html";
    var rtn = window.showModalDialog(url, paramObj);
    </script>
    </html>
    <html>
    <head>
    <meta charset="UTF-8">
    <title>test2</title>
    </head>
    <body>
    <h2>This is test2Html!</h2>
    </body>
    <script type="text/javascript">
    window.onload = function() {
    var aaa = window.dialogArguments;
    alert(aaa);
    </script>
    </html>
    Codes above are index.html,test.html,test2.html;
    When i run the 'index.html' in ie10,it runs correctly;
    but in ie11,it throws undefined, why?
    is something wrong with my ie11?
    please Help!!!!!
    thankyou!
    ----my email:[email protected]

    Some web application modal dialog boxes don't work correctly in Internet Explorer 11 after you install update 3008923 (17 Dec-14)
    http://support2.microsoft.com/kb/3025390/en-us
    ~Robear Dyer (PA Bear) MS MVP-Windows Client since 2002 Disclaimer: MS MVPs neither represent nor work for Microsoft

  • Questions about Function AC_DOCUMENT_CREATE

    Hi guys , AC_DOCUMENT_CREATE  uses a structure called XACCIT , I filled some fields  xref3 and posn2 of this structure with my own values using  user exit EXIT_SAPLV60B_004 , however when i Check BSEG all the fields are filled except these . I ve put a break point in the function and im sure that the structure XACCIT , XACCCR  is full , What im doing wrong ? . thank you very much

    Hi,
    Try to use this structure.. "T_ACCIT_EXT"...also u can check in debug mode afther exit...is there any structre over writing your values..
    Regards,
    Nagaraj

  • Question about Function Module ME_PO_PRICE_SIMULATION

    Hi experts,
    I am trying to solve an issue concerning the importing parameter I_ROLL_BACK of the function module ME_PO_PRICE_SIMULATION.
    Inside the coding of the user-exit ZXM06U44 (executed after saving a purchase order) there is a call to the function module ME_PO_PRICE_SIMULATION with this importing parameter set to true. In that case, purchase order is not created. Otherwise if I modify this value into false the order is created appropriately.
    Could someone more functional explain me what is the meaning of this parameter. I try to read the documentation but is in German, so I don't understand anything.
    Lots of thanks,
    Javier

    This is what happens inside the FM using I_ROLL_BACK:
    To understand what a rollback statement does, have a look at this:
    https://help.sap.com/abapdocu_70/en/ABAPROLLBACK.htm

  • Question about function Module

    Hi Expert,
             First tell me What is function Module & its working?
    And second is how to call dynamically function module?
    Moderator message : Search for available information, read forum rules before posting.  Thread locked.
    Edited by: Vinod Kumar on Nov 9, 2011 4:57 PM

    This is what happens inside the FM using I_ROLL_BACK:
    To understand what a rollback statement does, have a look at this:
    https://help.sap.com/abapdocu_70/en/ABAPROLLBACK.htm

  • A question about function module

    hi everyone,
    if i want to know the meaning of a function module and how it work,
    for example,function'HRHAP_DOCUMENT_GET_DETAIL'
    i must use it,but i don't know its meaning,
    what should i do ?
    thanks

    but,in program,import and export are reverse.
    for example:
    CALL FUNCTION 'HRHAP_DOCUMENT_GET_DETAIL'
        EXPORTING
          plan_version                  = plan_version
          s_appraisal_id                = ls_appraisal_id
        IMPORTING
        S_DOC_PROCESSING              =
        S_HEADER_TEXTS                =
        T_HEADER_APPRAISER            =
          t_header_appraisee            = lt_header_appraisee
        T_HEADER_PART_APPRAISER       =
        T_HEADER_OTHERS               =
        S_HEADER_STATUS               =
          s_header_dates                = ls_header_dates
        T_HEADER_ADD_DATA             =
        S_HEADER_DISPLAY              =
        T_BUTTONS                     =
          t_body_columns                = lt_body_columns
          t_body_elements               = lt_body_elements
        T_BODY_ELEMENT_BUTTONS        =
        T_BODY_ELEMENT_DESCR          =
          t_body_cells                  = lt_body_cells
        T_BODY_CELL_VAL_VALUES        =
        T_BODY_CELL_VAL_RANGES        =
        T_BODY_CELL_VAL_C_LIKE        =
        T_BODY_CELL_VAL_DESCR         =
          t_body_cell_notes             = lt_body_cell_notes
          s_return                      = s_return
      CHANGING
        MODE                          =
    why?

  • Question about Function group

    Hi All,
    I have to transport a function module from development to next environment. The function group has around 9 function modules among them i have edited one and assigned to a transport request. Do I have to include function group also in the transport along with the function module? pls suggest, in which scenarios we have to transport function group along with function module?
    Thanks in advance.

    Hi Suresh,
    You dont need to transport the Function Group. You would transport it only if the FG is not available in another system or if there is any change in the main program of the FG.
    If you create a New Function Module and attach the FM to this FG, then an include gets automatically added to the main program. In this scenario you may need to transport all.
    Thanks & Regards,
    Ram.

  • Question about functions methods and variables

    Sorry but i couldn't figure out a better title.
    When does a method alter the variables it gets directly and when does a method just alter a clone of the variables it gets?
    How about a funcion?
    for example:
    public void (int i)
    i = 4;
    sometimes this method alters the integer which was given to it directly and sometimes it automatically creates a clone of the integer and alters that one. I just can't figure out why a method would do the first or the second.
    Im trying to achieve the direct changeing of the given variable without creating an unessecary clone.
    Thank You

    Comp-Freak wrote:
    Sorry but i couldn't figure out a better title.
    When does a method alter the variables it gets directly and when does a method just alter a clone of the variables it gets?
    How about a funcion?
    for example:
    public void (int i)
    i = 4;
    sometimes this method alters the integer which was given to it directly and sometimes it automatically creates a clone of the integer and alters that one. I just can't figure out why a method would do the first or the second.
    Im trying to achieve the direct changeing of the given variable without creating an unessecary clone.
    Thank YouThats quite all right about the title, trust me we get much worse titles on this forum. Most of the time to the effect of "Plz urgentlly!!!!111one"
    In Java, all variables passed into methods are passed by value, which means that if I pass an int variable to a method, that methods argument will always be a seperate variable. There is no way to pass variables by reference so that you are altering the original variable you passed in.
    It actually works the same way for reference variables that point to a particular object.
    public Object o = new Object();
    methodOne(o);
    public void methodOne(Object oArg) {
      o == oArg;  //true
    }It is essentially the same in this case, there are two seperate reference variables here, o and oArg is created once the method is called. There is only one Object created however and both reference variables point to it, so an == check will verify this that it is true.

Maybe you are looking for

  • A single Form containing two colums

    Hi In Flex 3 is there any way to build a Form with two columns. I want to lay out a Form to look nice. The following structure seems to end up with the FormItems losing their alignment. I've simplified the structure to keep the concept simple. <Title

  • Can anyone help? I can't install CS6 production premium - Exit Code 15

    Just received discs, purchased direct from adobe. production premium CS6 student teacher edition. I get past the serial number and log in phase, the installer starts and gets to 2% then comes up with the following error - Exit Code: 15 --------------

  • Multiple variable initialization using arrays

    Hi, In my program I want to initialize some 20 odd variables(all of the same type) to the same value having their names as Input1, Input 2 .. Input 20. Want I want to do is to use an array to do this rather than writing the 20 variables one after the

  • Authorization group class maintenance

    Hi experts, I have a question for restricting the maintainance of classes and material classification. I am uploading classes in SAP and these classes the user should not be able to maintain or create material assignments to them, only the user who i

  • Homegroup Permissions problem

    Fresh install of Windows 8 Pro (not over another OS). The only things installed are the updates MS provides after installing Win8. No security, etc. Created a Homegroup and changed the permissions for each folder (My Documents, etc.) from "Read" to "