<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hy Adam,<br>
      <br>
      You could do this easier.<br>
      If you use vtws_retrieve($wsid, $user), you get the date and
      number formats like the user use it. <br>
      The only challenge is, you needs an valid user object, which makes
      this way slower.<br>
      <br>
      Stefan<br>
      <br>
      Am 15.05.2013 21:06, schrieb Adam Heinz:<br>
    </div>
    <blockquote
cite="mid:CAKBdvM9ZfhRvxqhbevASwCxyvV_G9s2h=+6USMP5+d-+nc3kYA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div style="">I don't know why I didn't think of this earlier,
          but it certainly is handy to be able to grab arbitrary entity
          data as JSON.  The only thing I've noticed is that dates come
          out with the back end format, so I've been casing those out
          with DateTimeField::convertToUserFormat.</div>
        <div><br>
        </div>
        <div><?php</div>
        <div>global $module, $record;</div>
        <div>if ($record && isPermitted($module, 'DetailView',
          $record) == 'yes') {</div>
        <div><span class="" style="white-space:pre"> </span>$focus =
          CRMEntity::getInstance($module);</div>
        <div><span class="" style="white-space:pre"> </span>$focus->retrieve_entity_info($record,
          $module);</div>
        <div><span class="" style="white-space:pre"> </span>header("Content-type:
          text/javascript");<br>
        </div>
        <div>
          <span class="" style="white-space:pre"> </span>echo
          json_encode($focus->column_fields);</div>
        <div>}</div>
        <div><br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
<a class="moz-txt-link-freetext" href="http://www.vtiger.com/">http://www.vtiger.com/</a></pre>
    </blockquote>
    <br>
  </body>
</html>