How to add more than 1 condition to ChooseFromList???

Anyone can help??? how to add multiple conditions to one ChooseFromList??? i have my code here, but it doesn't work, can anyone help???
Code:
Dim SplitStr() As String
Dim i As Integer
SplitStr = Split(Cond_Val, ",")
For i = 0 To UBound(SplitStr)
  oCons = oCFL.GetConditions()
  If Not oCons.Count > 0 Then                     
    oCon = oCons.Add()
  End If
  oCon.BracketOpenNum = UBound(SplitStr) + 1
  oCon.Alias = "Code"
  oCon.Operation = co_EQUAL
  oCon.CondVal = SplitStr(i)
  oCon.BracketCloseNum = i + 1
  If i <> UBound(SplitStr) Then
    oCon.Relationship = cr_AND
  End If
Next
oCFL.SetConditions(oCons)

Hi Lee,
Try to use SQL profiler to see what SQL query gets executed. Your code seems fine. Try it manually before working with the arrays. Here's an example of code I know works:
Dim oCfl As SAPbouiCOM.ChooseFromList
Dim oConditions As SAPbouiCOM.Conditions
Dim oCondition As SAPbouiCOM.ConditionoCfl = oForm.ChooseFromLists.Item("cfl_ePmt")
oConditions = oApplication.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_Conditions)
oCondition = oConditions.Add
oCondition.BracketOpenNum = 2
oCondition.Alias = "CardCode"
oCondition.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
oCondition.CondVal = sCode
oCondition.BracketCloseNum = 1
oCondition.Relationship = SAPbouiCOM.BoConditionRelationship.cr_AND
oCondition = oConditions.Add
oCondition.BracketOpenNum = 1
oCondition.Alias = "Canceled"
oCondition.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
oCondition.CondVal = "N"
oCondition.BracketCloseNum = 2
oCfl.SetConditions(oConditions)
Hope it helps,
Adele

Similar Messages

  • How to add more than one tabular region in a page?...

    How to add more than one tabular region in a page?
    i have a page, that page contain form and tabular region. when i trying to add another tabular region it showing error
    1 error has occurred
    Updatable SQL Query already exists on page 2. You can only add one updatable SQL query per page. Select a different page.
    but i have to add the tabular in that page.
    Is it possible?
    pls help...
    Thanks and regards,
    skud

    hi,
    even i am searching for some thing similar.
    i want to have 3 calendars in one page.
    getting same message calendar already exists on page 2. You can only add one calander per page. Select a different page.
    pls help.

  • In Share point 2013 how to add more than 2 group by in list

    In Share point 2013 how to add more than 2  group by in list .

    Hi,
    According to your post, my understanding is that you wanted to group by on more than 2 columns in a List View in SharePoint 2013.
    There is no out of the box way to achieve your scenario directly.
    As a workaround, we can use the following method to achieve it.
    First, we can insert Data View Web Parts in SharePoint Designer 2013.
    It’s because the SharePoint Designer 2013 can’t support Design view, then the Data View Web Parts XSL cannot be visually manipulated.
    You can refer to the following article to insert a Data View Web Part.
    http://www.synergyonline.com/Blog/Lists/Posts/Post.aspx?ID=259
    And then, you can use the following solution that can be used to
    group by on more than 2 columns in a view
    to implement it in SharePoint Designer 2013.
    http://techtrainingnotes.blogspot.com/2011/01/sharepoint-group-by-on-more-than-2.html
    http://chanakyajayabalan.wordpress.com/2010/03/15/group-by-for-more-than-two-columns-in-sharepoint-list/
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • How to add more than one input arguments to the tpcall

    Hi
    Can any one know how to add more than one input arguments in the tpcall using WTC (Jatmi)?
    Par example, I have un service Tuxedo getConsoClient(char* cli_id, char* type)
    To call this service, I'm using tpcall("getConsoClient", dataIn, 0);
    here, I did't know how to add two parameters in the TypedBuffer object. I'm new to WTC.
    Any hints will be greatly appreaciated.
    Advanced thanks

    Thanks for you help. But in java Jatmi, I have lot of problem to convert array into TypedBuffer or TypedString. See below code, I'm tried using vector or tableau etc..
    But I have always same erreur. :(
    public void getClientInfo() {
         Context ctx;
         TuxedoConnection myTux;
         TypedString numinst = new TypedString("1");
         TypedString idClient = new TypedString("1003");
         TypedString[] dataIn = {numinst,idClient};
         //TypedString dataIn = new TypedString(numinst+"\0"+idClient+"\0");
         Vector input = new Vector();
         input.add(0,numinst);
         input.add(1,idClient);
         Reply rpy = null;
         try{          
              System.out.println("getClientInfo called : " + dataIn);
              TuxedoConnectionFactory tcf;               
              ctx = new InitialContext();
              tcf = (TuxedoConnectionFactory) ctx.lookup("tuxedo.services.TuxedoConnection");
              myTux = tcf.getTuxedoConnection();          
              System.out.println("About to call tpcall cnx = "+myTux);
              rpy = myTux.tpcall("LireInfoCli_SE",(TypedBuffer)dataIn, 0);          
              System.out.println("tpcall successfull!");
              TypedFML32 typ = (TypedFML32) rpy.getReplyBuffer();
              System.out.println("Reply Type = "+rpy.getReplyBuffer().getType());
              System.out.println("Reply toString = "+typ.toString());
              while(typ.Fiterator().hasNext()){
                   System.out.println("Reply toString = "+typ.Fiterator().next().toString());               
              myTux.tpterm(); // Closing the association with Tuxedo
         }catch (TPReplyException tpx) {
              // Could not get the tuxedo object, throw TPENOENT
              System.out.println("TPReplyException perrno = " + tpx.gettperrno()+" DETAILS "+tpx.gettperrordetail()+" getLocalizedMessage "+tpx.getLocalizedMessage()+" "+tpx.getCause());
              tpx.printStackTrace();
         }catch (TPException tpx1) {
              // Could not get the tuxedo object, throw TPENOENT
              System.out.println("TPReplyException perrno = " + tpx1.gettperrno()+" DETAILS "+tpx1.gettperrordetail()+" getLocalizedMessage "+tpx1.getLocalizedMessage()+" "+tpx1.getCause());
              tpx1.printStackTrace();
         }catch (NamingException ne) {
                   // Could not get the tuxedo object, throw TPENOENT
                   System.out.println("Could not get TuxedoConnectionFactory : " + ne.getMessage());
                   ne.printStackTrace();
         }catch(Exception e){
                   System.out.println("Exception in getClientInfo ->"+e.getMessage());
                   e.printStackTrace();
         return;
    }

  • How to add more than one clip to a drop zone?  New guy

    Hey all, I'm new to DVD studio and I'm trying to fiqure out how to add more than one clip to a Template drop zone. I'm using a 6 button template. I've named each button .. Football, Baseball, Hockey ...etc.
    How can put in MORE THAN ONE CLIP in the Football track/drop zone. So when someone clicks on Football they can see 3 examples.
    Do I need to create something to link to that Football button?
    Any replies appreciated

    You can edit the segments to be used in FCP or Motion so that the asset drop in has three examples
    Another way (if you want) is to make the entire menu outside of DVD SP so that the background layer is an m2v and the items are revealed/masked to some degree
    Take a look towards the bottom of this thread http://discussions.apple.com/thread.jspa?messageID=2951183&#2951183 where I discuss http://www.dvdstepbystep.com/Overmovies.zip
    Note that you can also use a basic overlay to do this. The overlay would be just solid black instead of the arrows/circles things I use in that example.
    For instance make the text one color and the box over the movie another (You can make it blue and the box red lets say) Draw a region over both for the button. Map blue for highlights/transparencies for normall/selected/activated and the same for the Box

  • How to add more than one datafile while creating tablespace

    how to add more than one datafile while creating tablespace. I know by using alter command i can add datafile but i want while creating tablespace

    Hi Dadivela,
    how to add more than one datafile while creating tablespace.Here is the syntax:
    !http://www.dba-oracle.com/images/create_tablespace.jpg!
    I do it like this:
    create tablespace myts
    datafile
    *'/u01/app/oracle/db1.dbf' size 100m,*
    *'/u02/app/oracle/db2.dbf' size 200m;*
    Here are my complete notes:
    http://www.dba-oracle.com/t_tablespace_create_alter.htm
    Hope this answers your question . . .
    Donald K. Burleosn
    Oracle Press author

  • How to add more than one phone number in imessage?

    How to add more than one phone number in imessage?

    If you mean sending to multiple phone numbers, place a comma between the numbers in the "To" box, or select the "+" to use numbers in your Contacts

  • How to add more than 1 query in workbook

    Hi All,
    How do we add More than 1 query in workbook, Can any one provide me steps.
    Thanks in Advance.

    Hi,
    If you are using BI7 Bex analyazer, please check whether the following explanation helps you:
    "Steps of creating workbook and to insert more than one query in a workbook.
    •When you run a query and it opens in Bex Analyzer you can click the save button and pick "Save as Workbook".
    •Once you save it as a workbook Click on the "Design Mode" button in the Bex toolbar (looks like an A).
    •Click in the sheet where you want the new query to go, click the "Analysis Grid" button. It will add the analysis grid to your new sheet.
    •Right click on the Analysis grid and go to properties.
    •Click on button to change data provider and select the query you want to attach.
    •Exit design mode and you should be all set. "
    Thanks & Regards,
    Sapna

  • How to add more than 1 External Editor to Aperture 3?

    I am evaluating Aperture 3...I have LR, CS4 as well as some of the editors from Nik Software e.g. Viveza, DFine...How can I add more than one of these as external editors without going into Preferences and changing Export every single time when I want to edit a photo with one of these?
    Thnx

    you always use ps for the external editor. To use the plug ins, you simply pick edit with plugin when you right click on a file to edit.

  • How to add more than one server in emanager

    Hi All,
    In Java CAPS6, If I add more than one domain that is GlassFish server, how can I add these server in emanager. I am able to add only one server in eManager.
    Please let me know if any one knows.
    Thanks & Regards,
    B

    Hi,
    I have the same problem. I succeeded in adding the default domain (on the default port 4848) but when I try to add another domain on a different admin port, the connection cannot be established. Here is the manager log :
    2009-02-18 10:41:23,867 ERROR [http-15000-Processor24] com.stc.emanager.deployment.actions.AddNewServerAction - java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Bad response: (404Not Found due to Connection Failed. Please check the following: <br>   &nbsp - Server Type is correct. <br>   &nbsp - Server is running. <br>   &nbsp - Hostname and Port number(s) are correct. <br>   &nbsp - Server SSL configuration.
    The manager and appserver are on the same server.
    As someone resolved the problem ?

  • How to use more than one condition together?

    Dear,
    I want to set more than one condition type and use it together for any objects in page, for example page item,page button and etc.
    Is it possible to handle in "PL/SQL Experssion" at condition type?(e.g =>"Request= Expression" and "Current page!= Expression 1",..) if no is answer, please tell me other ways.
    Regards,
    Saeed.

    Hi Saeed,
    Saeed Hassanpour wrote:
    I'd like to know about CGI and Browsers conditions. Can I refer to document or essay about condition type in pl/sql?
        Yes, you can also refer CGI Environment Variables and Browser conditions in "PL/SQL Expression".
        For example :
    The condition type "When cgi_env SERVER_NAME = Expression 1" can be transformed to "PL/SQL Expression" as:
    OWA_UTIL.GET_CGI_ENV('SERVER_NAME') = 'MyServer'
    The condition type for Browser condtions can be can be transformed to "PL/SQL Expression" as:
    instr(upper(OWA_UTIL.GET_CGI_ENV('HTTP_USER_AGENT')),upper('Firefox/37.0')) > 0
        Following is old but comprehensive documentation about Condition Types:
        https://docs.oracle.com/cd/E14373_01/appdev.32/e11838/condition.htm#HTMDB25942
        Hope this helps!
    Regards,
    Kiran

  • How to add more than one attachment in comment

    All my friends that visit my blog page ask me how can they add attach more than one item in their comments, I do not know how.. though I did suggest them to join all the image/item as one image/item.. that is ok so far, but the outcome is not as beautiful as original.

    Unfortunately only one attachment can be added per comment. Advise your friends to add multiple comments, one for each attachment, or combine the images in a photo editing program and upload as one composite image.

  • How to add more than one button control on import of skin?

    I am importing a skin from photoshop that I customized and exported.  For my particular project I need more than one button type with different sizes, dimensions, colors, etc.  In example the buttons for the navigation are going to be different than buttons to print, or email, and buttons that are bigger for the main custom component also need to be different.  I tried changing the naming convensions in the .PSD file but I can't get it to export more than one button type.  Is there a way to do this? 
    Thanks,
    Ryan

    hi,
    even i am searching for some thing similar.
    i want to have 3 calendars in one page.
    getting same message calendar already exists on page 2. You can only add one calander per page. Select a different page.
    pls help.

  • How to add more than one paint method

    hi everyone
    I am doing a project in which i have already created a paint method but i find that there is necessity to create one more
    paint method within the same file in which i have a paint method pls tell me how to how to add a paint method how to call the repaint method
    please its very urgent

    By even suggesting that I can gather you have a horrible design of what ever you are doing--DON'T! And go back and refactor your application so you do not need or even want such a thing to happen.
    1 - paint is for use in AWT. If you are using AWT, then very well, you are at least using the right method to override. If you are using SWING, then you are totally messed up before you even arrived at this ill conceived plan of 2 paint methods.
    2 - your paint (AWT)/paintComponent (SWING) is a system called method driven by events you haven't any control over. You need to treat it as such.
    3 - your painting method should be very tight. I will bet your's is a horrid mess: overstuffed with attempted control and logic processes.
    4 - Even if you are using active rendering, your approach to 2 painting methods is horrible at best.
    If you need help in designing your process better, then post what you have and ask for help. IMO what you are doing can only lead to ugliness.

  • How to add more than 11 pages of apps in iOS 5.1

    Hello Support,
    I have installed more than 250 applications from iTunes Store but unable to see the application or cannot go to the applications which are beyond 11 apps pages. This is frustrating if it is found to be the limitations from Apple Side. I am using iPhoe 4 with iOS 5.1.
    Your urgent response and SOLUTION will be highly appreciated.
    regards,
    Rashid Inam,
    Karachi, Pakistan

    Put your apps in folders, because there is nothing you can do about the page limit.

Maybe you are looking for

  • Deleted mail does not appear in the trash can

    When I delete mail from my inbox I can't see it on the Trash "On My Mac". I have set the trash settings to delete everything after one week. Does anyone know why this is happening or how I might be able to fix it. Thanks

  • Macbook Pro 2.16 memory

    I bought a macbook pro 2.16 off a friend a couple of years ago. It came with 2gigs of RAM. I recently received 2 2gig sticks from my girlfriend out of her busted macbook pro. I understand that my machine will only (supposedly) recognize 3gigs. Howeve

  • Palm desktop, or XP application for OS 10.9

    What is the best way to run the Palm desktop application on my Macbook Air with OS 10.9?  I have not been able to find a Palm desktop that will run on my Macbook directly and I assume I have to install an XP orperating system to run the Palm desktop.

  • Any one using Skype on their MBA

    I just downloaded Skype Beta 5 for my MBA .It works great but CPU usage is running 45-50 % while using video calls.I was wondering if i should load 2.8 tested Skpye .Anyone using it or have any suggestions .Is 50% stressing the Mac.It gets warm and f

  • Does Adobe Reader for iPad save annotations by/in itself (once uploaded from e.g. dropbox)

    Does Adobe Reader for iPad save annotations by/in itself (once uploaded from dropbox I can still see them after closing the app or switching documents)? I lost some valuable annotations while switching documents and apps over time. How do I save them