The form itself has a method called filenameLookupInitialPath which returns just an empty string. Throw read that I could set a default path in the getOpenFileName-method, but that doesn't seem to work. InventTableImage.ADUImage = imageFilePathName If (imageFilePathname & WinAPI::fileExists(imageFilePathName)) ImageFilePathName = WinAPI::getOpenFileName(element.hWnd(),filter, '', '','') I'm doing this to get the file name and then use the TransferText function to import the file into an Access table. This is the code behind the Change Image-button so far: void clicked()įilenameFilter filter = I'm opening a csv file in Excel with an Access macro. So when we press the button to set or change the image, I would like the dialog box to automatically go to this folder, so users don't have to go there themselves. These images are all stored in the same folder on our server. On of the properties of every item is an image. The situation is this: In Microsoft Dynamics AX there's the form InventTable, which shows all data concerning our inventory. I'm using this to allow users to select a file that will be opened later in the process FiletoOpen Application.GetOpenFilename(FileFilter:'Excel Files (.xls). I was wondering how I can set a default path for a Open File dialog in X++.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |