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

Difference between revisions of "Modal forms"

From Axaptapedia
Jump to: navigation, search
(Ho to create modal form in Axapta.)
(Creation of a modal form in X++)
 
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
A [[Wikipedia:Modal window|modal form]] is a window which the user must dismiss in some way before returning control to the calling application.
  
== Ho to create modal form in Axapta. ==
+
==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.
  
If you are using formRun class to create modal form, simply add this code
+
<xpp>
 
+
formRun.init();
<math>formRun.init();
+
 
formRun.run();
 
formRun.run();
fromRun.wait(true);</math>
+
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.
 +
 
 +
--[[User:Miker|http&#58;//hosting-it.ru]] 12:03, 10 October 2011 (EDT)
 +
 
 +
Even better you can call the wait method from the form itself!
 +
 
 +
<xpp>
 +
public void run()
 +
{
 +
    super();
 +
    this.wait(true);
 +
}
 +
</xpp>
 +
 
 +
--[[User:JanKjeldsen|JanKjeldsen]] 04:18, 9 August 2013 (EDT)
  
You will get complitely modal form on your client. To open any other forms you need to open new client.
+
[[Category:Form development]]

Latest revision as of 04:38, 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++[edit]

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.run(); 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.

--http://hosting-it.ru 12:03, 10 October 2011 (EDT)

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

<xpp> public void run() {

   super();
   this.wait(true);

} </xpp>

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