Edit link in HTML view - Dialog problems
Hi everyone,
I'm creating an HTML view that's similar to a list view, and would like to include "Edit" links for each entry. I've gotten as far as:
- The edit link pops up a dialog of the edit form
- When you make changes and press submit, the edits save successfully.
I have two remaining problems:
- The dialog does not auto-close, you have to press close at the top, and
- If you then try to click "Edit" again, it no longer works.
My edit links look like this:
- <a href="#Form:Time_Entry?zc_LoadIn=dialog&zc_NextUrl=#View:This_week_s_time&recLinkID=<%=id%>&viewLinkName=Time_Entry_View" class='zc-edit-a'>Edit</a>
I think the reason that #2 is occuring is because the URL changes from this:
- /#View:This_week_s_time
to this
- /#Form:Time_Entry?zc_LoadIn=dialog&zc_NextUrl=#View:This_week_s_time&recLinkID=327517000000408459&viewLinkName=Time_Entry_View
after the click, which means that when you click edit again, it does nothing.
I have read Gaev's post about zcDialog and nextURL, and took my original URL structure from his. I think because I'm trying to edit a record, it's not quite working the same way!
Does anyone have any suggestions or ideas?
Thank you!