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 Jonker, 04-27-2024, 01:19 PM
            3 responses
            23 views
            0 likes
            Last Post NinjaTrader_Manfred  
            Started by businessman1929, 04-29-2024, 01:28 PM
            2 responses
            21 views
            0 likes
            Last Post businessman1929  
            Started by bltdavid, 03-27-2023, 05:32 AM
            18 responses
            347 views
            0 likes
            Last Post ETFVoyageur  
            Started by NM_eFe, Today, 05:15 PM
            0 responses
            5 views
            0 likes
            Last Post NM_eFe
            by NM_eFe
             
            Started by vitaly_p, Today, 05:09 PM
            0 responses
            7 views
            0 likes
            Last Post vitaly_p  
            Working...
            X