Log in / create account
View source | Discuss page | Page history | Printable version   
ADVERTISEMENT
Accounting eLearning Courses
Partnerships
SourceForge.net Logo
Openbravo ERP at SourceForge

SourceForge.net Logo
Openbravo POS at SourceForge

Open Solution Alliance Logo
Openbravo at Open Solutions Alliance

Rapid Data-Entry Form

Code snippet

Name: Rapid Data-Entry Form
Version: 2.35 MP1
Author: Rafa de Miguel



Rating :
N/A
(0 votes cast)
You have to be registered to be able to vote

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.


Image:CreatLines.JPG


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, ………);

Retrieved from "http://wiki.openbravo.com/wiki/Rapid_Data-Entry_Form"

This page has been accessed 619 times. This page was last modified 08:06, 24 June 2008. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.


Category: Code Snippets