Hello Group,
I'm doing a customization to the MES screen. My customization is a new button that launches the Base Version of the End Activity screen.
I've arrived at the point where I have the new button that launches the End Activity Screen in its base form for the job highlighted in the production grid. However after I enter the data into the End Activity screen and click OK the Grid on the Main MES Screen does not update and the job remains in the Grid.
If I use the End Activity button that is already on the screen (the Epicor out of the box button) after the information is entered the grid updates and the job is removed. This has to be some type of logic in the button click i that refreshes the grid after the click of the 'OK' button inside the End Activity Screen, any help on how that is done would be appreciated.
Thanks,
Jarrad
oTrans.Refresh()>> click OK the Grid on the Main MES Screen does not update
You might include a refresh or update?
oTrans.Update()
Or if you can provide your customization details it might be easier to spot what is going on.
Jose C Gomez
T: 904.469.1524 mobile
Quis custodiet ipsos custodes?
On Mon, Oct 26, 2015 at 10:37 AM, jarradlayne@... [vantage] <vantage@yahoogroups.com> wrote:Â<div> <p>Let me try to better explain my issue:</p><div><br></div><div>The user clocks into a job, once the person clocks into a job it appears in the Production tab's grid on the MES main screen.</div><div><br></div><div>Now the user clicks on the job they are clocking out on inside the grid highlighting it and clicks the End Activity button. When the user does this it launches a separate screen, the end activity screen, here the user enters their information and clicks okay. </div><div><br></div><div>When the user clicks "OK" in the End Activity screen what SHOULD happen is the End Activity screen closes and the job that was highlighted is removed from the grid. This does happen with the out of the box End Activity Button. However my customization is the addition of another button that calls the End Activity screen, its using the Process Caller to call a menu ID I made that is the base End Activity. When I use my button it launches the End Activity form for the Job highlighted but when I click "OK" it closes the form but does not update the grid and remove the job. If I close the form and re-open it, the job is gone. So the only issue is the grid isn't updating. I've put oTrans.Refresh() and oTrans.NotifyAll() and that hasn't help, I think this is because it needs to be triggered off of the close of the End Activity form, if I put it below my code now in the click event it happens before the data is entered.</div><div><br></div><div>sample of my code:</div><div><br></div><div><br></div><div><div><span style="white-space:pre-wrap;"> </span>Private Sub btnEndActBase_Click(ByVal sender As Object, ByVal args As System.EventArgs)</div><div><span style="white-space:pre-wrap;"> </span>' ** Place Event Handling Code Here **</div><div><span style="white-space:pre-wrap;"> </span>If edvLaborDtl.dataView.Count > 0 Then</div><div><span style="white-space:pre-wrap;"> </span>Dim vLaborHedSeq As String = edvLaborDtl.dataView(edvLaborDtl.Row)("LaborHedSeq").tostring</div><div><span style="white-space:pre-wrap;"> </span>Dim vLaborDtlSeq As String = edvLaborDtl.dataView(edvLaborDtl.Row)("LaborDtlSeq").tostring</div><div><span style="white-space:pre-wrap;"> </span>ProcessCaller.LaunchForm(MESMenu,"UDEndAct", vLaborHedSeq + "," + vLaborDtlSeq )</div><div><span style="white-space:pre-wrap;"> </span>End If</div><div><span style="white-space:pre-wrap;"> </span>End Sub</div></div><div><br></div><p></p> </div> <div style="color:#fff;min-height:0;"></div>
Did this work?
Invoke this after your ProcessCallerthis.RefreshLaborData();On Mon, Oct 26, 2015 at 10:37 AM, jarradlayne@... [vantage] <vantage@yahoogroups.com> wrote:Â<div> <p>Let me try to better explain my issue:</p><div><br></div><div>The user clocks into a job, once the person clocks into a job it appears in the Production tab's grid on the MES main screen.</div><div><br></div><div>Now the user clicks on the job they are clocking out on inside the grid highlighting it and clicks the End Activity button. When the user does this it launches a separate screen, the end activity screen, here the user enters their information and clicks okay. </div><div><br></div><div>When the user clicks "OK" in the End Activity screen what SHOULD happen is the End Activity screen closes and the job that was highlighted is removed from the grid. This does happen with the out of the box End Activity Button. However my customization is the addition of another button that calls the End Activity screen, its using the Process Caller to call a menu ID I made that is the base End Activity. When I use my button it launches the End Activity form for the Job highlighted but when I click "OK" it closes the form but does not update the grid and remove the job. If I close the form and re-open it, the job is gone. So the only issue is the grid isn't updating. I've put oTrans.Refresh() and oTrans.NotifyAll() and that hasn't help, I think this is because it needs to be triggered off of the close of the End Activity form, if I put it below my code now in the click event it happens before the data is entered.</div><div><br></div><div>sample of my code:</div><div><br></div><div><br></div><div><div><span style="white-space:pre-wrap;"> </span>Private Sub btnEndActBase_Click(ByVal sender As Object, ByVal args As System.EventArgs)</div><div><span style="white-space:pre-wrap;"> </span>' ** Place Event Handling Code Here **</div><div><span style="white-space:pre-wrap;"> </span>If edvLaborDtl.dataView.Count > 0 Then</div><div><span style="white-space:pre-wrap;"> </span>Dim vLaborHedSeq As String = edvLaborDtl.dataView(edvLaborDtl.Row)("LaborHedSeq").tostring</div><div><span style="white-space:pre-wrap;"> </span>Dim vLaborDtlSeq As String = edvLaborDtl.dataView(edvLaborDtl.Row)("LaborDtlSeq").tostring</div><div><span style="white-space:pre-wrap;"> </span>ProcessCaller.LaunchForm(MESMenu,"UDEndAct", vLaborHedSeq + "," + vLaborDtlSeq )</div><div><span style="white-space:pre-wrap;"> </span>End If</div><div><span style="white-space:pre-wrap;"> </span>End Sub</div></div><div><br></div><p></p> </div> <div style="color:#fff;min-height:0;"></div>
Jose C Gomez
T: 904.469.1524 mobile
Quis custodiet ipsos custodes?
On Thu, Oct 29, 2015 at 10:25 AM, jarradlayne@... [vantage] <vantage@yahoogroups.com> wrote:Â<div> <p>Hello Jose,</p><div><br></div><div>I've tried this and everything complies fine, but the grid does not refresh when I test it.</div><div><br></div><div>Code Used:</div><div><br></div><div>Me.oTrans.<span style="color:rgb(63,63,63);font-family:verdana, sans-serif;font-size:13px;word-spacing:normal;">RefreshLaborData()</span></div><div>Â </div><p></p> </div><span class="ygrps-yiv-508604384"> <div style="color:#fff;min-height:0;"></div>
On Thu, Oct 29, 2015 at 10:44 AM, jarradlayne@... [vantage] <vantage@yahoogroups.com> wrote:Â<div> <p>When I do the same steps with the out of the box End Activity Screen as opposed to my newly made button the job is removed from the grid.</p><div><br></div><div>It appears that the code is happening before I go into the End Activity screen and click "OK", like it is updating the grid right after the end activity screen is called, not after the "Ok" button is clicked, so its updating the grid while i'm still clocked into the job.</div><p></p> </div><span> <div style="color:#fff;min-height:0;"></div>