Interview Questions

Thursday, May 21, 2015

How to Make a USB Bootable

1
Open the Command Prompt. You will need to run Command Prompt as an Administrator. Right-click on it and select Run as Administrator. You may need to enter the Administrator password.
  • This method will create a USB drive that is bootable. You can then copy the contents of an operating installation disc onto the drive to create a portable installation drive.
  • This method only works in Windows Vista, 7, and 8
    2
    Open the disk management utility. This can be opened by entering the command disk part.
  • 3
    Display the connected disks. Type the command list disk to show a list of all the drives connected to your computer. Your USB drive should be listed here as well. Make note of the number next to your USB drive.
  • 4
    Select the USB drive. Enter the command select disk #, replace “#” with the number from the previous step.
  • 5
    Clean the flash drive. Enter the command clean to have the disk management utility verify the integrity of the USB drive, and erase all data.
  • 6
    Create a bootable partition. Once the USB drive is clean, type in create partition primary. You will see a message saying that the operation was successful.
  • 7
    Select the new partition. Enter the command select partition 1 and press Enter. Once you receive a confirmation message, type active and press Enter. This will activate the partition.
  • 8
    Format the USB drive. Input the command format fs=fat32. When you press Enter, the program will work for a few minutes (if it is a small USB, e.g. 32Gb could actually take hours to SLOW format), and the progress will be displayed as a percentage.
  • 9
    Assign the USB a drive letter. Enter the command assign to give the thumb drive a letter designation. Type exit to end the disk management program.
  • 10
    Copy the operating system. Once the USB drive has been made bootable, you can copy over the installation files for the operating system you want to install. You can do this by dragging and dropping using your preferred file manager/explorer.
    • Copy over any drivers you might need during the operating system installation to make the process much smoother.

Wednesday, May 20, 2015

In document management check all file types and for each sales order all documents have to be attached and its mandatory.

Hi,
 Kindly Go to Docuref Table, in the method called filestatus,
Paste this code and check:
Public boolean filestatus(salesTable    _salesTable)
{
    boolean         fileattached = false;
    boolean         repeat;
    Docuref         DocurefTableloc;
    DocuTypeId      type1,type2,type3;
    str             _null;
    Container       con;
    ;
    _null   = "";
    con     = conins(con,1,_null);
    con     = conins(con,2,_null);
    con     = conins(con,3,_null);
    // Collecting and storing the Document Types in the Container
    while select DocurefTableloc where DocurefTableloc.RefCompanyId == _salesTable.dataAreaId
                                    && DocurefTableloc.RefRecId     == _salesTable.RecId
    {
        if(conpeek(con,1)== "")
        {
            con = conins(con,1,DocurefTableloc.TypeId);
        }
        else if(conpeek(con,2)== "")
        {
            con = conins(con,2,DocurefTableloc.TypeId);
        }
        else if(conpeek(con,3)== "")
        {
            con = conins(con,3,DocurefTableloc.TypeId);
        }
     }
     type1 = conpeek(con,1);
     type2 = conpeek(con,2);
    // Comparing the Values to check whether both Document types are of same type
    
        if(type1 == type2)
        {
            return  fileattached;
        }
     type3 = conpeek(con,3);
        if((type2 == type3)||(type1 == type3))
        {
            return  fileattached;
        }
    // Mandatory Document types to be attached
    
    if((type1 || type2 || type3 == "File")&&
       (type1 || type2 || type3 == "Image")&&
       (type1 || type2 || type3 == "Inbox"))
    {
        fileattached = true;
        return  fileattached;
    }
    return  fileattached;
}

Validation to check document is attached to sales order if not picking list should be disabled

Hi,
Try and excecute the following steps to get the desired result,
Step 1:- Go to Docuref Table, create a new method called filestatus,
Public boolean filestatus(salesTable    _salesTable)
{
    boolean         fileattached = false;
    Docuref         DocurefTableloc;
    ;
    select DocurefTableloc where DocurefTableloc.RefCompanyId == _salesTable.dataAreaId
                              && DocurefTableloc.RefRecId     == _salesTable.RecId;
    if(DocurefTableloc)
    {
        fileattached = true;
        return  fileattached;
    }
    return  fileattached;
}
Step 2:-
NOw go to Classes --> Salestable form --> enableUpdateJournalButtons method
in declaration part -- > boolean             filestatus;
after declaration, paste this code,
filestatus      = docuref.filestatus(salesTable) // to check whether File is attached or not.
Below that u ll find the ------ > if (_buttonUpdatePickingList) this statement,
Just override the statement with this code,
if (_buttonUpdatePickingList)
    {
         if(filestatus == true)
         {
            _buttonUpdatePickingList.enabled(enablePickingListButton);
         }
         if(filestatus == false)
         {
            _buttonUpdatePickingList.enabled(false);
         }
    }
Cheers!!! Work done :-)

Wednesday, May 13, 2015

"CLR Error occurred while invoking the scheduling engine" in AX 2012

If you are facing this type of issue then,
Just go to AX Server Configuration then uncheck "Enable the hot-swapping of assemblies for each development session” being enabled on the server" check box.
Now you can release you production order