Micro Focus QTP (UFT) Forums
SetCellData issue with JavaTable - 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: SetCellData issue with JavaTable (/Thread-SetCellData-issue-with-JavaTable)



SetCellData issue with JavaTable - shashidtj - 09-26-2017

Hi All,
I'm facing an issue with SetCellData in my Java Application for an JavaTable. 

Note: Manually also user is not able to edit in a single click. User has to double click than only he will be able to add/update.

Recorded Lines example:- 

Code:
    JavaWindow("abc").JavaTable("def").ActivateRow "#0"
    JavaWindow("abc").JavaTable("def").SetCellData "#0","Wait to Restore (sec)","0"

Code:-

Code:
JavaWindow(aq).JavaTable(o_table).ActivateRow "#0"
JavaWindow(aq).JavaTable(o_table).SetCellData ""#0","Wait to Restore (sec)", wait_time

But still not working as expected. Kindly help.


RE: SetCellData issue with JavaTable - Ankur - 09-26-2017

Just before using SetCellData statement, use a method which can first enable the Cell to take data input. As you mentioned, even manually it doesn't goes into edit mode with a single click.


RE: SetCellData issue with JavaTable - shashidtj - 09-27-2017

(09-26-2017, 08:37 PM)Ankur can you please help me with this as i\m completely new to this. Wrote: Just before using SetCellData statement, use a method which can first enable the Cell to take data input. As you mentioned, even manually it doesn't goes into edit mode with a single click.