dorado7常用内容(国外英文资料).doc
文本预览下载声明
dorado7常用内容(国外英文资料)
1. The dataset to add data
This. Get ( # dsProduct ).getdata ().insert ().
Or this.get ( # dsProduct ).insert ();
This.get ( # dsproduct.data ).insert () It is recommended to use
# dsproduct.data means getting the data object
Delete the current selection record
Var record = this.get ( # dsproduct.data: # );
{if (record)
Dorado. MessageBox. Confirm ( confirm to delete the current record?
Record. The remove ();
});
}
The else {
Dorado. MessageBox. Alert ( currently no data can be deleted! )
}
/ / get the fields of the current dataset and assign it (the dorado7 upgrade package, special attention)
Var pkVipCustomer = view.get ( # dsVipCustomer. Data: # ).get ( PK_COO_CRM_VIPCUSTOMER );
View get ( # dsVipCustomerCoop ). Set ( parameter )
PkVipCustomer: pkVipCustomer.
Org: test
});
/ / it has a lower Reference
Get ( # dsPrCenter ).getdata ( # ).getdata ( # stmain );
Get ( # dsPrCenter ).getdata ( #. # stmain );
The dataset gives up the current operation data
This. Get ( # dsproduct.data: # ).cancel ().
Display dialog dialog
This. Id ( dialogEdit ).
()
Hide dialog boxes
This. Get ( # dialogEdit ).
Parameter queries, where the key value for storing data in an Entity by default USES the name attribute of each AutoFormElement; If the property property is used, the key will use the value set by the property property
Var entity = this.get ( # autoform1.entity ); / / ensure that the parameters within the json object are the same as the parameter names accepted in the background
This. ( parameter ).flushasync ().
/ / get the entity content in AutoForm
Var entity = this.id ( recAutoForm ).get ( entity ).
(entity. Length + + entity. Width);
Get the product name for the current entity object data
In the case of the word dorado.
Set values for entity object properties
This. Set ( # dsproduct.data: #.productname , testValue);
Clear the query box content by assigning values to the json object
This.set ( # autoform1.entity )
ProductName: null,
UnitsInStock: null
});
显示全部