[quote
So you are returning "menu.Serialize && x"? What are you trying to achieve with that?
Do you understand that this method must return the serielized contextMenu in order for it to work? Now you are returning a boolean. I guess you are somehow trying to return two things - the standard menu and your menu but that can't work.
Here's what your code should do:
1) Get the standard serialized context menu by calling next()
2) Append your own stuff to the standard result that you got in step 1
3) Return the new serialized context menu which now contains the standard menu with your additions
Or, if you don't wish to return the standard menu at all, then ignore the return value of the next, and return simply menu.serialize(). Then it returns only your menu.
[/quote
i dont know if i get it right, but here is what i understood from the above
1-call next method
2-write my own code
3-return my own menu
please check my code below
public str getcontextmenuoptions()
{
next getcontextmenuoptions();
ContextMenu menu = new ContextMenu();
ContextMenuOption option = ContextMenuOption::Create("Filter By Customer",selectedMenu);
List xx = new List(Types::Class);
xx.addend(option);
menu.ContextMenuOptions(xx);
return menu.Serialize() ;
}