This project is read-only.
3

Resolved

Feature Request...let me specify what to generate

description

I'd like some sort of xml manifest to specify what tabs,fields,sections,etc. to generate. This will give me the ability to only generate code for the stuff I will actually use. Therefore, I can have smaller javascript files.

comments

bscarlavai wrote Mar 27, 2012 at 8:12 PM

This is implemented in the latest version by setting "IncludeAllAttributes", "IncludeAllTabs", "IncludeAllSections", and "IncludeAllLeftNavs" to false in the Entity node of the config and then explicitly setting each type inside the Entity node like so:

<Entity EntityName="contact" FileName="contact.js" FormName="Information"
        IncludeAllAttributes="false"
        IncludeAllTabs="false"
        IncludeAllSections="false"
        IncludeAllLeftNavs="false">
  <Attributes>
    <Attribute Id="salutation" />
    <Attribute Id="firstname" />
    <Attribute Id="lastname" />
  </Attributes>
  <Sections>
    <Section Id="Address" />
  </Sections>
  <Tabs>
    <Tab Id="General" />
  </Tabs>
  <LeftNavs>
    <LeftNav Id="navAddresses" />
  </LeftNavs>
</Entity>