I have a VIEW PAGE with a DROP DOWN MENU with options ADD, EDIT and DELETE… How can I add a custom option to that menu?.. help
Just put this code in “Page_Render” server event that belongs to the View Page:$options = &$this->OtherOptions;
$option = &$options[“action”];
$item = &$option->add(“my_custom_button”);
$item->Body = “<a class="ew-action" title="Some Action" data-caption="Some Action" href="mylink.php">My Custom Button”;
$item->Visible = TRUE;
YESSSSSS, works perfect… thank you…
And how can I add and remove options in the other drop-down button next to the one above? I mean the button that has a tree icon, where you can find the related tables.
Similar to the previous code. Just change this part:
$option = &$options[“action”];
to:
$option = &$options[“detail”];
Thanks, it works perfect… one more question please… How can I hide some of the options automatically created in this same “DETAIL” button?
To hide the option, just change this part:
$item->Visible = TRUE;
to:
$item->Visible = FALSE;
But how do I specify which of the detail tables I want to hide?
You may simply refer to the generated source code of the related page, and always try it by yourself. Post your code here for more discussion.