Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DataGridTemplateColumn's cells cannot be edited...
#1
Not Solved
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.
Reply
#2
Not Solved
does the below work?
Code:
WpfWindow("my_window").WpfTable("data").click
WpfWindow("my_window").WpfTable("data").SetCellData 1, 3, "123"
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply
#3
Not Solved
Hi,

Anybody has any update on this?
I am facing the same kind of issue. "SetCellData" is not updating the wpfTable in the application.
Reply
#4
Not Solved
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to identify controls embedded within WinListView cells Devesh Thakur 5 2,866 04-19-2018, 10:56 AM
Last Post: Devesh Thakur
  Webtable().GetCellData() Returns hidden values of Cells ssvali 4 6,079 06-07-2013, 08:37 PM
Last Post: kawsar
  Extracting Data from Excel Cells bjotorres 3 4,324 01-02-2009, 06:57 PM
Last Post: nageshpv

Forum Jump:


Users browsing this thread: 1 Guest(s)