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

Please go to the following link for more info

How to Access DataWindow Data in Code
https://docs.appeon.com/pb2019r2/datawindow_reference/ch04.html

Regards!
Reynard Harrison 30 July, 2020
#6
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
#5
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.

Regards!
Govinda Lopez @Appeon 29 July, 2020
#4
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: 
https://community.appeon.com/index.php/qna/ask-questions 
Questions posted to the Appeon Community may be responded to by Appeon support staff, MVPs, or other product users.



Regards,
armando herrera @Appeon 28 July, 2020
#3
TestCase4995

PB2019R2
SQLServer2017
armando herrera @Appeon 28 July, 2020
#2
Hi Reynard, 

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

Regards!
armando herrera @Appeon 28 July, 2020
#1
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!

Regards!
Reynard Harrison 28 July, 2020
#0
*Phenomenon: N/A


*Reproduce Steps: N/A


Remarks: N/A
OS:
Windows 10
Platform:
64-bit
Database Type:
SAP SQL Anywhere
Database Version:
16