Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

How to input default path for Choose-File-Dialog?

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

    How to input default path for Choose-File-Dialog?

    I use:

    Code:
    [PropertyEditor("NinjaTrader.Gui.Tools.FilePathPicker", Filter="Any Files (*.*)|*.*")]
    	[Category("Parameters")]
            [Description("")]
            [Display(Name = "Alarm sound", Order = 3)]
            [NinjaScriptProperty]
            public string SoundFile1
            {
                get { return mySoundFile; }
                set { mySoundFile= value; }
            }
    in SetDefaults i use:

    Code:
    mySoundFile= NinjaTrader.Core.Globals.UserDataDir+@"\templates\MyResources\Alert1.wav";

    however, while I click "Choose File" in options dialog window, the folder "My DOcuments>Ninjatrader 8" is being opened firstly (instead of `\templates\MyResources`).

    I have a doubt, Do I incorrectly set the default value (mySoundFile) for the input ??

    #2
    Hello TazoTodua,

    Setting the default string would set the default sound path but would not change the folder that is opened in the file dialog window.

    The default path is set within the core of NinjaTrader.

    I'm happy to submit a feature request on your behalf to allow the initial folder path to be settable if you would like.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      yes, will be good. thnx

      Comment


        #4
        Hello TazoTodua,

        I've received a tracking ID for your request.

        Your request to be able to set the initial path for the file picker attribute is being tracked with ID #SFT-1652.

        Please note it is up to the NinjaTrader Development to decide if and when a request will be implemented.

        We appreciate your suggestions. Please let me know of any other requests you have for the NinjaTrader Platform.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Add my vote to, thx.
          sidlercom80
          NinjaTrader Ecosystem Vendor - Sidi Trading

          Comment


            #6
            Hello sidlercom80,

            I've submitted your vote. Thank you for your voice.
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              Please add my vote too.

              Comment


                #8
                Hello Heart,

                Thank you for your voice.

                I have submitted your vote to SFT-1652.
                Chelsea B.NinjaTrader Customer Service

                Comment


                  #9
                  +1

                  Please add my vote.

                  Comment


                    #10
                    Hello bltdavid,

                    I've added your vote to SFT-1652.

                    Thank you for your vote.
                    Chelsea B.NinjaTrader Customer Service

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by Aviram Y, Today, 05:29 AM
                    0 responses
                    3 views
                    0 likes
                    Last Post Aviram Y  
                    Started by quantismo, 04-17-2024, 05:13 PM
                    3 responses
                    27 views
                    0 likes
                    Last Post NinjaTrader_Gaby  
                    Started by ScottWalsh, 04-16-2024, 04:29 PM
                    7 responses
                    35 views
                    0 likes
                    Last Post NinjaTrader_Gaby  
                    Started by cls71, Today, 04:45 AM
                    0 responses
                    6 views
                    0 likes
                    Last Post cls71
                    by cls71
                     
                    Started by mjairg, 07-20-2023, 11:57 PM
                    3 responses
                    218 views
                    1 like
                    Last Post PaulMohn  
                    Working...
                    X