XModPro

(NoItemsTemplate) or (xmod:Select) for (AddForm)?

James Allen Hall James Allen Hall asked Nov 8, 2015
Active Nov 9 · Viewed 2551 times
<p>I’ve got a scenario where an (AddForm) is used with a (SelectCommand) returning a single (1) row to populate some “defaults”. It’s possible that the SelectCommand could return zero (0) rows. In that case I’d like XMP to render different HTML in a similar manor as (NoItemsTemplate) or (xmod:Select) in a template.</p><p>The (Panel) tag would work if it had say a “ShowIf” attribute like it has a “ShowRoles” attribute.</p><p>I’m I overlooking an XMP construct that can do this, suggestions anyone?</p>

2 Answers

Loading answers...