How to get SoH for a specific part number
Posted: Tue Nov 11, 2014 4:37 pm
Hi All,
I am having slight issue with API Jiwa 7 with Demo Database, not sure if I am using this the right way.
The problem is that I need to find SOH for a particular part number.
So, in my program I have loaded Jiwa, logged in, and then loaded the Inventory module as below.
var invModule = app.BusinessLogicFactory.CreateBusinessLogic<JiwaFinancials.Jiwa.JiwaInventory.Inventory>();
After the loading the module I searched for a particular part number using the record id and it returns true.
if (!invModule.Find(IJiwaNavigable.ReadModes.Actual, "IN_Main.InventoryID", line.InventoryID, "")){
throw new Exception("Unable to find inventory item:" + line.InventoryID);
}
Next when I try to use invModule.SOHCollection to get the list of SOH, but it returns an empty collection.
If I check the Jiwa Application (GUI), it show the SOH items for the searched part number.
Is this the right way of getting list of SOH or I am doing this the wrong way?
I am having slight issue with API Jiwa 7 with Demo Database, not sure if I am using this the right way.
The problem is that I need to find SOH for a particular part number.
So, in my program I have loaded Jiwa, logged in, and then loaded the Inventory module as below.
var invModule = app.BusinessLogicFactory.CreateBusinessLogic<JiwaFinancials.Jiwa.JiwaInventory.Inventory>();
After the loading the module I searched for a particular part number using the record id and it returns true.
if (!invModule.Find(IJiwaNavigable.ReadModes.Actual, "IN_Main.InventoryID", line.InventoryID, "")){
throw new Exception("Unable to find inventory item:" + line.InventoryID);
}
Next when I try to use invModule.SOHCollection to get the list of SOH, but it returns an empty collection.
If I check the Jiwa Application (GUI), it show the SOH items for the searched part number.
Is this the right way of getting list of SOH or I am doing this the wrong way?