Jiwa 8, search windows and getting col values
In the Upgrade Guidance For Plugin Developers moving from Jiwa 7 to Jiwa 8, is this
All OK but it returns (in this example) the InventoryID. How can I get the value from other columns like PartNo for example?
I've tried searchDialog.Results[1] but I get an index out of range error.
Invoking a Search Window
The previous method of invoking a search window will still function, but users will benefit from changing to the more extensible and simpler search.
A pre-defined search
You can invoke the search for existing pre-defined searches as follows:
string id = null;
using (JiwaFinancials.Jiwa.JiwaApplication.JiwaSearchAsync.SearchForm searchDialog = JiwaFinancials.Jiwa.JiwaApplication.JiwaSearchAsync.Factory.CreateSearchForm(this, OwnerForm, OwnerForm.GetType().ToString(), "Inventory Item"))
{
if (searchDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
id = searchDialog.Results[0];
}
}
All OK but it returns (in this example) the InventoryID. How can I get the value from other columns like PartNo for example?
I've tried searchDialog.Results[1] but I get an index out of range error.