locked
CRM 2011/2013 Launch dialog from ribbon using urlcommand - script error on close RRS feed

  • Question

  • I have a requirement to launch a dialog from a ribbon button (2013) and I am using the UrlCommand to call the dialog rather than some custom javascript.

    I don't understand why urladdressable dialog is never used...

    Using 3 parameters: EntityName[String]=opportunity, DialogId[String]=guid and ObjectId[Crm Parameter]=FirstPrimaryItemId.

    This works fine but once the user closes the dialog at the finish a script error is generated - is this a bug?

    Thanks

    Wednesday, November 20, 2013 11:46 AM

All replies

  • Hi

    Is there some error detail ?

    Wednesday, November 20, 2013 11:56 AM
  • Webpage Error:

    Do you wish to debug this webpage?

    .....

    Line: 1

    Error: Object expected

    Wednesday, November 20, 2013 12:09 PM
  • Hi

    Ribbon button you are clicking is on Entity Grid or Form ?

    If its on Entity records grid, try using SelectedControlSelectedItemIds.

    Notice that this gives a string array of selected records GUID

    also check dialog session history if all the steps were properly executed.
    • Edited by CRMDevlpr Wednesday, November 20, 2013 12:26 PM
    Wednesday, November 20, 2013 12:24 PM
  • This one is on opportunity form, I have a different action for the grid using FirstSelectedItemId and enablerule allowing only one selected.

    The dialog completes perfectly and it's only when the dialog is closed the error appears. Using the UrlCommand makes it easy to open the modeless dialog in a supported way.

    Wednesday, November 20, 2013 1:38 PM