Hello All,
Invent Aging Storage report is running on Create transaction ID for reference.
Now i am inserting some records in process method of InventAgingStorageService.
But the CreatedTransactionID created for these inserted records is different, hence when I will open the form for seeing the records by clicking on View details , i will not be getting the records I had inserted as It has a new transaction ID generated.
Base is using the following Query on init method :-
InventAgingTmp_ds.query().dataSourceTable(tableNum(InventAgingTmp))
.addRange(fieldNum(InventAgingTmp, CreatedTransactionId))
.value(queryValue(inventAgingStorage.TransactionId));
Now i had used my query to remove this range and tried to apply my own range to filter records which is :-
InventAgingTmp_ds.query().dataSourceTable(tableNum(InventAgingTmp)).clearRanges(); // cleared all ranges here
//Applied my ranges
query = InventAgingTmp_ds.query();
InventAgingTmp_ds.query().dataSourceTable(tableNum(InventAgingTmp))
.addRange(fieldNum(InventAgingTmp, CustomTransactionId))
.value(queryValue(inventAgingStorage.TransactionId));
But the Output is following query:-
SELECT FIRSTFAST FORUPDATE * FROM InventAgingTmp(InventAgingTmp) WHERE ((CustomTransactionId = 5678296487)) AND InventAgingStorage.TransactionId=InventAgingTmp.createdTransactionId}
problem is because of this relation InventAgingStorage.TransactionId=InventAgingTmp.createdTransactionId which is defined on InventAgingStorage , i am unable to filter records , How can I remove this relation after AND , Please help me regarding this ??
*This post is locked for comments