Forum Discussion
baxatob
10 years agoCommunity Hero
- anumolu999910 years agoContributorBaxtob attached the screenshot of code
- anumolu999910 years agoContributorI am not able to see those options Under RichText. I think the network that I am currently in is blocking attachments/formatting text
- baxatob10 years agoCommunity Hero
Ok. Please check:
function getControlData(index) { ctrlData = ODT.Classes.NewArray(); DatafileName = "MCT_ControlsNtestData.xlsx"; sCurPath = Sys.OleObject("Scripting.FileSystemObject").GetAbsolutePathName("."); excelPath = sCurPath + "\\Data\\" + DatafileName; DDT.ExcelDriver(excelPath, "WSI_Controls"); while(!DDT.CurrentDriver.EOF()) { colCount = DDT.CurrentDriver.ColumnCount for(var j=0; j<=colCount-1; j++) { if(DDT.CurrentDriver.Value("index")==index) ctrlData.AddItem(DDT.CurrentDriver.Value(j)); else break; } DDT.CurrentDriver.Next(); } DDT.CloseDriver(DDT.CurrentDriver.Name); return ctrlData; }What exact error do you receive?
- anumolu999910 years agoContributorIts showing.......Javascript runtime error......An attempt to work with a closed driver.........it is triggering at the line (while(!DDT.CurrentDriver.EOF())).............. Thanks, Anumolu