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 Belfortbucks, Today, 09:29 PM
                    0 responses
                    6 views
                    0 likes
                    Last Post Belfortbucks  
                    Started by zstheorist, Today, 07:52 PM
                    0 responses
                    7 views
                    0 likes
                    Last Post zstheorist  
                    Started by pmachiraju, 11-01-2023, 04:46 AM
                    8 responses
                    151 views
                    0 likes
                    Last Post rehmans
                    by rehmans
                     
                    Started by mattbsea, Today, 05:44 PM
                    0 responses
                    6 views
                    0 likes
                    Last Post mattbsea  
                    Started by RideMe, 04-07-2024, 04:54 PM
                    6 responses
                    33 views
                    0 likes
                    Last Post RideMe
                    by RideMe
                     
                    Working...
                    X