Micro Focus QTP (UFT) Forums
DataGridTemplateColumn's cells cannot be edited... - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: DataGridTemplateColumn's cells cannot be edited... (/Thread-DataGridTemplateColumn-s-cells-cannot-be-edited)



DataGridTemplateColumn's cells cannot be edited... - asaf_bitton - 01-26-2012

hello,

i am testing an application that include wpfTable with DataGridTemplateColumns.

i write this line:
Code:
WpfWindow("my_window").WpfTable("data").SetCellData 1, 3, "123"

when the script is running i can see the cells being marked but the data is not written.

Please advice. Thanks.


RE: DataGridTemplateColumn's cells cannot be edited... - basanth27 - 01-30-2012

does the below work?
Code:
WpfWindow("my_window").WpfTable("data").click
WpfWindow("my_window").WpfTable("data").SetCellData 1, 3, "123"



RE: DataGridTemplateColumn's cells cannot be edited... - priyaranjan.automation - 03-07-2013

Hi,

Anybody has any update on this?
I am facing the same kind of issue. "SetCellData" is not updating the wpfTable in the application.


RE: DataGridTemplateColumn's cells cannot be edited... - krupaluk - 10-02-2014

Hello,

I am facing the same problem. Why "SetCellData" does not work. All other objects - editFields, comboBoxes, checkBoxes, buttons, etc... works well.

Code:
WpfWindow("batchJob").WpfTable("batchJobConfig").ActivateCell 3, 1
WpfWindow("batchJob").WpfTable("batchJobConfig").SetCellData 3, 1, "1000"

When I execute the code above, UFT correctly activates wpf table cell I wish to edit / update, but then nothing happens. No error message either. So I suspect that UFT thinks everything went well. Maybe some cell property value was changed or attempt was made, but result is that I - as a user - see that nothing happened.

I tried lot of walkarounds, but the only one that works is this:

Code:
WpfWindow("batchJob").InsightObject("contractId").Click
wait 2
Set obj=CreateObject("Mercury.DeviceReplay")
obj.SendString "50000427"

but as you see, I am using InsightObject for identification which is extremely unreliable (especially for table objects) when ANYTHING changes and in case of filling more table cells, it is unsustainable approach.

Could you please give me advice what to use in order to fill the value for real?

THANKS in advance
Lukas