Calling progress procedure from javascript

atuldalvi

Member
I am developing one webspeed application.
Can anyone tell me please How to call progress procedure from javascript function ?

like
<script language="JavaScript">
<script language="SpeedScript">
run p-OutputToTemp(input li-UserId).
</script>
</script>

is it possible ?
 
For my solution i used the a variable that i then used in a case statement for my buttons. for example:

DEF VAR cparamaction AS CHAR NO-UNDO.
ASSIGN cparamaction = GET-VALUE("variable").

PROCEDURE main_procedure.

<form method="post">
<table>
<tr>
<input type="hidden" name="variable" value="nextprocedure">
<td style="cursor:hand" onclick="document.form.submit()"></td>
</tr>
<table>
<form>

END PROCEDURE.

CASE cparamaction:
WHEN "nextprocedure" THEN DO:
RUN procedure_name.
END.
OTHERWISE DO:
RUN main_procedure.
END.

this is a much smaller scale to make it easier to understand. When the table column is clicked it will then assign variable the value of "nextprocedure" and my case statement at the bottom will then recognise this and run the next procedure. Hope it helps.
 
Back
Top