GridFilling

Hi All,
          I created a form with a grid .i need to  fill the grid for that ,created a table ...
  My code is
  oNorForm.DataSources.DBDataSources.Add("@NOR_BRAND");
                  SAPbouiCOM.Matrix omatrix = (SAPbouiCOM.Matrix)oNorForm.Items.Item("4").Specific;
                    SAPbouiCOM.Columns oColumns;
                    SAPbouiCOM.Column oColumn;
                    oColumns = omatrix.Columns;
                    oColumn = omatrix.Columns.Item("Code");
                    oColumn.DataBind.SetBound(true, "@NOR_BRAND", "Code");
                    oColumn = omatrix.Columns.Item("Name");
                    oColumn.DataBind.SetBound(true, "@NOR_BRAND", "Name");
                    omatrix.LoadFromDataSource();
grid is not filling....
Can anyone help me.
Regards,
Susan

that is not correct code.
' declare grid first
oGrid = oForm.Items.Item("4").Specific
                oForm.DataSources.DataTables.Add("D_1")
                oGrid.DataTable = oForm.DataSources.DataTables.Item("D_1")
oForm.DataSources.DataTables.Item(0).ExecuteQuery("select cardcode from ocrd")
                oGrid.CollapseLevel = 0
                oGrid.AutoResizeColumns()
try this.

Similar Messages

  • Special characters in file ^@

    hi,
    i used method tostring to convert a double into string and have written in a file,
    while i try to open the file in shell(unix), it shows some special characters as follows,
    ^@0^@.^@0^@4^@3^@7^@4^@0^@7^@
    ^@0^@.^@0^@3^@1^@3^@1^@9^@2^@
    ^@0^@.^@0^@1^@6^@5^@0^@2^@9^@
    ^@0^@.^@0^@0^@3^@1^@8^@5^@5^@1^@
    in between each numbers, when i open the same file in textedit it shows as follows,
    0.0655756
    0.0976344
    also i try to do global substitution using unix commands but shows the message pattern not found.
    here's my code what should do to get rid of this trouble,
    try {
                FileOutputStream fwrite = new FileOutputStream("gridfile.grid");
                DataOutputStream dwrite = new DataOutputStream(fwrite);
                for(int z=0;z<15;z++){
                    for(int y=0;y<15;y++){
                        for(int x= 0;x<15;x++){
                            doubgrid = Double.toString(filegrid[x][y][z]);
                            dwrite.writeChars(doubgrid);
                            dwrite.writeChars("\n");
                            //System.out.println("raech");
                fwrite.close();

    i didnt finish what i want to write so reposted it
    again,
    sorry for that,That's ok, it's just that two threads means people can spend time answering the question that's already been answered in the other one. The better thing to do in the future would be just make a new post in the original thread.
    I see from your code that you're using the default encoding for the output stream. Since you're writing text, a better way would be to use a BufferedWriter wrapped around a Writer:
    new BufferedWriter(new OutputStreamWriter(new FileWriter("filename"), "specify the charset here") );That lets you use a specific encoding instead of relying on the default.

Maybe you are looking for

  • Service Contract Usage line Invoice Amount

    Hello All, I have created Service contract with a Usagline and Service line. When entered the Counter reading, and run the 'Service Contract Main billing program', i am getting the invoice amont of 0 only. Could you please tell me how can i proceed.

  • Latest OS X version Logic 7.1.1 is compatible with?

    I'm working with an Apogee Ensemble that says it wants Logic 7.2.2 and OS X 10.4.7, but I'm reluctant to update my solid OS X 10.4.5. Do I absolutely need to?

  • Request and request set as menu entry

    Hello: Does somebody know how to define a request as a menu item? I want to execute automatically a request when a user cliks on that menu entry. Can this be done also with request set's? Thanks in advance

  • Importing Premiere Pro CC 2014 media into Avid MC8

    Hi guys, I've been having a problem using AAFs to move sequences from Premiere Pro CC 2014 to Avid Media Composer 8, long story short I'm working with a post company using Adobe for everything, but the editor is at a different facility and uses Avid.

  • I want to assign two seats (4 licences) to one email address how?

    I have tried to solve this without success. I have a MAC and powerbook and a windows PC and laptop (4 licences) and I want CC on all of them. I assigned two seats to the same email in team management but this doesnt work. I am only allowed one offici