cancel
Showing results for 
Search instead for 
Did you mean: 

Update Column Invisible: value not is saved

Former Member
0 Kudos
195

Hello

I have a user form with a UDO of type Document. There is a matrix. In the matrix i have a column not visible. I can't update the value

Example:

Dim l_sboColumn As SAPbouiCOM.Column

l_sboColumn = CMatrix.GetMatrixColumn(p_sboMatrix, p_sColID)

Dim sboTxt As SAPbouiCOM.EditText = l_sboColumn.Cells.Item(p_iRow).Specific

sboTxt.Value = p_sValue

sboTxt = Nothing

Note: the column is not visible.

If I debug the instruction sboTxt.Value = p_sValue I note the value in sboTxt.Value is "" and not p_sValue

Then I cannot save the value.

If the column is visible, it's ok

Where is the problem?

Thanks, Andrea

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

There isn´t any problem.

General rule: you can update a value with the UI API if you can do it manually in SBO.

As you can´t do it manually in SBO (the field is invisible), you will not be able to do it with the UI API.

You are not going to be able even if you set it visible, but it is non-editable.

What I guess you can do is to put it visible and editable, 0 width and put it as last column. The user will not see it, and you will be able to edit it.

Hope helps,

Ibai Peñ

Answers (0)