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 sgordet, Today, 11:48 AM
                    0 responses
                    1 view
                    0 likes
                    Last Post sgordet
                    by sgordet
                     
                    Started by Trader146, Today, 11:41 AM
                    0 responses
                    2 views
                    0 likes
                    Last Post Trader146  
                    Started by jpapa, 04-23-2024, 07:22 AM
                    2 responses
                    16 views
                    0 likes
                    Last Post rene69851  
                    Started by funk10101, Today, 11:35 AM
                    0 responses
                    1 view
                    0 likes
                    Last Post funk10101  
                    Started by samish18, Today, 11:26 AM
                    0 responses
                    1 view
                    0 likes
                    Last Post samish18  
                    Working...
                    X