The broadcast replication work not
kind regards Victor Perez www.e-evolution.com Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=3006605
This commit is contained in:
parent
178e5e2663
commit
6b469af96f
|
@ -132,6 +132,7 @@ public class ExportModelValidator implements ModelValidator
|
||||||
|
|
||||||
for (X_AD_ReplicationTable rplTable : rplStrategy.getReplicationTables()) {
|
for (X_AD_ReplicationTable rplTable : rplStrategy.getReplicationTables()) {
|
||||||
if (X_AD_ReplicationTable.REPLICATIONTYPE_Merge.equals(rplTable.getReplicationType())
|
if (X_AD_ReplicationTable.REPLICATIONTYPE_Merge.equals(rplTable.getReplicationType())
|
||||||
|
|| X_AD_ReplicationTable.REPLICATIONTYPE_Broadcast.equals(rplTable.getReplicationType())
|
||||||
|| X_AD_ReplicationTable.REPLICATIONTYPE_Reference.equals(rplTable.getReplicationType()))
|
|| X_AD_ReplicationTable.REPLICATIONTYPE_Reference.equals(rplTable.getReplicationType()))
|
||||||
{
|
{
|
||||||
String tableName = MTable.getTableName(client.getCtx(), rplTable.getAD_Table_ID());
|
String tableName = MTable.getTableName(client.getCtx(), rplTable.getAD_Table_ID());
|
||||||
|
|
|
@ -179,13 +179,13 @@ public class ImportHelper {
|
||||||
{
|
{
|
||||||
if(X_AD_ReplicationTable.REPLICATIONTYPE_Broadcast.equals(ReplicationType))
|
if(X_AD_ReplicationTable.REPLICATIONTYPE_Broadcast.equals(ReplicationType))
|
||||||
{
|
{
|
||||||
po.saveReplica(true);
|
MReplicationStrategy rplStrategy = new MReplicationStrategy(client.getCtx(), client.getAD_ReplicationStrategy_ID(), po.get_TrxName());
|
||||||
MReplicationStrategy rplStrategy = new MReplicationStrategy(client.getCtx(), client.getAD_ReplicationStrategy_ID(), null);
|
|
||||||
ExportHelper expHelper = new ExportHelper(client, rplStrategy);
|
ExportHelper expHelper = new ExportHelper(client, rplStrategy);
|
||||||
expHelper.exportRecord( po,
|
expHelper.exportRecord( po,
|
||||||
MReplicationStrategy.REPLICATION_TABLE,
|
MReplicationStrategy.REPLICATION_TABLE,
|
||||||
X_AD_ReplicationTable.REPLICATIONTYPE_Merge,
|
X_AD_ReplicationTable.REPLICATIONTYPE_Merge,
|
||||||
ModelValidator.TYPE_AFTER_CHANGE);
|
ModelValidator.TYPE_AFTER_CHANGE);
|
||||||
|
po.saveReplica(true);
|
||||||
|
|
||||||
}
|
}
|
||||||
else if(X_AD_ReplicationTable.REPLICATIONTYPE_Merge.equals(ReplicationType)
|
else if(X_AD_ReplicationTable.REPLICATIONTYPE_Merge.equals(ReplicationType)
|
||||||
|
|
Loading…
Reference in New Issue