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.

Similar Messages

  • Cfexecute with multiple arguments

    Hello,
    I'm trying to encrypt a file with CFEXECUTE, using OpenSSL. When I run the code in the command prompt, it works fine and the new encrypted file appears in the correct folder. Also, I can run CFEXECUTE with OpenSSL with just one argument and it works fine. ie arguments="version". But the following does not return a value, nor does it create the new folder:
    <cfexecute name = "C:\Program Files (x86)\GnuWin32\bin\openssl"
        arguments = "aes-256-cbc -a -salt -in ""C:\Users\Dev2\Documents\My Stuff\OpenSSL\secrets.txt"" -out ""C:\Users\Dev2\Documents\My Stuff\OpenSSL\secrets2.txt"""
        variable = "result"
        timeout = "5">
    </cfexecute>
    <cfdump var="#result#">
    Any ideas?
    Pete

    BYW,
    This runs fine:
    <cfexecute name = "C:\Program Files (x86)\GnuWin32\bin\openssl"
        arguments = "list-standard-commands"
        variable = "result"
        timeout = "5">
    </cfexecute>
    <cfdump var="#result#">
    and so does this:
    <cfexecute name = "C:\Program Files (x86)\GnuWin32\bin\openssl"
        arguments = "version"
        variable = "result"
        timeout = "5">
    </cfexecute>
    <cfdump var="#result#">
    Maybe someone has a multiple argument example of CFEXECUTE that runs fine.
    I'd be interested to know.
    Pete

  • Event Handlers which trigger functions with multiple arguments

    I am playing two video clips back to back. I have a few
    things which I need to do in between clips, so what I am doing for
    each is adding a handler for VideoEvent.COMPLETE, at which time i
    want to call a function which takes multiple arguments, like this:
    video.addEventListener(VideoEvent.COMPLETE,
    myFunction("1","2","3"));
    private function myFunction(var1:String, var2:String,
    var3:String):void
    video.removeEventListeners(VideoEvent.COMPLETE, myFunction);
    I've already figured out that getting rid of event handlers
    that trigger anonymous functions is impossible. Please don't tell
    me that it's impossible to remove them if functions require more
    than 0 arguments...

    "muskiemania" <[email protected]> wrote in
    message
    news:gc0pk0$jfb$[email protected]..
    >I am playing two video clips back to back. I have a few
    things which I need
    >to
    > do in between clips, so what I am doing for each is
    adding a handler for
    > VideoEvent.COMPLETE, at which time i want to call a
    function which takes
    > multiple arguments, like this:
    >
    > video.addEventListener(VideoEvent.COMPLETE,
    myFunction("1","2","3"));
    >
    > private function myFunction(var1:String, var2:String,
    var3:String):void
    > {
    > video.removeEventListeners(VideoEvent.COMPLETE,
    myFunction);
    > }
    >
    > I've already figured out that getting rid of event
    handlers that trigger
    > anonymous functions is impossible. Please don't tell me
    that it's
    > impossible to
    > remove them if functions require more than 0
    arguments...
    Any function that you add via addEventListener should expect
    exactly ONE
    argument, the event. And 99.958% of the time, you can take
    that event
    object and figure out exactly what you need to know.
    HTH;
    Amy

  • 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 :)

  • Split on multiple arguments

    I'd imagine this question has been asked lots of times already, but couldn't really find an answer when searching the forum, se here it goes:
    I want to split a string on multiple arguments instead of only one.
    The aim of it is to do some (quite simple) tokenizing, and I want to split on whitespace, dots, comma's, question mark and all. (in total I'd say about 8 characters)
    Read somewhere that this would be possible with the split function, but can't find how.
    Is there an easy way, or do I need some looping in which I first split on one character, after that on the other?

    Igor_Pavlove wrote:
    And the pattern class looks quite useful as well, need to look into that one as well.Well, it defines the split("[/s.,?!:;]") argument thing. The docs for split() refer to it in the "see also" part and by talking about regex.

  • SUMIFS + multiple arguments for a condition.

    Hello,
    I have a function looking like this :
    =SUMIFS(Test :: $J,Test :: $I,"="&$A5,Test :: $E,"="&C$3,Test :: $C,"="&355)+SUMIFS(Test :: $J,Test :: $I,"="&$A5,Test :: $E,"="&C$3,Test :: $C,"="&360)+SUMIFS(Test :: $J,Test :: $I,"="&$A5,Test :: $E,"="&C$3,Test :: $C,"="&432)
    and I would like to know if I can get it shorter, something like :
    =SUMIFS(Test :: $J,Test :: $I,"="&$A5,Test :: $E,"="&C$3,Test :: $C,"="&(355,360,432))
    I tried multiple syntaxes, but none seems to work =/ The idea is that my last condition is valid when Test::*C is equal to 355 or 360 or 432.
    Additionally, I know the formula works if written : "="&355, but can someone tell me what is the meaning of the "&" and why a simple "="355 returns a syntax error ?
    Thanks a lot !

    If you're running out of columns on your main table, there's no reason the OR formula can't be placed on the Test table.
    The problem with the proposed condition: Test :: $C,"="&OR(355,360,432)
    is that the cell in Test C will meet that condition only if ti contains the boolean value TRUE.
    OR(n,n,n), where n is any number, returns FALSE only if all of the numbers are zero, and returns TRUE if any of the three arguments is a non-zero number.
    As the cell addressed by Test::$C always contains a number, not a Boolean value, the comparison (the number in) Test::$C is equal to (the Boolean value) TRUE will never itself be TRUE. As that condition never returns a TRUE value, none of the values in column J will be included in the SUMIF total.
    That SUMIFS conditions cannot accept multiple arguments is not true. Here's a small example. The Formula is shown in the entry box, the result in the selected cell (in a footer row), and the rows included in the sum are highlighted in yellow.
    Regards,
    Barry

  • How to read multiple arguments separated with space in one line

    How to modify the
    public static void main (String[] args){
    }so that it can read multiple arguments separated with space in a single line?
    e.g.
    java myprogram username password host
    java myprogram2 ipaddress port
    Thx.

    public static void main (String[] args){
      int index = 0;
      for(String arg : args) {
        System.out.println("args["+(index++)+" = "+arg);
    }

  • Implement Comparable with multiple arguments

    Is there a way of implementing Comparable<> with multiple different arguments to the Comparable generics?
    For example:
    public class Foo<K, V> implements Comparable<K>,
              Comparable<V>
    }The compiler complains with the error: "The interface Comparable cannot be implemented more than once with different arguments: Comparable<K> and Comparable<V>"
    Clearly, this cannot be done exactly like this, so I'm wondering if there is a different way of accomplishing the same functionality.
    Edited by: mgolowka on Apr 24, 2008 12:22 PM

    I'm working on creating a generic binary search tree. Currently I have this:
    public class BinarySearchTree<T extends Comparable<T>> implements Collection<T>
    }With the add() function, I can simply do add(T) that will use T's compareTo(T) method to find its place in the tree, however with the remove() and get() functions that I want to have would require an input of T, which isn't what I'm entirely looking for. I could change this to have a key/value pair so it's functionality is like a set, but I'm not sure if that's the best course of action. I could make it implement Map<K, V> to get that functionality...
    There is no time limit on this project as it is a part of a personal project.

  • Throwing Exception having multiple arguments in constructor

    hi,
    I am trying to implement exception handling for a JAVA + C++ module.
    In which C++ exception is caught by a Java module.
    The c++ code is as follows,
    try
    ///////////===========
    } catch (Exception1 &e) {
    jclass clazz = jenv->FindClass("test/Exception1Java");
    if(clazz)
    jenv->ThrowNew(clazz,e.getErrMsg().c_str());
    return 0;
    } catch (Exception2 &e) {
    jclass clazz = jenv->FindClass("test/Exception2");
    if(clazz)
    jenv->ThrowNew(clazz,e.getErrMsg().c_str());
    return 0;
    This works perfectly fine.
    But I want to pass one more argument as int while throwing the java exception.
    jenv->ThrowNew(clazz,e.getErrId(),e.getErrMsg().c_str());
    As the jenv->ThrowNew function only take two arguments I am unable to send the error id( int ) to the message.
    Is there any alternate to this function or some other approach to throw the java exceptions.

    hi,
    I am trying to implement exception handling for a
    JAVA + C++ module.
    In which C++ exception is caught by a Java module.
    The c++ code is as follows,<snip>
    >
    But I want to pass one more argument as int while
    throwing the java exception.
    env->ThrowNew(clazz,e.getErrId(),e.getErrMsg().c_str());>
    As the jenv->ThrowNew function only take two
    arguments I am unable to send the error id( int ) to
    the message.
    Is there any alternate to this function or some other
    approach to throw the java exceptions.Build the exception using the normal FindClass, GetMethodID approach,. and then throw it.
    #include "NativeExceptionTest.h"
    JNIEXPORT void JNICALL Java_NativeExceptionTest_test
    (JNIEnv *env, jobject obj, jint data) {
         if (data == 42) {
              jclass excClass = env->FindClass("MyException");
              if (!excClass) {
                   return;
              jmethodID ctorID = env->GetMethodID(excClass, "<init>", "(ILjava/lang/String;)V");
              if (!ctorID) {
                   return;
              jstring excMessage = env->NewStringUTF("ILLEGAL VALUE");
              jobject excObject = env->NewObject(excClass, ctorID,-1,excMessage);
              if (!excObject) {
                   return;
              env->Throw((jthrowable)excObject);
         return;
    }============================================
    public class NativeExceptionTest {
         static {
              System.loadLibrary("nativeException");
         NativeExceptionTest() {
               try {
                    test(42);
               } catch (MyException e) {
                   System.out.println("Exception: " + e.getCode() + "(" + e.getMessage() +")");
         private native void test(int i) throws MyException;
         public static void main(String[] args) {
              new NativeExceptionTest();
    class MyException extends Exception {
         private int code;
         MyException(int code, String message) {
              super(message);
              this.code = code;
         int getCode() {
              return this.code;
    }

  • [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 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?

  • Inputting multiple arguments into a method

    Hi,
    I have somewhat of a problem. I'm trying to create a method, stringQuery, and I do not know how many arguments the method will take.
    Allow me to explain my goal, so you can have some idea of what I'm talking about.
    I want to create a method that will basically generate a SQL query (no, this is NOT a JDBC question) from text. This method should be able to take a large number of String arguments, because the user might want to select one thing from the database, or he or she might want to select five things, or he or she might want to select twenty things.
    Because of this, there is not a set number of arguments for my stringQuery method.
    Furthermore, the method should also be able to take a large number of float arguments, in case the user wants to specify where he or she is selecting data from.
    It's just a mess, I'm not sure where to start, and I'm pretty damn sure there must be a better way. I can specify that I want an infinite number of Strings by saying something like this:
    public static String stringQuery(String... select)But I cannot do the same for floats, or for another String array. Or can I? If I try to do something like:
    public static String stringQuery(String... select, float... foo)I get a syntax error, that says "select must be the last parameter". If I change the order, it will say "foo must be the last parameter", obviously. Therefore, I can't do that.
    I realize this is a lot of information. However, if someone could please point me in the right direction here (either how to do what I am trying to do, or a better method for what I am trying to do), I would be very appreciative.
    Also, please let me know if this didn't make much sense, and what part of it didn't make sense.
    Thanks,
    Dan

    I'm not too sure what you mean by this. Do you know
    of any links or resources that can explain this
    further?Search for "Object-Oriented Programming".public class SQLBuilder {
      private // some list of selection criteria
      public SQLBuilder() {
        // initialize the list to empty
      public void addCriterion(String name, String value) {
        // add this criterion to the list
      public void addCriterion(String name, int value) {
        // add this criterion to the list
      // many more overloaded addCriterion methods could go here
      public String toString() {
        // compute the SQL string based on the list
    }And to use that:SQLBuilder builder = new SQLBuilder();
    builder.addCriterion("name", "Arthur Eddington");
    builder.addCriterion("answer", 137);
    String query = builder.toString();

  • Call apt with multiple arguments

    Is it possible to call apt inside a java class and pass multiple .class files?
    For example:
    String[] args = new String[5];
    args[0] = "-nowarn";
    args[1] = "-XclassesAsDecls";
    args[2] = "-classpath";
    args[3] = System.getProperty("java.class.path");          
    args[4] = "packageName.FirstClass packageName.SecondClass";
    return Main.process(new MyAnnotationProcessorFactory(),args);Result of the above example is:
    error: Could not find class file for packageName.FirstClass packageName.SecondClass
    1 error

    The class path contains classes that we need.
    This example works:
    String[] args = new String[6];
    args[0] = "-nowarn";
    args[1] = "-XclassesAsDecls";
    args[2] = "-classpath";
    args[3] = System.getProperty("java.class.path");     
    args[4] = "packageName.FirstClass";
    args[5] = "packageName.SecondClass";
    return Main.process(new IapiAnnotationProcessorFactory(),args);I replaced args[4] = "packageName.FirstClass packageName.SecondClass"; with a
    args[4] = "packageName.FirstClass";
    args[5] = "packageName.SecondClass";

  • WebService - Multiple arguments problems

    Hi everyone,
    I need to call a method of a given Webservice which is
    described by the following code in the WSDL file :
    <s:element name="loadWorkspace">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="1" maxOccurs="1" name="nServer"
    type="s:int"/>
    <s:element minOccurs="0" maxOccurs="1" name="sWorkspace"
    type="s:string"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    When the WSDL is parsed, and when I call
    MyWS.LoadWorkspace(0,"MyWorkspace"), the second parameter is not
    caught in the trace. Here is the result :
    3/30 17:0:29 [INFO] SOAP: Asynchronously invoking SOAPCall:
    LoadWorkspace(0,"plop")
    param:loadWorkspace1 0
    param:LoadWorkspaceResult plop
    3/30 17:0:29 [INFO] : Invoking call LoadWorkspace
    loadWorkspaceResponse :-1
    Someone can help me to call this method with the two
    arguments ?

    I up my topic... I realise that I also have problems passing
    only one arguments...
    It seems that FMS is uncompatible with WebService with
    complex types.
    Is there a solution to adapt my application to this
    Webservice ? Or, have I to re-write a compatible Webservice
    ?

  • Multiple Arguments

    I created a currency conversion app (from the command line) that grabs conversion rates from a DB table, calculates and returns the value. Right now I give the method two input arguments, String Region (CAD) and Int Unit (10). This works well if I only use 1 Code and 1 Unit. What if I want to test 200 country codes with 200 different units? I want the user to be able to send however many codes he/she wishes. I am not sure how to accomplish this task. I am not sure how do this because both arguments are of diff types.
    Here is what it looks like now:
    public static float convert(String region, int units) {
    I suck a Java!!!!!!!!!!!!

    if your program works off of command line arguments, how will the user enter his/her unlimited number of data points?
    (e.g.:
    convert 100 CZK 200 GBP 300 PLZ
    returns
    100 USD = ??? Czech Koruna
    200 USD = ??? British pounds stirling
    300 USD = ??? Polish zloty
    Do you always convert from one given currency? (I assume so, since you're only giving one unit, not two!)
    in any case, it seems you have two choices: (1) collect all your input, and call your function once for each set of data, or (2) send all your data in one call to the function, then process it in the function.
    if you choose the first, then you have a loop outside your function call (like another poster noted). if you choose the second, then you could make your parameters arrays.
    Larry

Maybe you are looking for

  • Not opening multiple RAW files

    If i open a Raw file in Bridge, it opens up perfectly. Also my jpegs and tiff open in RAW, so no problem there. The problem is, that I cannot open multiple Raw files from Bridge into Raw with the option "open in Camera Raw" So the shortcut cmd+R ( I

  • HT1937 how to rogers iphone 4 factory unlock

    I am using iPhone 4 , my iPhone 4 is lock in Rogers Canada ,  I want to my iPhone is factory unlock , it's possible

  • After Updates on Shut down, I see HPInvent logo and Windows doesnt run

    Been working out some bugs. Was using this laptop for work and work was always installing this and that for us to use. Bad medicine! Computer quit working correctly. After awhile I opened it up again to apply new knowledge. Explorer would not respond

  • Having problems implementing OMS

    Please be patient with me as I am new to Oracle, I have not been able to configure and run OMS even though I have followed the instructions I have found in several locations including the OMS Configuration Guide and the Oracle By Example Series. I ha

  • Installation sequence using PS7 and PS7 with SRA

    Our implementation architecture has three network zones i.e., Internet zone, SSN and data zone. We have two solaris machines. Each machine has one global and three local zones. Every machine zone has a iDM product installation. We did installation in