open the standard Windows Save File Dialog from X++ and user can select the path of the file to save to.
Static void ShyamWindowSaveFileDialog(Args _args)
{
str filePath;
container conFilter=["XML","*.xml"];
filePath =WinAPI::getSaveFileName(
0, //Handle
conFilter,// Default file Extensions in Filter
"C:\\AIF\\",//Path to Save
"Save Files",//Dialog Title
".xml",//Default file extensions
strPackingSlipXMLNo);// File Name
}
Static void ShyamWindowSaveFileDialog(Args _args)
{
str filePath;
container conFilter=["XML","*.xml"];
filePath =WinAPI::getSaveFileName(
0, //Handle
conFilter,// Default file Extensions in Filter
"C:\\AIF\\",//Path to Save
"Save Files",//Dialog Title
".xml",//Default file extensions
strPackingSlipXMLNo);// File Name
}
This code opens the windows Save dialog.
Comments
Post a Comment