Refresh Labor Data in MES

I’m trying to get the refresh labor data referred to in this post to work.

	private void CustWQButton_Click(object sender, System.EventArgs args)
	{
		// ** Place Event Handling Code Here **
		LaunchFormOptions lfo = new LaunchFormOptions();
		lfo.IsModal= true;
		ProcessCaller.LaunchForm(oTrans, "CWorkQ",lfo);
		this.RefreshLaborData();
	}

Above is the code that am trying to get to work. The modal is working correctly, but when I try to add the refresh in there, I get an error ‘Script’ does not contain a definition for ‘RefreshLaborData’.

Can someone tell me what I am doing wrong on this one? @josecgomez @fredmeissner ?

So I kept reading in the thread and say

this.oTrans.RefreshLaborData();

And now it compiles, but it still doesn’t refresh when I close the screen.

Never mind, I just had to close and re-load the customization. Good to go.

1 Like