Skip to Content
0
Former Member
May 15, 2010 at 07:53 AM

Data Source - Alias Not Found

88 Views

Hi All,

I written below mentioned code values are coming properly but when cursor going in if condition it shows error "Data Source - Alias Not Found". Please give solution for same.

For i As Integer = 0 To UBound(strUDFTitle_Array)

MsgBox(strUDFTitle_Array(i))

FormLCostMat.Columns.Add(strUDFTitle_Array(i), SAPbouiCOM.BoFormItemTypes.it_EDIT)

FormLCostMat.Columns.Item(strUDFTitle_Array(i)).Width = "70"

FormLCostMat.Columns.Item(strUDFTitle_Array(i)).TitleObject.Caption = strUDFDesc_Array(i)

If FormLCostMat.Columns.Item(strUDFTitle_Array(i)).DataBind.Alias <> "U_" & strUDFTitle_Array(i) Then

FormLCostMat.Columns.Item(strUDFTitle_Array(i)).DataBind.SetBound(True, "IPF1", "U_" & strUDFTitle_Array(i))

End If

Next

Thanks,

Sachin