Solved

editable datawindow powerbuilder?

Posted on 2004-10-07
7
1,289 Views
Last Modified: 2013-12-26
long ll_newrow

ll_newrow = dw_3.InsertRow(0)

dw_3.ScrollToRow(ll_newrow)

this code is assigned to a button that i created at the form not the datawindow

at the clicked() event exists the above code.

a new line appears at the datawindow when i press the button but is not editable. I can not write in the fields.

help please!
0
Comment
Question by:stefanosn
[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
  • 4
  • 3
7 Comments
 

Author Comment

by:stefanosn
ID: 12256637
i found out that i had to change the tab order to edit the fields so... after that i insert a new row and i press the save button that i have on the form not the datawindow...but i get a message saying that "datawindow does not have UPDATE capability"

thats the code...help!

integer rtn
rtn = dw_3.Update()
IF rtn = 1 THEN
        COMMIT USING SQLCA;
ELSE
        ROLLBACK USING SQLCA;
END IF
0
 
LVL 33

Expert Comment

by:sajuks
ID: 12256716
In datawindow object
Go to  Rows > Update Properties.
Is it checked ?
0
 

Author Comment

by:stefanosn
ID: 12256732
this option sajuks is not available/enabled=false
0
Technology Partners: 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!

 
LVL 33

Accepted Solution

by:
sajuks earned 50 total points
ID: 12256745
You have to enable it
Allow Updates hsould be checked.
Selct the updataeable columns
Select the name of the table to update from the drop down
And finnaly click on the primary key button to select the pk of the table.

0
 

Author Comment

by:stefanosn
ID: 12256819
ok i did this but from the Rows>Update properties - Update option it is still disabled
0
 

Author Comment

by:stefanosn
ID: 12256824
oh i see i was wrong ok thanks sajuks!
0
 
LVL 33

Expert Comment

by:sajuks
ID: 12256844
stefanosn  i really fail to see why you continuously insist on giving b grades for perfect answers.
I wouldnt have minded if  there was some other alternatives or some thing which i'd missed/
Can you please enlighten me on this.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

617 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