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

is there any way to put the values inthe system matrix which is non editabl

is there any way to put the values inthe system matrix which is non editable...

this Q is not that much priority since i had achieved the requirement other way round by having user defined matrix ... but if i get the way for this it will help my add on performance much better...

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 02, 2005 at 09:08 AM

    Hi Raj,

    You can always set values in visible columns in a system matrix, even when they are not active (editable as you said).

    What is not possible using code is to set false or true the "visible" and "active" properties of an item in a system form.

    Regards,

    Felipe

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Raj, I didnt get all the details but here some ideas how you can solve your issue:

      Depending in the system form you are working you can always use a DBDataSource in order to manipulate the rows in a matrix. It's much better as using the objects of the matrix itself. In this case you can use:

      oMatrix.FlushToDataSource()

      oDBDsource.SetValue("U_Quan", pVal.Row, "101")

      oMatrix.Clear()

      oMatrix.LoadFromDataSource()

      As you can see in SetValue i'm obtaining the Column, then the row number and then setting a NEW value for this cell.

      Please consider if you can use DBDataSource instead of UserDataSource.

      If the answer is yes then you can use the following:

      oMatrix.FlushToDataSource()

      '//Get the line you want

      matrix.GetLineData(pval.row)

      '//Call the Userdatasource assigned to that column

      UserDataSource = UserDataSources.Item("ItmCode")

      '//Set the new value

      m_UserDS.ValueEx = "A02520"

      oMatrix.LoadFromDataSource()

      You can also use:

      oMatrix.Columns.Item("ItemName").Cells.Item(l_rownum).Specific.String = "A02520"

      In case you are not assigning the string in a combobox of course.

      Good luck!

      Felipe

  • Posted on Feb 02, 2005 at 02:19 PM

    Hi,

    Just as a reminder:

    This question has been asked and answered several times before in this forum. I propose that you might consider to first search the forum...

    Regards,

    Frank

    PS: ...and please try to avoid duplicate posts ("... Define a User in ... 6.5 ...")

    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.