Hi,
Is there a way to hook select warehouse dialog (see attached) through a plugin and remove given warehouse from select list ?
Thanks.
nsbandara wrote:Hi,
Is there a way to hook select warehouse dialog (see attached) through a plugin and remove given warehouse from select list ?
Thanks.
public void Setup(JiwaFinancials.Jiwa.JiwaApplication.Plugin.Plugin Plugin)
{
JiwaFinancials.Jiwa.JiwaApplication.Manager.Instance.DialogFactory.AfterDialogStart += AfterDialogStart;
}
private void AfterDialogStart(JiwaFinancials.Jiwa.JiwaApplication.IJiwaDialog JiwaDialog)
{
if (JiwaDialog is JiwaFinancials.Jiwa.JiwaSetCurrentWarehouseUI.MainForm)
{
// Hide an element of the selection treeview control
JiwaFinancials.Jiwa.JiwaSetCurrentWarehouseUI.MainForm selectionForm = (JiwaFinancials.Jiwa.JiwaSetCurrentWarehouseUI.MainForm)JiwaDialog;
foreach(Infragistics.Win.UltraWinTree.UltraTreeNode node in selectionForm.UltraTree1.Nodes)
{
if (node.Text == "Victoria")
{
node.Visible = false;
}
}
}
}
Return to Technical and or Programming
Users browsing this forum: No registered users and 8 guests