<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Custom property expression not persisting. in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Custom-property-expression-not-persisting/m-p/1590006#M10723</link>
    <description>&lt;P&gt;I've created an extension in which I want users to be able to enhance their Measures by entering an expression string to specify, in this case, a color value. For example, "= if (count(foo)&amp;gt;10,vRed,vGreen)".&lt;/P&gt;&lt;P&gt;I've got the expression field displaying okay using the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;definition: {
	type: "items",
	component: "accordion",
	items: {
		dimensions: {
			uses: "dimensions",
			min: 2,
			max:2
		},
		// measure value is either bar/line length or type of point object
		measures: {
			uses: "measures",
			min: 1,
			max: 6,
			type:"items",
			items: {
				VisualType: {
					type: "string",
					component:"dropdown",
					label: "Visual Type",
					ref: "qDef.visualType",
					options: [{
						value: "BAR",
						label: "Bar"
					},{
						value: "LINE",
						label: "Line"
					},{
						value: "POINT",
						label: "Point"
					}],
					defaultValue: "BAR"
				},
				// this evaluates to a number for each row.. qAttrExps.qValues[0].qNum
				ColorExp: {
					type:"string",
					label:"Color Expression",
					ref:"qAttributeExpressions.0.qExpression",
					expression:"always",
					defaultValue:""
				}
			}
		},
		sorting: {
			uses: "sorting"
		},
		appearance: {  
			uses: "settings",
			type: "items",
			items: { ....&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that after specifying the expression string, if I go back into Edit mode, the expression is blank.&lt;/P&gt;&lt;P&gt;I've tried removing the defaultValue line but that didn't have an effect.&lt;/P&gt;&lt;P&gt;Am I missing a step or attribute required to make the expression persist?&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Steve&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 05:38:01 GMT</pubDate>
    <dc:creator>stascher</dc:creator>
    <dc:date>2024-11-16T05:38:01Z</dc:date>
    <item>
      <title>Custom property expression not persisting.</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Custom-property-expression-not-persisting/m-p/1590006#M10723</link>
      <description>&lt;P&gt;I've created an extension in which I want users to be able to enhance their Measures by entering an expression string to specify, in this case, a color value. For example, "= if (count(foo)&amp;gt;10,vRed,vGreen)".&lt;/P&gt;&lt;P&gt;I've got the expression field displaying okay using the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;definition: {
	type: "items",
	component: "accordion",
	items: {
		dimensions: {
			uses: "dimensions",
			min: 2,
			max:2
		},
		// measure value is either bar/line length or type of point object
		measures: {
			uses: "measures",
			min: 1,
			max: 6,
			type:"items",
			items: {
				VisualType: {
					type: "string",
					component:"dropdown",
					label: "Visual Type",
					ref: "qDef.visualType",
					options: [{
						value: "BAR",
						label: "Bar"
					},{
						value: "LINE",
						label: "Line"
					},{
						value: "POINT",
						label: "Point"
					}],
					defaultValue: "BAR"
				},
				// this evaluates to a number for each row.. qAttrExps.qValues[0].qNum
				ColorExp: {
					type:"string",
					label:"Color Expression",
					ref:"qAttributeExpressions.0.qExpression",
					expression:"always",
					defaultValue:""
				}
			}
		},
		sorting: {
			uses: "sorting"
		},
		appearance: {  
			uses: "settings",
			type: "items",
			items: { ....&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that after specifying the expression string, if I go back into Edit mode, the expression is blank.&lt;/P&gt;&lt;P&gt;I've tried removing the defaultValue line but that didn't have an effect.&lt;/P&gt;&lt;P&gt;Am I missing a step or attribute required to make the expression persist?&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Steve&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:38:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Custom-property-expression-not-persisting/m-p/1590006#M10723</guid>
      <dc:creator>stascher</dc:creator>
      <dc:date>2024-11-16T05:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Custom property expression not persisting.</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Custom-property-expression-not-persisting/m-p/1590025#M10725</link>
      <description>&lt;P&gt;Looks like I need to use component:"expression", instead of expression:"always".&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 13:31:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Custom-property-expression-not-persisting/m-p/1590025#M10725</guid>
      <dc:creator>stascher</dc:creator>
      <dc:date>2019-06-10T13:31:28Z</dc:date>
    </item>
  </channel>
</rss>

