Variable number of arguments in DML

In my OLAP DML program, I need to take variable number of arguments. I took the number of inputs as one argument and then tried to take succeeding inputs as arguments in a while-loop, but got an error saying "All ARGUMENT statements must precede the first non-declarative"
Can you suggest a way in which I can take variable number of arguments in an OLAP DML program?

This any use:
DEFINE ARG.TEST PROGRAM
blank
shw joinchars('Number of Arguments Passed: ' ARGCOUNT)
blank
blank
shw joinchars('Argument 1: ' arg(1))
shw joinchars('Argument 2: ' arg(2))
shw joinchars('Argument 3: ' arg(3))
shw joinchars('Argument 4: ' arg(4))
blank

Similar Messages

  • Variable number of arguments in procedure PL/SQL

    Hello everyone,
    I have a "simple" question : can a procedure PL/SQL take a variable number of arguments ?
    In my case, the procedure is called by the submit button of a form, and the form has variable number of inputs...
    Thanks you !

    862447 wrote:
    I have a "simple" question : can a procedure PL/SQL take a variable number of arguments ?No. Not in the style of Pascal and C/C++. E.g. int printf( char * format, … ) in C using va_list.
    In my case, the procedure is called by the submit button of a form, and the form has variable number of inputs...There are a couple of merhods.
    Code a fixed number of parameters in the procedure signature. Assign defaults to these. The caller can now select which parameters from the fixed list to use and which not.
    Create a structure. For example, having a 100 parameters in a signature is something I will call plain stupidity. This creates usability issues, maintenance issues and even performance issues. And debugging will be a nightmare. So instead create a structure (aka record in the PL/SQL language or an object using the SQL language) - where this structure describes (in a structured and logical way) the list of parameters.
    Neither of these method however allows the caller to pass a variable number parameters - the parameter signature is fixed. It has a fixed number of defined parameters.
    So the only way to simulate a variable parameter signature is to use a collection. The collection itself is of course a single parameter passed. But it can have 0 elements. It can have a 1000 elements. And similar to a va_list in C/C++, the procedure can iterate through the data passed via the parameter by the caller.
    Simple example:
    //-- define the collection type, e.g. a collection of strings
    create or replace type TStrings is table of varchar2(4000);The procedure's signature:
    --// passing by referencing and not value should be considered
    create or replace procedure FooProc( param TStrings ) is ..And to call this procedure with variable parameters:
    --// calling it with 2 param value
    FooProc( TString('123','testing') );
    --// calling it with 5 param values
    FooProc( TString('p1','p2','p3','p4','p5') );

  • Passing variable number of arguments in a stored procedure

    Hi Team,
    i am facing a problem. I have a dynamic form which contains some checkboxes. The number of checkboxes are dynamically generated on querying the database. On the form submission i want to call a stored procedure that will update the values in the database. i want to know that is there any way to handle variable number of arguments in the stored procedure or can i get the variables through some session context and use it in my stored procedure.
    Any help is greatly appreciated.
    Thanks&Regards
    Saurabh Jain

    Hi Saurabh,
    The method in which stored procedures are called on form submit is something as follows.
    Let us take your scenario of a form which has multiple checkboxes and a submit button. On clicking the submit button, this form data is submitted using either get or post. The form's submit action invokes a procedure.
    The HTML form code will look something like this..
    htp.formOpen( curl => 'URL /myProcedure',
    cmethod => 'post' );
    htp.formCheckbox( cname => 'myCheckbox'
    cvalue => 'A');
    htp.formCheckbox( cname => 'myCheckbox'
    cvalue => 'B');
    htp.formCheckbox( cname => 'myCheckbox'
    cvalue => 'C');
    htp.formSubmit( cname => 'myButton',
    cvalue => 'OK');
    Now, whenever the submit button is clicked, all these form values are passed to our stored procedure 'myProcedure'.
    "myProcedure" looks something like this.
    procedure myProcedure
    myCheckbox IN sys.owa_util.vc_arr,
    myButton IN VARCHAR2
    is
    begin
    end myProcedure;
    The point to be noted here is that the name of the variable being passed in the procedure is the same as the name of the HTML element being created in the HTML form. So, there is a direct mapping between the elements in the HTML form and the procedure parameters.
    Another noteworthy point is that since you have multiple checkboxes in your HTML form, it is impractical to name all the checkboxes differently and then pass those many parameters to your procedure (Imagine a scenario where there are a hundred check-boxes in an HTML form!). So portal allows you to give the same name (cname) to all the checkboxes in your HTML form, and if multiple checkboxes are checked, it will return all the checkbox values in an array (Note the usage of "myCheckbox IN sys.owa_util.vc_arr" in myProcedure).
    You can check out this link for more information.
    Re: retrieving data from fields
    Thanks,
    Ashish.

  • Variable number of arguments in C functions

    Hello. I know how to achieve creating a function that accepts a variable number of arguments. For example:
    #include <stdio.h>
    #include <stdarg.h>
    int add (int x, ...);
    int main (int argc, const char * argv[])
    int result = add(3, 5, 3, 7);
    printf("%d", result);
    return 0;
    int add (int x, ...)
    va_list argList;
    va_start(argList, x);
    int sum = 0;
    int i;
    for (i = 0; i < x; ++i)
    sum += va_arg(argList, int);
    va_end(argList);
    return sum;
    The first argument, x, is sent to the function and represents how many additional optional arguments will be sent to the function (3 in the above example). Then, the definition of the add function totals those remaining (3) arguments, returning a value of (in this case) 15, which main then prints to the console. Simple enough, but here's my question:
    What if I want to achieve this same optional arguments concept without having to send the function the number of optional arguments it will be accepting. For example, the printf() function takes an optional number of arguments, and nowhere there do you have to specify an extra argument that represents the number of additional optional arguments being passed (unless maybe the number of formatting specifiers in the first argument determines this number). Can this be done? Does anyone have any input here? Thanks in advance.

    Hi Tron -
    I looked over my first response again, and it needs to be corrected. Fortunately Bob and Hansz straightened everything out nicely, but I still need to fix my post:
    RayNewbie wrote:
    Yes, the macros are designed to walk a list of args when neither the number of args or their type is known.
    The above should have said. "The macros are designed to walk a list of args when neither the number of args or their type is known _at compile time_".
    If I may both paraphrase and focus your original question, I think you wanted to know if there was any way the function could run without knowing the number of args to expect. The answer to this question is "No". In fact at runtime, the function must know both the number of args and the type of each.
    Tron55555 wrote:
    ... the printf() function takes an optional number of arguments, and nowhere there do you have to specify an extra argument that represents the number of additional optional arguments being passed (unless maybe the number of formatting specifiers in the first argument determines this number).
    As both Bob and Hansz have explained, the underlined statement is correct. Similarly, the example from the manual gives the number and types of the args in the first string arg.
    Hansz also included an alternative to an explicit count or format string, which is to terminate the arg list with some pre-specified value (this is sometimes called a "sentinel" value. However when using a sentinel, the called function must know the data types. For example, you could never simply terminate the args with a sentinel and then pass a double followed by an int. The combined length of these args is 8 + 4 => 12 bytes, so unless the function knew which type was first at compile time, it wouldn't be possible to determine whether the list was 4+8 or 8+4 at runtime.
    If you're interested in knowing why a variable arg function is limited in this way, or in fact how any C function finds its args, its parameters, and how to return to the calling function, you might want to do some reading about the "stack frame". You can learn the concept without getting into any assembler code. Here's an article that might be good to start with: [http://en.citizendium.org/wiki/Stack_frame].
    After you have some familiarity with the stack frame, take a look at the expansions of the stdarg macros and see if you can figure out how they work, especially how va_arg walks down the stack, and what info is required for a successful trip. Actually, I don't think you can find these expansions in the stdarg.h file for Darwin; it looks like the #defines point to built-in implementations, so here are some typical, but simplified defs:
    // these macros aren't usable; necessary type casts have been removed for clarity
    typedef va_list char*;
    #define va_start(ap,arg1) ap = &arg1 + sizeof(arg1)
    #define va_arg(ap,type) *(ap += sizeof(type))
    #define va_end(ap) 0
    Note that I"m trusting you not to start asking questions about the stack or the above macros until you've studied how a stack works and how the C stack frame works in particular.
    - Ray

  • Can we write function with variable number of argument

    Hi
    Can anybody tell that can we pass variable number of arguments to a function in oracle 10gR2.
    As in function decode we can pass variable no. of arguments upto 255 arguments, similarly can we creat a function which accept any no. of variables.

    I'm not sure that this is what you were asking about, but depending on the logic you want to implement, you can declare the maximum possible number of parameters to your function, give them default values, and then pass to your func as many parameters as you want:
    SQL> create or replace function test(p_a number:=null, p_b number:=null) return varchar2 is
      2    Result varchar2(100);
      3  begin
      4    result:='a='||p_a||', b='||p_b;
      5    return(Result);
      6  end test;
      7  /
    Function created
    SQL> select test() from dual;
    TEST()
    a=, b=
    SQL> select test(1) from dual;
    TEST(1)
    a=1, b=
    SQL> select test(1,2) from dual;
    TEST(1,2)
    a=1, b=2
    SQL> drop function test;
    Function dropped
    SQL>

  • How execute a dynamic statement with a variable number of bind variables

    Hi all.
    I would like to execute SQL statements in a PL/SQL function.
    SQL statements must use bind variable in order to avoid parsing time. But the number of arguments depends on the context. I can have from 10 to several hundreds of arguments (these arguments are used in a 'IN' clause).
    To minimise the number of differents signature (each new signature involve a parsing), the number of argument is rounded.
    My problem is : how to set dynamicaly the bind variables ?
    Cause it is pretty simple to construct dynamicaly the SQL statement, but using an
    " OPEN .... USING var1, var2, ..., varX "
    statement, it is not possible to handle a variable nomber of bind variable.
    I am looking for the best way to do the same thing that it can be done in java/JDBC with the PreparedStatement.setObject(int parameterIndex, Object x).
    I saw the dbms_sql package and bond_variable procedure : is a the good way to do such a thing ?
    Thanks

    If the variation is only values in an IN list, I would suggest using an object type for the bind variable. This lets you have just one bind variable, regardless of how many values are in the IN list.
    The dynamic SQL ends up looking like:
    ' ... where c in (select * from table(:mylist))' using v_list;where v_list is a collection based on a SQL user-defined type that can be populated incrementally, or in one shot from a delimited list of values using a helper function.
    I use this approach all the time in dynamic searches.
    See this link for more details:
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:110612348061

  • Variable No. of Arguments

    How we can pass variable no. of arguments in JAVA (like in C/C++)
    where arguments are different type?
    To pass similar data type, we declare function as follows:-
    <type_specifier> function_name(Object vna...) {
    <function_body>;
    }

    cotton.m wrote:
    gajesh wrote:
    How we can pass variable no. of arguments in JAVA (like in C/C++)
    where arguments are different type?In my opinion you should stop now and really consider if this is a good idea. (It isn't). Do you really want a method that can take any number of variables of any type? (You don't). What kind of code will your method need to deal with this (a lot of ugly instance of probably).
    This is just not a good idea. I would suspect you want to do this in the name of some sort of "flexibility" but if so this is the wrong way to approach this and your design needs a rethink.I would also assume he simply wants to have a set parameter string that he can use in every method declaration he writes, so that he doesn't have to bother about any sort of restrictions. Who cares about all the problems that might (will) cause with every other aspect of the program though. ;-)

  • Procedure - Execute - Wrong Number of Arguments...

    Hi All,
    I am using the following block for executing procedure.
    But iam getting OUT parameter error.
    Error
    ORA:06550: line4,column9:
    PLS:00306: wrong number or arguments in call to PROCSS_PROC
    ORA:06550: line 4,column9
    PL/SQL: statement ignored
    DECLARE
       l_status      NUMBER(1);
    BEGIN
                SCHEMA_NAME.PKG_NAME.PROCSS_PROC
                      (  3,    --> Days to be purged
                         T_TYPE('TABLE_1','TABLE_2','TABLE_3'),
                      l_status
            DBMS_OUTPUT.PUT_LINE('l_status - '|| l_status);
    END;
    Main Package procedure
    CREATE OR REPLACE PACKAGE pkg_name
    AS
       TYPE T_TYPE IS TABLE OF VARCHAR2 (4000);
       PROCEDURE PROCSS_PROC
                    p_freq          IN       NUMBER,         
                    p_multi_tab     IN       T_TYPE,    
                    p_res           OUT      NUMBER
    END pkg_name;                                             --End of Package
    CREATE OR REPLACE PACKAGE BODY pkg_name
    AS
       PROCEDURE PROCSS_PROC (
                    p_freq          IN       NUMBER,         
                    p_multi_tab     IN       T_TYPE,    
                    p_res           OUT      NUMBER   )
       IS
       BEGIN
          --Setting the local variable to check whether the procedure executed successfully or not.
          --If it returns '0'; then all the process haven't got successfully completed
          --If it returns '1'; then all process got success
          p_res := 0;
          p_res := 1;            --If it returns '1'; then all process got success
       END PROCSS_PROC;                                  --End of the Procedure
    END pkg_name;                                         --End of the Package
    /Please help....
    Thanks..
    Edited by: Linus on Oct 4, 2010 6:07 AM

    Type is declared in the package, therefore to reference it outside the package you must qualify it with package name:
    DECLARE
       l_status      NUMBER(1);
    BEGIN
                SCHEMA_NAME.PKG_NAME.PROCSS_PROC
                      (  3,    --> Days to be purged
                         pkg_name.T_TYPE('TABLE_1','TABLE_2','TABLE_3'),
                      l_status
            DBMS_OUTPUT.PUT_LINE('l_status - '|| l_status);
    END;
    /SY.

  • Maximum number of Arguments in Javascript function

    Is there a way to handle large number of arguments to a Javascript function ?
    abhay

    Hello,
    Well this is more a pure javascript question than a HTML DB you should ask google.
    But it depends what you are doing with your function, if each value is a specific variable then no your function will have to look like f(nul,null,null,1,null,null,null,.........) .
    If you are using them to populate an js array you can iterate through your arguments or just provide the array are your argument.
    Personally and I do know a little about javascript I would avoid like the plague any js function that requires 50 arguments ( i usally start looking at a different solution at abut 10 arguments) especially if most of them could be null, there absolutely has to be a better way to do it.
    Like breaking up into smaller more specific functions or creating a js object that is more robust, agian you should ask google.
    Carl

  • Getting Wrong number of Arguments as response

    Hi,
    I am just trying run one Process Rtask for RACF called "AdduserToDataSet" which gives a response called Wrong number of Arguments:
    I checked for both Process Task mapping variables and Adapter Varibles and looks like both are same. Not sure what could be the issue?
    2011-05-27 06:04:30,281 INFO (http-0.0.0.0-8080-7) [STDOUT] Target Class = com.identityforge.oracle.integration.IdfUserOperations
    *2011-05-27 06:04:30,281 ERROR (http-0.0.0.0-8080-7) [STDERR] java.lang.IllegalArgumentException: wrong number of arguments*
    2011-05-27 06:04:30,281 ERROR (http-0.0.0.0-8080-7) [STDERR]      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2011-05-27 06:04:30,281 ERROR (http-0.0.0.0-8080-7) [STDERR]      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    2011-05-27 06:04:30,281 ERROR (http-0.0.0.0-8080-7) [STDERR]      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    2011-05-27 06:04:30,281 ERROR (http-0.0.0.0-8080-7) [STDERR]      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    2011-05-27 06:04:30,281 ERROR (http-0.0.0.0-8080-7) [STDERR]      at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpADDUSERTODATASET.ADDUSERTODATASETTASK(adpADDUSERTODATASET.java:109)
    2011-05-27 06:04:30,281 ERROR (http-0.0.0.0-8080-7) [STDERR]      at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpADDUSERTODATASET.implementation(adpADDUSERTODATASET.java:58)
    2011-05-27 06:04:30,281 ERROR (http-0.0.0.0-8080-7) [STDERR]      at com.thortech.xl.client.events.tcBaseEvent.run(Unknown Source)
    2011-05-27 06:04:30,281 ERROR (http-0.0.0.0-8080-7) [STDERR]      at com.thortech.xl.dataobj.tcDataObj.runEvent(Unknown Source)
    2011-05-27 06:04:30,281 ERROR (http-0.0.0.0-8080-7) [STDERR]      at com.thortech.xl.dataobj.tcScheduleItem.runMilestoneEvent(Unknown Source)
    2011-05-27 06:04:30

    Can you enable the debug logging level for the connector and retry and then post the output?
    Thanks,
    Kevin

  • SPD 2013 WF Error: Maximum number of arguments per activity (50).

    Hi,
    We have hit a limit with using variables in SPD Designer workflow in SP2013. The following is the error message that we receive:
    "Microsoft.Workflow.Client.ActivityValidationException: Workflow XAML failed validation due to the following errors: Activity 'DynamicActivity' has 52 arguments, which exceeds the maximum number of arguments per activity (50)."
    The following thread >>here
    did provide a solution but we need a solution that's based on Powershell or Server Object Model. Is there an approach for changing the variable limit for workflows with Server Object Model/Powershell?
    Blog: http://dotnetupdate.blogspot.com |

    Hi Vikram,
    as i know if you want to change this, there is no other way then to update the database directly, that we strongly not recommend this to be done.
    they may not have any powershell or server object modal command to update the database value directly, instead you need to try on your environment, here is the example to access sql from powershell:
    http://technet.microsoft.com/en-us/magazine/hh289310.aspx
    to check the database, you can use the database explorer to develop the code:
    http://moresharepoints.blogspot.in/2014/01/sharepoint-designer-2013-workflow-error.html
    Regards,
    Aries
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Overload resolution failed because no accessible "New" accepts this number of arguments.

    HI
    Just need a little help figuring this error out.  The New Font is giving me trouble.  Overload resolution failed because no accessible "New" accepts this number of arguments. I don't know what I'm doing wrong here.  Any help would
    be greatly appreciated. 
    PrivateSubmnuPrint_Click(sender
    AsObject,
    e AsPaintEventArgs)
    HandlesmnuPrint.Click
    DiminputFile
    AsStreamReader  
    'Object variable
    DimintX
    AsInteger=
    10        'X coordinate for printing
    DimintY
    AsInteger=
    10        'Y coordinate for printing
    Try
    'Open the file
                inputFile =
    File.OpenText("dataFile.txt")
    'Read all the lines in the file
    DoWhileNotinputFile.EndOfStream
    'print a line from the file
                    e.Graphics.DrawString(inputFile.ReadLine(),
    NewFont,
    CSng(("Courier")),
    10, FontStyle.Regular,
    Brushes.Black, intX, intY)
    'Add 12 to intY
                    intY += 1
    Loop
    'Close the file
    Catchex
    AsException
    'Error message for file open error
    MessageBox.Show("Error:
    Could not open file.")
    EndTry
    EndSub
    Thanks in Advance!

    Elise,
    Please modify your post and this time around, instead of showing the code as text, click the button in the header that has a "<>" in it to use the Code Block tool. Select VB from the combo, the paste your code there, then finally post it
    here. It'll be a lot easier to read that way. :)
    Also though, please indicate which line is showing the compile error.
    Do you have Option Strict set to On? You should if not.
    Still lost in code, just at a little higher level.

  • Incorrect number of arguments expected 1

    Hi,
    I'm new to this flex. Actually i want to set busycursor in loadValue Function. But i'm getting error as Here i'm getting an error as incorrect number of arguments expected 1.
    the error that i'm getting in 3rd line. and i have not pasted full code here. But i pasted only where i'm getting error when i tried to inser busyCursor.
    So please help me what i hv to change. waiting for your replay.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
              creationComplete="loadValues()" horizontalAlign="center"      --------------->  Here i'm getting an error as incorrect number of arguments expected 1.
              verticalAlign="middle"  color="#080808" borderColor="#FFF8E0" backgroundColor="#FFF8E0"
              xmlns:local="*"
              xmlns:tInput="assets.actionScript.*"
              xmlns:controls="com.iwobanas.controls.*"
              initialize="initTimer()"
              xmlns:dataGridClasses="com.iwobanas.controls.dataGridClasses.*"
              applicationComplete="init(event)" height="100%" width="100%">
    <mx:Style source="defaults.css" />
    <mx:Script>  
              <![CDATA[
                        import assets.actionScript.Trim;
                        import com.scottlogic.charts.DataGridExporter;
                        import mx.controls.ComboBase;
                        import assets.script.pods.view.Data;
                        import org.alivepdf.layout.Unit;
                        import mx.collections.ICollectionView;
                        import assets.actionScript.EscalationDTO;
                        import alarmSlide.TowerSelection;
                        import flash.net.navigateToURL;
                        import mx.binding.utils.BindingUtils;
                        import mx.controls.dataGridClasses.DataGridItemRenderer;
                        import mx.events.ListEvent;
                        import mx.charts.chartClasses.DualStyleObject;
                        import assets.actionScript.TowerInchargeRoleMappingDTO;
                        import flash.utils.clearInterval;
                        import flash.utils.setInterval;
                        import alarmSlide.SendMessageForEscalation;
                        import mx.skins.halo.BusyCursor;
                        import alarmSlide.REForAlarmReport;
                        import mx.managers.ToolTipManager;
                        import mx.controls.ToolTip;
                        import mx.collections.SortField;
                        import mx.collections.Sort;
                        import mx.messaging.messages.RemotingMessage;
                        import mx.events.AdvancedDataGridEvent;
                        import assets.actionScript.TowerStatus; 
                        import mx.rpc.events.FaultEvent;
                        import mx.rpc.events.ResultEvent;
                        import assets.actionScript.ValueObject;
                        import mx.messaging.channels.AMFChannel;
                        import alarmSlide.LEDChar;
                        import mx.utils.URLUtil;
                        import com.adobe.serialization.json.JSON;
                        import com.adobe.serialization.json.JSONDecoder; 
                        import mx.collections.ArrayCollection;
                        import mx.collections.IViewCursor;
                        import mx.collections.IHierarchicalCollectionView;
                        import mx.controls.Alert;
                        import mx.managers.PopUpManager; 
            import flash.net.FileReference;
                   import mx.messaging.messages.IMessage;
                  import mx.messaging.Channel;
                  import mx.messaging.ChannelSet;
                  import mx.messaging.channels.StreamingAMFChannel;
                        import flash.display.StageDisplayState;      
                        import mx.collections.ArrayCollection;
                        import mx.managers.CursorManager;
                        private var sendMessageScreen:SendMessageForEscalation;
                        private var escalationAlarmHistoryPopup:EscalationAlarmHistoryPopup;
                        public var manualOrScheduleTicketing:ManualOrScheduleTicketing;
                        public var editEscalationLevelPopup:EditEscalationLevelPopup;
                        private var escalationLevelPopup:EscalationLevelPopup;
                        private var escalationSiteDetailsPopup:EscalationSiteDetailsPopup;
                        [Bindable] private var towerName:String = "NoData";  
                        [Bindable] private var contactNumber:String = "NoData";
                        // Data Storgae variables
                        [Bindable] private var energyConsumption:ArrayCollection = new ArrayCollection();
                        [Bindable] public var dataColl:ArrayCollection = new ArrayCollection();
                        [Bindable] public var closedTicketArrayColl:ArrayCollection = new ArrayCollection();
                        [Bindable] private var towerDetails:ArrayCollection = new ArrayCollection();
                        [Bindable] private var escalationData:ArrayCollection = new ArrayCollection();
                        [Bindable] public var escalationLevelDetails:ArrayCollection = new ArrayCollection();
                        [Bindable] public var towerEscalationLevelDetails:ArrayCollection = new ArrayCollection();
                        [Bindable] private var escalationMasterList:ArrayCollection = new ArrayCollection();
                        [Bindable] public var alarmDetailsList:ArrayCollection = new ArrayCollection();
                        [Bindable] public var siteInformationList:ArrayCollection;
                        [Bindable] public var communicationInfoList:ArrayCollection;
                        [Bindable] public var operatorDetailsList:ArrayCollection;
                        [Bindable] public var siteLiveDataList:ArrayCollection;
                        [Bindable] public var siteLiveAlarmDetailsList:ArrayCollection;
                        [Bindable] public var ticketEscalationStateList:ArrayCollection = new ArrayCollection();
                        [Bindable]
                        public var siteAndDistrictDisplayName:String="";
                        public var categoriesArrColl:ArrayCollection = null;
                        public var tempArrColl:ArrayCollection = null;
                        public var userID:int = 0;
                        public var customertId:int = 3;
                        private var popupWin:PopupForTicketing;
                        // to store tower configuration
                        public static var data:ArrayCollection = new ArrayCollection();
                        private var intervalUnit:uint;
                        [Bindable]  
                        public var folderList:XMLList;
                        // BlazeDS variables
                 [Bindable] public var channelUrl:String;  
                  [Bindable] public var liveId:int=0;
                           [Bindable]
                           public var emailOrSmsMessageFormat:String = "";
                        [Bindable]
                        private var escalationEditOption:Boolean = false;
                        [Bindable]
                        private var swapCount:int = 0;
    //  ---------------------------- To Control Session ------------------------- //
            public var myTimer:Timer;
                        private function initTimer():void
                                   myTimer = new Timer(1800000);
                             myTimer.addEventListener("timer",logout);
                             this.addEventListener(MouseEvent.MOUSE_MOVE, resetTimer);
                             myTimer.start();
                        private function logout(event:Event):void
                                  this.addEventListener(MouseEvent.CLICK,forward);
                        private function forward(event:Event):void
                                  navigateToURL( new URLRequest("jsp/checkin/index.jsp"),"_self");
                        private function resetTimer(event:Event):void
                                  myTimer.reset();
                            initTimer();
    //  ---------------------------- To Control Session ------------------------- //
                            * This method will be called as soon as SWF loads in the browser , creating a AMF channel which communicates to Java
                            private function loadValues(mouse:MouseEvent):void{   ----------------------------------------------------------------->> When i enter Event to the loadvalues function i'm getting that error
                                            ticketViewStack.selectedChild = liveTicketVBox;
                                      userID = Application.application.parameters.userId;
                                      customertId = Application.application.parameters.customerId;
                                             if("true" == Application.application.parameters.escalationEditOption.toString()){
                                                escalationEditOption = true;
                                            channelUrl = "./messagebroker/amf";
                                             userID = 92;
                                      customertId = 3;
                                               escalationEditOption = true;
                                              channelUrl = "http://172.16.1.144:5009/messagebroker/amf";
                                var cs:ChannelSet = new ChannelSet();
                                            var customChannel:AMFChannel = new AMFChannel("my-amf",channelUrl);
                                            cs.addChannel(customChannel);
                                            remoteObject.channelSet = cs;
                                            remoteObject.getEscalationMaster();
                                            cursorManager.setBusyCursor();
                                            remoteObject.getAllLiveEscalationDetails(userID,customertId,displayTo wer.selectedItem.data,ticketType.selectedItem.data);
                                            cursorManager.removeBusyCursor();
                                            displayTower.selectedIndex = 0;
                                            refereshTime.selectedIndex = 0;

    Hi, Actually i did changes like show below.
    i made creationComplete="loadValues()"
    And i made
    private function loadValues():void
    I want to  set a busy cursor, But its not working.
    Actaully the loadValues() function will load the data when we open that perticular page.but it;ll take some time to load so that i want to put busy cursor. In above Code i used busy cursor but its not working.

  • How can I set a variable number of values in a SQL IN clause?

    Hi,
    How can I set a variable number of values in a SQL IN clause without having to change the text of the SQL statement each time?
    I read the link http://radio.weblogs.com/0118231/2003/06/18.html. as steve wrote.
    SELECT *
    FROM EMP
    WHERE ENAME IN (?)
    But we need the steps not to create type in the system and would there be any other solution if we would like to use variable number of values in a SQL IN clause ?
    We are using JDeveloper 10.1.3.2 with Oracle Database 10.1.3.2
    Thanks
    Raj

    Hi,
    can you please explain why the solution from steve is not the right solution for you.
    regards
    Peter

  • Possible to do variable number of REPLACE in SQL?

    Hello. Using Oracle 10G, R2
    Wondering if it is possible to do a variable number of REPLACE() entirely in SQL in a view.
    input_table.text_column = This (b)is(/b) some (i)text(/i) with (u)formatting(/u) codes
    Note: Using ( and ) to represent < and >
    rows in format_codes_table:
    (b)
    (/b)
    (i)
    (/i)
    (u)
    (/u)
    (p)
    (/p)
    etc. (The number of format_codes is not fixed)
    Desired output: This is some text with formatting codes
    This could be done with a user-defined function and then use that function in a SQL:
    create or replace function remove_format_codes(input_p IN varchar2)
    return varchar2
       v_output   varchar2(2000);
    is
    begin
       v_output := input_p;
       for r1 in (select format_code from format_codes_table)
       loop
          v_output := replace(v_output, r1.format_code);
       end loop;
       return v_output;
    end;
    create or replace view unformatted_output_vw
    as
    select remove_format_codes(input_table.text_column) as unformatted_output
    from input_table
    /I tried this SQL:
    select replace(input_table.text_column, format_codes_table.format_code) as unformatted_output
    from input_table
        ,format_codes_table
    /But it only replaces one format code at a time, and it is not recursive so the output is like this:
    This is(/b) some (i)text(/i) with (u)formatting(/u) codes
    This (b)is some (i)text(/i) with (u)formatting(/u) codes
    This (b)is(/b) some text(/i) with (u)formatting(/u) codes
    This (b)is(/b) some (i)text with (u)formatting(/u) codes
    etc.
    I've google'd Oracle recursive sql, looked at CONNECT BY, LEAD, LAG, MODEL, and I've also looked at a
    Tom Kyte example for varying in lists (http://tkyte.blogspot.com/2006/06/varying-in-lists.html),
    but I can't seem to find a way to replicate the loop in my user-defined function in SQL.
    Anyone think this is possible in SQL? If yes, any hints?
    Thanks

    Hi,
    Regular expressions (introduced in Oracle 10) are great for this:
    SELECT     REGEXP_REPLACE ( text_column
                     , '&lt;'          || -- left angle-bracket
                       '/?'          || -- optional slash
                    '[bipu]'     || -- any one of these characters
                    '>'             -- right angle-bracket
                     )      AS no_tag_text
    FROM    input_table
    ;You had some good ideas: recursive subqueries (new in Oracle 11.2), CONNECT BY and MODEL could also do this job, but not nearly as easily.
    In case you're interested, the following thread uses MODEL to do nested REPLACEs:
    SQL Query
    Edited by: Frank Kulash on May 13, 2010 4:08 PM
    Edited by: Frank Kulash on May 17, 2010 1:02 PM
    Fixed link

Maybe you are looking for

  • Reading Grid/Table contents using ECATT

    Need to retrive the SAP table/grid column or all columns contents using SECATT, please provide the solution. Thanks in ADVANCE.

  • Qosmio G25: Vertical lines of stuck pixels

    I have a huge problem with my Toshiba Qosmio G25: My LCD screen has 2 lines of stuck pixels, one pixel wide, running from top to bottom. Before continuing I would like to stress that my computer has not had any physical trauma of any kind and general

  • How to add volume meter in Windows Form Application?

    Assalam-u-Alaikum everyone! I've started working on Speech Recognition technology for my final year project. I am required to make a Speech Recognition System for Windows. I want to add volume meter in my software to see how loud the user is speaking

  • Ringtone Assignment

    Hi, I am trying to assign a song as my ringtone. In the process, using I-tunes, I need to right-click the song, click Get Info>Options and then tick the Start and Stop boxes to set the timing of the ringtone. I can't tick these boxes, nor can I tick

  • Authorization in ob52

    Hi, We created a authorization group called P002 and assinged in OB52.(Peroid Maintenance for Fi). in that we opened April and May 2009. but one is user is able to post in 2008 also. How can it possible. please guide me sateesh