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 algospoke, Yesterday, 06:40 PM
                    2 responses
                    19 views
                    0 likes
                    Last Post algospoke  
                    Started by ghoul, Today, 06:02 PM
                    3 responses
                    14 views
                    0 likes
                    Last Post NinjaTrader_Manfred  
                    Started by jeronymite, 04-12-2024, 04:26 PM
                    3 responses
                    45 views
                    0 likes
                    Last Post jeronymite  
                    Started by Barry Milan, Yesterday, 10:35 PM
                    7 responses
                    20 views
                    0 likes
                    Last Post NinjaTrader_Manfred  
                    Started by AttiM, 02-14-2024, 05:20 PM
                    10 responses
                    181 views
                    0 likes
                    Last Post jeronymite  
                    Working...
                    X