I have customized UD03 entry for a custom table. The one thing that I am not sure how to do it call the update method from a custom button. I want the button click to open a BPM data form. I have the button changing a checkbox to true, which I will us at the condition for the BPM, but I want the button to also call the UD03 Update method. How is this method triggered from a button click in C#.
Sample code would be great.
Jay
Jose C Gomez
T: 904.469.1524 mobile
Quis custodiet ipsos custodes?
On Wed, Aug 26, 2015 at 1:03 PM, j.eppersn@... [vantage] <vantage@yahoogroups.com> wrote:Â<div> <p></p><p><span>I have customized UD03 entry for a custom table. The one thing that I am not sure how to do it call the update method from a custom button. I want the button click to open a BPM data form. I have the button changing a checkbox to true, which I will us at the condition for the BPM, but I want the button to also call the UD03 Update method. How is this method triggered from a button click in C#.</span></p><p><span><br></span></p><p><span>Sample code would be great.</span></p><p><span><br></span></p><p><span>Jay</span></p><p></p> </div> <div style="color:#fff;min-height:0;"></div>
Thanks, Jose, that seems to have worked. I had tried oTrans.Update; but forgot the () before the semicolon.
Jay
I am still having problems with this, I guess. I thought I had the button working, but it isn't doing what I expected. It works fine if I change some other field on the form before the button press, but if I am not actually changing anything, the update method doesn't fire. I was hoping that by changing a checkbox to true before calling the oTrans.Update method, it would allow the method to fire, but it isn't working.
The code compiles and I am not receiving any error message, but the Update method only fires if I change some field on the form before pressing the button.
Here is my event handling code, so far:
// ** Place Event Handling Code Here **
{
edvUD03.dataView[edvUD03.Row]["Checkbox03"] = true;
{
oTrans.Update();
}
}
Jose C Gomez
T: 904.469.1524 mobile
Quis custodiet ipsos custodes?
On Wed, Aug 26, 2015 at 4:03 PM, j.eppersn@... [vantage] <vantage@yahoogroups.com> wrote:Â<div> <p><span>Â Â Â Â </span></p><p>I am still having problems with this, I guess. I thought I had the button working, but it isn't doing what I expected. It works fine if I change some other field on the form before the button press, but if I am not actually changing anything, the update method doesn't fire. I was hoping that by changing a checkbox to true before calling the oTrans.Update method, it would allow the method to fire, but it isn't working.</p><p><br></p><p>The code compiles and I am not receiving any error message, but the Update method only fires if I change some field on the form before pressing the button.</p><p><br></p><p>Here is my event handling code, so far:</p><p><br></p><p>Â Â // ** Place Event Handling Code Here **<br>Â </p><p>{</p><p>edvUD03.dataView[edvUD03.Row]["Checkbox03"] = true;<br>Â Â Â Â {<br>Â Â Â Â Â oTrans.Update();</p><p>Â Â Â Â }</p><p>}<br></p><p></p> </div><span class="ygrps-yiv-2024357227"> <div style="color:#fff;min-height:0;"></div>
Something like this? It still doesn't seem to be working. I tried both the EpiDataView.Notify and the RowMod, but neither worked with the way that I have them.
{
edvUD03.dataView[edvUD03.Row]["Checkbox03"] = true;
{
// edvUD03.dataView[edvUD03.Row]["RowMod"] = "U";
EpiDataView.Notify(args);
{
oTrans.Update();
}
}
}
Jose C Gomez
T: 904.469.1524 mobile
Quis custodiet ipsos custodes?
On Wed, Aug 26, 2015 at 4:58 PM, j.eppersn@... [vantage] <vantage@yahoogroups.com> wrote:Â<div> <p></p><p>Something like this? It still doesn't seem to be working. I tried both the EpiDataView.Notify and the RowMod, but neither worked with the way that I have them.</p><p><br></p><p><span class="ygrps-yiv-1533591950">{<br>Â Â edvUD03.dataView[edvUD03.Row]["Checkbox03"] = true;<br>Â Â Â {<br></span>Â Â Â // edvUD03.dataView[edvUD03.Row]["RowMod"] = "U";<br>Â Â Â EpiDataView.Notify(args);<br>Â Â Â Â {<br>Â Â Â Â oTrans.Update();<br>Â Â Â Â }<br>Â Â Â }<br>Â Â }<br></p><p></p> </div><span class="ygrps-yiv-1533591950"> <div style="color:#fff;min-height:0;"></div>
This is my update code, but it still isn't functioning correctly...
{
edvUD03.dataView[edvUD03.Row]["Checkbox03"] = true;
{
edvUD03.Notify(new EpiNotifyArgs(oTrans, edvUD03.Row, edvUD03.Column));
{
oTrans.Update();
}
}
}
Thanks for all the help, Jose.
Jay
oTrans.NotifyAll()
Rob Bucek
Production Control Manager
D&S Manufacturing
301 E. Main St. | PO Box 279
Black River Falls, WI 54615
715-284-5376 Ext. 311
Mobile: 715-896-3119
rbucek@...
www.dsmfg.com<http://www.dsmfg.com>
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]
Sent: Wednesday, August 26, 2015 5:15 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Re: Call Update method on button click event
This is my update code, but it still isn't functioning correctly...
{
edvUD03.dataView[edvUD03.Row]["Checkbox03"] = true;
{
edvUD03.Notify(new EpiNotifyArgs(oTrans, edvUD03.Row, edvUD03.Column));
{
oTrans.Update();
}
}
}
Thanks for all the help, Jose.
Jay
[Non-text portions of this message have been removed]
Rob Bucek
Production Control Manager
D&S Manufacturing
301 E. Main St. | PO Box 279
Black River Falls, WI 54615
715-284-5376 Ext. 311
Mobile: 715-896-3119
rbucek@...
www.dsmfg.com<http://www.dsmfg.com>
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]
Sent: Thursday, August 27, 2015 9:42 AM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] Re: Call Update method on button click event
Still nothing. The button sets the checkbox to true, but doesn't seem to actually run the update method to commit the change to the DB (if I run a BAQ after pressing the button, checkbox03 is still false).
[Non-text portions of this message have been removed]