How to enable a hyperlink in the form text control?









up vote
0
down vote

favorite












I have a requirement to accept an URL on a text box and enable hyperlink on the control. Grid columns are allowing to enter a value and mark the column as hyperlink where it is not allowing to do on an editable text control. Is there a way to open the URL by clicking on the text control?










share|improve this question

























    up vote
    0
    down vote

    favorite












    I have a requirement to accept an URL on a text box and enable hyperlink on the control. Grid columns are allowing to enter a value and mark the column as hyperlink where it is not allowing to do on an editable text control. Is there a way to open the URL by clicking on the text control?










    share|improve this question























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I have a requirement to accept an URL on a text box and enable hyperlink on the control. Grid columns are allowing to enter a value and mark the column as hyperlink where it is not allowing to do on an editable text control. Is there a way to open the URL by clicking on the text control?










      share|improve this question













      I have a requirement to accept an URL on a text box and enable hyperlink on the control. Grid columns are allowing to enter a value and mark the column as hyperlink where it is not allowing to do on an editable text control. Is there a way to open the URL by clicking on the text control?







      acumatica






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 10 at 5:48









      Muralidharan Ramakrishnan

      260110




      260110






















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          1
          down vote













          I have examined the Web entry control in Business account aspx source code and used PXLinkEdit Control for accepting the URL and allow to open the page. Even though it is not hyperlinking the text, it allows opening the URL through an action button, which is part of the control



          enter image description here



          <px:PXLinkEdit ID="edURL" runat="server" DataField="UsrURL" CommitChanges="True" />





          share|improve this answer



























            up vote
            0
            down vote













            Similarly, you could try a PXButton with optional ImageKey and navigate to your URL using Redirect4: (or Redirect0: if the URL is in same domain):



             public PXAction<DAC> ViewOnWeb;

            [PXUIField(DisplayName = "View On Web",
            MapEnableRights = PXCacheRights.Select,
            MapViewRights = PXCacheRights.Select)]
            [PXButton(ImageKey = PX.Web.UI.Sprite.Main.World)]
            protected virtual IEnumerable viewOnWeb;(PXAdapter adapter)

            if (this.DAC.Current != null)

            throw new PXException("Redirect4:" +
            string.Format("http://my.site.com/search?Id=0", DAC.code));

            return adapter.Get();






            share|improve this answer




















              Your Answer






              StackExchange.ifUsing("editor", function ()
              StackExchange.using("externalEditor", function ()
              StackExchange.using("snippets", function ()
              StackExchange.snippets.init();
              );
              );
              , "code-snippets");

              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "1"
              ;
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function()
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled)
              StackExchange.using("snippets", function()
              createEditor();
              );

              else
              createEditor();

              );

              function createEditor()
              StackExchange.prepareEditor(
              heartbeatType: 'answer',
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader:
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              ,
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );













              draft saved

              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53236341%2fhow-to-enable-a-hyperlink-in-the-form-text-control%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              1
              down vote













              I have examined the Web entry control in Business account aspx source code and used PXLinkEdit Control for accepting the URL and allow to open the page. Even though it is not hyperlinking the text, it allows opening the URL through an action button, which is part of the control



              enter image description here



              <px:PXLinkEdit ID="edURL" runat="server" DataField="UsrURL" CommitChanges="True" />





              share|improve this answer
























                up vote
                1
                down vote













                I have examined the Web entry control in Business account aspx source code and used PXLinkEdit Control for accepting the URL and allow to open the page. Even though it is not hyperlinking the text, it allows opening the URL through an action button, which is part of the control



                enter image description here



                <px:PXLinkEdit ID="edURL" runat="server" DataField="UsrURL" CommitChanges="True" />





                share|improve this answer






















                  up vote
                  1
                  down vote










                  up vote
                  1
                  down vote









                  I have examined the Web entry control in Business account aspx source code and used PXLinkEdit Control for accepting the URL and allow to open the page. Even though it is not hyperlinking the text, it allows opening the URL through an action button, which is part of the control



                  enter image description here



                  <px:PXLinkEdit ID="edURL" runat="server" DataField="UsrURL" CommitChanges="True" />





                  share|improve this answer












                  I have examined the Web entry control in Business account aspx source code and used PXLinkEdit Control for accepting the URL and allow to open the page. Even though it is not hyperlinking the text, it allows opening the URL through an action button, which is part of the control



                  enter image description here



                  <px:PXLinkEdit ID="edURL" runat="server" DataField="UsrURL" CommitChanges="True" />






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 10 at 6:13









                  Muralidharan Ramakrishnan

                  260110




                  260110






















                      up vote
                      0
                      down vote













                      Similarly, you could try a PXButton with optional ImageKey and navigate to your URL using Redirect4: (or Redirect0: if the URL is in same domain):



                       public PXAction<DAC> ViewOnWeb;

                      [PXUIField(DisplayName = "View On Web",
                      MapEnableRights = PXCacheRights.Select,
                      MapViewRights = PXCacheRights.Select)]
                      [PXButton(ImageKey = PX.Web.UI.Sprite.Main.World)]
                      protected virtual IEnumerable viewOnWeb;(PXAdapter adapter)

                      if (this.DAC.Current != null)

                      throw new PXException("Redirect4:" +
                      string.Format("http://my.site.com/search?Id=0", DAC.code));

                      return adapter.Get();






                      share|improve this answer
























                        up vote
                        0
                        down vote













                        Similarly, you could try a PXButton with optional ImageKey and navigate to your URL using Redirect4: (or Redirect0: if the URL is in same domain):



                         public PXAction<DAC> ViewOnWeb;

                        [PXUIField(DisplayName = "View On Web",
                        MapEnableRights = PXCacheRights.Select,
                        MapViewRights = PXCacheRights.Select)]
                        [PXButton(ImageKey = PX.Web.UI.Sprite.Main.World)]
                        protected virtual IEnumerable viewOnWeb;(PXAdapter adapter)

                        if (this.DAC.Current != null)

                        throw new PXException("Redirect4:" +
                        string.Format("http://my.site.com/search?Id=0", DAC.code));

                        return adapter.Get();






                        share|improve this answer






















                          up vote
                          0
                          down vote










                          up vote
                          0
                          down vote









                          Similarly, you could try a PXButton with optional ImageKey and navigate to your URL using Redirect4: (or Redirect0: if the URL is in same domain):



                           public PXAction<DAC> ViewOnWeb;

                          [PXUIField(DisplayName = "View On Web",
                          MapEnableRights = PXCacheRights.Select,
                          MapViewRights = PXCacheRights.Select)]
                          [PXButton(ImageKey = PX.Web.UI.Sprite.Main.World)]
                          protected virtual IEnumerable viewOnWeb;(PXAdapter adapter)

                          if (this.DAC.Current != null)

                          throw new PXException("Redirect4:" +
                          string.Format("http://my.site.com/search?Id=0", DAC.code));

                          return adapter.Get();






                          share|improve this answer












                          Similarly, you could try a PXButton with optional ImageKey and navigate to your URL using Redirect4: (or Redirect0: if the URL is in same domain):



                           public PXAction<DAC> ViewOnWeb;

                          [PXUIField(DisplayName = "View On Web",
                          MapEnableRights = PXCacheRights.Select,
                          MapViewRights = PXCacheRights.Select)]
                          [PXButton(ImageKey = PX.Web.UI.Sprite.Main.World)]
                          protected virtual IEnumerable viewOnWeb;(PXAdapter adapter)

                          if (this.DAC.Current != null)

                          throw new PXException("Redirect4:" +
                          string.Format("http://my.site.com/search?Id=0", DAC.code));

                          return adapter.Get();







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Nov 11 at 11:44









                          FarmerJohn

                          1205




                          1205



























                              draft saved

                              draft discarded
















































                              Thanks for contributing an answer to Stack Overflow!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid


                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.

                              To learn more, see our tips on writing great answers.





                              Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                              Please pay close attention to the following guidance:


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid


                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.

                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53236341%2fhow-to-enable-a-hyperlink-in-the-form-text-control%23new-answer', 'question_page');

                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Use pre created SQLite database for Android project in kotlin

                              Darth Vader #20

                              Ondo