Default code on Update event of DataCard can be improved
The following operation differences occur when customizing with the PowerApps Integration, which is troublesome.
- Fill in the choices, dates, lookup columns, user and group columns and save them in a custom list.
- Recall the saved data, clear the input contents and save again.
- When the saved data is called again, it does not disappear and the previous value remains.Actually data remains in the custom list.
Based on the information on the following site,
https://powerapps.microsoft.com/ja-jp/blog/new-feature-error-handling-and-writing-null-values-to-databases/
New Experimental Feature: Error Handling and Writing Null values to databases
Turn on Formula-level error management in PowerApps settings,
And by updating the Update event of DataCards as follows,
Correspondence was done.
For example:
(Original code on Update event)
DataCardValue3.Selected
(Updated code)
If(IsBlank(DataCardValue3.Selected), Blank(), DataCardValue3.Selected)
But, We need to revise this for all columns except the Text type.
By default these two points (Turning on to Formula-level error management and modify update event) will be implemented.
---Japanese---
SharePoint Integration の機能でカスタマイズした途端に以下の動作差異が発生して困ります。
1.選択肢、日付、参照列、ユーザとグループ列に値を入れ、カスタムリストに保存します。
2.保存データを呼び出し、入力内容をクリアして保存します。
3.再度保存データを呼び出すと消えておらず、前の値が残っています。実際カスタムリスト内に前のデータが残っています。
以下のサイトの情報を元に、
https://powerapps.microsoft.com/ja-jp/blog/new-feature-error-handling-and-writing-null-values-to-databases/
New Experimental Feature: Error Handling and Writing Null values to databases
PowerApps の設定で、Formula-level error management を ON にし、
かつ DataCards の Update イベントを以下のように書き換えることで対応はできました。
For example:
(Original)
DataCardValue3.Selected
(Modified)
If(IsBlank(DataCardValue3.Selected), Blank(), DataCardValue3.Selected)
しかし、
これを Text 型以外のすべての列について改訂していかなければならないので、デフォルトでこの 2点(Turning on to Formula-level error management and
modify Update event)が実装されることを希望します。
