UrbanPro
true

Learn Computer from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

Dialog Runbase Example in AX 2012

S
Shiva Kumar
09/11/2020 0 0

class Runbase_Example extends RunBase
{
TransDate fromDate,toDate;
CustAccount custAccount;

DialogField dlgFromDate,dlgToDate,custDldField;

#define.CurrentVersion(1)
#localmacro.CurrentList
fromDate,toDate
#endmacro
}
protected Object dialog()
{
DialogRunbase dialog;

dialog = super();
dialog = super();
custDldField = dialog.addFieldValue(extendedTypeStr(CustAccount),custAccount);
dlgFromDate = dialog.addFieldValue(extendedTypeStr(TransDate),fromDate);
dlgToDate = dialog.addFieldValue(extendedTypeStr(TransDate),toDate);

return dialog;
}
public boolean getFromDialog()
{
boolean ret;

ret = super();
custAccount = custDldField.value();
fromDate = dlgFromDate.value();
toDate = dlgToDate.value();

return ret;
}
public container pack()
{
return [#CurrentVersion,#CurrentList];
}
public boolean unpack(container packedClass)
{
Version version = RunBase::getVersion(packedClass);
switch (version)
{
case #CurrentVersion:
[version,#CurrentList] = packedClass;
break;
default:
return false;
}
return true;
}
public static void main(Args args)
{
Runbase_Example runb = new Runbase_Example();

if(runb.prompt())
{
runb.run();
}
}

0 Dislike
Follow 1

Please Enter a comment

Submit

Other Lessons for You

EXIM (Export and Import Management Training)
Import Export Management About Course The main objective of the course is to provide the needed knowledge and skills in the import-export field to the interested candidates. It provides knowledge and...

Big Data Hadoop
- Big data is a complex term which is difficult to manage a traditional system like RDBMS, DB2, SQL etc. - Hadoop is an open-source software framework, for storing massive data and running applications...

Android Training
Android is a mobile operating system developed by Google, based on the Linux kernel. It is designed primarily for touchscreen mobile devices such as smartphones and tablets. Basics of Android: What...

Options for Freshers
Nowadays, Freshers are facing a lot of problems to get a job in their own field. So they are doing the job in another field, and because of that they are unsatisfied and wasting their valuable time. Let's...

7 Keys To Own Your Image With Confidence
7 Keys to Own Your Image with Confidence This comes to you directly from the diary of an Image Consultant.. Do you not want to be recognized? Do you not want to be confident?...
S

Sonam P.

0 0
0
X

Looking for Computer Classes?

The best tutors for Computer Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn Computer with the Best Tutors

The best Tutors for Computer Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more