Languages

Menu
Sites
Language
Data Binding: missed some datatypes in DataBindingDataType enum

Hi,
I try to use data binding for EditTex or Text Box with NativeUI Builder's help.

I am able to launch 'Data Binding Wizard' via Properties->DataBinding->Text->AddDataBinding

From wizard I am able to select 'Member Variable Type' (Data Type)  as Tizen::Base::DataTime or Tizen::Base::Short

After this code is automatically generated...
I have got code :

    pContext->Bind(L"shortValueBinding", L"IDC_EDITAREA1", L"text", myShortValue1, DATA_BINDING_DATA_TYPE_SHORT, DATA_BINDING_FLOW_TWO_WAY, DATA_BINDING_TRIGGER_EXPLICIT, null, null, null);

But there are no defined types in enum DataBindingDataType
DATA_BINDING_DATA_TYPE_SHORT and DATA_BINDING_DATA_TYPE_DATATIME

How could I use binding for these datatypes?
If I can't use...Will Tizen support binding for these datatypes in future or they should be excluded from wizard?
Alexey.

Edited by: Brock Boland on 17 Mar, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

5 Replies
Pushpa G
Are you using Tizen 2.2(latest release)(ref: https://developer.tizen.org/downloads/tizen-sdk)
Alex Dem
Hi, I am using Tizen 2.2.0 beta. Is this the same? Alexey.
Pushpa G
Yes, I also used same version 2.2.0Beta, But i got the following code generated: // The following code are automatically generated by UiBuilder - do not modify by hand // DO NOT EDIT - start of generated code DataBindingContext* pContext = GetDataBindingContextN(); pContext->Bind(L"sEditArea", L"IDC_EDITAREA1", L"text", text, DATA_BINDING_DATA_TYPE_STRING, DATA_BINDING_FLOW_TWO_WAY, DATA_BINDING_TRIGGER_EXPLICIT, null, null, null); delete pContext;
Alex Dem
Hi, I mean when I select in 'Data Binding Wizard' in field 'Member Variable Type' (Data Type) types Tizen::Base::DataTime or Tizen::Base::Short , I get in code non-defined datatypes like DATA_BINDING_DATA_TYPE_SHORT or DATA_BINDING_DATA_TYPE_DATATIME. It looks like an error. I use Tizen 2.2.0 beta for win32. Alexey.
muditha murthy
The two datatypes are not supported by Tizen anymore. Both will be removed from the wizard.