Best way to include record edit popup in HTML view?

Best way to include record edit popup in HTML view?

Hi folks,

I have a query about using record edit functionality in the HTML view type.

I have read this interesting post in the forum:

http://help.zoho.com/portal/en/community/topic/edit-link-in-html-view-dialog-problems

but unfortunately I have not got as far as the original poster.

I think this is because I am building the link in a different way.

Background: I have a list of tunes (musical pieces) and would like to be able to edit these directly from the HTML view. At the moment, my view is extremely basic and just has a table with tune names, for testing purposes.

I am building the link with a simple "href" and a functional URL, like this:

  1. <tr>
  2. <td><%=tune.Tune_name%></td>
  3. <td><a href="http://creator.zoho.com/edbradburn/setlister/#Form:Tunes?zc_LoadIn=dialog&zc_nextUrl=orphan_tunes&recLinkID=<%=tune.ID%>&viewLinkName=orphan_tunes">Edit</a></td>
  4. </tr> 
The name of the HTML view I am launching this is "orphan_tunes", as you can see.

Now this works fine to launch a popup and edit the tune in place, but when I click "Update" I am sent to a URL as follows:

  1. http://creator.zoho.com/appcreator/jsp/successpage.jsp
What am I doing wrong? I have specified the "next URL" as the same HTML view "orphan_tunes", but this is not the URL I am sent to.

Would it be better to make the link using the "OpenURL" function? If so, how would I make the popup close and keep me on the same page – as happens when using the List view type, for example.

Basically, I need the functionality of the List view but with the flexibility of the HTML view :=)

Many thanks for your help!


Ed