Solved

Why I can't write in dbedit and...

Posted on 2004-04-24
13
1,128 Views
Last Modified: 2010-04-05
I have form consist of DataSource ,4dbedit,Dbgrid ,IBquery
datasource1 datset property = IBquery
Datagrid datasource property = datasource1
dbedit datasource property =datasource1
dbedit  datafield property is one of the selected field in Ib query
when I select any Record in dbgrid it appears in the 4 dataedits but i can't write in dbedit
the questions are
 1-  Why can't I rewrite Or delete value in dbedit (to modify my table) knowing that readonly propert for Dbedit =false


2- when I add any record to db table the new Record doesn't appear in dbgrid (Dbgrid.refresh is found in addbutton)
0
Comment
Question by:sraab2004
  • 5
  • 3
  • 2
13 Comments
 
LVL 17

Expert Comment

by:mokule
ID: 10906781

You can't type in DBEdit or Your changes are not saved ?
0
 
LVL 12

Expert Comment

by:Ivanov_G
ID: 10907187

   DBEdit.DataSource.DataSet.Edit;

   now you can write ...
   if you want to save the changes
   DBEdit.DataSource.DataSet.Post;
0
 

Author Comment

by:sraab2004
ID: 10907214
I can't type in dbedit
0
 

Author Comment

by:sraab2004
ID: 10907222
for Ivanov Where should I put your code ?
0
 
LVL 17

Expert Comment

by:mokule
ID: 10907264
You can't type if your dataset is readonly or DBEdit.DataField is Lookup or calculated.
Is it any of this cases?
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 17

Expert Comment

by:mokule
ID: 10907299
Ivanov:
Edit mode should be entered automatically when he tried type.
So I don't think it solves problem
0
 
LVL 12

Expert Comment

by:Ivanov_G
ID: 10908173

   somewhere before you try to type in the DBEdit.

   also make sure your datasets, datafields are properly assigned...
0
 

Author Comment

by:sraab2004
ID: 10913167
no solution works the problem still present
0
 
LVL 17

Expert Comment

by:mokule
ID: 10913225
There were no solutions.
Answer my questions.
Is your dataset readonly?
Is DBEdit.DataField Lookup or calculated?
0
 
LVL 17

Accepted Solution

by:
mokule earned 30 total points
ID: 10913276

All right then. It was only rhetorical question.
IBQuery IS readonly dataset.
To allow database update it must cooperate with TIBUpdateSQL.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now