Title: Meddelelse
hi
 
I am not very sure as to what are u trying to do but
 
look at the aot import form and see how the browse button works. Then send your parameters but instead of sending just the extension for eg *.xpo send the full filename i.e. filename.xpo. This should work
 
regards
 
harry
 
-----Original Message-----
From: Mikael Dalg�rd [mailto:[EMAIL PROTECTED]
Sent: Monday, April 26, 2004 3:58 PM
To: [EMAIL PROTECTED]
Subject: [development-axapta] Open directory with AX codes

Hi all
 
From DOS I can use this parameter to open a directory "explorer C:\dirname". Does anybody know how I can open a directory with Axapta codes.
 
I have tried with this:
 
void clicked()
{
    str                          vItemName;
    SMM_CustTable       PrefTable;
 
    PrefTable   =   SMM_CustTable_DS.cursor();
    if (PrefTable)
    {
        vItemName = ' ' + xinfo::directory(directoryType::Appl);
        vItemName = vItemName + 'SMMArchive\\' + PrefTable.SMM_ID;
        winapi::shellExecute('explorer.exe ' + vItemName);
    }
    super();
}
 
Best regards
 
Mikael Dalg�rd
 
 
 


Yahoo! Groups Links

Reply via email to