<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>yuuvis® RAD Q&amp;A - Recent questions without answers</title>
<link>https://qa-rad.yuuvis.com/index.php?qa=unanswered</link>
<description>Powered by Question2Answer</description>
<item>
<title>empty table doesn't trigger errormessage</title>
<link>https://qa-rad.yuuvis.com/index.php?qa=1987&amp;qa_1=empty-table-doesnt-trigger-errormessage</link>
<description>&lt;p&gt;Hello,&lt;br&gt;
we want the “netamount” field to be a mandatory field in the table &quot;vatrates&quot;, and we also need to ensure that there is at least one row in the table. We have tried that in yRAD 9.16 and 10.16.&lt;/p&gt;
&lt;p&gt;Here is our script:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;function checkvatrates() {
if (scope.model.vatrates.value === null || scope.model.vatrates.value.length &amp;lt; 1) {
	scope.model.vatrates.error = { msg: 'Mindest eine Zeile in Tabelle Steuerbeträge benötigt' };
} else {
	scope.model.vatrates.error = null;
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;}&lt;br&gt;
if (scope.situation !== 'SEARCH') {&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;checkvatrates();
scope.model.vatrates.onrowedit=function(table,row){
	row.model.netamount.required=true;
	checkvatrates();
}
scope.model.vatrates.onchange=function(table,row){
	checkvatrates();
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;(quoting seems not to work -preview always quotes just parts of my code)&lt;/p&gt;
&lt;p&gt;The script works, but if I delete the row after creating it, no error is displayed. What are we doing wrong?&lt;br&gt;
&lt;img src=&quot;https://qa-rad.yuuvis.com/?qa=blob&amp;amp;qa_blobid=15364275037528159122&quot; alt=&quot;&quot;&gt;&lt;/p&gt;
</description>
<guid isPermaLink="true">https://qa-rad.yuuvis.com/index.php?qa=1987&amp;qa_1=empty-table-doesnt-trigger-errormessage</guid>
<pubDate>Tue, 05 Aug 2025 12:40:26 +0000</pubDate>
</item>
</channel>
</rss>