cancel
Showing results for 
Search instead for 
Did you mean: 

Data Source - Alias Not Found

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member1269712
Active Contributor
0 Kudos

Hi Sachin,

Check your values which are coming in strUDFTitle_Array(i) array. Hope it will help you.

Thanks

SD

Answers (1)

Answers (1)

Former Member
0 Kudos

hello freind

pls cheak yur code.yu not write feild name propery yu are write onlly "U_".i am sure this error due to this problem

error in this row

pls write feild name proparly like U_Name

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

Edited by: vmaskey on May 15, 2010 11:40 AM

Former Member
0 Kudos

Hi,

I know dear error showing due to this only, I am taking some multiple values in array and then passing values one by one there till end of count values. Value is coming properly in array e.g. xyz so it is showing U_xyz. But cursor goes in if condition it is showing me Data Source-Alias not found.

Thanks,

Sachin

Former Member
0 Kudos

Hi

Are you trying to set column header captions of matrix ?

Regards

Former Member
0 Kudos

Yes, I am creating udf's through sdk and set column headings in matrix.

Thanks

Sachin