title: How to call SetPropertyException from another event handler?
body: <p>Below is my code to insert whatever value is entered into my UsrWLAmt field into my BudgetGrid representing the history of the fields values.</p>
  
  <p>I want to raise a warning prompting the user to enter a value into the details field in the BudgetGrid History </p>
  
  <pre class="lang-cs prettyprint-override"><code>protected void PMProject_UsrWLAmt_FieldUpdated(PXCache cache, PXFieldUpdatedEventArgs e, PXFieldUpdated InvokeBaseHandler)
  {
    if(InvokeBaseHandler != null)
      InvokeBaseHandler(cache, e);
    var row = (PMProject)e.Row;
          PMProject con = Base.Project.Current;
          PX.Objects.PM.ProjectExt item = con.GetExtension&lt;PX.Objects.PM.ProjectExt&gt;();
          if (item.UsrWLAmt &gt; 0)
          {
              atcBudgetHis bud = new atcBudgetHis();
              bud.CreatedDateTime = DateTime.Now;
              bud.Value = item.UsrWLAmt;
              BudgetGrid.Insert(bud);
              // to attach the exception object to the field
              BudgetGrid.View.Cache.RaiseExceptionHandling&lt;atcBudgetHis.details&gt;(
              bud, " ",
              new PXSetPropertyException(
              "Please specifiy reason for budget change.",
              PXErrorLevel.Warning));
  
          }
      }
  </code></pre>
  
  <p>I've also tried BudgetGrid.Cahce.RaiseExceptionHandling</p>
  
  <p>The code above doesn't raise any trace errors.</p>
  
  <p>EDIT:</p>
  
  <pre class="lang-cs prettyprint-override"><code>PXUIFieldAttribute.SetWarning&lt;atcBudgetHis.details&gt;(BudgetGrid.Cache, null, "Please specifiy reason for budget change.");
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/6DDTQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6DDTQ.png" alt="enter image description here"></a></p>
  
  <p>Works for all rows but </p>
  
  <pre class="lang-cs prettyprint-override"><code>PXUIFieldAttribute.SetWarning&lt;atcBudgetHis.details&gt;(BudgetGrid.Cache, bud, "Please specifiy reason for budget change.");
  </code></pre>
  
  <p>Doesn't raise any warnings. </p>
  
  <p>I could create another field above the grid for the notes to be inserted, but is there a way I can set the warning for the last row in the BudgetGird?</p>