<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>How to make the active column from database can&amp;#39;t be null switch to be allowed?</title><link>https://community.appian.com/discussions/f/new-to-appian/21782/how-to-make-the-active-column-from-database-can-t-be-null-switch-to-be-allowed</link><description>error is: Interface Definition: Expression evaluation error: An error occurred while executing a smart service: An error occurred while trying to write to the entity &amp;quot;KONE_Development_userrole&amp;quot; [id=8a2e408a-8d63-40b5-8b0b-ac820966b9ea@16406, type=USER_ROLE</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to make the active column from database can't be null switch to be allowed?</title><link>https://community.appian.com/thread/85393?ContentTypeID=1</link><pubDate>Thu, 02 Sep 2021 13:29:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:642bfd6f-bf68-403f-b033-876605e7387c</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;in the &amp;quot;onSuccess&amp;quot; parameter of your WriteToDataStoreEntity rule (whichever version you use should make no difference), place additional a!save() statements that clear out the data again.&amp;nbsp; for example, &amp;quot;a!save(ri!myCdt, {})&amp;quot; to save an empty data set back into ri!myCdt (and only after the DB write has completed).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to make the active column from database can't be null switch to be allowed?</title><link>https://community.appian.com/thread/85368?ContentTypeID=1</link><pubDate>Thu, 02 Sep 2021 02:21:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0e994abc-98f7-442c-b27f-dc715c72a3f3</guid><dc:creator>immortalvirgil</dc:creator><description>&lt;p&gt;Do you know how to leave the textfield back to blank after click buttons?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to make the active column from database can't be null switch to be allowed?</title><link>https://community.appian.com/thread/85348?ContentTypeID=1</link><pubDate>Wed, 01 Sep 2021 14:25:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0dab7dbf-063e-4aea-9253-de41e261e467</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;You need to have one of your existing field&amp;#39;s saveInto parameters (it doesn&amp;#39;t really matter which one, as long as it&amp;#39;s one the user has to fill out), set a value for all required columns such as &amp;quot;isActive&amp;quot;.&lt;/p&gt;
&lt;p&gt;Additionally I don&amp;#39;t believe a!writeToDataStoreEntity will accept an array of DSE constants like in your original posted code, but I think some other responders have already addressed this (i assume you should be able to use a!writeToMultipleDataStoreEntities() instead).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to make the active column from database can't be null switch to be allowed?</title><link>https://community.appian.com/thread/85321?ContentTypeID=1</link><pubDate>Wed, 01 Sep 2021 08:10:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:537ca2b2-e85d-4c65-a85d-84aad7e9614f</guid><dc:creator>immortalvirgil</dc:creator><description>&lt;p&gt;Do you know how to refresh text to be blank after click any buttons?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to make the active column from database can't be null switch to be allowed?</title><link>https://community.appian.com/thread/85307?ContentTypeID=1</link><pubDate>Wed, 01 Sep 2021 06:03:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d0b03c7e-2157-44c1-ac5e-23402e637b45</guid><dc:creator>immortalvirgil</dc:creator><description>&lt;p&gt;What do you mean? Switch order?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to make the active column from database can't be null switch to be allowed?</title><link>https://community.appian.com/thread/85306?ContentTypeID=1</link><pubDate>Wed, 01 Sep 2021 05:59:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2ffe2a2b-ce91-46fb-baf2-ab3f467cd744</guid><dc:creator>Harsha Sharma</dc:creator><description>&lt;p&gt;You have two data stores right- one is having entity corresponding to&amp;nbsp;KONE_Development_userinputsheet_Constant and other will be having entity for&amp;nbsp;KONE_Development_userrole_Constant.&lt;/p&gt;
&lt;p&gt;If you&amp;nbsp;move of the entity form data store A to B so that both the entities are within same data store, then your code will work fine.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to make the active column from database can't be null switch to be allowed?</title><link>https://community.appian.com/thread/85286?ContentTypeID=1</link><pubDate>Wed, 01 Sep 2021 03:20:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:15e34b29-28ad-4c56-86db-156a5d4ceb6c</guid><dc:creator>immortalvirgil</dc:creator><description>&lt;p&gt;what do you mean?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to make the active column from database can't be null switch to be allowed?</title><link>https://community.appian.com/thread/85285?ContentTypeID=1</link><pubDate>Wed, 01 Sep 2021 03:18:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e1ce69cf-9e75-4621-98a2-2da5dbb106a8</guid><dc:creator>sahithip5519</dc:creator><description>&lt;p&gt;use can use multiple a!writetoDataStoreEntities(). one for each datastore&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to make the active column from database can't be null switch to be allowed?</title><link>https://community.appian.com/thread/85284?ContentTypeID=1</link><pubDate>Wed, 01 Sep 2021 03:16:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9a5e5478-9828-4b15-b8df-e7c96350c83a</guid><dc:creator>immortalvirgil</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;buttons: a!buttonLayout(
      primaryButtons: {
        a!buttonWidget(
          label: &amp;quot;Submit&amp;quot;,
          saveInto: a!writeToMultipleDataStoreEntities(
            valuesToStore: {
              a!entityData(entity: cons!KONE_Development_userinputsheet_Constant, data: ri!userinputsheet),
              a!entityData(entity: cons!KONE_Development_userrole_Constant, data: ri!userrole)
            }
          ),
          submit: true,
          style: &amp;quot;PRIMARY&amp;quot;
        )
      }     
    )&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to make the active column from database can't be null switch to be allowed?</title><link>https://community.appian.com/thread/85283?ContentTypeID=1</link><pubDate>Wed, 01 Sep 2021 03:14:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e84b9127-2a66-40eb-a53f-d41b639d7357</guid><dc:creator>immortalvirgil</dc:creator><description>&lt;p&gt;&lt;span&gt;nterface Definition: Expression evaluation error: An error occurred while executing a smart service: The list of EntityData passed to the smart service contains entities from different data stores. All entities must belong to the same data store. No values have been written. (APNX-1-4208-001)&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to make the active column from database can't be null switch to be allowed?</title><link>https://community.appian.com/thread/85282?ContentTypeID=1</link><pubDate>Wed, 01 Sep 2021 03:13:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9b91dc3c-787b-4b17-abc8-82cc3ecf27d1</guid><dc:creator>sahithip5519</dc:creator><description>&lt;p&gt;Yes it can&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to make the active column from database can't be null switch to be allowed?</title><link>https://community.appian.com/thread/85281?ContentTypeID=1</link><pubDate>Wed, 01 Sep 2021 03:12:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4a7a6bfd-ea97-44df-96d3-462e7d866db8</guid><dc:creator>immortalvirgil</dc:creator><description>&lt;p&gt;&lt;span&gt;contains entities from different data stores&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to make the active column from database can't be null switch to be allowed?</title><link>https://community.appian.com/thread/85278?ContentTypeID=1</link><pubDate>Wed, 01 Sep 2021 02:59:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8b011fb6-d2c8-4c5a-8b73-46677e6cd7a2</guid><dc:creator>sahithip5519</dc:creator><description>&lt;p&gt;a!buttonWidget(&lt;br /&gt; label: &amp;quot;Submit&amp;quot;,&lt;br /&gt; submit: true,&lt;br /&gt; saveInto: a!writeToMultipleDataStoreEntities(&lt;br /&gt; valuesToStore: {&lt;br /&gt; a!entityData(entity: entity1, data: ri!Variable1),&lt;br /&gt; a!entityData(entity: entity2, data: ri!Variable2)&lt;br /&gt; }&lt;br /&gt; ),&lt;br /&gt; style: &amp;quot;PRIMARY&amp;quot;&lt;br /&gt; )&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to make the active column from database can't be null switch to be allowed?</title><link>https://community.appian.com/thread/85277?ContentTypeID=1</link><pubDate>Wed, 01 Sep 2021 02:54:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:41f5b95c-7513-4d9b-8de8-c1faea8c216f</guid><dc:creator>immortalvirgil</dc:creator><description>&lt;p&gt;I just set a default value would be fine, by the way, do you have sample code for a!writeDataStoreEntity(), that i click one button but can save into two table at same time?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to make the active column from database can't be null switch to be allowed?</title><link>https://community.appian.com/thread/85276?ContentTypeID=1</link><pubDate>Wed, 01 Sep 2021 02:51:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:291c5532-3f77-435b-ba24-1ed6fb5ee642</guid><dc:creator>sahithip5519</dc:creator><description>&lt;p&gt;What is the type of the field?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to make the active column from database can't be null switch to be allowed?</title><link>https://community.appian.com/thread/85275?ContentTypeID=1</link><pubDate>Wed, 01 Sep 2021 02:50:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:07bc5155-2618-42c1-961f-4936df9b0e3e</guid><dc:creator>immortalvirgil</dc:creator><description>&lt;p&gt;i can&amp;#39;t not change its type&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to make the active column from database can't be null switch to be allowed?</title><link>https://community.appian.com/thread/85274?ContentTypeID=1</link><pubDate>Wed, 01 Sep 2021 02:49:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f75ac941-2a9c-43e8-84b5-d5e993864217</guid><dc:creator>sahithip5519</dc:creator><description>&lt;p&gt;If the value is not set as nullible - true in XSD then I think you need to pass either true or false value&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to make the active column from database can't be null switch to be allowed?</title><link>https://community.appian.com/thread/85273?ContentTypeID=1</link><pubDate>Wed, 01 Sep 2021 02:47:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:773e3792-2a44-4a1e-a738-934f6bed916c</guid><dc:creator>immortalvirgil</dc:creator><description>&lt;p&gt;what if i want write code from interface?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to make the active column from database can't be null switch to be allowed?</title><link>https://community.appian.com/thread/85272?ContentTypeID=1</link><pubDate>Wed, 01 Sep 2021 02:46:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cae28948-faa9-42b0-b7af-9cd9b90c8ffc</guid><dc:creator>sahithip5519</dc:creator><description>&lt;p&gt;&amp;lt;xsd:element name=&amp;quot;test&amp;quot; nillable=&amp;quot;true&amp;quot; type=&amp;quot;xsd:boolean&amp;quot; /&amp;gt; ALso check if the XSD value is nullable set to true&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to make the active column from database can't be null switch to be allowed?</title><link>https://community.appian.com/thread/85271?ContentTypeID=1</link><pubDate>Wed, 01 Sep 2021 02:43:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e526aa26-7193-4fcc-9670-2967b633b57c</guid><dc:creator>sahithip5519</dc:creator><description>&lt;p&gt;Can you share your CDT?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>