The "Filter" option is not shown because you can't filter on a field that call a display method to get his data. You'll have to add the option manually in the "showContextMenu" method of the field. Here's an example on how to add an item to the context menu:

(Taken from Axapta Dev's Help)



int showContextMenu(int MenuHandle){

int ret;

PopupMenu m = PopupMenu::Create(MenuHandle,this.hWnd());

int myMenuItem = m.insertItem("MyItem"); // Save the handle of the appended menuitem

ret = m.draw(); // Show the menu

if (ret == myMenuItem) // Check if the user selected "our" item

{

print "MyItem was selected";

pause;

return 0;



} else {

Return ret;

}



}



Steeve…



-----Message d'origine-----
De : Aksnes Eva [mailto:[EMAIL PROTECTED] Envoyé : 11 décembre 2003 07:10
À : '[EMAIL PROTECTED]'
Objet : [development-axapta] Filter on display




I just want to overwrite the filter-method on a displaymethod - field to print a 
message, but the Filter is not shown on the right-click - menu.
Why?

When I overwrite the jumpref - method on a displaymethod - field, the Go To MainTable is shown. Is it different on the Filter?

Maybe I can add my own menuitem on the right-click - menu, to do the print? How can I do that?

eva_aksnes





Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


Yahoo! Groups Sponsor ADVERTISEMENT
click here


Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

Reply via email to