...
- Click the Rules button in the toolbar at the top of the Form Designer.
- Click + to create a new rule and the Edit button to open the rule.
- Set the Name to 'Copy customer number and generate an order number'.
- In the Rule text area: copy and paste the following:
Code Block |
---|
/*member onum resultSet */
var x;
if (sc.value.length > 0) {
cnum.value = sc.value;
eval ('x=' + http.get('http://localhost:8082/database/BIRT/getOrderNumber'));
onum.value = x.resultSet[0].onum;
} |
...