Using zc_LoadIn=dialog to edit and add records from an HTML view

Using zc_LoadIn=dialog to edit and add records from an HTML view

I have an html view and would like to mimic the Edit and Add record found in a standard list view.  I can get Edit to work, but the required zc_NextUrl and openUrl("#Script:dialog.close", "same window") in the form definition are clunky at best.  I can not get Add record to function, however. The add record form opens in the popup window, but the NextUrl does not cause a refresh and the #Script:dialog.close in OnAdd...OnSuccess does not close the popup.

I will respectfully disagree with Gaev (About zc_LoadIn=dialog and zc_NextUrl=) that the popup remaining open for another record to be added is "good behaviour."  If you want to add lots of new records, you probably shouldn't do it modally, but should open a new window.  Instead, I would much rather see a simplified way to duplicate the behavior that we see in a standard list view - the popup opens, you edit or add, the popup closes and the page is refreshed.   CRM by hariharan uses a rather laborious manner of formula fields as navigation buttons to deal with this issue.  I hope Zoho will offer a simpler solution.

In the meantime, I would appreciate any info on the workaround to get Add to work.