on 06-24-2008 7:05 AM
I am having two matrix in my screen.. In the first matrix document numbers loaded in the first column...... In the second matrix item loaded in the first column....... In the first matrix, without selecting tab cfl, when i entered the document number and press tab corresponding details will be loaded in the other columns...... but in the item matrix when i enter the item as "item01" ( this is available in the item cfl) and press the tab means, a new CFL window opens..... Wat the reason...?
In the choose from list two things are very important one is alias name and another one is Objcet id Pls select these properly
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sridhar,
in the following code:
Dim CFLevents As SAPbouiCOM.ChooseFromListEvent = pVal
Dim CFLList As SAPbouiCOM.ChooseFromList
Dim StrUID As String = bonCFLevents.ChooseFromListUID
Dim DT As SAPbouiCOM.DataTable = bonCFLevents.SelectedObjects
what is bonCFLevents?
should not it be CFLevents ?
the block should be something like
Dim oCFLEvento As SAPbouiCOM.IChooseFromListEvent
oCFLEvento = pVal
Dim sCFL_ID As String
sCFL_ID = oCFLEvento.ChooseFromListUID
Dim oForm As SAPbouiCOM.Form
oForm =sbo_Application.Forms.Item(FormUID)
Dim oCFL As SAPbouiCOM.ChooseFromList
oCFL = oform.ChooseFromLists.Item(sCFL_ID)
If oCFLEvento.BeforeAction = False Then
Dim oDataTable As SAPbouiCOM.DataTable
oDataTable = oCFLEvento.SelectedObjects
If oDataTable Is Nothing Then
Exit Sub
End If
regards,
Binita
Sridhar,
In your code, I still don't see filter for matrix and column Id. may be you have given it before you have written the above chunk. if not, try giving that. if that does not lead anywhere, last thing, try commenting the attachment of CFL for the matrix for which it is working.
regards,
Binita
Please post ur code.
Regards,
Mahendra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sridhar,
what is your Itemcode column bound to in screen painter? and in form, wht type of user datasource it is attached to? post your choose from list event code.
Binita
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is my source
Case SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST
Dim CFLevents As SAPbouiCOM.ChooseFromListEvent = pVal
Dim CFLList As SAPbouiCOM.ChooseFromList
Dim StrUID As String = bonCFLevents.ChooseFromListUID
Dim DT As SAPbouiCOM.DataTable = bonCFLevents.SelectedObjects
Dim ISBool As Boolean = False
Dim IncomingItem As String
Dim Count As Integer
CFLList = Form.ChooseFromLists.Item(StrUID)
If Not (DT Is Nothing) Then
For Count = 1 To Matrix.VisualRowCount
Matrix.GetLineData(Count)
IncomingItem = DBDatasource.GetValue("U_itemid", DBDatasource.Offset).Trim
If IncomingItem = DT.GetValue(0, 0) Then
ISBool = True
[ DUPLICATE ITEM MESSAGE]
Exit For
Else
ISBool = False
End If
Next
If ISBool = False Then
If pVal.Row = Matrix.VisualRowCount Then
DBDatasource.Offset = DBDatasource.Size - 1
DBDatasource.SetValue("U_itemid", DBDatasource.Offset, "")
DBDatasource.SetValue("U_itemdesc", DBDatasource.Offset, "")
DBDatasource.SetValue("U_Cost", DBDatasource.Offset, "")
Matrix.AddRow()
Matrix.SetLineData(DBDatasource.Size)
Matrix.FlushToDataSource()
End If
DBDatasource.SetValue("U_itemid", DBDatasource.Offset, DT.GetValue(0, 0))
DBDatasource.SetValue("U_itemdesc", DBDatasource.Offset, DT.GetValue(1, 0))
Matrix.SetLineData(pVal.Row)
Matrix.FlushToDataSource()
End If
End If
Hello,
please have a second look to the CFL-ObjectID. Is it realy linked with ObjectID = 4 (this is for Items-masterdata)?
kind regards
Christian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
96 | |
10 | |
9 | |
5 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.