Getting current plant data on grid

Hello,

I am trying to get transaction for current plant on Transaction Log Form. At present it shows transactions for all plants and I want to see plant specific data on the grid. I am using below code but still I get data for all plants. I don’t know if the event is wrong. Could you please help.

private void TransactionLogForm_Load(object sender, EventArgs args)
{

     Epicor.Mfg.Core.Session CurrentSession = (Epicor.Mfg.Core.Session)TransactionLogForm.Session; 
                  string  pPlant = CurrentSession.PlantID;  


	// Add Event Handler Code

}

Thank You,
Binita

Hello, Binita. The code you posted looks like you’re assigning the current plant to a variable called pPlant. Do you have some additional code written to filter the grid, or is this as far as you’ve gotten?

Are you able to train on the use a grid filter on a plant column instead of customizing?

Hi,

Yes, I have assigned current plant to a variable called pPlant .I am not really good with the codes. So far I just have this code.

I suggested the users to use filter on the grid but they don’t want to use filter. When they open the form, they want to see current plant data only.

Try this.

https://www.infragistics.com/community/forums/t/3534.aspx

1 Like