This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - Can't pass the top.aras object to html client from Aras client.

Hrishikesh - Friday, February 22, 2013 10:37 AM:

Hi All,

I am trying open a html/aspx file located under scripts Directory of Aras Installation folder.
i am using 
            var param3 = new Object();
  param3.arasObj = top.aras; 
  param3.selectIDs = selectedIdArray;
var win = window.open("LoadCSV/DownloadFiles.html","","status=0,menubar=0,modal=yes,scrollbars=1,resizable=1, width = 400px, height=300px");
win.dialogArguments = param3;
i am including following scripts in the html file.
<script type="text/javascript" src="../../javascript/AddConfigurationLink.js"></script>
  <script type="text/javascript" src="../../javascript/PopulateDocByLabels.js"></script>
  <script type="text/javascript" src="../../javascript/scriptset1.aspx"></script>
  <script type="text/javascript" src="../../javascript/scriptset2.aspx"></script>
  <script type="text/javascript" src="../../javascript/scriptset6.aspx"></script>
am passing top.aras as a parameter to the file from Aras Client.

The Issue is, i can't get top.aras Object every time. Sometimes i get and sometimes i don't get in the html/aspx as argument passed from Aras Client.
what is the solution to get top.aras object every time. am i missing some reference.
Thanks,
Hrishikesh