DataSource and DataField in Label

I am curious why we need those 2 properties in label control?? i know it exist in the RS IDE.

Imagine a TextField, but just to show data.

Read User guide, framework, section 2, DataControl Control.

Ah those are archaic actually
They were used with the old database bindings which have been deprecated & finally removed
We should hide those everywhere they exist (would love to remove them but I’m not sure we can)
Please file a bug report about those

But DataSource and DataField is still hanging around without the Data Control…hahaha… When did the DataControl get remove?? and why can’t they be remove??

http://docs.realsoftware.com/index.php/Deprecations_in_Real_Studio

Can’t find DataControl, DataSource or DataField in deprecations, and suggested substitutions.

DataSource & DataField are only useful with database bindings which have been deprecated for ages.
They have virtually NO other use and you cant even use them in any real way.

2013r1 lists the interfaces used for other bindings in the removals column

The datacontrol is still present and you can use it even without database bindings.

REALbasic bindings were deprecated in REALbasic 2007 Release 5.
You’ll note our page doesn’t go that far back - these have been deprecated a VERY long time.

Please, reflect this on documentation.

The new PDFs still mention those as active.
The on line docs does not mention deprecation.

Many places. Please, review the entire documentation pdf and on-line. Few ones for example:

http://docs.realsoftware.com/index.php/ListBox.DataSource
http://docs.realsoftware.com/index.php/ListBox.DataField
http://docs.realsoftware.com/index.php/Checkbox.DataSource
http://docs.realsoftware.com/index.php/Checkbox.DataField

If it’s not here, probably it’s active: http://docs.realsoftware.com/index.php/Deprecations_in_Real_Studio

Here it explains how to use it: http://docs.realsoftware.com/index.php/DataControl

Etc, etc. :wink:

It’s also still in the examples shown in the datacontrol folder. AFAIK not the database binding is deprecated but all other bindings which could be drawn in the layout editor.

the drawn bindings are definitely gone
thats this change in the release notes

CHANGE 18100 Framework: Removed deprecated binding interfaces namely: BooleanProvider, ListInterface, StringInterface, StringProvider, DataAvailableProvider, BindingInterface, BindPartInterface, ListDataProvider, ListDataNotifier, ListDataNotificationReceiver, TupleInterface, EnablingBinder, ActionBinder, StringBinder, and ListBinder.

let me double check the data base binding stuff as the data control definitely hasn’t been removed
so it may be still present (I can be wrong you know)

I still regret the drawn bindings are gone, they were extremely handy for fast prototyping and were very ilustrative and explanatorial for less experienced users.

Are you realy sure about that? :wink:

[quote=8603:@Norman Palardy]DataSource & DataField are only useful with database bindings which have been deprecated for ages.
They have virtually NO other use and you cant even use them in any real way.

2013r1 lists the interfaces used for other bindings in the removals column

The datacontrol is still present and you can use it even without database bindings.

REALbasic bindings were deprecated in REALbasic 2007 Release 5.
You’ll note our page doesn’t go that far back - these have been deprecated a VERY long time.[/quote]

i manage to make use of the 2 properties without using datacontrol or databasebinding.

Funny, I don’t use these controls but roll my own and sort of thought, “am I re-inventing the wheel”. To answer my own question it’s no as I have heaps more control but these controls are at the heart of my application framework.

It is frustrating though seeing them referenced in the documentation and I can understand newcomers wasting some time on this especially when ‘doing it yourself’ is not that difficult.

i have mention in another conversation “DataSource and DataField” about the usage for this which work very well for me. Only discover yesterday that i can make use of those 2 redundant fields

[quote=8603:@Norman Palardy]…
The datacontrol is still present and you can use it even without database bindings.
…[/quote]

How does it work with out a database?
I tried using it as a simple pager contrlol, ie: Page 1 ot 5,
but the buttons won’t activate or fire,
which I assume is because there is no database attached.

I’m wondering too, can the DataControl be used without a Database? If so, how do you “enable” the buttons so they trigger the MoveNext/MovePrevious, etc. events?

make your own using a containercontrol, throwing the buttons you want inside, it’s easy and they will trigger the way you want.

Bah! You’re no fun! :wink:
Anyone can do that.

only movenext is supported by all the databases. movefirst,previous and last I don’t know if they work in any database !
so using the built in database control is wasted effort.

Norm seemed to think it was possible…