Rapid Data-Entry Form
Code snippetName: Rapid Data-Entry Form
|
Rapid Data-Entry Form
This code snippet try to explain how obtain a rapid Data-Entry Form necessary in many industries. This code could be implemented in any form or actionButton. Meanwhile the editable grid is coming this will be a possible solution of this problem. Here you can see the final result.
The most important point is to have a unique identifier for each line. In this case we will use the cOrderlineId.
Let’s see the example of the field secquantity which implement a callout.
Xml Code
<FIELD id="fieldSecQuantity" attribute="value" format="integerEdition">secqty</FIELD> <FIELD id="fieldSecQuantity" attribute="name" replace="xx">cOrderlineId</FIELD> <FIELD id="fieldSecQuantity" attribute="onchange" replace="ff">cOrderlineId</FIELD>
Html Code
Callout
function calloutSL_CreateLines_Conversion_UOM(varId) {
submitCommandFormParameter('DEFAULT', frmMain.inpOrderlineId, varId, false, null,
'../ad_callouts/SL_CreateLines_Conversion_UOM.html', 'frameOcultoButton',false,false,true);
return true;
}
Field
<TD class="DataGrid_Body_Cell">
<INPUT type="text" id="fieldSecQuantity" class="dojoValidateValid TextBox_btn_OneCell_width number"
required="false" value="" maxlength="10" name="inpquantityorderxx" onkeyup="" onkeypress="changeToEditingMode();
" onchange="logChanges(this);calloutSL_CreateLines_Conversion_UOM('ff');return true;"></INPUT>
</TD>
Java Code
OBError saveShipment {……..
strLineId = data[i].cOrderlineId;
strQuantityorder = vars.getRequiredStringParameter("inpquantityorder"+strLineId);
CreateFromShipmentData.insert(conn, this, …..,strQuantityorder, ………);
Category: Code Snippets

