Multiple Condition in Single CFL

Dear All,
In my code  CFL only recognizes the last condition.So how to set the loop for this condition
        If vendorcode = "" Then
                        SBO_Application.StatusBar.SetText("Please select vendorcode", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error)
                        BubbleEvent = False
                        Exit Sub
                    Else
                        Dim i As Integer
                        i = 0
                        Dim oCFLs As SAPbouiCOM.ChooseFromListCollection = oForm.ChooseFromLists
                        oCFL = oCFLs.Item("CFL_6")
                        oCFL.SetConditions(Nothing)
                        oCons = oForm.ChooseFromLists.Item("CFL_6").GetConditions
                        oCon = oCons.Add()
                        oCon.Alias = "CardCode"
                        oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
                        oCon.CondVal = vendorcode
                        oCon = oCons.Add()
                        oCon.Alias = "U_DCSta"
                        oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
                        oCon.CondVal = i
                        'oCon = oCons.Add()
                        oForm.ChooseFromLists.Item("CFL_6").SetConditions(oCons)
                    End If
Regards,
Guru

Guru,
Please refer to the following sample code for multiple condition.
'// create a new conditions collection
    Set oConditions = SBO_Application.CreateObject(cot_Conditions)
    '// Let's assume we wish our query to select
    '// Bussines Partners of type "C" (Customers)
    '// or "S" (Suppliers)
    '// WHERE ((CardType = 'C') Or (CardType = 'S'))
    '// the conditions collection encapsulates the WHERE clause
    '// of a select statement
    Set oCondition = oConditions.Add
    '// ((CardType = 'C') Or
    oCondition.BracketOpenNum = 2
    oCondition.Alias = "CardType"
    oCondition.Operation = co_EQUAL
    oCondition.CondVal = "C"
    oCondition.BracketCloseNum = 1
    oCondition.Relationship = cr_OR
    Set oCondition = oConditions.Add
    '// (CardType = 'S'))
    oCondition.BracketOpenNum = 1
    oCondition.Alias = "CardType"
    oCondition.Operation = co_EQUAL
    oCondition.CondVal = "S"
    oCondition.BracketCloseNum = 2
Regards, yatsea

Similar Messages

  • How to set a Multiple condition in a single CFL

    Hi everyone,
    Hey guys, i have a problem filtering a CFL (ChooseFromList)
    where i have to select records
    WHERE U_SalesmanCode = <ConVal>
    AND U_Status = <ConVal>
    So i've come up with an idea setting up multiple conditions on a single CFL.
    i have a function "SetCFLConditions" that will be called after the CHOOSEFROMLIST_EVENT was triggered. this will set the conditions on a loop method.
    the CODE works fine. but it only accepts the last condition.
    Public Sub SetCFLConditions(ByVal _chooseFromList As String, _
                                    ByVal _alias As String, _
                                    ByVal _operation As SAPbouiCOM.BoConditionOperation, _
                                    ByVal _condVal As String)
            Dim oCFLCollection As SAPbouiCOM.ChooseFromListCollection = _form.ChooseFromLists
            Dim oCFL As SAPbouiCOM.ChooseFromList = oCFLCollection.Item(_chooseFromList)
            Dim oCons As SAPbouiCOM.Conditions
            Dim oCon As SAPbouiCOM.Condition
            Dim asAlias() As String = _alias.ToString.Split(",")
            Dim asCondVal() As String = _condVal.ToString.Split(",")
            Dim i As Int16
            oCFL.SetConditions(Nothing)
            'oCons = oCFL.GetConditions()
            For i = 0 To asAlias.Length - 1
                oCons = oCFL.GetConditions()
                oCon = oCons.Add
                '//LOOP CONDITIONS
                With oCon
                    .Alias = asAlias(i)
                    .Operation = _operation
                    .CondVal = asCondVal(i)
                End With
            Next i
            oCFL.SetConditions(oCons)
        End Sub
    Pls. Help
    Thanks
    Roger

    Hi,
    This is how i add the conditions..
    Dim oCFLS As SAPbouiCOM.ChooseFromListCollection
    Dim oCons As SAPbouiCOM.Conditions
    Dim oCon As SAPbouiCOM.Condition
    Dim oCFL As SAPbouiCOM.ChooseFromList
    Dim oCFLCreationParams As SAPbouiCOM.ChooseFromListCreationParams
    oCFLS = objForm.ChooseFromLists
    oCFLCreationParams = objSBOAPI.CreateUIObjectSAPbouiCOM.BoCreatableObjectType.cot_ChooseFromListCreationParams)
    oCFLCreationParams.MultiSelection = False
    oCFLCreationParams.ObjectType = "2"
    oCFLCreationParams.UniqueID = "CFL1"
    oCFL = oCFLS.Add(oCFLCreationParams)
    oCFLCreationParams.ObjectType = "2"
    oCFLCreationParams.UniqueID = "CFL2"
    oCFL = oCFLS.Add(oCFLCreationParams)
    oCons = objForm.ChooseFromLists.Item("CFL1").GetConditions
    oCon = oCons.Add()
    oCon.Alias = "CardType"
    oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
    oCon.CondVal = "C"
    objForm.ChooseFromLists.Item("CFL1").SetConditions(oCons)
    objForm.ChooseFromLists.Item("CFL2").SetConditions(oCons)
    Hope it helps,
    Vasu Natari.

  • How to set a Multiple condition for a single CFL

    Hi everyone,
    Hey guys, i have a problem filtering a CFL (ChooseFromList)
    where i have to select records
    WHERE U_SalesmanCode = <ConVal>
    AND U_Status = <ConVal>
    so i've some up with an idea setting up multiple conditions on a single CFL.
    i have a function "SetCFLConditions" that will be called after the CHOOSEFROMLIST_EVENT was triggered. this will set the conditions on a loop method.
    the CODE works fine. but it only accepts the last condition.
    Public Sub SetCFLConditions(ByVal _chooseFromList As String, _
                                    ByVal _alias As String, _
                                    ByVal _operation As SAPbouiCOM.BoConditionOperation, _
                                    ByVal _condVal As String)
            Dim oCFLCollection As SAPbouiCOM.ChooseFromListCollection = _form.ChooseFromLists
            Dim oCFL As SAPbouiCOM.ChooseFromList = oCFLCollection.Item(_chooseFromList)
            Dim oCons As SAPbouiCOM.Conditions
            Dim oCon As SAPbouiCOM.Condition
            Dim asAlias() As String = _alias.ToString.Split(",")
            Dim asCondVal() As String = _condVal.ToString.Split(",")
            Dim i As Int16
            oCFL.SetConditions(Nothing)
            'oCons = oCFL.GetConditions()
            For i = 0 To asAlias.Length - 1
                oCons = oCFL.GetConditions()
                oCon = oCons.Add
                '//LOOP CONDITIONS
                With oCon
                    .Alias = asAlias(i)
                    .Operation = _operation
                    .CondVal = asCondVal(i)
                End With
            Next i
            oCFL.SetConditions(oCons)
        End Sub
    Pls. Help
    Thanks
    Edited by: Roger Arce on Apr 17, 2009 12:14 PM
    Edited by: Roger Arce on Apr 17, 2009 12:15 PM

    Hai  Roger Arce 
    Better you post your question in SDK forum
    Edited by: Prasanna s on Apr 17, 2009 12:52 PM

  • If Statement Multiple Conditions

    Using LiveCycle, FormCalc or JavaScript.
    I am trying to create an if statement with multiple conditions.
    a Sum field calculates a series of numeric input fields. I want the result in the Sum field to determine the expression in a final field. 
    If the Sum is <30MM then "50000" also if the Sum is >30MM but <60MM then "125000" also if the Sum is >60MM but <100MM then "250000" also if the Sum is >100MM but <300MM then "375000" also if the Sum is >300MM then "500000"
    I have only been able to figure out a single if then for the first condition but not able to include the whole set of conditions and the multiple results.
    Help would be much Appreciated!
    Thank you in advance.

    Tried a few variations of this and still seem not
    to be able to find a solution to this issue. I'm surprised my google searches are bringing up better examples because there seems to be an example of everything else.
    Any more detailed advive?

  • Deleting data from another table with multiple conditions

    Hi frnds
    I need to delete some data from a table based on multiple condition I tried following sql but its deleteing some rows which is not meeting the criteria which is really dangerours. When i trying = operator it returns ORa- 01427 single -row subquery returns more than one row
    delete from GL_TXNS
    where TRN_DT in (Select trn_Dt from GL_MAT)
    and BR in (select ac_branch from GL_MAT)
    and CODE in (select CODE T from GL_MAT)
    and (lcy_amt in (select lcy_amt from GL_MAT) or
    fcy_amt in(select fcy_amt from GL_MAT)
    rgds
    ramya

    My answer is the same as Avinash's but I will explain a little bit more.
    ORa- 01427 single -row subquery returns more than one rowmeans that you have a subquery that Oracle is expecting one value from that is returning multiple values. In your case you need one value for the equijoin ("=") and you are getting more than one value back. The error happens even if all the values are the same - multiple values being returned will cause the error.
    The solution is to either allow multiple values to be returned (say, use the IN condition istead of "=") or only return one value if possible (say, forcing one value by using DISTINCT, GROUP BY, or a WHERE clause condition of ROWNUM=1) - but these workarounds must be checked carefully to make sure they work correctkly

  • About case and switch in multiple condition step in workflow.

    i ve some information about case and switch in multiple condition in workflow.
    case - static determination
    switch - runtime determination.
    but i want brief explanation about case and switch and difference please help me.....

    hi velmurugan............
        in case,
               we can have only one value for comparison and can have any number of branches for it.
       in switch,
               we can compare any number of values and have any number of branches.
    eg:
         consider i am triggering a workflow for purchase order change and i am having a multiple condition step.
    if i am going for a case:
            i can have only on value (ie po number/vendor number.....) as a parameter and can check different values with it. ( eg vendor number < 1000
                                                                 vendor number > 1000.... so on)
            a branch will be created for each condition.
    if i am going for a switch:
            i can take any parameter needed. (eg: vendor number > 1000
                                                                    order type = 'NB' .... so on)
             so a single branch can have any number of comparisons with the help of 'and' and 'or' operators and i can have any parameter for my condition.
    ---regards,
       alex b justin

  • Multiple views in single View Container

    Hi Experts,
    Is it possible to display multiple views in single view container.!! . I want to display 2  views in a view container based on condition. Please suggest me how to achieve this.
    Thanks,
    Regards,
    Ram.

    Hi.,
    Yes it is possible to embed views in one view container.
    Embed all views in one View Container . Assign plugs based on condition navigate through them.
    Create an attribute and bind the visibility property and play with show or hide.
    hope this helps.,
    revert if u need some more clarifications.,
    Thanks & regards
    Kiran

  • Advance Aggregation based on multiple conditions

    Hi members,
    I have a situation where I need to aggregate data based on multiple conditions. Relevant details of the problem is as follows.
    There is a table (let's call X). It has following columns:
    Transaction_Time (date)
    Transaction_direction (Possible values IN or OUT)
    Column_1
    Column_2
    Based on the columns: Transaction_direction, Column_1, Column_2, the type of the transaction will be derived. For example, if transaction_direction='IN' then transaction type is IN, if 'OUT' then transaction types are Out. Similarly if Column_1=Column_2 then transaction type is Txn_3 otherwise 4.
    Based on date and transaction types the aggregation will happen.The sample output would be:
    Time, Transaction type (IN, OUT, Txn_3, Txn_4), Sum of transactions
    10-June-2013 00:00  IN Transactions  2500
    10-June-2013 00:00  Txn_3 Transactions 3590
    and so.
    IN and Out transactions are easy to be derived using decode() function. However avoiding multiple UNION ALL and write a single SQL for all four conditions is tricky one.
    Hope I clarified.
    Neeraj

    What version of Oracle are you using?
    If you're on 11.x you can use the UNPIVOT feature as follows:
    with t (Transaction_Time, Transaction_direction, Column_1, Column_2) as (
    select date '2013-06-10', 'IN', 1, 1 from dual union all
    select date '2013-06-10', 'IN', 2, 2 from dual union all
    select date '2013-06-10', 'IN', 1, 2 from dual union all
    select date '2013-06-10', 'IN', 3, 4 from dual union all
    select date '2013-06-10', 'OUT', 3, 3 from dual union all
    select date '2013-06-10', 'OUT', 3, 4 from dual
    select * from (
    select
      transaction_time
    , sum(case when transaction_direction = 'IN' then 1 end)  as IN_count
    , sum(case when transaction_direction = 'OUT' then 1 end) as OUT_count
    , sum(case when Column_1 = Column_2 then 1 end)           as Txn_3_count
    , sum(case when Column_1 != Column_2 then 1 end)          as Txn_4_count
    from t
    group by transaction_time
    unpivot (
      txn_count for transaction_type in (
         IN_count as 'IN'
      ,  OUT_count as 'OUT'
      ,  Txn_3_count as 'Txn_3'
      ,  Txn_4_count as 'Txn_4'
    order by transaction_time, transaction_type
    TRANSACTION_TIME TRANSACTION_TYPE TXN_COUNT
    2013-06-10       IN               4      
    2013-06-10       OUT              2     
    2013-06-10       Txn_3            3      
    2013-06-10       Txn_4            3      
    If you're okay with getting one row per date with the 4 counts you can just use the inner select above, i.e.
    select
      transaction_time
    , sum(case when transaction_direction = 'IN' then 1 end)  as IN_count
    , sum(case when transaction_direction = 'OUT' then 1 end) as OUT_count
    , sum(case when Column_1 = Column_2 then 1 end)           as Txn_3_count
    , sum(case when Column_1 != Column_2 then 1 end)          as Txn_4_count
    from t
    group by transaction_time
    order by transaction_time
    TRANSACTION_TIME IN_COUNT OUT_COUNT  TXN_3_COUNT  TXN_4_COUNT
    2013-06-10       4        2          3            3      
    If you want to sum transaction amounts then use the same logic, except in the case statements replace 1 with the column you want to sum.
    Regards,
    Bob

  • Multiple Conditions\Actions in a Workflow

    I am in the process of creating an expense approval form with a workflow that has two Approval stages. In the first stage, however, the approver would be dynamic based on a selection in the form. The second stage approval would go to the same
    person\group. What's the best\correct way to do multiple\conditions\actions in a single step? As an example of the workflow:
    If Field1 equals Value1 Assign a task to Person1. If Associated Task is Approved create a new Task and Assign it to Person 10
    there would be about 12 different iterations of the first step, Value2 Assign to Person 2 and so on.

    Hi pjs, it depends on who the person is/how they're related to the selection on the form. If it's the user's manager, you can get that information by using the link below. If there's no real correlation to the selection made, then you'd have to make a list
    with two columns- "selection" and "person to email." Then check that list against the selection and get the corresponding email for the particular approver.
    http://www.sharepointanalysthq.com/2011/04/user-profile-data-in-sharepoint-designer-workflows/
    cameron rautmann

  • Calculation formula userexit not working for multiple condition types

    Hi,
    we have a problem in the CRM ISA-B2B scenario where the custom user exit is only working for single condition type.
    but we need it for multiple condition types .
    the value of the subtotal is not being retrieved for multiple conditions. at a time only one condition value is being retrieved and shown in the webshop - shopping basket.
    for ex:
    we have scenario 1 where Y001 -Freight condition type is applicable for one customer.and Y002 is applicable for another customer.
    when we are trying to show the subtotal condition value in the webshop by using a single custom user exit in the pricing procedure it is only working for either of the above 2 customers depending on the VMC cache status.
    is there any problem if use the single user exit for both condition types?
    and if it needs to be differentiated how exactly we can do that with the same logic in the java class.
    Thanks in advance,
    PSR.

    Hi Arshi,
    below is the code:
    public class ZValFormula_ZZWI1 extends ValueFormulaAdapter {
         private static String zzwi = "ZZWI1";
         private static char  zzwiC = '@';
         private static UserexitLogger userexitlogger = new UserexitLogger(
         ZValFormula_ZZWI1.class);
         public BigDecimal overwriteConditionValue(IPricingItemUserExit item,
                   IPricingConditionUserExit condition) {
              ICurrencyValue val = condition.getConditionValue();
              userexitlogger.writeLogDebug( "value saved for " + zzwi + " (" + zzwiC + ") = "
                        + val.getValueAsString());
              item.setSubtotal( zzwiC, val.getValue());
              return val.getValue();
    hope this would give more idea to look at the problem.
    Thanks,
    PSR

  • Multiple Price with Single Item

    Dear All,
    I work for Logistics company and they have implemented AR,AP,GL,OM,Purchasing...running smoothly.
    Now,they want to create multiple prices for single item,pls find below scenario ,
    A)     Business Process:
    Generally, customer goods will be split and sent in different trains. Then, for same destination & quantity we will get different amount.
    Note: Calculation done by Railways based on variable factors (like penalty charges for over weight or under weight).
    So everyday, every bill have different amount for same quantity and destination will be computed and given by railways.
    B) Current Process in Oracle:
    End user will select item and enter manually.
    C) Client Requirement:
    Needs to create single item with multiple prices
    Note: Item code and price list should be constant due to business requirement.
    I just wondering,how financial company manage price fluactutations...
    Kindly help me out to sort this issue pls.
    Regards,
    Kumar

    Hi Anil/Amit,
    O.K. accept that VK11 is for sales. But when I enter multiple records in VK11 it is getting saved. But same thing is not happening for MEK1. Is there any configuration need to change for the MEk1?
    Please let me know is there any other way or tcode to save the condition with multiple values for single line items.
    Regards,
    Praveen,

  • Multiple conditions for PO output

    Hi Folks,
    We'd like to have a multiple conditions set for a PO printing.
    First to set up for FAX.
    Next also to set up for Print
    In the normal mode, only a single condition can be set up. i.e. for a given output type you can set say for FAX, then you won't  be able to set another condition.
    I know that you can make a 'new' output type and then set printing condition too in addition to FAX.
    Any other recommendations/ suggestions?
    Thanks.

    Hello folks,
    Any directions/ thoughts to proceed?
    Thanks.

  • Scanning multiple pages into single document

    Is there a way to scan multiple pages into single document?  I am using the following: HP pavilion laptop with windows 8,  HP photosmart C6380 all in one printer scanner copier.

    Hi,
    Please try
    Double click printer icon on desktop,
    Select Scan a Document or Photo,
    Put the first page on the glass (face down),
    Check options (size, dpi ...), and select Scan document to file,
    Click Scan - machine will scan the first page
    Remove the first page on the glass, put the second page,
    Click + (plus sign) It sits on the left hand side of a red x
    Machine will scan the second page, put 3rd page on the glass and click + again ..... to the end then click Save
    Click Done after Save
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Problem in Loading Multiple image in Single Sprite/MovieClip

    Hi All,
    I am having a killing problem in loading multiple images in single movie clip/sprite using a separate class.
    Here is the ImageLoader.as class
    package com.project.utils{
        import com.project.*;
        import com.project.utils.*;
        import flash.events.EventDispatcher;
        import flash.display.MovieClip;
        import flash.events.Event;
        import flash.events.ProgressEvent;
        import flash.display.Loader;
        import flash.events.IOErrorEvent;
        import flash.net.URLLoader;
        import flash.events.MouseEvent;
        import flash.net.URLRequest;
        import flash.display.Bitmap;
        public class ImageLoader extends EventDispatcher {
            public var imgloader:Loader;
            public var imgMc:MovieClip;
            public var imgObject:Object;
            public var loaded:Number;
            public function ImageLoader():void {
                imgMc = new MovieClip();
                imgObject = new Object();
                imgloader = new Loader();
            public function loadImage(imgHolder:MovieClip, imgObj:Object):void {
                imgMc = new MovieClip();
                imgObject = new Object();
                imgloader = new Loader();
                imgMc = imgHolder;
                imgObject = imgObj;
                imgloader.contentLoaderInfo.addEventListener(Event.COMPLETE,onImgLoad);
                imgloader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,onImgLoadProgress);
                imgloader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR,onImageLoadFailed);
                imgloader.load(new URLRequest(imgObj.FilePath));
            private function onImgLoad(Evt:Event):void {
                var image:Bitmap = Bitmap(Evt.target.content);
                try {
                    imgMc.removeChildAt(0);
                } catch (error:Error) {
                imgMc.addChild(image);
                try {
                    if (imgObject.URL != undefined) {
                        imgMc.buttonMode = true;
                        imgMc.removeEventListener(MouseEvent.CLICK, onImageClicked);
                        imgMc.addEventListener(MouseEvent.CLICK, onImageClicked);
                } catch (err:Error) {
                dispatchEvent(new CustomEvent("CustomEvent.ON_IMGE_LOAD"));
            private function onImageClicked(evt:MouseEvent):void {
                trace("Image Attrs:"+imgObject.URL +" Target "+imgObject.Target);
            private function onImgLoadProgress(Evt:ProgressEvent):void {
                if (Evt.bytesLoaded>0) {
                    loaded = Math.floor((Evt.bytesLoaded*100)/Evt.bytesTotal);
                    dispatchEvent(new CustomEvent("CustomEvent.ON_IMGE_LOAD_PROC",loaded));
            private function onImageLoadFailed(Evt:IOErrorEvent):void {
                trace("Image Loading Failed");
                dispatchEvent(new CustomEvent("CustomEvent.ON_IMGE_LOAD_FAIL"));
    Here I am loading some images using the above class in a for loop, like
                for (var i=0; i < 3; i++) {
                    //imgLoader=new ImageLoader;
                    imgLoader.addEventListener("CustomEvent.ON_IMGE_LOAD",onImageLoad);
                    var target:MovieClip=videolist_mc["list" + mcCount + "_mc"];
                    target.list_mc.visible=false;
                    var imgObj:Object=new Object;
                    imgObj.FilePath=list[i].Thumbnail;
                    imgObj.Url=list[i].Url;
                    imgObj.Target=list[i].Target;
                    target.list_mc.urlObj=new Object  ;
                    target.list_mc.urlObj=imgObj;
                    imgLoader.loadImage(target.list_mc.imgholder_mc,imgObj);
                    target.list_mc.lable_txt.htmlText="<b>" + list[i].Label + "</b>";
                    target.list_mc.imgholder_mc.buttonMode=true;
                    target.list_mc.imgholder_mc.addEventListener(MouseEvent.CLICK,onItemPressed);
                    mcCount++;
    In this case, the ImageLoader.as works only on the last movie clip from the for loop. For example, if i am trying to load three image in three movie clips namely img_mc1,img_mc2 and img_mc3 using the for loop and ImageLoader.as, I am getting the image loaded in the third movie clip only img_mc.
    See at the same time, If i uncomment onething in the for loop that is
    //imgLoader=new ImageLoader;         
    its working like a charm. But I know creating class objects in a for loop is not a good idea and also its causes some other problems in my application.
    So, help to get rid out of this problem.
    Thanks
    -Varun

    package com.project.utils{
        import com.project.*;
        import com.project.utils.*;
        import flash.events.EventDispatcher;
        import flash.display.MovieClip;
        import flash.events.Event;
        import flash.events.ProgressEvent;
        import flash.display.Loader;
        import flash.events.IOErrorEvent;
        import flash.net.URLLoader;
        import flash.events.MouseEvent;
        import flash.net.URLRequest;
        import flash.display.Bitmap;
        public class ImageLoader extends EventDispatcher {
            public var imgloader:Loader;
            public var imgMc:MovieClip;
            public var imgObject:Object;
            public var loaded:Number;
            public function ImageLoader():void {
    // better add you movieclip to the stage if you want to view anything added to it.
                imgMc = new MovieClip();
                imgObject = new Object();
                imgloader = new Loader();
            public function loadImage(filepath:String):void {
                imgloader.contentLoaderInfo.addEventListener(Event.COMPLETE,onImgLoad);
                imgloader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,onImgLoadPr ogress);
                imgloader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR,onImageLoadF ailed);
                imgloader.load(new URLRequest(filepath));
            private function onImgLoad(Evt:Event):void {
                var image:Bitmap = Bitmap(Evt.target.content);
                try {
                    imgMc.removeChildAt(0);
                } catch (error:Error) {
                imgMc.addChild(image);
                try {
                    if (imgObject.URL != undefined) {
                        imgMc.buttonMode = true;
                        imgMc.removeEventListener(MouseEvent.CLICK, onImageClicked);
                        imgMc.addEventListener(MouseEvent.CLICK, onImageClicked);
                } catch (err:Error) {
                dispatchEvent(new CustomEvent("CustomEvent.ON_IMGE_LOAD"));
            private function onImageClicked(evt:MouseEvent):void {
                trace("Image Attrs:"+imgObject.URL +" Target "+imgObject.Target);
            private function onImgLoadProgress(Evt:ProgressEvent):void {
                if (Evt.bytesLoaded>0) {
                    loaded = Math.floor((Evt.bytesLoaded*100)/Evt.bytesTotal);
                    dispatchEvent(new CustomEvent("CustomEvent.ON_IMGE_LOAD_PROC",loaded));
            private function onImageLoadFailed(Evt:IOErrorEvent):void {
                trace("Image Loading Failed");
                dispatchEvent(new CustomEvent("CustomEvent.ON_IMGE_LOAD_FAIL"));
    Here I am loading some images using the above class in a for loop, like
                for (var i=0; i < 3; i++) {
                    var imgLoader:ImageLoader=new ImageLoader();
                    imgLoader.addEventListener("CustomEvent.ON_IMGE_LOAD",onImageLoad);
                    var target:MovieClip=videolist_mc["list" + mcCount + "_mc"];
                    target.list_mc.visible=false;
                    var imgObj:Object=new Object;
                    imgObj.FilePath=list[i].Thumbnail;
                    imgObj.Url=list[i].Url;
                    imgObj.Target=list[i].Target;
                    target.list_mc.urlObj=new Object  ;
                    target.list_mc.urlObj=imgObj;
                    imgLoader.loadImage(pass the image file's path/name);
                    target.list_mc.lable_txt.htmlText="<b>" + list[i].Label + "</b>";
                    target.list_mc.imgholder_mc.buttonMode=true;
                    target.list_mc.imgholder_mc.addEventListener(MouseEvent.CLICK,onItemPressed);
                    mcCount++;

  • How can I pass multiple condition in where clause with the join table?

    Hi:
    I need to collect several inputs at run time, and query the record according to the input.
    How can I pass multiple conditions in where clause with the join table?
    Thanks in advance for any help.
    Regards,
    TD

    If you are using SQL-Plus or Reports you can use lexical parameters like:
    SELECT * FROM emp &condition;
    When you run the query it will ask for value of condition and you can enter what every you want. Here is a really fun query:
    SELECT &columns FROM &tables &condition;
    But if you are using Forms. Then you have to change the condition by SET_BLOCK_PROPERTY.
    Best of luck!

Maybe you are looking for

  • Error while creating the DWH tables using DAC

    Hi, I am getting error while creating the DWH tables using DAC. I have created a ODBC DSN using merant driver with DAC repository DB credentials and the test connection is successful. And while creating the tables i gave the olap dw credentials and t

  • I can't see any photos in "My Photo Stream" Folder

    I opened up photo stream in my 4s(6.1.2),when I take some photos,I can see the new photos in the photo stream page on 4s,and I can see them in my MBA(10.8) and apple tv,but there aren't any photos sync into my PC(win7 sp1 x64),I reinstall icloud cont

  • I have the same problem as all sorts of people with "HDCP" issue for playback.

    What is APPLE saying about this massive issue, I'm ready to completely switch to another product and super frustrated. I've tried the "quick" solutions with no help.

  • Firefox using massive CPU resources, even with no addons?

    I've been trying to figure out why Firefox is using ridiculously large amounts of CPU resources, but can't seem to find anything. At the time of writing this, I have 5 tabs open, none of which are highly graphic- or sound-intensive (facebook, 3 artic

  • Trouble restoring system from Time Machine

    Trying to restore whole system from Time Machine after a hard disk change and I get the following message;The Finder can't complete the operation because some data in "boot.efi" can't be read or written. (Error code -36). Can anyone help please?