This should be simple. I have a custom dialog with some data fields, and an OK button. I want the OK button to perform a save of the fields as well as other processing. I’ve tried many things, but so far, my OK button doesn’t perform my associated code. I defined a new dialog within the page editor. I added an action button that appears on the menu, and it opens my dialog just fine via button command delegate method and the AskExt() method of the view. But my OK button just closes the dialog and seemingly does nothing else. I have tried setting breakpoints after the OK is returned:
if (view.AskExt("viewPanel", true) == WebDialogResult.OK)
{
// other code here, with a breakpoint
}
else
{
// other code here, with a breakpoint
{
and no breakpoints are hit. I also set the dialog button’s AutoCallback command to a custom method with a breakpoint. I tried a method signature of both protected void <method>() that matches a button action delegate and a public IEnumerable <method>(PXAdapter), and breakpoint inside these also do not get hit.
I’m assuming there’s something very simple I’m missing, which is unfortunately often the case with such UI behavioral issues, but I’ve tried a combination of many things and no luck yet, so I thought I would run it by the community for some help.
My dialog OK button settings look like this:
Does anything obvious jump out?
Best answer by Tony Lanzer
View original