on 10-12-2010 6:26 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
104 | |
12 | |
11 | |
6 | |
6 | |
4 | |
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.