How to add an edit action to the "Edit Ad-hoc query" page.

Hello,

I was wondering if anyone can help me with this.

This is a custom global change I built and this is a copy of “Add user-defined constituency” which is out of box.

I want to add an edit action to the “Edit Ad-hoc query” page so that a user can edit the selection query easily.

The out of box global change has that icon, but it was built with UI Model, so I cannot see the code inside.

Does anyone have any suggestion how to make this happen?

Thanks in advance!

bdf890cdd4cb409433ec30669d267e8f-huge-im
25d2fef662f14ce3af96cfbca1ae54fe-huge-im

Comments

  • There should be an element in the spec called UIActions. In here you can create a UI Action that shows an edit data form. The LinkFieldId will be the name of the Selection field you already have. Then the ActionContext will be something like Fields!SELECTION. Then when you generate the UI Model for your spec, it will build out this action for you. I think it defaults to the pencil icon as well.

  • Thanks, Harry! I will try it.