cancel
Showing results for 
Search instead for 
Did you mean: 

Can we attach CFL in matrix column which is int datatype?

Former Member
0 Kudos

Hi Experts!

Q1. i am attaching CFL in matrix column which is of integer datatype. but cfl is is not showing. it showing like edit text.

Q2. in add mode, all the matrixes are freezed due to which i am not able to add any data by entering in matrixes. but when i open the form in find mode it is working fine. please send solution.

Thanking you

vishwajit kumar

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Vishwajit Kumar ,

Q2). In find mode by default you have a single row. but in add mode you have to add the row through code.

 oform=sbo_application.forms.item("SampleForm")
            omatrix=oform.items.item("MatrixId").specific
                          omatrix.addrow(1,-1) 

If ur using a button to add a row then write this code in item event or else write it in menu event. Menu id ="1282"

Q1). The field datatype should be alpha numeric

Regards,

Anand

Former Member
0 Kudos

Hi Anand peter!

Thanks for your help. Now my problem has been solved. but i want to know, by default position for matrix is -1?

Thanking You

vishwajit kumar

Former Member
0 Kudos

Hi Anand peter!

Thanks for your help. Now my problem has been solved. but i want to know, by default position for matrix is -1?

Thanking You

vishwajit kumar

Answers (1)

Answers (1)

former_member689126
Active Contributor
0 Kudos

Hi

Q1) if you are using a choosefromlist then the corresponding field must be bound to a alphanumeric type

Q2) you can enable matrix like this

on after menu click

Select Case pVal.MenuUID

              Case "1282" 'ADD = 1282
                  
                   Dim oItem As SAPbouiCOM.Item
                   oItem = _form.Items.Item("matrixUID")
                   oItem.Enabled = True

     End Select

Regards

Arun

Former Member
0 Kudos

Hi Arun!

thanks alot! my problem has been solved. but by code adding row in matrix.

Thanking you

vishwajit Kumar