Showing posts with label SharePoint. Show all posts
Showing posts with label SharePoint. Show all posts

Wednesday, April 13, 2016

PASS VALUES FROM FORM TO REPORT IN AX2009

Pass values from form to Report in Ax2009

Pass Values through Menu Buttons to report in Dynamics AX

1.    Calling menuItem. Task

Form-> MenuButton-> Clicked Method

void clicked()
{
            Args args = new Args();
            MenuFunction menuFunction;
             ;
             args.parm(SalesTable.SalesId);
             menuFunction = new MenuFunction(menuitemoutputstr(Report),
                                                  menuitemType::Output);                                            
                          // Report is menuItem
                        menuFunction.run (args);
                         super ();
                }

Go to Report Init Method

In Report-> init()
Declare the Variable in class Declarations.

public void init()
{

           ItemId  =  element.args().parm();
              ------------------------
             ------------------------------        
           super();
}

Other Way of getting values from form to report…
2.calling report

form->Button
void clicked()
{

Args args = new args();
ReportRun reportRun;
;

args.parm(Table. Field);
args.name(reportstr(Report Name));
reportRun = classFactory.reportRunClass(args);
reportRun.init();
reportrun.run();
========
=======

super ();
}
Report  ‘Override Method –> init’


public void init()
{
;
ItemId  =  element.args().parm();
 ------------------------
 ------------------------------        
super();
}
 

Tuesday, April 12, 2016

HOW TO GIVE RIGHTS IN SHAREPOINT PORTAL IN AX 2012

Access to SharePoint portal in ax 2012

1. Open Internet Explorer
2. Click Site Actions > Site Permissions
3. Click Grant Permissions
4. In the Users\Groups box, enter ABC
5. Click Check Names
6. Check Full Control
7. Click OK
Related Posts Plugin for WordPress, Blogger...