Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2004-04-24
13
Medium Priority
?
1,500 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

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
 
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 120 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

885 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