top of page

PM Data Item Zoom in IFS10 [PM_DataItemZoom]

Writer's picture: Rumesh Aponso (RMAX)Rumesh Aponso (RMAX)

Updated: Nov 27, 2024

Example 1:

private void dfsCWarehouse_WindowActions(object sender, WindowActionsEventArgs e)
{
	#region Actions
	switch (e.ActionType)
	{
		case Ifs.Fnd.ApplicationForms.Const.PM_DataItemZoom:
			dfsCWarehouse_ONPM_DataItemZoom(sender, e);
			break;
	}
	#endregion
}

private void dfsCWarehouse_ONPM_DataItemZoom(object sender, WindowActionsEventArgs e)
{
	#region Local Variables
	SalArray<SalString> sItemNames = new SalArray<SalString>();
	SalArray<SalWindowHandle> hWndItems = new SalArray<SalWindowHandle>();
	#endregion

	#region Actions
	e.Handled = true;
	if (Sys.wParam == Ifs.Fnd.ApplicationForms.Const.METHOD_Inquire)
	{
		if (dfsContract.Text == "")
		{
			e.Return = Sal.SendClassMessage(Ifs.Fnd.ApplicationForms.Const.PM_DataItemZoom, Sys.wParam, Sys.lParam);
		}
		else
		{
			e.Return = true;
		}
	}
	else if (Sys.wParam == Ifs.Fnd.ApplicationForms.Const.METHOD_Execute)
	{
		sItemNames[0] = "CONTRACT"; 
		hWndItems[0] = this.dfsContract;
		Ifs.Fnd.ApplicationForms.Var.DataTransfer.Init("CONTRACT", this, sItemNames, hWndItems);
		Ifs.Fnd.ApplicationForms.Var.DataTransfer.TypeSet("ZOOM");
		Ifs.Fnd.ApplicationForms.Var.DataTransfer.i_sDestination = "WAREHOUSE";
		SessionNavigate(Pal.GetActiveInstanceName("tbwWarehouses"));
		e.Return = true;
	}
	#endregion
}

Example 2:

private void tableWindow_colsBucketId_WindowActions(object sender, WindowActionsEventArgs e)
{
	#region Actions
	switch (e.ActionType)
	{
		case Ifs.Fnd.ApplicationForms.Const.PM_DataItemZoom:
			this.tableWindow_colsBucketId_OnPM_DataItemZoom(sender, e);
			break;
	}
	#endregion
}

private void tableWindow_colsBucketId_OnPM_DataItemZoom(object sender, WindowActionsEventArgs e)
{
	#region Local Variables
	SalArray<SalString> sItemNames = new SalArray<SalString>();
	SalArray<SalWindowHandle> hWndItems = new SalArray<SalWindowHandle>();
	#endregion

	#region Actions
	e.Handled = true;
	if (Sys.wParam == Ifs.Fnd.ApplicationForms.Const.METHOD_Execute)
	{
		sItemNames[0] = "BUCKET_ID";
		hWndItems[0] = this.colsBucketId;
		Ifs.Fnd.ApplicationForms.Var.DataTransfer.Init(Pal.GetActiveInstanceName("tbwCCustPurchOrdBucket"), this, sItemNames, hWndItems);
		SessionNavigate(Pal.GetActiveInstanceName("tbwCCustPurchOrdBucket"));
		e.Return = true;
	}
	else
	{
		e.Return = true;
	}
	#endregion
}

1 view0 comments

Related Posts

See All

Fnd Dynamic Tab Page in IEE Client

[FndWindowRegistration("YVVDA_COMPANY_ADDR", "YvvdaCompanyAddr", FndWindowRegistrationFlags.HomePage)] [FndDynamicTabPage("frmCompanyAddr...

LISTAGG in PLSQL

Example 1: SELECT DISTINCT LISTAGG(t.commission_receiver, ';') WITHIN GROUP (ORDER BY t.commission_receiver) FROM...

Get Foundation Error from ORA Error

FUNCTION Strip_Ora_Error ( sqlerrm_        IN VARCHAR2,    sqlcode_        IN NUMBER DEFAULT NULL,    strip_ora_only_ IN BOOLEAN DEFAULT...

Comments


Copyright © 2025 RMAXOneNote

  • Online CV
  • LinkedIn
  • Youtube
  • GitHub
  • Blogger
bottom of page