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 - How to pass the values (parameter) from Aras to Html page.

krish80 - Monday, July 27, 2009 10:03 PM:

Hi,

In Aras - form while i click the button this html page should open { In the button onclick event i have added the javascript method : window.open("foldernamechart.html") and its opening}.  But i want to pass the values to this html page { Pls see the below code in the parameter ( bold Font ) }

Need a Help:

1. How to pass the values from the aras to this html page

<html>
<head>
<link rel="stylesheet" type="text/css" href="../styles/jsgantt.css"/>
<script language="javascript" src="../javascript/jsgantt.js"></script>
<script language="javascript" src="../javascript/graphics.js"></script>
<title>RK Design Chart</title></head>
<body> 
<div style="position:relative" class="gantt" id="GanttChartDIV"></div><script>
var g = new JSGantt.GanttChart('g',document.getElementById('GanttChartDIV'), 'hour');

g.setShowRes(1);
g.setShowDur(1);
g.setShowComp(1);
g.setCaptionType('Resource'); 
g.setFormatArr("hours","minutes")


var rk = "7/26/2009 8.30";

if( g ) {

// Parameters ( pID,  pName, pStart, pEnd, pColor, pLink, pMile, pRes, pComp, pGroup, pParent, pOpen )
 

g.AddTaskItem(new JSGantt.TaskItem(11,'Designer1'    , rk ,   '7/21/2009 15:30','ff00ff','www.mail.com',0,'Joseph',100,0,1,1));
g.AddTaskItem(new JSGantt.TaskItem(12,'Designer2'.'laras','7/22/2009 16:00',7/22/2009 17:00','00ff00','',0,'Kevin',40,0,1,1));
g.AddTaskItem(new JSGantt.TaskItem(13,'Designer3','moon','7/23/2009 16:00',7/23/2009 17:30','00ffff','www.yahoo.com',0,'Roderick',60,0,1,1));
g.AddTaskItem(new JSGantt.TaskItem(14,'Designer4','krish','7/24/2009 18:00','7/24/2009 23:00','00ffff','www.yahoo.com',0,'Lip',60,0,14,1));

g.Draw(); 
g.DrawDependencies();
}
else
{
alert("not defined");
}
</script></body>
</html>

Advance thanks,

Krish



SamsAn - Tuesday, July 28, 2009 3:55 PM:

Did you use window.opener dhtml object referenced to the window containing the button?


SamsAn.
Original Mind Any Level Innovator Solutions Free-Lancer, http://sites.google.com/site/caraacc



krish80 - Wednesday, July 29, 2009 5:40 AM:

Hi SamsAn,

Thanks for your reply...

no  And i am strugle with same point....

I hope you may understand my requirement. { i am trying  to create hourly basis report chart - its like a gantt chart }

i want to pass the values from innovator to that html page. Based on the below parameter value's the html page should display the chart.

In Aras Innovator :

Itemtype : design_time

properties:  emp_name, start_date, end_date, serial_no...

I have placed a button control in the Form (design_time). when i click that button the values of above properties should pass into that html page...

 

Thanks,

krish

 

 

 

 

 

 

 



SamsAn - Thursday, July 30, 2009 2:59 PM:

alert(window.opener.document.thisItem.getProperty("emp_name"));


SamsAn.
Original Mind Any Level Innovator Solutions Free-Lancer, http://sites.google.com/site/caraacc



Shankar - Tuesday, February 16, 2016 6:35 AM:

Hello,

i have same issue regarding passing values to own html.

if anybody get result plz guide me..

thank you,