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 burtoninlondon, Today, 12:38 AM
            0 responses
            4 views
            0 likes
            Last Post burtoninlondon  
            Started by AaronKoRn, Yesterday, 09:49 PM
            0 responses
            12 views
            0 likes
            Last Post AaronKoRn  
            Started by carnitron, Yesterday, 08:42 PM
            0 responses
            11 views
            0 likes
            Last Post carnitron  
            Started by strategist007, Yesterday, 07:51 PM
            0 responses
            13 views
            0 likes
            Last Post strategist007  
            Started by StockTrader88, 03-06-2021, 08:58 AM
            44 responses
            3,982 views
            3 likes
            Last Post jhudas88  
            Working...
            X