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
Solved

editable datawindow powerbuilder?

Posted on 2004-10-07
7
1,243 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
  • 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
Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

 
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

Suggested Solutions

Title # Comments Views Activity
how to become programmer? 12 42
Refresh JTable Content 6 211
Multi Line / Multi file editor 6 70
Visual Studio Debugging 3 138
Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org Go to that link and select download selenium in the right hand columnThat will then direct you to their download page.From that page s…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

860 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