The PowerBuilder DataWindow control is a container for database originated data in a PowerBuilder application. It can display the data and optionally let the user modify it and send changes back to the database. In addition to the DataWindow control, the DataStore object provides a non-visual container for server applications and other situations where on-screen viewing is not necessary.
Questions tagged [datawindow]
212 questions
0
votes
3 answers
How to count number of checkboxes selected in powerbuider?
Can somebody tell me, please, how can I get the number of the selected checkboxes from a datawindow in powerbuilder?
Thanks!

XLD_a
- 195
- 1
- 4
- 16
0
votes
2 answers
Datawindow sharedata for multiple data window
Is it possible to share the data of 2 data window into 1 data window? How? And if not, is there any other way to pass the data of 2 datawindow into 1 data window?

m-a
- 9
- 6
0
votes
2 answers
How to disable the selected rows
I have a data window with a checkbox. I want to disable the selected rows. How can I do that? Also, please explain to me the code below. I saw it online and it works fine but it only disable the first selected row. Thank you …

m-a
- 9
- 6
0
votes
1 answer
Datawindow Rowscopy Null error
I have 2 windows that has a data window. dw_1 and dw_2 is connected to dw_main. Now, everytime I run the program, pop up message shows
error R0002. Null object reference at line 2
Please help me. What should I do so the data window won't confuse.…

m-a
- 9
- 6
0
votes
1 answer
Data window rowscopy
I have 2 data windows, dw_1 and dw_2. I want to copy all the rows from dw_1 to dw_2. My code is
dw_prnos.RowsCopy(1,dw_prnos.rowcount( ), Primary!,
w_listofinsertedprs.dw_collection,w_listofinsertedprs.dw_collection.rowcount() + 1, Primary!) …

m-a
- 9
- 6
0
votes
4 answers
Convert an array to object[]
I am working on a winforms application that uses Sybase Datawindow.net. Basically I have a datawindow that retrieves data (dw_retailer.Retrieve(id)) and what I get back is an object list. The datawindow itself excists of labels and textboxes and I…

Dean
- 65
- 5
0
votes
3 answers
powerbuilder datawindow report in asp.net MVC 5
We are developing a web site (ASP.Net MVC 5 with C#) for an existing application(Client/server) developed on PowerBuilder 12.5(Classic) + SQLServer 2014. We would like to use the same reports that are designed in our PB app, to save time on…

Arfath
- 143
- 7
0
votes
1 answer
AcceptText() not working PowerBuilder
I have a datawindow with 5 columns: No., Registration date, Name1, Name2, Status. No., Registration date and Status columns are protected after inserting and saving value. After pressing edit i can, or when i open the window, i can only modify Name1…

XLD_a
- 195
- 1
- 4
- 16
0
votes
2 answers
Problems at inserting a new row powerbuider
I have a datawindow. And there I have an entry. I want to add a new entry, with rbuttondown, but it doesn't work. How can i do that? I wrote this, but it's wrong...
IF row > 0 THEN
//This.SetRow(row)
This.SelectRow(0, FALSE)
…

XLD_a
- 195
- 1
- 4
- 16
0
votes
2 answers
Return to default values PowerBuilder 11
I have a DataWindow object with these three columns:
status - which is a checkbox
criteria - which is a dropdownDW
another
When status is 1 (checked) then criteria.Protect='0'. If the user chooses from the criteria list "another criteria", then…

XLD_a
- 195
- 1
- 4
- 16
0
votes
2 answers
column table in datawindow in powerbuilder
How to access column name and underlying table name of that column in a datawindow in powerbuilder. I could get the column name by having an instance variable and assigning dwo.name to this instance variable in itemfocuschanged event. But how to…
0
votes
2 answers
PowerBuilder datawindow do not return result
I have a problem with program written in PowerBuilder. There is code:
DataStore ds_logged_get
ds_logged_get= CREATE DataStore
ds_logged_get.dataobject = 'dw_logged_get'
ds_logged_get.settransobject(sqlca)
ds_logged_get.Retrieve( pn_login, pn_domain,…

Piotr
- 569
- 6
- 20
0
votes
1 answer
How to check if a cell is selected in Powerbuilder datawindow object?
I am trying to implement a copy/paste feature in a datawindow. User will be able to select the cells using mouse. My first step is to identify which row-column pairs are selected.
Thanks.

Daniel Patanroi
- 19
- 2
0
votes
4 answers
PowerBuilder Customize Error Message on ItemChanged
On ItemChanged event of datawindow, I have to prompt a message on wrong input.
The issue is: When I use messagebox(), It prompt message correctly but field is not being blank and by pressing TAB, the control is being shifted to next field. (means…

Sohail
- 574
- 3
- 21
0
votes
2 answers
Powerbuilder-Cannot create new datawindow
I have problem with powerbuilder 12 build 5530. I can't to create new datawindow. After I click New->Datawindow->tabular or etc. The Window closed but after that there is not creating new datawindow. I also can't open properties of target sample.…

Maria Zega
- 67
- 1
- 1
- 6