Hi --
I want to use a javascript function to run a Progress program. Is this possible? I found an example that is close:
function connectDb() { var ConnDB = new ActiveXObject("ADODB.Connection"); ConnDB.ConnectionString="dsn=MyDSN;uid=foo;pwd=bar;"; ConnDB.Open(); var Rs = new ActiveXObject("ADODB.Recordset"); var tempstr=""; Rs.Open("select * from customer",ConnDB,1,3); while(!Rs.EOF) { tempstr = tempstr + Rs("name") + "<br>"; Rs.MoveNext; } }
That Rs.Open command contains a SQL command, and I think I could tweak this to use a SQL stored proc. But is there a way to run a Progress 4GL program,
and if so, how would it know where that program resided?
TIA - Jim
Youssif H. Shanshiry
Principal Customer Support Engineer |
||||
PROGRESS SOFTWARE
16 Oak Park Drive | Bedford, MA 01730 | USA PHONE 781.280.3028
MOBILE 617.529.8135 ![]() |
Hi --
I want to use a javascript function to run a Progress program. Is this possible? I found an example that is close:
function connectDb()
{
var ConnDB = new ActiveXObject("ADODB.Connection");
ConnDB.ConnectionString="dsn=MyDSN;uid=foo;pwd=bar;";
ConnDB.Open();
var Rs = new ActiveXObject("ADODB.Recordset");
var tempstr="";
Rs.Open("select * from customer",ConnDB,1,3);
while(!Rs.EOF)
{
tempstr = tempstr + Rs("name") + "<br>";
Rs.MoveNext;
}
}
That Rs.Open command contains a SQL command, and I think I could tweak this to use a SQL stored proc. But is there a way to run a Progress 4GL program,
and if so, how would it know where that program resided?
TIA - Jim
Flag this post as spam/abuse.
Depending on my what you are trying to achieve, what about having the program called via a REST webservice? OpenEdge can handle that.