locked
Changing 'New' button behaviour for an entity. RRS feed

  • Question

  • I'm using Dynamics version 4.0. 

    I've created a new Dynamics entity and an ASP.NET extension providing a wizard used to create this entity. I'd like to ensure that the only way a user can create this entity is via the wizard. 

    Is it possible to;

    a) Disable or hide the 'New' button for an entity so that I can then add a button to the entity toolbar using ISV.Config that opens the wizard.

    or

    b) Change the behaviour of the 'New' button so that it opens the wizard?

    Thanks.
    Friday, November 28, 2008 7:17 PM

Answers

  • Hi,

    After googled around, i found the "unsupported" customization way to hide the "new" button. I would like to quote from Jim Wang blog :

    "You can't just say: crmForm.all.regardingobjectid.ShowNewButton = 0; it doesn't work. But what you can do is in the onLoad() event, use attachEvent method to attach a setadditionalparams event for the regardingobjectid. Again, those methods are all unsupported customisations, however, those are widely used in the Web development."

    Please refer to this blog for details :

    http://jianwang.blogspot.com/2008/05/mysterious-crm-lookup-i.html

    hope this helps,

    hadi teo.
    Saturday, November 29, 2008 12:18 AM