string manipulation functions

  • Klaus79
        4 years ago #18110

        If javascript is not supported in business objects how can I manipulate e.g. strings (-> substrings, etc.)?

         

        Kahn
            Has successfully completed the online course Introduction
            Has successfully completed the online course Intermediate (200)
            Has successfully completed the online course Advanced (300)
          4 years ago #18123
          Up
          1
          Down
          ::

          You cannot add Library to Server-Side Business Objects. We have provided the loadash library in Hotfix 4.5#188. So this should hopefully help you.

          Please use: “MyString”.substring(i,j)

           

          Klaus79
              4 years ago #18126
              Up
              1
              Down
              ::

              is hotfix 188 already available?

              jonas.rausch
                  Has successfully completed the online course Introduction
                  Has successfully completed the online course Intermediate (200)
                  Has successfully completed the online course Advanced (300)
                4 years ago #18132
                Up
                1
                Down
                ::

                Yes, you have to ask your server admin to install it

                Kahn
                    Has successfully completed the online course Introduction
                    Has successfully completed the online course Intermediate (200)
                    Has successfully completed the online course Advanced (300)
                  4 years ago #18111
                  Up
                  0
                  Down
                  ::

                  Do you speak about Client-Side or Server-Side business objects? If it’s the latter then this is not possible, if it it’s the former, then please use a Server-Side Business Object to perform your String manipulation. And if JavaScript is not supported in your browser then your App will probably not work at all.

                   

                  Please note: Server-Side Business objects support only ECMA Script 5. But String manipulation is possible.

                  Klaus79
                      4 years ago #18122
                      Up
                      0
                      Down
                      ::

                      Server-Side.

                      Would it be possible to add external js library lodash? What would be the coding for inluding it? addScript(‘fabric.js’, ‘fabric’); where do I get zip file?

                      String.protoype.substr(i,j) -> I get error message ” “Unexpected exception: TypeError: Cannot read property \”prototype\” from undefined”,”

                      Kahn
                          Has successfully completed the online course Introduction
                          Has successfully completed the online course Intermediate (200)
                          Has successfully completed the online course Advanced (300)
                        4 years ago #18130
                        Up
                        0
                        Down
                        ::

                        Yes it is 🙂

                        Klaus79
                            4 years ago #18131
                            Up
                            0
                            Down
                            ::

                            so could it be installed to my dev instance?

                          Viewing 8 posts - 1 through 8 (of 8 total)

                          You must be logged in to reply to this topic.