Skip to Main Content

Siebel

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ActiveXObject is not working in Siebel 8.1.1.15

3050371Aug 31 2016 — edited Sep 7 2016

Hi All,

I have written Browser Script in a BS to use excel application. I have written below escript. It prompts me for the path of the excel. After providing the exact path and name of the excel, I click on the OK button. It seems the rest of the code is not working as I do not see any alert after that. I need your help please.

function ActivateWFBulk()

{

try

  {

    //theApplication().SWEAlert("BS Browser Script Method ActivateWFBulk");

    var Filename;

    var excelApp;

    var RowNo = 1.0;

    var Name;

    Filename = prompt("please enter the filename with complete path","D:\\Workflow.xls");

    excelApp = new ActiveXObject("Excel.Application");

    if (excelApp != '')

            {

            alert("ActiveXObject");

            excelApp.Workbooks.Open(FileName);

            RowNo = parseInt (RowNo);

            Name = excelApp.Sheets(Workflow).Cells(RowNo, 0).Value;

            while (Name != 'undefined')

                    {

                    alert (Name);

                    RowNo = RowNo + 1.0;

                    RowNo = parseInt (RowNo);

                    Name = excelApp.Sheets(Workflow).Cells(RowNo, 0).Value;

                    }// while (Name != 'undefined')

            excelApp.Workbooks.Close ();

            } // if (excelApp != "")

    else

            alert ("Invalid excel");

    alert ("Total now of workflows" + (RowNo - 1));

    }// try

catch(e)

  {

  theApplication().RaiseErrorText(e.message);

  }

}

This post has been answered by 3nath -Oracle on Sep 2 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 5 2016
Added on Aug 31 2016
6 comments
625 views