Passing multiple arguments to CFC ???

I am passing two parameters to a CFC via WebService, as seen
below. This works fine.
WebService.MyCFC(argument1, argument2);
However, I have some CFC functions that I am passing more
than 10 arguments into. Instead of having a lengthy string of
arguments on my above code, I would like to create an object
(array?) that stores each argument. I did this when I was coding in
CF7 using the ColdFusion tags that rendered Flex-like code. Below
is the example I used:
var editArguments:Object = {};
editArguments.Argument1 = 'my first argument';
editArguments.Argument2 = 'my second argument';
WebService.MyCFC(editArguments);
When trying this in Flex, I get the following error. I am
unsure what I am doing wrong and I've Googled and Googled and
cannot find my answer I am looking for. First of all, is it even
possible to attempt what I am trying? Thanks!
faultCode:EncodingError faultString:'Array of input arguments
did not contain a required parameter at position 1'
faultDetail:'null'

any ideas?

Similar Messages

  • [SOLVED][BASH] Using a string to pass multiple arguments.

    I'm scratching my brain on this little project my friend roped me into.
    I have a function which generates a list of VM's and their states and stores it as a variable. this list is to be presented to the user using the libgui.sh 'ask_option' function. The problem is that the ask_option function does not interpret it correctly. And by saying ask_option isn't doing it right I mean I am expecting a certain behavior, and that expectation is flawed.
    Here are the two parts in question
    #assume VMLIST has a value identical to this assignment after my function call:
    #I have confirmed that this is the exact value
    VMLIST="\"Arch Linux Live\" \"running\" \"Windows XP\" \"power off\""
    ask_option 0 "VMs Present" '' optional "0" "Return to the Main Menu" $VMLIST
    What I actually get shows that ask_option is interpreting each discreet word as an argument. whereas I want the argument to be the text between each quote
    0 Return to Main Menu
    "Arch Linux
    Live" "running"
    "Windows XP"
    "power off"
    Obviously what I want is a two column output in the dialog that resembles
    0 Return to Main Menu
    Arch Linux Live running
    Windows XP power off
    What should our approach be to rectify this? How can I use the variable to suppply discreet arguments to another function? or rather how can I have the value of the variable interpreted literally on the function call line?
    Last edited by OrionFyre (2011-04-05 19:04:49)

    ARRAYS! I knew that
    Thanks scary face kitteh!
    I should have remembered arrays. alas. that's what happens when you don't use it for a while.

  • Passing multiple parameters (caption and textbox) to another form failing to pick up Caption

    I have an Microsoft Access application that is more like a form than a database. Users complete the form and then submit it to us for review. There are many questions and memo fields on the different forms (sections). Some of the memo forms are small due
    to the limitation of the size of the form (22 inches) therefore there is a lot of scrolling. I want to include a button on each question so that when users click on it will display a form where I pass the label caption (question) and the answer to this form.
    Alternatively I can have a expanded form for each question but that would require over 50 forms. The Application is quite large. I wanted to have one form and just call the different questions/answers.
    The below is working for the text box (AnswerTxt). However the CaptionTxt is not holding it's value when it gets to the new form. It's only displaying the name of the variable name, CaptionTxt
    On the form where the data resides I have:
    Private Sub test_Click()
    Dim CaptionTxt As String
    Dim AnswerTxt As String
    CaptionTxt = Me.lblSect11_5.Caption
    AnswerTxt = Me.Section11_5.Value
    Debug.Print CaptionTxt
    Debug.Print AnswerTxt
    DoCmd.OpenForm "Form1", OpenArgs:="CaptionTxt|" & AnswerTxt
    End Sub
    On the new form with an expanded memo field
    Private Sub Form_Load()
    Dim intPos As Integer
    Dim strControlName As String
    Dim strValue As String
    If Len(Me.OpenArgs) > 0 Then
    ' Position of the pipe
    intPos = InStr(Me.OpenArgs, "|")
    If intPos > 0 Then
    strControlName = Left$(Me.OpenArgs, intPos - 1)
    Debug.Print strControlName
    strValue = Mid$(Me.OpenArgs, intPos + 1)
    Debug.Print strValue
    ' Retrieve Control Name from the first part of the string
    Me.lblText11.Caption = Left$(Me.OpenArgs, intPos - 1)
    ' strControlName = Left$(Me.OpenArgs, intPos - 1)
    ' Retrieve Value to Assign from the end of the string
    Me.txt_Section11.Value = Mid$(Me.OpenArgs, intPos + 1)
    ' strValue = Mid$(Me.OpenArgs, intPos + 1)
    ' Assign the value to the control
    ' Me(strControlName) = strValue
    End If
    End If
    End Sub
    jim neal

    The below is working for the text box (AnswerTxt). However the CaptionTxt is not holding it's value when it gets to the new form. It's only displaying the name of the variable name, CaptionTxt
    It will, because you are passing it as a literal string with:
        DoCmd.OpenForm "Form1", OpenArgs:="CaptionTxt|" & AnswerTxt
    In this "CaptionTxt|" is a literal string, whereas AnswerTxt references the variable.  It should be:
        DoCmd.OpenForm "Form1", OpenArgs:=CaptionTxt & "|" & AnswerTxt
    You might be interested in the file Args.zip in my public databases folder at:
    https://onedrive.live.com/?cid=44CC60D7FEA42912&id=44CC60D7FEA42912!169
    If you have difficulty opening the link copy its text (NB, not the link location) and paste it into your browser's address bar.
    This little demo file illustrates how to pass multiple arguments, using a module originally developed by Stuart McCall and later expanded by me to allow the passing of named arguments.
    Ken Sheridan, Stafford, England

  • ArrayDescriptor multiple arguments

    hi all,
    Can we able to pass multiple arguments in a single ArrayDescriptor, instead of creating multiple ArrayDescriptor obeject.
    Example
    ArrayDescriptor a_desc = ArrayDescriptor.createDescriptor("A_ARRAY", connection);
    ARRAY app_array = new ARRAY(a_desc, connection , a_id);
    ArrayDescriptor r_desc = ArrayDescriptor.createDescriptor("R_ARRAY", connection);
    ARRAY read_array = new ARRAY(r_desc, connection , r_id);
    Thanks.

    apexlearner wrote:
    Can we able to pass multiple arguments in a single ArrayDescriptor, instead of creating multiple ArrayDescriptor obeject.
    Example
    ArrayDescriptor a_desc = ArrayDescriptor.createDescriptor("A_ARRAY", connection);
    ARRAY app_array = new ARRAY(a_desc, connection , a_id);
    ArrayDescriptor r_desc = ArrayDescriptor.createDescriptor("R_ARRAY", connection);
    ARRAY read_array = new ARRAY(r_desc, connection , r_id);Does this have anything to do with APEX? Looks like Java.

  • Pass in ValueObject as argument to CFC???

    Hi,
    I am confused on how pass in arguments to the CFC when I am
    sending a ValueObject in from Flex. I have this code.
    public function saveEmployee( employeeVO : EmployeeVO ): void
    var call:AsyncToken = service.saveEmployee( employeeVO );
    call.addResponder( responder );
    The parameter employeeVO in the above function contains all
    the data the user typed in on my form. I want to pass this data to
    my CFC as an argument, but not sure how to do so.
    -Westside

    Hi,
    I will try that because I do have those extensions installed.
    I got it to work without the extensions but I can't understand why
    this code works:
    public function saveEmployee( employeeVO : EmployeeVO ): void
    var call:AsyncToken = service.saveEmployee( employeeVO,null
    call.addResponder( responder );
    By adding that null it seems to work. I have the cfc
    accepting the employeeVO as a "struct". If I remove that null, then
    it bombs.
    Any idea why?
    -Westside

  • Passing multiple select value from BI publisher to PL/SQL functions

    Hi - I have designed a report which pass parameters (Multi select) into a function to get the output result. When a single parameter value is passed to the function, report is being displayed. When multi select value is passed to the function it is returning the error `wrong number or types of arguments in call to 'F_PROCESS_WAVE_DATA'. When i checked the parameters passed to the function, i can see each multi select value is treated as different value and is assigned to different parameter in the function.
    Any help on passing the multi select parameter into function will be helpful.
    Regards,
    Vikram.

    All - Issue was resolved. I followed the following steps to resolve the issue
    1. Create a PL/SQL table type variable as VARCHAR2 in the database - Say as Larray
    2. Create PL/SQL type record and table for the record in database. Lrec, Ltable
    3. In BI report pass multiple select LOV variable as Larray(variable).
    4. In DB function, Parameter should be defined as LARRAY.
    5. Return PL/SQL table type Ltable from the function.
    Regards,
    Vikram.

  • Passing multiple values to a single input parameter

    Hi folks,
    I have a Microstrategy query successfully passing input parameter to a calculation view.  For example I can pass a movement type to a material movements calculation view input parameter.  However if I try to pick more than one movement type the query then fails; 
    Generated SQL that works looks like this;
    select
    sum(a11.TOTALQUANTITY)  WJXBFS1
    from
    "_SYS_BIC"."MyPackage/CA_TEST_PASS_PARAMETER"
    ('PLACEHOLDER' = ('$$MoveType$$', '101')
    a11
    When choosing more than one value in Microstrategy the SQL now fails and looks like this;
    select
    sum(a11.TOTALQUANTITY)  WJXBFS1
    from
    "_SYS_BIC"."MyPackage/CA_TEST_PASS_PARAMETER"
    ('PLACEHOLDER' = ('$$MoveType$$', '101'),
    'PLACEHOLDER' = ('$$MoveType$$', '103'))
    a11
    If I cut and paste the SQL and run directly in HANA studio the error is;
    Could not execute 'select sum(a11.TOTALQUANTITY) WJXBFS1 from "_SYS_BIC"."MyPackage/CA_TEST_PASS_PARAMETER" ...' in 66 ms 361 µs .
    SAP DBTech JDBC: [2048]: column store error: search parameter error:  [2018] A received argument has an invalid value;TABLE/VIEW parameter: ( 'PLACEHOLDER'='$$MoveType$$, 103') not supported
    Is it possible to pass multiple values in a single parameter?  I'm using SP67 for this test.
    Thanks,
    -Patrick

    Ravi, also to answer one of your questions about how this will work in Microstrategy; I just heard back from my Microstrategy developer and he is trying MSTR Freeform SQL query with syntax like this;
    select (sumPAR_TEST.TOTALQUANTITY TOTALQUANTITY
    from "_SYS_BIC"."MyPackage/CA_TEST_PASS_PARAMETER"
    ('PLACEHOLDER' =('$$MoveType$$', '[Movement Type]')) PAR_TEST
    In this example [Movement Type] is the microstrategy prompt.  Unfortunately though it translates like this which is missing extra single quotes around each value;
    select     sum(PAR_TEST.TOTALQUANTITY)  TOTALQUANTITY
    from     "_SYS_BIC"."development.pr1959/CA_TEST_PASS_PARAMETER"
    ('PLACEHOLDER' = ('$$MoveType$$', ''101', '102''))   PAR_TEST
    instead of what we need which is;
    ('PLACEHOLDER' = ('$$MoveType$$', '''101'', ''102'''))   PAR_TEST
    So at this point we are not sure if this will be possible or not.
    -Patrick

  • Passing multiple table entries to web service

    Hi,
    I have a requirement (in Offline Scenario) to pass multiple rows in a Table(Dynamic) data from Adobe forms to a Web Service.
    Multiple rows are added in the Form, but only the first row is getting passed to the Web service tables parameter.
    Please suggest.
    Regards,
    Jayapal.

    Hi,
    if you warp the proxy class in a JavaBean and expose this JavaBean as a datacontrol then you could have a method that takes username and password to set it on the proxy. This way you can pass the connect information through the binding layer
    e.g.
    OperationBinding oper = (OperationBinding ) bindings.get(myAuthMethod);
    oper.getParamMap("username",username);
    oper.getParamMap("password",password);
    oper.execute();
    Note that the method arguments can also be bound to EL in th epageDef file so they read directly from the session scope
    Frank

  • Send multiple argument to backend method

    Dear All,
    I am trying to send the multiple arguments to backend server method using Remote Object. At the backend I am using Weborb for .net
    private function initWebOrb(event:AppEvent):void
        weborbCallback = event.callback;
    var method:String = event.data.method as String;
    var data:Array  = event.parameterdata;
    var op:AbstractOperation = remoteDataObject.getOperation(method);
    op.addEventListener("result", getListResultHandler);
    op.addEventListener("fault", onerrorweborb);
    op.arguments =data;
    op.send();
    but It shows the error unable to find method with name "Testmethod"  and the given argument types  at Weborb.Util.MethodLookup..........
    I have also tried.
    private function initWebOrb(event:AppEvent):void
       weborbCallback = event.callback;
    var method:String = event.data.method as String;
    var data:Array  = event.parameterdata;
    var op:AbstractOperation = remoteDataObject.getOperation(method);
    op.addEventListener("result", getListResultHandler);
    op.addEventListener("fault", onerrorweborb);
    op.send(data);
    I also tried to send the data as object
    var data:Object  = event.parameterdata;
    Note: I change the argument type accordingly while dispatching this event.

    try this
    <%
    int parameter=0;
    %>
    <f:invoke var="${bpmobject}" methodName="oper" retAttName="op" retAttScope = "Page">           
                   <f:arg value=<%= parameter> type="int"/>
    </f:invoke>
    the name of bpmobject passed in the arguments form ...
    edit : http://download.oracle.com/docs/cd/E13154_01/bpm/docs65/taglib/f/arg.html
    Edited by: cealex on Jan 24, 2010 5:34 AM - :pass "parameter" Parameter :)

  • Pass flex val into cfc

    Hi,
    I need example of code I can pass flex var into cfc.
    I mean I created form in coldfusion. I have my cfc.
    I would like to pass form value into cfc using flex. How can
    I do that.
    Thanks

    You can define method inside your cfc components which accept
    parameter.
    <mx:RemoteObject id="remoteService"
    destination="ColdFusion"
    showBusyCursor="true" source="components.simple">
    <mx:method name="getSimpleData" result="onResult(event)"
    fault="onFault(event)" />
    </mx:RemoteObject>
    and call those methods with the arguments.
    public function initApp():void {
    remoteService.getSimpleData(name);
    }

  • Passing Multiple Values from Multi Select

    Hi,
    My requirement is simple. I have created a simple Multi Select Option in parameter form and i want to send multiple selected values from the multi select option (in parameter form) to reports.
    eg:
    I want to send multiple countries code as input .........'US', 'CA', 'IND', 'UK'
    Can i do it in Oracle 6i reports, Thanks in Advance.
    Regards,
    Asgar

    Hi Thanks Again,
    For such a nice response. I got the Lexical Where condition properly running but still getting problems in catching the multiple values to be passed from form. just i will give u an insight of wat i have done:
    SQL:
    SELECT ALL FROM EMPLOYEES &cond_1* -- Working FIne
    in my Html Parameter Form i have an Multi Select component (the Problem is here) it is not passing more than i value from the form once i am accessing it from web or running it in paper report. In paper report layout it is not allowing me to select more than one value. but in HTML it is allowing to select multiple values but at the server end (After Parameter Form Trigger) it is giving a single value not multiple values.
    In PL/SQL when i checking the length of country_id i m getting it as one.
    Here is my SQL code
    srw.message(10, LENGTH(:country_id_1));
    :cond_1 := 'where country_id = '''|| :country_id_1 ||'''';
    This is passing the condition properly to SQL but only with single value but i want to pass multiple values
    I am struck in this+_
    WHERE CONTRY_COLUMN IN ('USA','UAE') -- This variable you have to pass from you form...
    Here as you said you gave multiple selection in your parameter form to generate report. So before generation report just prepare variable like this as it is bold above.
    and pass parameter through your runtime form to the report as you pass the normal parameter...liket this i gave you example...
    ADD_PARAMETER(PARAMETER_LIST_NAME,'P_CONT_PARAM',TEXT_PARAMETER,vString);
    Sorry for troubling you for a small thing but please help me to solve this issue.
    Thanks Again............
    Asgar.

  • Passing multiple session values from cold fusion into a flash movie

    Hello all,
    I know that to pass multiple variables into a flash movie
    you could use the embed tag like this(with the & between each
    variable):
    <embed
    flashvars="variable1=value1&variable2=value2"
    ></embed>
    Now to pass a single session variable from coldfusion in i
    did the following; which worked:
    <embed
    src="ASdb.swf"
    FlashVars="UserName=<cfoutput>#session.userName#</cfoutput>"
    width="550" height="400" autostart="true">
    </embed>
    Note that i had to use the cfoutput tags to get the value
    stored in the variables. Now; i tried to do the same thing for two
    session variables and the second one does not get read in. Here was
    my code:
    <embed src="ASdb.swf"
    FlashVars="UserName=<cfoutput>#session.userName#</cfoutput>&testTypeID=<cfoutput>#session .testTypeID#</cfoutput>"
    width="550" height="400" autostart="true">
    </embed>
    Can someone please tell me what I am doing wrong? Thank you
    very much in advance.

    Hold on there was a little error: My final code that did not
    work was the following:
    <embed src="ASdb.swf"
    FlashVars="UserName=<cfoutput>#session.userName#</cfoutput>&testTypeID
    =<cfoutput>#session.testTypeID#</cfoutput>"
    width="550" height="400" autostart="true">
    </embed>

  • Passing Multiple Values from a worksheet to PL/SQL function.

    Hi All,
    Is there any way to pass multiple values selected in a worksheet to a PL/SQL function ?
    I will try to explain the scenario:
    We have a crosstab report that showing all the customer details, deposit sum of a customer in each date in a date range selected. With the customer details we are showing the Rank of a customer based on the deposit in the latest date selected. Filtering is based on the rank, ie Top50 or Top60 etc.( As I said rank is calculating based on the deposit in the latest date).This is working fine.
    Now the new requirement is to : For example, in Top50 report, list all the customers, who were in the Top50 list, in any of the dates selected. We are able to display the daywise rank, but when giving a condition like daywiserank <= 50, the result becomes uncertain. Some blank lines, wrong amounts etc..
    As a work around we tried to find out the rank in a PL/SQL function. But the issue there is : we have some multiple value parameters used in the worksheet.
    Is there any way to pass multiple values selected in a worksheet to a PL/SQL function ?
    Or any other work arounds for the scenario explained?
    Reagrds,
    Jeneesh

    Hi Russ,
    Thanks for the response.
    Russ Proudman wrote:
    1. I thought there was an analytical function similar to rank - or maybe an option of rank - that if there are duplicate records to have them all considered the same rank. So if you had 3 records all the same as rank=2 then a condition saying where rank=2 would return the 3 records. You could check into this.
    We are already using DENSE_RANK. But the issue is the output contains incorrect null values nd repeated rows.
    We got it solved as I explained in the previous post. But will that AGGREGATION MODE setting ( Which discoverer says - not recommended) have any issue? I mean side effects?
    Russ Proudman wrote:
    2. Another thought is that you can create a PL/SQL routine - that's called from a SQL function registered in Discoverer - where a table is created that does the first part of your query. Then a worksheet is created to use the data from that table. So, in essence, the table would have your top50 ranked customers. Then you can write any kind of worksheet against that table. However, DBAs are loath to allow tables - that they didn't create! - many times in a PROD environment.
    Here also the same problem will occur: as the top 50 will depend upon the parameters. I cannot pass those parameters to PL/SQL Function.And storing the top50 ( itmay be top100 or to 150 also) for all combinations of the parameters is impossible
    Russ Proudman wrote:
    3. Finally, are you sure you're rank function is correct in that if you're getting blank lines, maybe the 'over' part is not considering all columns needed to determine the rank?
    Yes the query we are using is correct. The output QUERY of discoverer gives correct results in Sqlplus.
    Regards,
    Jeneesh

  • How to pass multiple values from master to child report

    Hello,
    How would I pass multiple prompts from the master to child report? So for example, say I want to pass a 'Country' value along with a 'City' value
    Would it be?
    ="<a href=\"../../opendoc/openDocument.jsp?iDocID=ASQlgCemIOlEid1HHUlzyPs&sDocName=DocTest&sIDType=CUID&sType=wid&sWindow=Same&lsSCountry="+[Country]+"&lsSCity="+[City]+"\</a>"
    Thanks,
    Carter

    Carter,
    what is the syntax for this?
    It is exactly how you have posted in your original note.
    "&lsSCountry="+[Country]+"&lsSCity="[City]
    This will work providing the target report has a prompt called "Country" and another prompt called "City".  Note that your prompt and what you pass between the &lsS and the equal (=) must match exactly, otherwise OpenDocument will not communicate the prompt title to InfoView properly and InfoView will stop and execute the prompt to get the info it needs before running the report.  Have you tried what you've posted originally to see if it executes without a problem?
    Thanks,
    John

  • How to pass multiple values from workbook to planning function ?

    Hi,
    I have created Planning function in Modeler and it has one parameter(Variable represents = Multiple single values).
    When executing the planning function by create planning seq. in the web template : I see value of variable store data like ...
        A.) input one value -> V1
        B.) input three values -> V1;V2;V3
    This function execute completely in web.
    However, I want to use the planning function in workbook(Excel).
    The value of variable can't input V1;V2;V3... I don't know how to pass multiple values from workbook to parameter(Multiple single values type) in planning function ?
    thank you.

    Hi,
    Please see the attached how to document (page no 16).
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0881371-78a1-2910-f0b8-af3e184929be">how to</a>
    Hope this was helpful
    thanks

Maybe you are looking for