Binding matrix - picture column - datatables

Hi,
I have matrix with column type picture as
oColumn = oColumns.Add("Pict", SAPbouiCOM.BoFormItemTypes.it_PICTURE)
oColumn.TitleObject.Caption = "Pict"
oColumn.Editable = False
I have usertable with userfield type image as
oUserFieldsMD.Type = SAPbobsCOM.BoFieldTypes.db_Alpha
oUserFieldsMD.SubType = SAPbobsCOM.BoFldSubTypes.st_Image
When I bind the table to matrix through datasource as
oDBDataSource = oOrderForm.DataSources.DBDataSources.Add("@SKIL_ATTACH")
oConditions = New SAPbouiCOM.Conditions
oDBDataSource.Query(oConditions)
and bind as
oColumn = oColumns.Item("pict")
oColumn.DataBind.SetBound(True, "@SKIL_ATTACH", "U_pict")
The image is shown in matrix directly in proper column.
Problem is, that I must use datatables because i must implement sorting. When I create datatable and bound it to column as
Dim odbtable As SAPbouiCOM.DataTable
Dim sql As String
odbtable = oOrderForm.DataSources.DataTables.Add("VEP")
sql = "SELECT u_path, u_pict from [dbo].[@skil_attach]"
odbtable.ExecuteQuery(sql)
oColumn = oColumns.Item("Pict")
oColumn.DataBind.Bind("VEP", "U_PATH")
The matrix is bounded, no error shown and in result the image is not shown in matrix. Does anybody experiences with binding datatables to matrix with type image?
Thanks a lot for help or idea.
Petr

I found it. I dont know why, but through datatables it accept only jpg files and not gif files as in datasources...

Similar Messages

  • Binding Matrix to a DataTable

    Hello all,
    I am switching from DBDataSource to DataTable, and have met the following problem. When my matrix was bound to a DBDataSource, it correctly displayed DateTime values, but now that I have re-bound it to a DataTable, the Date columns are displayed without any formatting, like this: "20090703".
    Can you suggest the right way to make the columns of type Date be displayed correctly?
    Thank you in advance,
    Anton

    Hello, Greg
    Yes, I have solved it. It turned out that the DataTable object must be re-bound to the matrix/grid every time a query is executed in it, even if the structure of the result set is identical.
    Anton

  • How can i add Image or Picture Column to Matrix

    Hello Experts,
    I want to add Image or Picture column on my Add-on form matrix
    I am working on 8.81 PL5
    Please help out.
    Regards,
    Bhavank

    Hi Bhavank,
    Try This.....
          ocolumn = ocolumns.Add("CoGS", SAPbouiCOM.BoFormItemTypes.it_PICTURE)
            ocolumn.Editable = True
            ocolumn.Width = 60
            oitem.FromPane = 9
            oitem.ToPane = 9
            ocolumn.TitleObject.Caption = "COGSProfitCenter"
            ocolumn.DataBind.SetBound(True, "", "Folder")
            ouserdatasource = oOrderform.DataSources.UserDataSources.Item("Folder")
            omatrix.AddRow()
            omatrix.GetLineData(1)
            ouserdatasource.ValueEx = "c:\41224_128614427186464_128584050522835_146624_537710_s.jpg"
            omatrix.SetLineData(1)
    Thanks
    Shafi

  • Trying to Bind Matrix to DBDatasource

    Hi,
    I cannot seem to get my matrix bound to a system datasource (POR1)
    The Error I get is "Data Source - Not  A User Datasource"
    This occurs when trying to bind the first column.
    (  colItem.DataBind.SetBound(True, "POR1", "ItemCode" )
    I am trying to do this in a new tab in the purchase order form (142)
    odbs is a variable with class scope.
    Please help :
            odbs = oform.DataSources.DBDataSources.Add("POR1")
            oNewItem = oform.Items.Add("Lmat", SAPbouiCOM.BoFormItemTypes.it_MATRIX)
            oItem = oform.Items.Item("38")
            oNewItem.Left = oitem.Left
            oNewItem.Width = oItem.Width
            oNewItem.Top = oitem.Top
            oNewItem.Height = oitem.Height
            oNewItem.AffectsFormMode = False
            oNewItem.FromPane = 15
            oNewItem.ToPane = 15
            omat = oNewItem.Specific
            Dim colItem As SAPbouiCOM.Column
            Dim colItemD As SAPbouiCOM.Column
            Dim colQty As SAPbouiCOM.Column
            Dim colQtyO As SAPbouiCOM.Column
            Dim colSO As SAPbouiCOM.Column
            Dim l As SAPbouiCOM.LinkedButton
            Dim l2 As SAPbouiCOM.LinkedButton
            colItem = omat.Columns.Add("colItem", SAPbouiCOM.BoFormItemTypes.it_LINKED_BUTTON)
            colItem.Width = "125"
            colItem.TitleObject.Caption = "Item"
            colItem.DataBind.SetBound(True, "POR1", "ItemCode")
            colItem.Visible = True
            l = colItem.ExtendedObject
            l.LinkedObject = SAPbouiCOM.BoLinkedObject.lf_Items
            colItemD = omat.Columns.Add("colItemTxt", SAPbouiCOM.BoFormItemTypes.it_EDIT)
            colItemD.Width = "225"
            colItemD.TitleObject.Caption = "Item Name"
            colItemD.DataBind.SetBound(True, "POR1", "Dscription")
            colItemD.Visible = True
            colQty = omat.Columns.Add("colQty", SAPbouiCOM.BoFormItemTypes.it_EDIT)
            colQty.Width = "75"
            colQty.TitleObject.Caption = "Qty"
            colQty.DataBind.SetBound(True, "POR1", "Quantity")
            colQty.Visible = True
            colQtyO = omat.Columns.Add("colQtyO", SAPbouiCOM.BoFormItemTypes.it_EDIT)
            colQtyO.Width = "75"
            colQtyO.TitleObject.Caption = "Qty"
            colQtyO.DataBind.SetBound(True, "POR1", "OpenQty")
            colQtyO.Visible = True
            colSO = omat.Columns.Add("colSO", SAPbouiCOM.BoFormItemTypes.it_LINKED_BUTTON)
            colSO.Width = "125"
            colSO.TitleObject.Caption = "Sales Order"
            colSO.DataBind.SetBound(True, "POR1", "U_SONumber")
            colSO.Visible = True
            l2 = colSO.ExtendedObject
            l2.LinkedObject = SAPbouiCOM.BoLinkedObject.lf_Order

    Nick,
    Yes, you can add link button in grid column. There are 4 type of GridColumn, CheckBoxColumn, ComboBoxColumn, EditTextColumn, PictureColumn objects.  And you can set the linkobjecttype for EditTextColumn
    Please refer to BoGridColumnType for more info.
    sample code:
    oItem = oItems.Add("My_Grid", SAPbouiCOM.BoFormItemTypes.it_GRID)
                oItem.Top = 30
                oItem.Left = 10
                oItem.Width = 200
                oItem.Height = 100
                Dim oGrid As SAPbouiCOM.Grid = oItem.Specific
                Dim oDataTable = oForm.DataSources.DataTables.Add("POLines")
                oGrid.DataTable = oDataTable
                oDataTable.ExecuteQuery("SELECT ItemCode AS 'Item Code', Dscription AS 'Item Name', Quantity FROM POR1 WHERE DocEntry = 1")
                Dim colItemCode As SAPbouiCOM.GridColumn = oGrid.Columns.Item(0)
                colItemCode.Type = SAPbouiCOM.BoGridColumnType.gct_EditText           
                Dim editColItemCode As SAPbouiCOM.EditTextColumn = CType(colItemCode, SAPbouiCOM.EditTextColumn)
                editColItemCode.LinkedObjectType = 4
    Regards, Yatsea

  • How to save data for Binded Matrix  in Sqlserver200(DB)

    hai all,
    i  created a Form by using Udo form generator.
    in that i bind the matrix with Userdatsources. its successfully binded to the matrix. but when i press "Add" Button the Sqlserver tables are not saved.
    if i enter values manually without binding the udo matrix, all rows are getting saved in sqlserver successfully.
    plz help me how to save the rows in the binded matrix to the tables in Sqlserver.
    Regards,
    Nagababu.

    Since you are using UserDataSources, you have to construct a function that loops through the columns, and by name and or alias you construct the INSERT and/or UPDATE query (assuming the destination table is User Defined).
    Check out this link
    Re: Matrix Processing
    Hope it helps

  • How do I change the number of picture columns in a folder

    how do I change the number of picture columns in a folder

    Never mind.  I found the answer.  For those who may wonder: you slide the cursor on the bottom right.  I looked in IPhoto help but there was nothing there.

  • Report data binding error unknown column name

    Hi,
    I am having a problem with the new 7.02 update of Report
    Builder. The issue is it's not finding my SQL query.
    I have wrote my query initally in the advance mode, and it
    doesn't seem to reconize it. Is there an issue with this?
    I did manage to fix one of my reports by using the basic mode
    and selecting all my tables and seting my linkage and criteria.
    I have other computers that i have not updated to 7.02 and
    they do not have this issue. Below is the error:
    Error Occurred While Processing Request
    Report data binding error Unknown column name : work_phone.
    Please try the following:
    Check the ColdFusion documentation to verify that you are
    using the correct syntax.
    Search the Knowledge Base to find a solution to your problem.
    Browser Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0;
    .NET CLR 1.1.4322; .NET CLR 2.0.50727)
    Remote Address 127.0.0.1
    Referrer
    Date/Time 13-Jul-06 02:33 PM
    Stack Trace (click to expand)
    coldfusion.runtime.report.Report$ReportDataBindingException:
    Report data binding error Unknown column name : work_phone.
    at
    coldfusion.runtime.report.Report.runReport(Report.java:420)
    at
    coldfusion.filter.ComponentFilter.invoke(ComponentFilter.java:96)
    at
    coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:225)
    at
    coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:52)
    at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
    at
    coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:69)
    at
    coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)
    at
    coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
    at
    coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
    at
    coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
    at coldfusion.xml.rpc.CFCServlet.invoke(CFCServlet.java:106)
    at coldfusion.xml.rpc.CFCServlet.doGet(CFCServlet.java:157)
    at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at
    org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
    at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78)
    at
    jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
    at
    jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
    at
    jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:257)
    at
    jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
    at
    jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:204)
    at
    jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:349)
    at
    jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:457)
    at
    jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:295)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    This report works in 7.01. So all query variables match with
    a variable in the SQL select statement.
    Anyone have any Ideas??
    Thanks,
    Daniel

    Thank you very much for help.
    The "Unknown column name " is a field still used in my
    report, so I can't remove it.
    After I clear the query in the report and reopen the report
    and apply the same query back to it, I get different error message:
    Element TASKNUM is undefined in QUERY.
    The error occurred in : line 1
    -1 : Unable to display error's location in a CFML template.
    I know for sure this "Element TASKNUM is undefined in QUERY."
    is defined in query. each time it complains something different. I
    get really confused.
    Thanks again.
    Yueming

  • Choose From List and Golden arrow link in System Matrix UDF column

    I'm wondering if there is a way through the SDK to create a 'Choose From List' and Golden arrow linked button in a System Matrix UDF column? 
    For example the Item Code in a sales order matrix does both.

    Hi,
    Try this code for adding CFL.             
                   SAPbouiCOM.ChooseFromListCollection oCFLs = null;
                    SAPbouiCOM.Conditions oCons = null;
                    SAPbouiCOM.Condition oCon = null;
                    oCFLs = oForm.ChooseFromLists;
                    SAPbouiCOM.ChooseFromList oCFL = null;
                    SAPbouiCOM.ChooseFromListCreationParams oCFLCreationParams = null;
                    oCFLCreationParams = ( ( SAPbouiCOM.ChooseFromListCreationParams )( SBO_Application.CreateObject( SAPbouiCOM.BoCreatableObjectType.cot_ChooseFromListCreationParams ) ) );
                    oCFLCreationParams.MultiSelection = false;
                    oCFLCreationParams.ObjectType = "object id ";
                    oCFLCreationParams.UniqueID = "CFL1";
                    oCFL = oCFLs.Add( oCFLCreationParams );
                   oColumn.ChooseFromListUID = "CFL1";
                  //where oColumn is the instance of that column.
    Hope u will get help....
    Thanks and Regards,
    Lalit

  • How to bind bar chart(columns) to array list object in c# win form

    how to bind bar chart(columns) to array list  object in c#win form

    Hi Ramesh,
    Did you want to bind list object to bar chart? I made a simple code to achieve binding list to bar chart.
    public partial class Form0210 : Form
    public Form0210()
    InitializeComponent();
    private void Form0210_Load(object sender, EventArgs e)
    BindData();
    public void BindData()
    List<int> yValues = new List<int>(new int[] { 20, 30, 10, 90, 50 });
    List<string> xValues = new List<string>(new string[] { "1:00", "2:00", "3:00", "4:00", "5:00" });
    chart1.Series[0].Points.DataBindXY(xValues, yValues);
    The links below might be useful to you:
    # Data Binding Microsoft Chart Control
    http://blogs.msdn.com/b/alexgor/archive/2009/02/21/data-binding-ms-chart-control.aspx
    # Series and Data Points (Chart Controls)
    https://msdn.microsoft.com/en-us/library/vstudio/dd456769(v=vs.100).aspx
    In addition, if I misunderstood you, please share us more information about your issue.
    Best Regards,
    Edward
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

  • How to bind each DataGrid column separately?

    Good day fellow Flex developers!
    Could you please help me out. I am trying to figure out how to bind each DataGrid column separately. I need to bind each column to a separate bindable array variable. Is there a dataProvider property for each DataGridColumn???
    Thanks in advance,
    Eugene

    hopefully nope
    just imagine code complexity for that feature?
    how would you think should behave DataGrid when you'll populate your separate arrays with variable items number each?
    all you are able and should do is to build composite dataProvider source, join all your separate arrays into it, this is your responsibility.
    If you feel this message answers your question or helps, please mark it respectively

  • Cannot bind matrix columns

    Hello,
    I try to show a matrix in a system form (the sales opportunities) in a new folder that i've created. The program just crash when i bind the DBDataSource to the Column... Any idea ?
                oDBDataSource = oForm.DataSources.DBDataSources.Add("OOPR");
                oItem = oForm.Items.Add("Matrix1", SAPbouiCOM.BoFormItemTypes.it_MATRIX);
                oItem.Left = 10;
                oItem.Top = 160;
                oItem.Width = 430;
                oItem.Height = 150;
                oItem.FromPane = 9;
                oItem.ToPane = 9;
                oMatrix = ((SAPbouiCOM.Matrix)(oItem.Specific));
                oColumns = oMatrix.Columns;
                oColumn = oColumns.Add("Code", SAPbouiCOM.BoFormItemTypes.it_EDIT);
                oColumn.TitleObject.Caption = "Code";
                oColumn.Width = 40;
                oColumn.Editable = true;
                oColumn.DataBind.SetBound(true, "OOPR", "CardCode");
    The last instruction crash the program.

    Hi Lee,
    here is snippet of code how i band hope it works for u,
    Dim MyUsrDs1 As SAPbouiCOM.UserDataSource
    Dim MyDbDs1 As SAPbouiCOM.DBDataSource
    MyUsrDs1 = MyForm.DataSources.UserDataSources.Add("Check", SAPbouiCOM.BoDataType.dt_SHORT_TEXT)
    MyMatrix.Columns.Item("Col3").DataBind.SetBound(True, "", "Check")
    MyDbDs1 = MyForm.DataSources.DBDataSources.Add("OCRD")
    MyDbDs1.Query(SQL)
    MyMatrix.LoadFromDataSource()

  • Date format in Matrix loaded by DataTable is shown as 20080319

    Hello,
    I've loaded most of our matrixes with DataTables. No problems up to now. Also date columns where shown in correct B1 GUI format.
    But now with a new matrix the date is 'suddenly' shown as '20080319'. When I view at B1 system information (at the bottom of B1) the column is described correctly with B1 GUI format:
    U_DateEndPr (Date)
    19.03.2008 [Form....Item..., U_DatEndPr]
    I've made a test (one of many):
    I've loaded the 'problem-matrix' with some columns (including one date column) from another DataTable which works correctly on another Matrix/Pane.
    The result is the same:
    In the first (correct working) matrix (pane 1) the date is 19.03.2008 and
    in the second matrix 20080319
    Is there something wrong with the matrix itself?
    I have absolutly no idea where my fault is.
    Does anybody made the same or similar experiences?
    So long,
    Roland

    Hello Petr,
    for the test which I've made i can say yes: I've loaded the problem-DataTable with the same query as the working dataTable.
    The only difference is:
    The problem-matrix has less columns than the working matrix. So I couldn't bound the problem.-DataTable/Matrix to all of the query result columns.
    Another hint:
    The Date format '20080319' looks like the result of SDK-ValueEx (B1-DB-Format-String)
    In another column beside '20080319' there's a double-value. This is shown with the correct decimal-separator of B1 (I've changed decimal sep. to '#' for test. The columns ar shown as:
    '20080319'  |  142#89
    ...so the second column is displayed correctly but the date format is still wrong...
    And:
    I get the same result when I do the problem-DataTable bind to exactly the same dataTable-UID as of the working DataTable.
    So at the moment I suppose that the error is in the Matrix-Object. Because both matrixes are loaded by the same DataTable (for trial) and only one of them shows wrong date-format.
    I forgot:
    The form with the problem-matrix was made with a 2 years old screenpainter. Althogh I've made changes on the form with a actual screenpainter - could this be a problem?
    Hmm, but I don't think so because on another pane and matrix of the same old form the date works corectly...
    Edited by: Roland Toschek on Mar 19, 2008 1:07 PM

  • DateField not getting copy in the matrix using Datasource & Datatable

    Hello All,
    I have tried to copy data From Purchase Order Tables to my own created User Defined Form matrix columns using DBDatasource & Datatables ,Instead of Document Date all other data are getting copied but that document date field is not
    getting the data plus it is not showing any error message as such.
    Following is the code which i have written :-
    =====================================
    oPurchase_Amend.DataSources.DataTables.Add("oMatrixDT" )
    oPurchase_Amend.DataSources.DataTables.Item("oMatrixDT" ).Clear()
    Dim sSQL As String = "SELECT T1.[ItemCode], T1.[Dscription], T1.[Quantity], T1.[Price],(Select InvntryUoM From OITM Where ItemCode=T1.ItemCode) as 'UoM',T1.LineNum,T0.DocNum  as 'FrmDate' FROM OPOR T0  INNER JOIN POR1 T1 ON T0.DocEntry = T1.DocEntry WHERE T0.[DocNum] ='1' and T0.CardCode='C0001'
    oPurchase_Amend.DataSources.DataTables.Item("oMatrixDT" ).ExecuteQuery(sSQL)
    oMatrix = oPurchase_Amend.Items.Item("mtx_0").Specific
    oMatrix.Clear()
    Dim oDBDataSource As SAPbouiCOM.DBDataSource = oPurchase_Amend.DataSources.DBDataSources.Item("@OSL_POAMD")
    Dim oDataTable As SAPbouiCOM.DataTable = oPurchase_Amend.DataSources.DataTables.Item("oMatrixDT" )
    oDBDataSource.Clear()
    For row As Integer = 0 To oDataTable.Rows.Count - 1
    Dim offset As Integer = oDBDataSource.Size
    oDBDataSource.InsertRecord(row)
    oDBDataSource.SetValue("U_ItemCode", offset, oDataTable.GetValue("ItemCode", row).ToString())
    oDBDataSource.SetValue("U_ItemName", offset, oDataTable.GetValue("Dscription", row).ToString())
    oDBDataSource.SetValue("U_UoM", offset, oDataTable.GetValue("UoM", row).ToString())
    oDBDataSource.SetValue("U_OldQty", offset, oDataTable.GetValue("Quantity", row).ToString())
    oDBDataSource.SetValue("U_OldRate", offset, oDataTable.GetValue("Price", row).ToString())
    > Line For Copying Document Date Data to the matrix datasource
    oDBDataSource.SetValue("U_OldDate", offset, oDataTable.GetValue("FrmDate", row))
    oDBDataSource.SetValue("U_LineId", offset, oDataTable.GetValue("LineNum", row))
      Next
    '--- Rebinding the datasource to the matrix columns -
    oMatrix.Columns.Item("col_0").DataBind.SetBound(True, "@OSL_POAMD", "U_ItemCode")
    oMatrix.Columns.Item("col_1").DataBind.SetBound(True, "@OSL_POAMD", "U_ItemName")
    oMatrix.Columns.Item("col_3").DataBind.SetBound(True, "@OSL_POAMD", "U_OldQty")
    oMatrix.Columns.Item("col_5").DataBind.SetBound(True, "@OSL_POAMD", "U_OldRate")
    oMatrix.Columns.Item("col_7").DataBind.SetBound(True, "@OSL_POAMD", "U_OldDate")
    oMatrix.Columns.Item("col_9").DataBind.SetBound(True, "@OSL_POAMD", "U_LineId")
    oMatrix.LoadFromDataSource()
    But i am not able to get the document date in the column of the matrix .
    Please suggest what changes i have to meke in this code to get the desired output.
    Thanks & Regards,
    Amit
    Edited by: AmitSharma_061985 on Dec 17, 2009 12:24 PM

    Hi Michael,
    FrmDate is the Document date of the purchase order which i am fetching through sql query and trying to copy that in the matrix
    through datasource .
    Edited by: AmitSharma_061985 on Dec 18, 2009 7:07 AM

  • Dynamic condition in UDO Matrix's Column

    Hi all,
    I have a user form with a matrix. The matrix's first column has a CFL linked to another UDO MasterData Code (lets call it UDOCode).
    And on this matrix, the same UDOCode cannot be chosen more then once.
    So, I've been trying to code a dynamic CFL that filters the UDOCode's already chosen in the Column.
    Based on this thread I've achived this code:
    Select Case pVal.ItemUID
                        Case "mtx_ACORDO" '// The Matrix
                            oConds = New SAPbouiCOM.Conditions
                            With oForm.DataSources.DBDataSources.Item("@ADAT_ACORDOS1") '// The Matrix's DBDataSource
                                If .Size = 1 Then
                                    oCond = oConds.Add
                                    oCond.Alias = "Code"
                                    oCond.Operation = BoConditionOperation.co_NOT_NULL
                                Else
                                    For i As Integer = 0 To .Size - 1
                                        oCond = oConds.Add()
                                        oCond.BracketOpenNum = 1
                                        oCond.Alias = "Code"
                                        oCond.Operation = BoConditionOperation.co_NOT_EQUAL
                                        oCond.CondVal = .GetValue("U_EspPrcCd", i)
                                        oCond.BracketCloseNum = 1
                                        If i > 0 And i < .Size - 1 Then
                                            oCond.Relationship = BoConditionRelationship.cr_OR
                                        End If
                                    Next
                                End If
                            End With
                    End Select
    If Not oConds Is Nothing Then oCFL.SetConditions(oConds)
    In the matrix's first row I have no problem. All the values are there. But on the second row, no values are display in the DataTable.
    If I change the conditions from .Size -1 to .Size - 2, I get the correct values on the first and second rows, but on the third, again, no values are being display in the DataTable...
    Can anyone help me?
    Regads,
    Vítor Vieira
    Edited by: Rui Pereira on Dec 23, 2008 4:17 PM

    Hi, Erwine Sukardy
    Maybe it will be helpful if you have a specific task.
    All of items on a Form have it's own DBDataSources.
    For example, to get a table name and field name, that are Datasources to the ItemCode field in a Matrix in a  Purchase Order document, you can use this code:
    SAPbouiCOM.Matrix        tblSNs;
    SAPbouiCOM.Column      oColumnItems;           
    tblSNs = (SAPbouiCOM.Matrix)oPurDNForm.Items.Item("38").Specific;
    oColumnItems = (SAPbouiCOM.Column)tblSNs.Columns.Item("1");
    string tableName = oColumnItems.DataBind.TableName;
    string fieldName = oColumnItems.DataBind.Alias;
    HTH!

  • Problem in binding matrix with DBDataSource

    Hi
    I  bind the matix using DBDataSource,but when i again bind the matrix under the existing records it works.
    But when i delete a row from the delete menu and again bind the matrix then it adds an extra row in the matrix.
    when i delete two rows then it adds extra two rows and so on...
    please help..........

    This is for Menu delete before action
    SAPbouiCOM.Matrix oMatrix;
                        oMatrix=(SAPbouiCOM.Matrix)oPCForm.Items.Item(ClsConstant.strPC_matrixPC).Specific;
                        if(iRowNumber > 1)
                             oMatrix.FlushToDataSource();
                             oDbMatrixDataSrcPC.RemoveRecord(iRowNumber-1);
                             oMatrix.LoadFromDataSource();          
    for after action
    oMatrix.FlushToDataSource();
    for(int i=oMatrix.VisualRowCount;i > 0 ;i--)
    stsPO =  ((SAPbouiCOM.EditText)oMatrix.Columns.Item(ClsConstant.strPC_mtxPONo).Cells.Item(i).Specific).Value.ToString();
    if(sPONO == stsPO)
    oMatrix.DeleteRow(Convert.ToInt32(i));
    //oDbMatrixDataSrcPC.RemoveRecord(Convert.ToInt32(iRowNumber)-1);
    oDbMatrixDataSrcPC.RemoveRecord(i-1);
    oMatrix.LoadFromDataSource();     

Maybe you are looking for

  • Finger sticks when playing games

    Does anyone else have a problem with their thumb sticking real bad when playing games that use a directional pad or joystick on screen? Maybe im the only one but it makes some games almost impossible to play. Any ideas or solutions?

  • SP 9 for VS 2013 - unable to create new project

    I've just installed the Service Pack 9 to allow Crystal to work with VS 2013.  I'm on Win 7, running the application as an administrator.  Now when I go to create a new web project, no matter what options I seem to choose I get this error message: Mi

  • How to create lower-level item for delivery with TO confirmation.

    Hi Gurus, I am writing batch to the delivery item after confirming the Transfer Order. According to the TO quantity, SAP splits the items and makes a "Lower-Level" item. SAP does that splitting if the TO quantity is lower that the delivery item quant

  • Printing to PDF Error

    I do a lot of editing PDF docs and have to print them. Occasionally I'll print a doc that I don't realize has some security enabled and if I do this instead of printing the document to PDF, the doc is printed to Word and numerous error tabs open inde

  • HT5312 So where does it say how to reset your security questions?

    Hey all, So, does anyone here know how I can reset my security questions? I do have a rescue email address just so you all know.