Hello!

You dialog-class must extend RunBase or RunBaseBatch.
Overload the dialog-method adn add code similar to this:

Object dialog()
{
   DialogRunbase   dialog = super();
   ;

dialog.caption("Save something in file");

   dialogFilenameWrite   = dialog.addField(typeId(FilenameSave), "Save file");
   dialogFilenameWrite.lookupButton(2);
   dialogFilenameWrite.value(filenameWrite);

dialog.filenameLookupFilter( NameOfDialogClass::fileNamelookupFilterCon());
return dialog;
}



Create at static-method in your dialog-class that returns the filetypes that you want to use:


static container filenameLookupFilterCon()
{
   return ["Tab-delimited (text)", '*.txt'];
}

- Bjørn

-----Original Message-----
From: Paul Robson [mailto:[EMAIL PROTECTED] Sent: Thursday, September 11, 2003 11:33 AM
To: [EMAIL PROTECTED]
Subject: [development-axapta] Help with DialogField controls




Hi All



I have added a dialogfield to my dialog of extendedtype filenamesave how can I define filetype choices in the browser/lookupbutton? I’ve tried WinAPI::filetype() which has no effect.





Paul Robson







Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



Yahoo! Groups Sponsor ADVERTISEMENT
click here


Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

Reply via email to