Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Naming convention of datatable global sheet.
#1
Solved: 11 Years, 3 Months, 4 Weeks ago
Hi,

I need to know that can the name of global sheet be only "Global" .
Reply
#2
Solved: 11 Years, 3 Months, 4 Weeks ago
Yes , you cant rename the global sheet , but it is possible for the local sheets , loca sheets takes the name of 'Action Name' of the respective actions.

Thanks,
Harish Shenoy
Reply
#3
Solved: 11 Years, 3 Months, 4 Weeks ago
Hi,

Globalsheet name should be global only. It can't be renamed. But Local datasheets can be renamed and for that you need to rename the corresponding action name.

But if you want to import sheets from external .xls sheet and want to keep the sheet name intact then better not to import the whole Workbook.

Better you should go for add those many sheets on runtime and import those specific sheets to those added sheets accordingly.
You can try with the below code for that:


Code:
DataTable.AddSheet "Sheet1"
DataTable.AddSheet "Sheet2"
DataTable.AddSheet "Sheet3"

DataTable.ImportSheet "C:\Mytest.xls","Sheet1","Sheet1"
DataTable.ImportSheet "C:\Mytest.xls","Sheet2","Sheet2"
DataTable.ImportSheet "C:\Mytest.xls","Sheet3","Sheet3"

Thanks,
Nilanjan.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Reading Global Sheet's DataTable Value Bhuvana 0 1,640 01-05-2020, 10:03 PM
Last Post: Bhuvana
  Error as Global Not defined while trying to retrieve value from Datatable siddharth1609 0 965 09-11-2019, 02:52 PM
Last Post: siddharth1609
  On Saving Script in QTP 11 my Global Data Sheet data is removed M Adnan Iftikhar 0 2,178 06-02-2015, 09:19 PM
Last Post: M Adnan Iftikhar
  global object which can be called in any action excellentpawan123 2 2,769 04-01-2015, 07:34 PM
Last Post: babu123
  Sometimes there is Global datasheet. utestqa 0 2,716 10-02-2013, 07:09 PM
Last Post: utestqa

Forum Jump:


Users browsing this thread: 1 Guest(s)