Skip to Content
author's profile photo Former Member
Former Member

Hi All clear the matrix row

i want to clear the matrix row

binding the data on purchasr order form but before binding i want to clear the matrix data

Thanks in adva.

Raj

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 03, 2008 at 02:43 PM

    Hi Rajkumar,

    1. To clear the matrix before binding your data,

    use Omatrix.clear [on form load event - depends on your requirement]

    2.if you want to delete particular row use

    Omatrix.deleterow(Rowno)

    3.For user defined forms [if UDO properties correctly defined] ,

    you can activate right click delete row event by,

    LoadForm(ocompany, oApplication, "sample.srf")

    oForm = oApplication.Forms.ActiveForm

    oForm.EnableMenu("1293", True) -- delete row

    on Form load event..........

    Regards,

    Ganesh k

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 03, 2008 at 01:44 PM

    Hi,

    to empty the matrix simple use

    oMatrix.Clear

    if you want to delete a single row use

    oMatrix.DeleteRow(rowNum)

    😊

    lg David

    Edited by: David Nussböck on Nov 3, 2008 2:45 PM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 03, 2008 at 02:16 PM

    hi,

    if u want to clear entire matrix then

    oMatrix.clear()

    else if u want to clear a row then

    oMatrix.Columns.Item("ColUID").Cells.Item(RowNo).Specific.Value=nothing or "" 'If it is String Type or Int Type Columns

    oMatrix.Columns.Item("ColUID").Cells.Item(RowNo).Specific.Value=0 'If it is Double Type Column

    use the above for each and every cell in the row which ever you want to clear.

    regards,

    varma

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.