title: trigger form from info class x++
body: <p>I am trying to trigger a form that is already build, from the <strong>info</strong> class within the <strong>startupPost</strong> method.
  The logic is to simply open(trigger) that form.
  I am not sure if the best logic is to trigger the form from the <strong>startupPost</strong> method or from <strong>activate</strong> method.
  Also, I hope the synthax is good, as i'm new in X++ :)</p>
  
  <pre><code>EmplTable           emplTable; //NET_PALIN_001_HBDayInfo 
  int                 dayOfMonth = dayofmth(emplTable.BirthDate);
  int                 mthOfYear  = mthofyr(emplTable.BirthDate);
  date                c          =   mkdate(dayOfMonth,mthOfYear,year(systemDateGet()));
  str                 emplName   = emplTable.name();
  date                dob        = systemDateGet();
  
   if (c== dob )
  
     {
     formRun.init(NET_PALIN_001_HBDay)
     new     MenuFunction(MenuItemDisplayStr(NET_PALIN_001_HBDay),MenuItemType::Display).run();
    pause;
     }
  //NET_PALIN_001_HBDay is the name of my form
  </code></pre>