step1: Create a form and apply form pattern as wizard step2 : create a class and extend the class with SysWizard. code : class BAS_WIzardScreen extends SysWizard { #MACROLIB.AviFiles FormName formname() { return formstr(BAS_WIzardForm); // name of the wizard form } public void run() { info(strFmt("Thankyou")); } public void setupNavigation() { } public boolean validate() { return true; } public static str description() { return "BASOFA WIZARD"; // title of the wizard } public static void main(Args _args) { BAS_WIzardScreen wizard = new BAS_WIz...
Reuirement : I have to create a table called BASTradeAgreementTable with fields like following Item number Product Name ToDate FromDate InventSiteId InventLocationId Amount From Unit Step2: After Creating Table I have to create a form and add the created table into the form datasource and add all the fields of that datasource to form grid. I have to create a button called Post whenever user clicks on that button i have to create and post Trade Agreement Journals with the data provided in the form grid. [Control("Button")] class Post { /// <summary> /// /// </summary> public void clicked() { int recordsCount; BASTradeAgreementTable tradeAgreement; ...
step1 : create a x++ project step2 : Select Class Library (.NET Framework) step3: Enter a Project Name and Location, then select .NET Framework 4.7.2 – the reason for this is that if we want to reference any Microsoft DLLs we need to be sure our solution matches the project type and version that the DLLs are built against (which in the case of Microsoft DLLs is .NET Framework 4.7.2) step4 : Next we need to create a reference between our X++ project and our .NET project, right click on the References and ‘Add Reference’ step5 : Next select your .NET project from the Projects tab step6 : Now you will see your .NET project is referenced by your X++ project So Now I Can Reference Microsoft DLLs from the .NET Class? 1) Right click on the References tab on your .NET project -> Add Reference 2) Click on Browse -> Then the Browse button 3) Navigate to the PackagesLocalDirectory folder (on my development onebox this is located at K:\AosService\PackagesLocalDi...
Comments
Post a Comment