Bug 4995

is it possible to get all selected checkboxes value in a datawindow in a loop? 01 August, 2020

Reynard Harrison
28 July, 2020
Product: PowerBuilder Category: DataWindow
Version: 2017 R3 Build: 1915
Classification: Publishing: Public
Priority: P3
Status: Analyzing Reason:
armando herrera @Appeon 31 July, 2020
Hi Reynard,

You can use a For Loop 

long ll_n
FOR ll_n = 1 to dw_1.RowCount()
// Get Selected Row 
 int ii_lrow 
 ii_lrow = dw_customersall.getrow( )
 si_customerid = dw_customersall.object.customer_customer_id[ ii_lrow]
// Read the vaue and if it is selected 
      If si_customerid  = true Then
    // Here your code
      End If 

Please go to the following link for more info

How to Access DataWindow Data in Code

Reynard Harrison 30 July, 2020
checkbox.png (32KB)

I would like to loop on the only checkbox that is checked and get the value for that checkbox. See the image attached.
armando herrera @Appeon 30 July, 2020
Hi Reynard, 

I'm checking if the response provided to you was helpful enough to resolve
your case. If so, can we proceed to close this ticket?.
Otherwise, do let us know if we can provide you with any further assistance.

Please keep in mind, that you are always welcome to open another ticket in case you need it.

Govinda Lopez @Appeon 29 July, 2020
Hi Reynard,

This seems to be a usage issue rather than a bug, we recommend posting tech how-to/advice questions to the Appeon Community: 
Questions posted to the Appeon Community may be responded to by Appeon support staff, MVPs, or other product users.

armando herrera @Appeon 28 July, 2020

armando herrera @Appeon 28 July, 2020
Hi Reynard, 

Please check this small test case and see if that's what your are looking for.

armando herrera @Appeon 28 July, 2020
Hi Reynard, 

Thank you very much for your report. 

We are working on it and we will get back to you after analyzing it.

We'll keep you posted here!

Reynard Harrison 28 July, 2020
*Phenomenon: N/A

*Reproduce Steps: N/A

Remarks: N/A
Windows 10
Database Type:
SAP SQL Anywhere
Database Version: