Browsing for a file name

Cem_KaraerCem_Karaer Member Posts: 281
Hi all,
I want to browse a file name just the same as I do while using a dataport. That's to say; I want a textbox with drilldown button, when I click the button a standard Open Dialog box should be opened. I must be able to browse in that dialog box and when I click open while on a file, the path and file name (with its extension) must be written in the textbox (consequently on the related field).
Thanks in advance.
Cem Karaer @ Pargesoft
Dynamics NAV Developer since 2005

Answers

  • ErictPErictP Member Posts: 164
    Take a look at CU412 Common Dialog Management

    I use this in the OnAssistEdit trigger of the textbox.
    Fieldname := CommonDlgMgt.OpenFile( FIELDCAPTION( Fieldname), Fieldname, 4, '*.*', 0);
    
  • Cem_KaraerCem_Karaer Member Posts: 281
    Thank you ErictP. Sorry for using your nickname.
    Cem Karaer @ Pargesoft
    Dynamics NAV Developer since 2005
Sign In or Register to comment.