Guest:
Register
|
Login
|
Member List
|
Search
|
Statistics
|
FAQ
Language
----------
Simplifed Chinese
Traditional Chinese
English
CnPack Forum
»
CnWizards IDE Wizards
» Component name of db controls
‹‹ Last Thread
|
Next Thread ››
Poll
Trade
Reward
Activity
Printable Version
|
Email to Friend
|
Subscription
|
Favorites
Subject: Component name of db controls
mariusz
新警察
UID 303562
Digest Posts 0
Credits 27
Posts 9
点点分 27
Reading Access 10
Registered 2016-4-1
Status Offline
#1
Post at 2016-5-18 20:11
Profile
|
Blog
|
P.M.
Component name of db controls
Hi there,
When I select standard dbEdit and select DataField for that component, 'Edit component's name' dialogue appears and proposes name built with prefix and database field name. Would it be possible, to get that option for DevExpress cx DB components too ?
best regards
Mariusz
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6888
Posts 3614
点点分 6888
Reading Access 102
Registered 2004-3-28
Status Offline
#2
Post at 2016-5-29 12:10
Profile
|
Blog
|
P.M.
We don't care the Components classes, but use a published property named "DataField" to get the new name. So if DevExpress cx DB Components can't auto get the field name as component name, maybe the property name is not "DataField"?
mariusz
新警察
UID 303562
Digest Posts 0
Credits 27
Posts 9
点点分 27
Reading Access 10
Registered 2016-4-1
Status Offline
#3
Post at 2016-5-29 20:27
Profile
|
Blog
|
P.M.
Actually it is... have a look
Image Attachment
:
2016-05-29_142715.jpg
(2016-5-29 20:27, 81.75 K)
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6888
Posts 3614
点点分 6888
Reading Access 102
Registered 2004-3-28
Status Offline
#4
Post at 2016-5-30 17:46
Profile
|
Blog
|
P.M.
The DataField property seems is from DataBinding Object, not directly from TcxDBDateEdit, which is only support by us.
We'll consider to add DataBinding's DataField Support.
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6888
Posts 3614
点点分 6888
Reading Access 102
Registered 2004-3-28
Status Offline
#5
Post at 2016-5-30 18:04
Profile
|
Blog
|
P.M.
BTW, do you use "cxDBDateEdit1.DataBinding.DataField" to refer the DataField Property in code? if so, I'll add this feature by this way and could you help to test this feature for us?
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6888
Posts 3614
点点分 6888
Reading Access 102
Registered 2004-3-28
Status Offline
#6
Post at 2016-6-1 22:37
Profile
|
Blog
|
P.M.
835 nightly-build is ready for test this feature. Please help to download and test it?
http://www.cnpack.org/downbuilds.php
mariusz
新警察
UID 303562
Digest Posts 0
Credits 27
Posts 9
点点分 27
Reading Access 10
Registered 2016-4-1
Status Offline
#7
Post at 2016-6-8 05:32
Profile
|
Blog
|
P.M.
Hello
Sorry for delayed answer and thank you for your keenness to help...
Unhapilly it does not work. When I select data field in Object inspector, it does not change components name. When I click button by components name to invoke 'Edit component's name' dialog, I get error message like on picture bellow.
Answering your question, rarely, but I refer to DataField by code. I'm not sure what I should test, but I'll do my best to help you.
Image Attachment
:
2016-06-07_232412.jpg
(2016-6-8 05:32, 12.69 K)
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6888
Posts 3614
点点分 6888
Reading Access 102
Registered 2004-3-28
Status Offline
#8
Post at 2016-6-8 13:08
Profile
|
Blog
|
P.M.
Could you click the details button and copy the stack trace and paste to here?
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6888
Posts 3614
点点分 6888
Reading Access 102
Registered 2004-3-28
Status Offline
#9
Post at 2016-6-8 14:53
Profile
|
Blog
|
P.M.
Now please download 838 nightly-build to test again? I've done some fix, but I don't have cx Components, so need your help to test it. Thanks.
mariusz
新警察
UID 303562
Digest Posts 0
Credits 27
Posts 9
点点分 27
Reading Access 10
Registered 2016-4-1
Status Offline
#10
Post at 2016-6-9 20:12
Profile
|
Blog
|
P.M.
Hello... I was tested it with version 839.
It works, when I open 'Edit component's name' dialog. When I just select FieldName it does not change components name - just does nothing.
best regards
Mariusz
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6888
Posts 3614
点点分 6888
Reading Access 102
Registered 2004-3-28
Status Offline
#11
Post at 2016-6-12 09:52
Profile
|
Blog
|
P.M.
Seems there's no notification to IDE when cx Components DataBinding.FeildName changed. I'll do some research again.
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6888
Posts 3614
点点分 6888
Reading Access 102
Registered 2004-3-28
Status Offline
#12
Post at 2016-6-12 12:34
Profile
|
Blog
|
P.M.
Now we can get the notification to DataBinding's DataField Changing, but we can't get the cxDBEdit or similar component instance from the DataLink instance.
Is there any property like DataBinding.Owner or DataBnding.Edit refer to cxDBEdit components?
Poll
Trade
Reward
Activity
CnPack Forum
CnPack English Forum
> CnWizards IDE Wizards
> CVSTracNT
> Announcements & Others
All times are GMT++8, the time now is 2025-4-3 04:42
Powered by
Discuz!
5.0.0
© 2001-2006
Comsenz Inc.
Processed in 0.006790 second(s), 9 queries , Gzip enabled
TOP
Clear Cookies
-
Contact Us
-
CnPack Website
-
Archiver
-
WAP
Member's CP Home
Edit Profile
Credits Transaction
Public User Groups
Buddy List
Main
Page Views
User Agents
Posts History
Top Forums
Top Threads
Post Ranking
Credit Ranking
Online Time
Team
Moderation Stats