Dynamics CRM, Mobility and other stuff

vrijdag, december 14, 2007

Adding "Next/Previous" buttons to Entity Details Form Revisited

It's funny to get a lot of reactions lately on a post (from almost two years ago!), Adding "Next/Previous" buttons to Entity Details Form. Maybe it has to do with this post from Philip Richardson, I don't know :).

Anyway, thanks to some feedback from Matt Wittemann and Jim Steger I've made some small updates. One is an addition to support custom entities (thanks Matt) and one is a bugfix, it gave an error when using the buttons on a form that is not opened from a grid (thanks Jim).

I've updated the sample code in the zip file with these additions.

Another comment from Bart Vierbergen about an enhanced for CRM 4.0 (using the entitytypename instead of entitytypecode) I leave as a simple exercise for the reader :).

Download the new version here.

Labels: ,

3 Comments:

  • When I looked at the code to download, it says that it works only in a grid view. I'm trying to add this to the form view. How can I do that? Thanks

    By Anonymous Jon, at 29/6/09 18:36  

  • Hi Jon,

    It actually works on a form. Take a look a this screenshot: http://www.cwrmobility.com/portals/0/weblog/previous_next_screenshot.jpg

    By Blogger Jeffry @ CWR Mobility, at 29/6/09 21:07  

  • I updated the download to work for 4.0. A few things had to change:

    1. The Title for the button had to be pulled out and added as a child tag:
    < Titles>< Title LCID="1033" Text="Previous"/>< /Titles>

    I also added the ToolTip XML as well:
    < ToolTips>< ToolTip LCID="1033" Text="Previous"/>< /ToolTips>

    The last piece that had to be updated for it to upload into 4.0 had to do with the buttons for a custom entity. In the JavaScript section where the URL is built it had &etc=10001. The etc works and it can be changed to etn as you pointed out but the & is throwing it off. By changing that part to &etn= new_entity then it uploaded fine.

    Cool Post

    By Anonymous Jeremy Winchell, at 9/7/09 16:53  

Een reactie plaatsen

Links to this post:

Een koppeling maken

<< Home