问题
I would like to bring view details button in my form when right clicked on my form view details should be shown like in standard any form for example when we right click on item number field on the form we have view details option when clicked that opens the details form of that item.
I tried using the normal right click method but could not succeed, please help me how to bring the view details functionality in my custom form.
回答1:
You have to create Display Menu Item with the selected form.
Then you can set newly created menu item for the FormRef
property of the Table.
回答2:
To have the "View details" standard context menu, the following must be true:
- The foreign key (FK) must have a relation defined on the table of the key
- The table pointed to by the FK must have a form
- The form must have a display menu item
- The menu item must have the same name as the table or the
FormRef
property must be set - The menu item must have security set up, and the user must have read access (or better)
Running the Best Practice check will usually spot the errors.
This blog entry explains it nicely.
来源:https://stackoverflow.com/questions/27143050/view-details-control-on-ax-2012-form