top of page

PM Data Item Lov User Where in IFS10 [PM_DataItemLovUserWhere]

  • Writer: Rumesh Aponso (RMAX)
    Rumesh Aponso (RMAX)
  • Nov 27, 2024
  • 1 min read

Example 1:


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

private void tableWindow_colsBucketId_OnPM_DataItemLovUserWhere(object sender, WindowActionsEventArgs e)
{
	#region Local Variables
	SalString sLovUserWhere = "";
	#endregion

	#region Actions
	e.Handled = true;
	sLovUserWhere = @"(block_for_use_db = 'FALSE')";
	e.Return = sLovUserWhere.ToHandle();
	#endregion
}

Example 2:


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

private void cChildTableDetail_colsActivityId_OnPM_DataItemLovUserWhere(object sender, WindowActionsEventArgs e)
{
	#region Local Variables
	SalString sLovUserWhere = "";
	#endregion

	#region Actions
	e.Handled = true;
	if (this.cChildTableDetail_colsSubProjectId.Text != "")
	{
		sLovUserWhere = @"(project_id = '" + this.dfsProjectId.Text + "' AND sub_project_id = '" + this.cChildTableDetail_colsSubProjectId.Text + "')";
	}
	else
	{
		sLovUserWhere = @"(project_id = '" + this.dfsProjectId.Text + "' AND sub_project_id IS NOT NULL)";
	}
	e.Return = sLovUserWhere.ToHandle();
	#endregion
}

Example 3:


#region Methods
public virtual SalString SetOperationNoLovUserWhere()
{
	#region Local Variables
	SalString sCUserWhere = "";
	#endregion

    #region Action
	sCUserWhere = this.i_lsUserWhere;
	sCUserWhere = sCUserWhere + " (OPERATION_NO != " + this.tblRoutingOperation_colnOperationNo.Text + ")";
	return sCUserWhere;
	#endregion
}
#endregion

#region Window Actions
private void tblRoutingOperation_colnCParRoutingOperations_WindowActions(object sender, WindowActionsEventArgs e)
{
	switch (e.ActionType)
	{
		case Ifs.Fnd.ApplicationForms.Const.PM_DataItemLovUserWhere:
			e.Handled = true;
			e.Return = this.SetOperationNoLovUserWhere().ToHandle();
			break;
   }
}


Comments


Copyright © 2025 RMAXOneNote

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