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 FrazMann, Today, 11:21 AM
            0 responses
            3 views
            0 likes
            Last Post FrazMann  
            Started by geddyisodin, Yesterday, 05:20 AM
            8 responses
            52 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Started by cmtjoancolmenero, Yesterday, 03:58 PM
            10 responses
            36 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by DayTradingDEMON, Today, 09:28 AM
            4 responses
            24 views
            0 likes
            Last Post DayTradingDEMON  
            Started by George21, Today, 10:07 AM
            1 response
            19 views
            0 likes
            Last Post NinjaTrader_ChristopherJ  
            Working...
            X