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

Default Value for a column in matrix

Hi,

How to set default value for a column in matrix which is of type combo(Yes/No).

The cell has combo in it

Manoj

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 16, 2006 at 01:40 PM

    I'm not sure, but I guess that if you set the values and the default one in the field on the table, it will appear as default in the matrix column!

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Manoj,

      The column is set as combo. Now you need to tell SBO what constituates a Y or N. In my example my Column "Col6" must display Yes if the RENTED column = 1 and No if the RENTED column = 0. (I'm obviously using a datasource to tie the data to the matrix)

      oMatrix = frm.Items.Item("YourMatrixID").Specific

      oColumns = oMatrix.Columns

      oColumn = oColumns.Item("Col6")

      oColumn.DataBind.SetBound(True, "@VIDEO", "U_RENTED")

      oColumn.ValOn = "1"

      oColumn.ValOff = "0"

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.