Axaptapedia is now maintained by AgileCadence For more information please click here.

Difference between revisions of "Modal forms"

From Axaptapedia
Jump to: navigation, search
(Creation of a modal form in X++)
(Creation of a modal form in X++)
Line 25: Line 25:
--[[User:JanKjeldsen|JanKjeldsen]] ([[User talk:JanKjeldsen|talk]]) 04:18, 9 August 2013 (EDT)
--[[User:JanKjeldsen|JanKjeldsen]] 04:18, 9 August 2013 (EDT)
[[Category:Form development]]
[[Category:Form development]]

Revision as of 04:19, 9 August 2013

A modal form is a window which the user must dismiss in some way before returning control to the calling application.

Creation of a modal form in X++

If you are using the FormRun class to create a form, simply add this code. The last line will ensure that it is opened in a modal state.

<xpp> formRun.init();; formRun.wait(true); </xpp>

You will get a completely modal form on your client. To open any other forms you need to dismiss the form, or open a new client.

-- 12:03, 10 October 2011 (EDT)

Even better, you can call the wait method from the form itself!

<xpp> public void run() {


} </xpp>

--JanKjeldsen 04:18, 9 August 2013 (EDT)