O'Reilly logo

Easy Web Development with WaveMaker by Edward Callahan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Accessing components of a page container page

We use published properties to pass parameters into a page. Getting results out of the page container, however, is easier. Since we are already using the onItemDBFormInsertSuccess event, we can use the And then feature of the event to add a JavaScript event handler in addition to the call to hide:

Accessing components of a page container page

Now we can access the form's data output from our event handler function. In our example, we get the name of the newly inserted item and store it in a JavaScript variable:

var newItemName = inSender. pageItemInsert.itemDBForm.getDataOutput().getValue("itemname");

The page has been hidden, but the page still exists, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required