Changing dataProvider on a Field

I want to change the dataProvider on a Field.

To get the dataProvider I can use:
“elements.my_Fild.getDataProviderID()”

How do I set it? For example:
“elements.fld_bcnr.setDataProviderID(my_dataprovider)”
But there is no such method setDataProviderID.

Thanks
ttmgybta

ttmgybta,

To modify this you will have to go down the solution model route.

Rob

Rob,

Thanks!
But where do I find the solution model route, ore what do you mean whit that?

Regards
ttmgybta

See this thread: viewtopic.php?f=27&t=11506

There is also a tutorial for it: http://servoy.com/generic.jsp?mt=396&taxonomy_id=790

Rob

Rob,

Thanks for the links.
It is a nice and interesting way, but I have some problems implementing this in the framework.
Is it also possible to set the dataProvider whit the putClientproperty?

elements.my_Field.putClientProprty(’dataProvider’,‘my_dataProvider’);

I tried also the example from the wiki:

forms.customer.elements.customer_id.putClientProperty('ToolTipText','some text');

http://wiki.servoy.com/display/public/DOCS/TextField+(instance)#TextField(instance)-putClientProperty

It doesn’t work either to set a ClientProperty.

Regards
ttmgybta

dataproviders can only be changed at the blueprint == solution model level.
Not at the runtime level. (== elements.xxx)