Mysterious Behavior when opening sales order from Quickfinder
Heiko Merz
Hey,I created a CoCu Rule on Formload of Sales Orders that a message pops up when a special field in the BP Master Data is filled.
It works.... as long as I open the Sales Order from anywhere than the Quickfinder.
If I use the quickfinder, the message also pops up, before the Sales Order Form is loaded (doesn't matter), BUT: The OK - Button doesn't work.
I can only use the ESC-Key that the message is gone and sales order is loading.
CoCu Rule is very simple:
[color=#ff0000]try
{
string cardCode = SwissAddonFramework.UI.Components.TextEdit.GetFromUID(pVal.Form, "4").Value;
string Custtext = LayoutHelper.LD.QueryData("SELECT U_JRS_CUSTTEXT FROM OCRD WHERE CardCode='" + cardCode + "'");
if(Custtext != "")
{
MessageBox.Show(Custtext, "OK");
return true;
} [/color]
[color=#ff0000]catch ....[/color]
This function is very important for one of our offices, so:
Can someone help me with this ?
Kind regards,
Heiko
0
Please sign in to leave a comment.
Comments
0 comments