title: How to modify state of button from trigger in Oracle Forms
body: <p>I have to modify state of button (hide it) in Oracle Forms (10g -- I am new to Forms and I not sure how to recognize the version). </p>
  
  <p>Unfortunately I cannot modify the form itself. </p>
  
  <p>I can add my own code only to procedures called by <code>PRE-FORM</code>, <code>POST-FORM</code> and <code>WHEN-NEW-ITEM-INSTANCE</code> (something like that) triggers. </p>
  
  <p>However:
   1. <code>PRE-FORM</code> is called too early (form modifies button after this trigger).
   1. <code>POST-FORM</code> is called when child form is closed (it's OK, but doesn't handle all cases). </p>
  
  <p><code>WHEN-NEW-ITEM-INSTANCE</code> seems good but I failed trying access button from procedure called from trigger.</p>
  
  <p>I tried to use <code>name_in('datablock.element')</code> to access form elements but I have no idea how to modify the state of element outside the form.</p>