cancel
Showing results for 
Search instead for 
Did you mean: 

How to remove datasource

Former Member
0 Kudos

Hi Experts

For example, I add a datasource in DBDataSources as below:

form.DataSources.DBDataSources.Add("mydatasource", SAPbouiCOM.BoDataType.dt_SHORT_TEXT)

Now I would like to add a same name datasource into UserDataSources:

form.DataSources.UserDataSources.Add("mydatasource", SAPbouiCOM.BoDataType.dt_SHORT_TEXT)

So I need to remove the previous one from DBDataSources, do you know how to do this?

Thanks

Tim

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

doesn't make sense to me.. why do you want to use the same name twice?

DBDataSources.Add("TABLENAME")
UserDataSources.Add("UniqueID", type, length)

Therefore please clarify if your code is correct.

Regards

Sebastian

former_member201110
Active Contributor
0 Kudos

Hi Tim,

I don't believe you can delete a datasource from a form once it has been added. The only thing you can do is close the form and reopen it.

As Sebastian has mentioned, it isn't typically required to make changes to the datasource definitions once they have been set. What are you trying to achieve?

Kind Regards,

Owen