Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Creating or Renaming Column of DataTable at RunTime.
#1
Solved: 10 Years, 7 Months, 3 Weeks ago
Dear All,

I have created a sheet in data table(Run time). But I am not able rename the columns of Sheet.

Is there method to rename column, run time?... Please help me out...

Thanks and Regards

Girish Pai.
Reply
#2
Solved: 10 Years, 7 Months, 3 Weeks ago
Hi Girish,

How did you added the script? You can name a sheet at the time of adding it runtime
DataTable.AddSheet <<sheetname>>

Reply
#3
Solved: 10 Years, 7 Months, 3 Weeks ago
Hi Girish_Pai,

Yes, we can use AddParameter method to add/rename the column name.

Code:
Datatable.GetSheet("NewSheetName").AddParameter "DesiredColName",""

Let me know if you need any more info.
Thanks,
SUpputuri
Reply
#4
Solved: 10 Years, 7 Months, 3 Weeks ago
very sorry Girish,

I misleaded and dont how I assumed that you have asked for renaming the sheet.
defintely you can rename a column using AddParameter method

Reply
#5
Solved: 10 Years, 7 Months, 3 Weeks ago
Thank you... I am able to work on it... Thank you very much.
Reply
#6
Solved: 10 Years, 7 Months, 3 Weeks ago
how can add this column in place of column header i.e replacing column header "A"
Reply
#7
Solved: 10 Years, 7 Months, 3 Weeks ago
Code:
DataTable.Getsheet("<sheetname>").Addparameter "<columnname>","value"
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Creating interface in UFT 15.0 for end user sravanmonty 0 746 07-16-2019, 03:47 AM
Last Post: sravanmonty
  How to change the column name of datatable runtime in UFT sagar.raythatha 0 2,403 01-16-2017, 05:54 PM
Last Post: sagar.raythatha
  How to clear the contents of datatable(Local or Global sheet) during runtime? srinibarati 3 12,973 11-27-2016, 10:10 PM
Last Post: EbbyNader
  Issues creating DotNetFactory Radio button using Loop kalpmist 1 1,908 06-24-2015, 09:13 PM
Last Post: GSAT
Exclamation Creating Simulator using service Test Walaa Elyammany 0 2,205 08-11-2014, 05:21 PM
Last Post: Walaa Elyammany

Forum Jump:


Users browsing this thread: 1 Guest(s)