1
I have a doubt in a code that uses advpl(Microsiga Protheus) more HTML.
I need in the html part, that the content of a TD be captured at the time of writing, and assigned in another TD. Below is the screenshot plus the code snippet:
In this precise case that when collecting the Note key, autocomplete the NF Number and Series by taking the SUBSTRING 26.9 nf number and 23.3 NF Series.
Html code
<CENTER><font face="Arial" size="2" color="#ff0080"><b>REGISTRO DE NF DE SAIDA</b></font></CENTER>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#F3F3F3" width="400" id="AutoNumber10">
<tr>
<td width="120"><font face="Arial" size="2" color="#000080"><b> Chave Da NF:</b></font></td>
<td width="161"><input type="text" name="T2" size="44" MAXLENGTH="44" onblur="jscript:valida(this.value);"></td>
</tr>
<tr>
<td width="120"><font face="Arial" size="2" color="#000080"><b> Numero NF:</b></font></td>
<td width="161"><input type="text" name="T3" VALUE=" " size="6"></td>
</tr>
<tr>
<td width="120"><font face="Arial" size="2" color="#000080"><b> Serie NF:</b></font></td>
<td width="161"><input type="text" name="T4" VALUE=" " size="3"></td>
</tr>
<tr>
<td width="120"><font face="Arial" size="2" color="#000080"><b> Status:</b></font></td>
<td width="161">
<select size="1" name="STATUS">
<option value="S">1= Saída na Portaria</option>
<option value="D">2= Devolvido para Estoque</option>
<option value="C">3= Cancelamento Cliente</option>
</select>
</td>
</tr>
</table> <br>
<button name="B1" type="none" onclick='jscript:validaall()'>> Confirma <</button>
</center> <br>
<center><a href='H_W10_03_NOVO.APL'><i><b>Voltar ao Menu</b></i></a></center>
</div>
</td>
</tr>
</table>
</center>
I already leave my thanks for the help.