<field reporter:label="Record Format" name="record_format" reporter:datatype="text"/>
<field reporter:label="Transmission Format" name="transmission_format" reporter:datatype="text"/>
<field reporter:label="Auth" name="auth" reporter:datatype="bool"/>
- <field reporter:label="Attrs" name="attrs" oils_persist:virtual="true" reporter:datatype="link"/>
+ <field reporter:label="Attrs" name="attrs" oils_persist:virtual="true" reporter:datatype="link" config_field="true"/>
<field reporter:label="Use Permission" name="use_perm" reporter:datatype="link"/>
</fields>
<links>
<xs:attribute ref="reporter:label"/>
<xs:attribute ref="reporter:datatype"/>
<xs:attribute ref="reporter:selector"/>
+ <xs:attribute ref="config_field"/>
</xs:complexType>
</xs:element>
idlClassDef: any;
pkeyField: string;
+ configFields: string[];
// True if any columns on the object support translations
translateRowIdx: number;
public toast: ToastService
) {
this.translatableFields = [];
+ this.configFields = [];
}
applyOrgValues(orgId?: number) {
this.idlClassDef.table;
}
+ this.configFields =
+ this.idlClassDef.fields.filter(f => f.config_field);
+
// gridFilters are a JSON encoded string
const filters = this.route.snapshot.queryParamMap.get('gridFilters');
if (filters) {
<!-- to simplify the logic, the first and last field are assumed to
have values (and practically always will) -->
-<xsl:template name='printField'>{name:"<xsl:value-of select="@name"/>",<xsl:if test="@reporter:label != ''">label:"<xsl:value-of select="@reporter:label"/>",</xsl:if><xsl:if test="@oils_persist:primitive = 'true'">primitive:true,</xsl:if><xsl:if test="@reporter:selector != ''">selector:"<xsl:value-of select="@reporter:selector"/>",</xsl:if><xsl:if test="@oils_persist:virtual = 'true'">virtual:true,</xsl:if><xsl:if test="@oils_obj:required = 'true'">required:true,</xsl:if><xsl:if test="@oils_persist:i18n = 'true'">i18n:true,</xsl:if><xsl:call-template name='fieldOrLink'><xsl:with-param name='f' select="."/></xsl:call-template>datatype:"<xsl:call-template name='defaultValue'><xsl:with-param name='v' select="@reporter:datatype"/><xsl:with-param name='d' select="string('text')"/></xsl:call-template>"}</xsl:template>
+<xsl:template name='printField'>{name:"<xsl:value-of select="@name"/>",<xsl:if test="@reporter:label != ''">label:"<xsl:value-of select="@reporter:label"/>",</xsl:if><xsl:if test="@oils_persist:primitive = 'true'">primitive:true,</xsl:if><xsl:if test="@reporter:selector != ''">selector:"<xsl:value-of select="@reporter:selector"/>",</xsl:if><xsl:if test="@oils_persist:virtual = 'true'">virtual:true,</xsl:if><xsl:if test="@oils_obj:required = 'true'">required:true,</xsl:if><xsl:if test="@oils_persist:i18n = 'true'">i18n:true,</xsl:if><xsl:if test="@config_field = 'true'">config_field:true,</xsl:if><xsl:call-template name='fieldOrLink'><xsl:with-param name='f' select="."/></xsl:call-template>datatype:"<xsl:call-template name='defaultValue'><xsl:with-param name='v' select="@reporter:datatype"/><xsl:with-param name='d' select="string('text')"/></xsl:call-template>"}</xsl:template>
<xsl:template name="pcrudPerms">
<xsl:if test="@permission">perms:[<xsl:for-each select="str:split(@permission,' ')">'<xsl:value-of select="./text()"/>'<xsl:if test="not(position() = last())">,</xsl:if></xsl:for-each>]</xsl:if>