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 WHICKED, Today, 12:56 PM
                    2 responses
                    15 views
                    0 likes
                    Last Post WHICKED
                    by WHICKED
                     
                    Started by Felix Reichert, Today, 02:12 PM
                    0 responses
                    1 view
                    0 likes
                    Last Post Felix Reichert  
                    Started by Tim-c, Today, 02:10 PM
                    0 responses
                    1 view
                    0 likes
                    Last Post Tim-c
                    by Tim-c
                     
                    Started by cre8able, Today, 01:16 PM
                    2 responses
                    9 views
                    0 likes
                    Last Post cre8able  
                    Started by chbruno, 04-24-2024, 04:10 PM
                    3 responses
                    49 views
                    0 likes
                    Last Post NinjaTrader_Gaby  
                    Working...
                    X