Search This Blog

Friday, July 26, 2013

How to uninstall SP1 from windows server 2008 r2 (KB: 976932)

Step 1

Login into windows server r2 , there go to command prompt with administrator rights (Run as administrator)

Step 2

Type the cmd
Wusa /uninstall /kb: 976932 and press enter uninstall bar will come it will take 10 to 15min to uninstall the server pack1 from server.

Step 3

Using this commands we have to remove sp1 setup backup files from windows server OS 2008 r2
Dism.exe /online / Cleanup-Image /spsuperseded



Happy Daxing..

Tuesday, July 16, 2013

Test Data Transfer Tool for Microsoft Dynamics AX 2012 – Part 1

Test Data Transfer Tool for Microsoft Dynamics AX 2012-Part 2

How to avoid displaying negative values in the report in Axapta 2009 Using X++

Hi Friends,

change negative sign to positive   in Axapta 2009

As: it’s very easy task, normally we will do it like go to property’s simply we will change the signdisplay = none
Ex: Qty is -10
I want to display qty: 10
But here my requirement is wants to change the sign based on one condition in my Report.
If that field is in display method I will write the condition and I will do it, it’s not a display method.
This case we need to write the X++ code before sending data to body we need to write the
Below single line of code: i.e.

If (Table.SalesType == salestype::ReturnItem)
 {

        (
Control Name)Table_Qty. SignDisplay (signDisplay::None);
  }                 

Folks share your ideas,This my idea..

Happy 
Daxing...                

                            

Monday, July 15, 2013

OpenPrinter_1: rc:0 lastError:1801(0x709) The printer name is invalid In Axapta 2009

When I open  the report getting the below in Dynamics AX 2009
Error message as below:
"OpenPrinter_1: rc:0 lastError:1801(0x709) The printer name is invalid."

Actually 2 places we need to Change


First Place:

      Classes->RunBaseReportDialog->main() 

static void main(Args args)
{
    RunBaseReportDialog     reportDialog    = new RunBaseReportDialog(args.caller());
    RunBaseReport           runBaseReport   = args.caller().runbase();
    ReportRun               reportRun       = runBaseReport.reportRun();
    Report                  report          = reportRun.report();
    boolean                 oldInteractive;
    boolean                 res;
    Dialog                  dialog;
;

    oldInteractive = report.interactive();
    report.interactive(true);

    //res = reportRun.prompt();  
 //removed
    res = reportDialog.prompt();  //Added 

    report.interactive(oldInteractive);
    if (!res)
        return;

    dialog = Dialog::getDialogFromCaller(args.caller());
    if (dialog)
    {
        dialog.updateServer();
    }
    runBaseReport.dialogUpdatePrinterSettings(dialog);
    reportDialog.run();
}
Second One:

Change the report design Property  orientation:Auto


Happy Daxing....:)


Display Method How Goto MainTable Functionality Works In Axapta 2009

Hi Friends,

Recently i got requirement from my customer,that is very simple you know what is that,Customers is asking GotoMainTable Functionality for one field ,i.e display method: Just Simple

Override JumpRef() under design ->Control ->

public void jumpRef()
{
    Args args;
    MenuFunction menuFunction;
    SalesTable salesTableLocal;
    str val2;
    ;
    super();
    while select salesTableLocal where salesTableLocal.SalesId == SO.valueStr()
    {
               val2 = salesTableLocal.SalesId;
                args = new Args();
                //  args.caller(this);
                args.parm(val2);
                args.record(salesTableLocal);
                args.parmEnum(AllChosen::Chosen);
                menuFunction = new MenuFunction(menuitemdisplaystr(SalesTable),                     MenuItemType::Display);
                menuFunction.run(args);
    }
}
 Feel free to contact me have any doubt...

Happy
Daxing...!


Monday, July 8, 2013