Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

FilePathPicker

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    FilePathPicker

    When I use the NinjaTrader.Gui.Tools.FilePathPicker in the properties of an indicator, I get an exception when click the field.

    Are there any restrictions for use this PropertyEditor?

    Thanks


    Code:
    [NinjaScriptProperty]
    [Display(Name="MyFile", Order=1, GroupName="Parameters")]
    [PropertyEditor("NinjaTrader.Gui.Tools.FilePathPicker")]
    public string MyFile
    { get; set; }
    Attached Files

    #2
    Hello cls71,

    Thank you for writing in. I am currently investigating this and will update you tomorrow morning.

    Thank you for your patience in the meantime.
    Michael M.NinjaTrader Quality Assurance

    Comment


      #3
      Hello cls71,

      I am experiencing this behavior as well. I will confer with our product management team and update this thread as soon as possible. Thank you again for your patience in the meantime.
      Michael M.NinjaTrader Quality Assurance

      Comment


        #4
        Originally posted by NinjaTrader_MichaelM View Post
        Hello cls71,

        I am experiencing this behavior as well. I will confer with our product management team and update this thread as soon as possible. Thank you again for your patience in the meantime.
        What is the skinny on this please? I need to be able to to have a standard Windows File picker window pop up for the user.

        Comment


          #5
          Hello,

          Using this file picker requires a filter. For example:
          Code:
          [PropertyEditor("NinjaTrader.Gui.Tools.FilePathPicker", Filter="Any Files (*.)|*.")]
          It also defaults to the sounds folder as this is the only instance in which it is used.

          Please let me know if I may be of further assistance.
          Michael M.NinjaTrader Quality Assurance

          Comment


            #6
            Originally posted by NinjaTrader_MichaelM View Post
            Hello,

            Using this file picker requires a filter. For example:
            Code:
            [PropertyEditor("NinjaTrader.Gui.Tools.FilePathPicker", Filter="Any Files (*.)|*.")]
            It also defaults to the sounds folder as this is the only instance in which it is used.

            Please let me know if I may be of further assistance.
            Capital, but for a few errors in your supplied code, and the default location. Your code as supplied will never show files, only folders. Correct is:
            Code:
            [PropertyEditor("NinjaTrader.Gui.Tools.FilePathPicker", Filter="Any Files (*.*)|*.*")]
            Of course, one can use any filter, such as Wav Files (*.wav)|*.wav" instead.

            It defaults not to the sounds folder, but to the NT User Folder, C:\Users\userName\Documents\NinjaTrader 8.

            Regardless, thanks for showing me the path forward!

            Edit: Interestingly enough, if one uses
            Code:
            [PropertyEditor("NinjaTrader.Gui.Tools.FilePathPicker", Filter="Wav Files (*.wav)|*.wav")]
            it does default to the sounds folder. I have not tested any other file extensions.
            Last edited by koganam; 10-25-2015, 12:28 PM.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by 00nevest, Today, 02:27 PM
            1 response
            8 views
            0 likes
            Last Post 00nevest  
            Started by futtrader, 04-21-2024, 01:50 AM
            4 responses
            41 views
            0 likes
            Last Post futtrader  
            Started by Option Whisperer, Today, 09:55 AM
            1 response
            12 views
            0 likes
            Last Post bltdavid  
            Started by port119, Today, 02:43 PM
            0 responses
            8 views
            0 likes
            Last Post port119
            by port119
             
            Started by Philippe56140, Today, 02:35 PM
            0 responses
            7 views
            0 likes
            Last Post Philippe56140  
            Working...
            X