I have a problem with simple ocx in njx web page, this has two attributes, an input “entrada” and one output “salida”,
but does not work by assigning a value from a program.
a extract of a web page :
<pagebody>
<itr>
<field valueprop="XINPUT" width="250" valign="top">
</field>
<hdist width="100">
</hdist>
<field valueprop="XOUTPUT" width="250">
</field>
</itr>
<itr>
<button name="Set Text" method="onSetOcx" align="center">
</button>
<button name="Get Text" method="onGetOcx">
</button>
<activex classid="9FA7C9BA-1929-44C5-9803-4F3E0E940EC6" progid="CorreosOCX.CAB#version=1,0,0,0" xinitparams="entrada;prueba inicializacion" setxparams="entrada;set" getxparams="salida;get" reloadprop="XReload">
</activex>
</itr>
</pagebody>
the program :
DEFINE DATA LOCAL
1 GET (A) DYNAMIC
1 SET (A) DYNAMIC
1 XINPUT (A) DYNAMIC /* Input text box.
1 XOUTPUT (A) DYNAMIC /* Output text box.
1 XRELOAD (L) INIT <FALSE>
END-DEFINE
......
DECIDE ON FIRST *PAGE-EVENT
......
VALUE U'onGetOcx'
MOVE GET TO XOUTPUT /* This shows the initial value.
PROCESS PAGE UPDATE FULL
VALUE U'onSetOcx'
MOVE XINPUT TO SET
PROCESS PAGE UPDATE FULL
.....
when assign a value in the “set” adapter variable the ocx is not modified
that’s what’s missing to make it work?
Thanks
Mauricio