Solved

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

Posted on 2004-04-24
13
1,240 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying 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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

739 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