HOW TO use DBDataSource in this situation?

hi all,
  I add a Matrix on system Form(eg:BOM Form),then I want to use Matrix.LoadFromDataSource() to load data.
the simple code is :
SAPbobsCOM.Recordset oRecordset = (SAPbobsCOM.Recordset)SBO_Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset);
            oRecordset.DoQuery("select ItemCode,ItemName from OITM ");
            SAPbouiCOM.Matrix oMatrix = (SAPbouiCOM.Matrix)m_SboForm.Items.Item("MatrixFormUID").Specific;
                SAPbouiCOM.DBDataSource oDBData = m_SboForm.DataSources.DBDataSources.Item("tablename");//this dbdatasource is added before
                oDBData.Clear();//error occur in this code:Operation is not supported in system Form
                oRecordset.MoveFirst();
                while (!oRecordset.EoF)
oMatrix.LoadFromDataSource();
how to use LoadFromDataSource() in this situation?if evaluate every control,the speed is too slow.
thanks

The quick way is as I wrote you - bind it to datasource (you fill it cell by cell). The code is something like:
omatrix.Clear()
oColumn = oColumns.Item("Column name 1")
oColumn.DataBind.SetBound(True, "table name", "itemcode")
oColumn = oColumns.Item("Column name 2")
oColumn.DataBind.SetBound(True, "table name", "itemname")
oMatrix.LoadFromDataSource();
There isn`t necessary the while (!oRecordset.EoF) cycle

Similar Messages

  • Hi. I have an iPhone and a Mac,and my sister has iPad2 and iPhone also.we both use a pc to sync our devices and use one App ID in our devices.but we want to use personal iCloud to achieve our personal files.how can I use iCloud in this situation?

    Hi. I have an iPhone and a Mac,and my sister has iPad2 and iPhone also.we both use a pc to sync our devices and use one App ID in our devices.but we want to use personal iCloud to achieve our personal files.how can I use iCloud in this situation?

    You will need to setup a new Apple ID for your sister.  You have to have an Apple ID and iDevice connected and using that account to get an iCloud account.

  • Hi, I'm new to using mac laptop, i just got one 1 month a go, i was downloading adobe flash player and it asked me for a password for the computer and i never created one, how do i over pass this situation?

    Hi, I'm new to using mac laptop, i just got one 1 month a go, i was downloading adobe flash player and it asked me for a password for the computer and i never created one, how do i over pass this situation?

    It is asking for your computer administrator account password to make system changes.  You "should" have an administrator account password.
    HTH

  • How to use two split this method in my code

    How to use two split this method in my code
    if i got one string line which like this
    ("aa!bb!cc~ab!bc!cd") a
    nd want to use two split to spare ! and ~ this seal for my spare point how that output
    has come diff ?
    public static void main(String[] args) {
        String str = "aa!bb!cc~ab!bc!cd";
        String strs[]= str.split("~");
        String strE[]= str.split("!");
        int count =0;
        for(int j=0; j < strs.length; j++){
          for (int i = 0; i < strE.length; i++){   
              System.out.println(count + " " + strE);
    count++;
    the output how can it be like this
    0 aa
    0 bb
    0 cc
    1 ab
    1 bc
    1 cd

    Move your second slit inside the first loop, so you are splitting the substring, not the entire string.

  • HT1420 I purchased new computers twice within the same year because they old were damaged in a storm.  However, I can't deauthorize/reauthorize the new computers.  How do I deal with this situation.

    I purchased new computers twice within the same year because they were damaged in a storm.  However, I can't deauthorize/reauthorize the new computers because it has been less than a year.  How do I deal with this situation?

    BrianBlaze wrote:
    I have 3 Computers at home, I am studying computer sciences and am constantly rerformatting my computers, installing windows and linux over and over again.... EVERYTIME I reformat I have to authorize the same computer and so it takes up one of my 5 authorized computers... Anyways after deauthorizing all my computers in september I was not aware I couldn't do it for another year (why does APPLE assume these stupid tactics prevent piracy). Anywysw I need to reach apple and have them make it so I can do it again. I had a similar problem with Playstation and when I called them they fixed it for me... even windows (which you can only have one serial per computer) made it easy because all I had to do was call them and they fixed it for me. Now I need APPLE to do the same and this is the only place I could see to actually say what is going on... I can't believe I have to do this with my iPhone... I wanted an mp3 player and a phone together and if I can't put new songs until September 20, 2012 I am going to freak out!
    HELP!
    Brian
    Try this link: http://www.howtogeek.com/howto/23974/beginner-deauthorize-all-computers-associat ed-with-your-itunes-account/

  • Javascript error on - Help - Learn how to use Numbers with this online...

    I am trying to find out more about Numbers. I am using iTunes 9.1.1 on a Vista PC. I get a Javascript error in Internet Explorer 8 when I try to access:
    Help - Learn how to use Numbers with this online resource.
    http://help.apple.com/numbers/1.0
    The link redirects to the following page:
    http://help.apple.com/iwork/safari/interface/#tan727163ed
    The above page is blank except for boxes for Keynote Help, Pages Help, Numbers help, and a blank input field that seems to do nothing. Here is the Javascript error message from Internet Explorer 8:
    Webpage error details
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
    Timestamp: Tue, 1 Jun 2010 20:55:54 UTC
    Message: This command is not supported.
    Line: 1
    Char: 41589
    Code: 0
    URI: http://help.apple.com/iwork/safari/interface/javascript.js

    Link also does not work for me in WIN 7 with IE8. However, it does work in Chrome in WIN 7. It also works in Safari on my G4. Suggest you try Chrome or it may work in another browser like FireFox or Safari in Vista.

  • How to use classloader in this way? Is it possible?

    I have one my own classlaod. So, I can do these: use the classloader to load the class, use the class's newInstance method to get instance object, then use reflection to invoke methods of the object.
    I think this is the standard way.
    However, it is not convenient. Is there a way that allows me to using the class that loaded by my own classload in "old way", i.e. just new to get object, and directly use it. For example, like this:
    ..Get classloader
    class MyClass = loadClass("MyClass");
    MyClass obj = new MyClass();
    obj.someMethod();
    If this way is possible, it is much better. In theory, it should have no problem. I think Java Web Start, etc are just doing similar like this. But, at this point, I do not know. Please share your thoughts.

    You have to distinguish between compile time, and run time features available to you.
    MyClass x = new MyClass() ; is a language construct that is available at compile time.
    Reflection is available at runtime.
    If you want a mix of both, you may have to generate code. Depending on how you like it - you can either generate source and compile it, or generate byte code directly. But since you seem to be interested more in simplifying your code, due to the relative obscurity of reflective code, your best option would be to use a code generator.
    So use your classloader to load the class, then generate and compile code to use it. (This may be even more complex, but this is how you would have to do it)

  • How to use to_date for this case?

    Hi,
    I bind parameters in java code.
    The param type in java is Timestamp and the data type in table is date.
    Here is the sql section printted in log:
    2004-08-01 10:00:00.0 <= table.datetime
    Why there is a ".0" after second?
    And how to use to_date to convert "2004-08-01 10:00:00.0"?
    Thanks!

    Hi,
    Here are a few possibilities
    SQL> select cast(timestamp '2004-08-01 10:00:00.0' as date) from dual;
    CAST(TIMESTAMP'2004
    2004-08-01 10:00:00
    SQL> select to_date('2004-08-01 10:00:00.0','YYYY-MM-DD HH24:MI:SS".0"') from dual;
    TO_DATE('2004-08-01
    2004-08-01 10:00:00
    SQL> select to_date(substr('2004-08-01 10:00:00.0',1,19), 'YYYY-MM-DD HH24:MI:SS') from dual;
    TO_DATE(SUBSTR('200
    2004-08-01 10:00:00

  • My iphone was disable and it say connect to itunes. but when i connect it to my computer, my computer cant detact my device. how do i deal with this situation?

    hi, i have a problems. my iphone is being disable after my daughter play with it and been entering all the wrong code. so my iphone is now disable and it say connect to itunes. i already plug my iphone to my computer, how ever my computer could not detact my devic. and because of that i cant connect it to my itunes. how do i deal with this problems?

    iOS: Device not recognized in iTunes for Windows

  • How to use LIKE in this CASE?

    There are multiple values that start with "Aerospace".  All of them are going to be set to the same value.  I'm trying to write a Case Statement that will replace all of them with the new value, but i can't get the LIKE to work correctly.
      This can probably be done with REPLACE, but It's bugging me that I can't get the LIKE to work.  
    I've tried a few variations, but compiler hasn't like any of them.  I'm hoping to have one line of code that will work for all of the possible choices.
    What is the best way to use a LIKE or similar thing (such as CONTAINS) to set all of the fields with "Aerospace" at the beginning?
    Sorry for the small font above.  I didn't see how to change it.
    'New Sector Focus' = CASE sectorfocus
    WHEN sectorfocus LIKE 'Aerospace%' THEN '201010 - Aerospace & Defense'
    ELSE sectorfocus
    END

    CASE expression looks good. CASE blog: 
    http://www.sqlusa.com/bestpractices/training/scripts/casefunction/
    >Sorry for the small font above.  I didn't see how to change it.
    Use the HTML icon to edit the html code.
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Design & Programming
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • How to use threads in this script???

    Hi, I�m new to java, and I my first script is a reciprocal link checker but I have a problem with the speed. I have the next class for check a html page to search for a string (the reciprocal link). The problem is that when I pass the script more than 50 pages to check, the proccess ibs very slow. I thought that the problem is stablishing the connections, because it makes only one at a time.
    I think, that with threads the I can accelerate the proccess, but I don�t know how to implement here. If you can give some advise, very thanks in advance. Here is the class:
    import java.net.URL;
    import java.net.URLConnection;
    import java.io.BufferedReader;
    import java.io.InputStreamReader;
    class checkHtml {
    boolean comprobarReciproco(String thisUrl, String reciproco) {
    String toReturn = null;
    boolean res = false;
    try {
    URL url = new URL(thisUrl);
    URLConnection thisConn = url.openConnection();
    BufferedReader receiver = new BufferedReader(new InputStreamReader(thisConn.getInputStream()));
    String line = new String();
    // Leemos del buffer de entrada l�nea a l�nea
    while((line = receiver.readLine()) != null) {
    if (line.indexOf(reciproco) != -1 ){
    res = true;
    break;
    } catch(Exception e) {
    System.out.println("Error:" + e);
    return res;
    public static void main(String[] args){
    checkHtml x = new checkHtml();
    System.out.println(x.comprobarReciproco("http://www.somewebpage.com/blahblah.htm","reciprocal"));

    I make the call to this proccess in the main class, with this method:
    public String [][] comprobarRecip(String arr[][], String recip){
    checkHtml check = new checkHtml();
    int j=0;
    String enlacesfinal[][] = new String[tamanyoLinks(arr)][2];
    for (int i=0; i < tamanyoLinks(arr); i++){
    // Si no est� el reciproco nos guardamos el enlace en enlacesvalidos
    if (check.comprobarReciproco(arr[0],recip) == false){
    enlacesfinal[j][0] = arr[i][0];
    enlacesfinal[j][1] = arr[i][1];
    j++;
    return enlacesfinal;
    Is in this method, where I must use the threads? Thanks a lot!

  • ITunes 11 on a PC - where is Genius and how to use it in this version?

    I'm on a PC and using iTunes 11, and cannot find the bottom right hand show/hide genius toggle. There is no checkbox on PC for "enable genius" in preferences (as some on the Mac forums point out.) I'm trying to get Genius suggestions based on my songs.to discover and purchase. Apple what have you done??!? Any help appreciated.

    hi dominic.
    thanks for the help and the links.
    there is something terribly lacking in mac UI with respect to this unless i am missing something. if i do a search in Spotlight i see results and even when i see the file i want to know something about i have to OPEN FINDER which shows a ton of results (including hundreds if not thousands of eml file that i have to call mac and probably pay to find out why they are still showing up when prefs in Spotlight say to not show them...)  and only then can i actively select the file and have it show a file path at the bottom of the finder window.
    this is maddening. isn't there an option to show this information in Spotlight or to show this information WHEN THE FILE IS OPEN (apologies for the caps). i mean, if i have a file open, maybe i don't know /where/ it came from for some reason.
    for instance, if i am in a hurry and i open the file directly from Spotlight i can edit it and save it but i still have no idea where it resides on my hard drive. similarly if i open a file directly from spotlight and DUPLICATE a file and i want to save it as Version 2 - i have to - - - - well i guess i have to run another search for the file i just opened and am working upon in order to just save the dang file to the same location the original is in?
    i mean, the links are showing that i should open Get Info but i think i need to see the file in finder to run this command anyway since i have to right click on the file itself.
    maybe i am missing something but can't MAC OS just show me the FILE PATH at the top of the document like it does in Finder and also show me the FILE PATH in Spotlight? seems like the current implementation is like a big game of hopscotch for no good reason except the information is not shown to the (power) user.
    maybe i am missing a new feature in ML or in Mavericks or maybe i am using the wrong terms in the original title?
    THANK YOU

  • How to use counter in this case

    in my selection screen i have billing doc no-vbeln.
    in my ztable i have etimes a field.
    when i enter a bill doc no and press f8, my etimes feild in ztable sets to 1.
    my requirement is if i enter a bill doc as 97600654 for first time, etimes is 1.
    for second time if i enter that same bill doc i.e 97600654 , etimes should be 2 and if third then 3 and so on.
    if a new doc is entered then etimes is again 1.
    how to code this..plz provide some code.

    Hi Rudra,
    First You need to create a Ztable(say ZTT_VBELN_COUNT) with Three fields MANDT VBELN ETIMES.
    Now in your program add code as below;
    DATA wa_vbeln_count type line of ZTT_VBELN_COUNT.
    SELECT SINGLE * FROM ZTT_VBELN_COUNT INTO CORESSPONDING FIELDS OF wa_vbeln_count where VBELN = lv_vbeln.
    IF SY-SUBRC EQ 0.
       wa_vbeln_count-etimes = wa_vbeln_count-etimes + 1.
    ELSE
       wa_vbeln_count-vbeln = lv_vbeln.
       wa_vbeln_count-etimes = 1.
    ENDIF.
    MODIFY ZTT_VBELN_COUNT FROM wa_vbeln_count.
    Regards
    Karthik D

  • How to use decode for this

    Hi All
    I have one table called agreementproductkey and some columns namely Agreementproductid, keytext, fliename etc.
    There is some condition if agreement product id in not null and keytext field and fileaname field is null then i need to display the value as "NO FILE"
    This what i tried
    select decode(keytext || ' | ' || filename,null,'No File',keytext || filename) display_value, id return_value
    from agreementproductkey
    where agreementproductid = 3173
    But i didnt get the NO FILE when key text field and filename field is null for this agreementproductid.
    Thanks & Regards
    Srikkanth.M

    Hi Srikkanth,
    In the decode part, you have concatenated keytext and filename using '|' due to which it will never evaluate to null, and hence 'NOFILE' will never be displayed. CASE is a better option instead of DECODE.
    SQL> CREATE TABLE t (agreementid NUMBER, keytext VARCHAR2(10), filename VARCHAR2(10));
    Table created
    SQL> INSERT INTO t VALUES (123, 'ABC', 'ABCFile');
    1 row inserted
    SQL> INSERT INTO t VALUES (123, NULL, 'XYZFile');
    1 row inserted
    SQL> INSERT INTO t VALUES (123, 'PQR', NULL);
    1 row inserted
    SQL> INSERT INTO t VALUES (123, NULL, NULL);
    1 row inserted
    SQL> SELECT agreementid, keytext, filename,
      2         DECODE(agreementid, NULL, 'AGREEMENT NULL', DECODE(keytext || filename, NULL, 'NO FILE', 'FILE PRESENT'))
      3    FROM t;
    AGREEMENTID KEYTEXT    FILENAME   DECODE(AGREEMENTID,NULL,'AGREE
            123 ABC        ABCFile    FILE PRESENT
            123            XYZFile    FILE PRESENT
            123 PQR                   FILE PRESENT
            123                       NO FILE
    SQL> Regards
    Ameya

  • How to use recursive in this case?

    I have a tree showed in bweb rowser UI like this
    +- node1          
    | |
    | +- node_value1a    X 
    | +- node_value1b     
    | +- node_value1c      X
    |
    +- node2    X      
    | |
    | +- node2a      X
    | | |
    | | +- node_value2a1   X
    | | +- node_value2a2   X
    | |
    | +- node_value2b     X  
    |
    +- node3          
    |
    +- node_value3a    X 
    +- node_value3b     
    At the begining I will retrieve the user permission for each node value and show them as checked "X" , Each node have a biding userObject with property key and check status and other more(we will focus on node key name and check status only). The parent node will be calculated as checked only if all its children are checked. So every time user click one node or node value(node without children). I will re-calculate the all tree nodes status based on all node_value again and update all check box in UI page. This seems need to go from bottum up since I will do:
    . Upon the clicking of one node(can be any node) I will send a http request back to server with that node key name. I will then do the following:
    if it is uncheck requrest -> updated all its childrens as unchecked -> recalculate all its parent to update their check status to unchecked
    if it is check requrest -> updated all its children as checked -> recalculate all its parent to update their check status.(may be check or uncheck depend on other sibling node status).
    The porpuse is to update that user's access right.
    I get lost when I try coding this feature. Could sonebody here help me out ? Thanks

    So how far have you got so far?

Maybe you are looking for