on 05-20-2008 8:10 AM
Hi, i have an order with header and positions.
I want create it in the application such as:
public void addRowInDB(String syBName, String[] newValues)
throws SmartSyncException, PersistenceException {
String syncBoName = syBName;
SyncBoDescriptor sbd = descriptorFacade.getSyncBoDescriptor(syncBoName);
SmartSyncTransactionManager transactionManager;
//First get the Field Descriptors
RowDescriptor sbdRowDesc = sbd.getTopRowDescriptor();
//Create new syncbo
SyncBo newsyncBo = dataFacade.createEmptySyncBo(sbd);
Row worker = newsyncBo.getTopRow();
worker.setFieldValue(sbdRowDesc.getFieldDescriptor("NUMBER_HEADER"),newValues[0]);
worker.setFieldValue(sbdRowDesc.getFieldDescriptor("DATA_HEADER"),newValues[1]);
worker.setFieldValue(sbdRowDesc.getFieldDescriptor("POSITION"),newValues[2]);
dataFacade.insertSyncBo(newsyncBo);
}
If i want create more than one position, how can do it? With this method, only can create a position linked with the header... If i want create more than one position linked with the header, i don´t know..
Thanks,
Solved
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.