Substring Function in Design Studio

Hello all,
I have a question. Is there any substring like function in Design Studio because I have a string and I need to cut the part of the string on the dashboard to show.
For Example
My String: HELLO
I only want to get "EL" from that string and show that on the dashboard.
Is that possible?
I appreciate your help in advanced. Thanks.

Zahid,
As Tammy mentioned Help document has it all.
You can find it in Help of Design Studio application itself.

Similar Messages

  • How to enable Comment functionality in Design Studio

    Hi Experts,
    How can we enable comment functionality in Design studio? This is important for users:
    a) To enter comments in the application
    b) To see the comments after reopening the application again. This means, it needs to be stored somewhere.
    This application is built on top of a BEx Query.
    Really appreciate your help here!!
    Thanks,
    Jomy

    Hi Jomy - I see your point
    Looking at Figure 7 here Lumira and Design Studio Updates Roadmap from ASUG Annual Conference - Part 2 it is not going to be built in Design Studio
    So my opinion only here -  either you buy CubeServ add-on or you build SDK yourself.  As an accountant I would do cost-benefit - how long (cost) would it take for someone other than CubeServ to do it versus buying from CubeServ.
    Maybe others have ideas?

  • BW RRI /Jump query functionality in Design Studio

    Hi Folks
    Could someone throw light on the following functionality:
    I am using Design Studio 1.2 with BI 4.1 SP1 and BW 7.3 SP9 .
    I have  a BW query which is having jump query in it. I have included it in the Design studio. I have configured Query A .
    But with in the same page/Cross tab i am not able to configure the jump query.
    Is there a standard /customizing way to achieve this functionality? if yes how.
    Thanks in advance for your help..!
    Cheers
    K M R
    ***Even if you have nothing, you can get anything.
    But your attitude & approach should be positive..!****

    Hi Tammy
    Thanks for quick answer.
    Is theer any work around to achieve jumpquery functionality in DS1.2.
    Thanks in advance for your help..!
    Cheers
    K M R
    ***Even if you have nothing, you can get anything.
    But your attitude & approach should be positive..!****

  • Accessing a SAP BW table data to display content in Design Studio Application

    Hi,
    I am working on a Design Studio application that contains a link to all the reports for different business users in an organization. The end user should see the links to only those reports he/ she has access to. This access rights are stored in a SAP BW table. I want to pull that data from SAP BW table to my application so that I can implement a layer of security in my application.
    1) What would be a good idea to get SAP BW table data in a design studio application.(This data is not used to populate my application, but will be used to check access rights for a user who is going to open this application).
    2) What will be a good option for deployment of this application ? On SAP Netweaver platform or on SAP BI Platform

    Hi Michael,
    Let me present my issue in a more clear format,
    I have a web template launch page that was created using BW 3.5. This web template has only one web item and that is 'role menu'. This role menu will display all the available list of web templates for each user as per the access rights of each user. Hence this web template was the only door for my end users to access BEx reports.
    While we were migrating to 7.x we found that there were no equivalent item available in 7x  version. As a workaround, I migrated all the queries and web templates from 3.5 to 7x but I didn't migrate the door. I asked my Basis team to replace the connection parameters for the links present in the door.
    So now all my users still use the 3.x web template but when they click on items in the list, they will be accessing reports that are of 7x version.
    Now my IT is planning to upgrade IE and knowing that bex 3.5 tools are not compatible with BW 7.4. This sounds like the role menu won't work at all with 7.4.
    I started exploring Design Studio to search for an alternative for Role Menu component. I created an application using HTML template in Design Studio. Now I am looking for different approaches to implement the same functionality in Design Studio. Can you please provide some inputs on this scenario.

  • Show Only First N Rows in SAP Design Studio Chart/Table

    Hi,
    Is it possible to show only first N rows of data in SAP Design Studio Charts/Cross Tab ?
    Eg
    Bex Query Output
    Here If I mention First 2 rows, my chart looks like below
    If I mention First 4 rows, my chart looks like below
    Thanks
    Anil

    Hi Mustafa,
    Thanks for your reply.
    Actually our requirement is, we have one Bex Query where we are using Ranking Function.
    We have 15 customers, and we need to know the ranking based on some calculations.
    Whenever we execute the query with different time periods, the ranking of Customers will vary, for example if I execute query for year 2014, customer 1 can be Rank 1, If I execute for year 2013, Customer 7 can be Rank 1.
    From this Query I need to show only Top 5 Customers in Cross Tab/Chart.
    We tried to put condition on CY Ranking in Bex to show only Top 5, but the result was giving some diff customers and also for all Time periods we are getting same Customers In Top 5.
    To overcome this, we thought instead of putting condition on Bex side, we are trying to pick only first 5 rows from Bex Query and show them in Chart/Cross Tab, something like we will map only first 5 rows in Xcelcius.
    We would like to know is there any functionality in Design Studio to show only first 5 rows of data.
    Regards,
    Anil

  • Planning function and planning sequence of Design studio new features!!

    Hi Experts
    Recently I have updated my design studio to 1.3 and happy to see many new updates. Meanwhile i saw some new features add planning function and planning sequence.
    As per my understanding, Using this features we can enter data at run time. My query is here
    Is it like we are entering data at run time and see the changes in current data(chart series)
    Ex: Add discount for product 10% and relevant data(in chart) reduced to 10%
    or
    Is it like integrated planning? Once we enter data in run time and it saves in BW planning cube?
    I am totally confused with this feature.. Can any one help me to get clear understanding on this please !
    Regards,
    Mathivanan M

    Hi,
    maybe these two article can help you:
    #1 Planning in Design Studio 1.3
    #2 Planning in DS 1.3 - Using different script methods for planning
    As i unterstand, it's only possible to write back in BW.
    Best Regards 
    Sebastian

  • Need Information of how to Consume/Execute Planning Function & Planning Sequence in Design Studio

    Dear Colleague,
    We are trying to have a PoC demonstrating BW planning function and Planning sequence in SAP Business Objects Design Studio.
    1. In the process, we have built our own Planning function and Planning sequences in our BW system and they are working as per expectation in the BW system.
    2. We added the Planning function and Planning Sequence on to the Design Studio App.
    But now how to we add these Planning function and Planning sequence on to the Dashboard.
    Is there any container to add these planning objects on to the dashboard.
    Or how to execute or Consume these Planning functions and sequences in Design Studio dashboard.
    And any Document or Information in detail would definitely help a lot.
    Please answer the question underlined.
    Thanks,
    Vijay

    Hi Mustafa,
    Thanks for replying!
    But Since this is an Internal project. We are already using Version 1.3.
    Solving double purpose of evaluating the tool and coming up with the application as well.
    As I said in my previous description, we were able to add Planning Functions and Planning Sequences on to Design Studio using menu options available.
    But not sure of how to consume or execute them in the app. To get the rows of records, change values, Save and Transfer values as we do it with the Planning function with BW backend.
    Thanks,
    Vijay

  • Design Studio 1.3 SDK - Are script contributions for SAPUI5 method functions supported?

    All of the SAPUI5 SDK component examples provided with the Design Studio Samples demonstrate how to expose property getter/setter functions as script contributions.  Indeed, the SDK Developer Guide also just focuses on this.  However, UI5 controls may also include method functions that allow certain actions to be performed on the control.  In this context, I have the following questions:
    1)  Is it possible to expose method functions via script contributions in the contribution.ztl file?  If yes, what is the correct syntax for doing so?  Based on my experimentation so far, it seems like method functions cannot be exposed directly via script contributions;
    2)  If method functions are not supported for script contributions, are there any recommended approaches as a workaround?  One possible approach that comes to mind is as follows:
    i)  Define an invisible "dummy" property of type boolean to correspond with each method function that we want to expose as a script contribution;
    ii)  Define invisible properties to correspond to the parameters required by the method functions;
    iii) In the contributon.ztl code, perform the following tasks:
    (a) Set the invisible parameter property values that correspond to the desired method function;
    (b) Invoke the dummy property getter or setter function by getting or setting the boolean value of the dummy property in the contribution.ztl code;
    iii).  Override the corresponding dummy property getter or setter function in the component.js code with additional logic to read the invisible parameter property values and then call the method function.
    Any feedback would be appreciated.
    Thanks,
    Mustafa.

    Hi Mike,
    Thanks very much for your suggestion.  Your mind-bogglingly creative solutions never cease to amaze me .
    Reviewing the code, yes I did wonder about the use of the Math.random() function.  Then when I subsequently read your explanation about the state saving, the penny dropped as to the issue I was experiencing with the approach I had previously tried (as described in point form in my question), whereby I could not invoke the setter function multiple times from the BIAL script.  So I added a call to the fireDesignStudioPropertiesChanged() function, which has partially solved my issue but the parameter properties are out of sync.
    I'll describe what I've implemented and hopefully you can shed some more light on how to resolve the issue:
    In the contribution.xml file I've defined invisible properties for the method function and it's parameters as follows:
    <component id="ActionLabel"
           title="Action Label"
           icon="res/com.infovizi.prototypes.actionlabel/icon.png"
           handlerType="sapui5">
          <jsInclude>res/com.infovizi.prototypes.actionlabel/js/component.js</jsInclude>
           <cssInclude>res/com.infovizi.prototypes.actionlabel/css/component.css</cssInclude>
           <property id="text" type="String" title="Text" visible="true" />
           <property id="showAlert" type="boolean" title="Show Alert" visible="false" />
           <property id="alertText1" type="String" title="Alert Text 1" visible="false" />
           <property id="alertText2" type="String" title="Alert Text 2" visible="false" />
           <initialization>
                <defaultValue property="SHOWALERT">false</defaultValue>
                <defaultValue property="TEXT">"Hello"</defaultValue>
           </initialization>
      </component>
    In the contribution.ztl file I've defined a script method to invoke a method function for displaying an alert as follows:
    class com.infovizi.prototypes.ActionLabel extends Component {
      /* Displays an alertbox */
      void showAlertBox(/* Text 1 */ String alertMsg1, /* Text 2 */ String alertMsg2) {*
      this.alertText1 = alertMsg1;
      this.alertText2 = alertMsg2;
      this.showAlert = true;
    In the component.js file, to keep things simple I've chosen the UI5 Label control to extend with a custom method function that I want to invoke via the script contribution as follows:
    sap.ui.commons.Label.extend("com.infovizi.prototypes.ActionLabel",{
      metadata : {
         properties : {
          "showAlert" : "boolean",
            "alertText1" : "string",
            "alertText2" : "string"
      initDesignStudio: function(){
      renderer:{},
      // Override ShowAlert setter to perform action
      setShowAlert: function(alertState){
      if(alertState == true) {
      this.displayAlert(this.getAlertText1(),this.getAlertText2());
      // Reset showAlert property value to "false" and call fireDesignStudioPropertiesChanged()
      // to allow setShowAlert function to be invoked multiple times via BIAL script
      this.showAlert = false;
      this.fireDesignStudioPropertiesChanged(["showAlert"]);
      return this;
    // Alert method
      displayAlert: function(alertMsg1, alertMsg2){
      alert("Message: " + alertMsg1 + " " + alertMsg2);
    I then created a DS app with the following script in the click event of a button to invoke the method function in the custom Label control:
    ACTIONLABEL_1.showAlertBox("Hello", "World!");
    After launching the application and clicking the button for the first time, the alert display function is displayed as expected but the parameters have not been updated, even though they are updated in the script contribution function, so the parameters are not displayed, as follows:
    After the alert is dismissed and the DS button is clicked again, this time the parameters are passed correctly as follows:
    So the parameter updates for alertText1 and alertText2 seem to be out of sync for some reason.  I'm sure I'm missing a nuance here.  Any ideas?
    Conceptually, I'm just trying to achieve what Leandro Cardoso has done with the script contribution action function calls in his Notify component.  The only difference is that I'm implementing HandlerType "sapui5" instead of "div".
    Any thoughts about the parameter syncing issue would be appreciated.

  • Design Studio Scripting function "refresh" to reload the BI LaunchPad Browser Window and solve the automatic adjustment

    Hi experts,
    I have created a Design Studio application with GridLayout Components to ensure the automatic adjustment.
    In the local mode everything works fine! If I maximize or minimize the browser window the automatic adjustment of the design studio application works absolutely correct.
    If I execute the same Design Studio Application in SAP BI LaunchPad the automatic window adjustment works only fine if I refresh the Browser window after minimize or maximize.
    Example:
    Mnimized and refreshed Browser window (good):
    Maximzed and not refreshed Browser window (bad):
    To fix this issue, Is there a workaround with a scripting funtion (e.g. ".refresh") to give the user the possibility to reload the browser window by a button or icon?
    By the way, the issue and the Todo "Refresh" is valid in Design- and Runtime!
    Many thanks in advance!
    Best regards,
    Michael

    Hi Michael,
    Isn't this issue fixed in 1.2 SP1?
    In any case if you want to manual refresh you have to redraw the chart, this can be achieved by,
    reloading data source,
    change some selection in the chart,
    or change the data source, (apply filter,swap dimensions etc.)
    Regards,
    Fazith Ali Z.

  • Parameter Value passing issue to Web i report from Design Studio APP

    Hi all,
    I am trying to pass values to 2 parameters in a web I report called DIM1_REPORT and DIM2_REPORT. The values with space for example, Computer Sciences Corporation is getting passed as Computer\Sciences\Corporation Looks like the space is getting replaced with \ and as the values doesn't match the database values, no results are being retrieved. I tried using Convert.urlEncode function as well. But no luck still having same issue. Below is the URL,
    "http://servername:8080/BOE/OpenDocument/opendoc/openDocument.jsp?sIDType=CUID&iDocID=AWD5NloJ4rVKoi2Y8m89GY0"+
    "&lsMDIM1_REPORT=" + GLOBAL_SCRIPTS_1.DIM1_FILTER_SCRIPT() +
    "&lsMDIM2_REPORT=" + GLOBAL_SCRIPTS_1.DIM2_FILTER_SCRIPT()
    Has any one faced this issue and have a solution for this? Appreciate any help on this
    Thanks
    Nithin

    Hi Mustafa,
    Thanks for the response.
    I tried to replace the \ with %20 using the following code
    Convert.replaceAll(GLOBAL_SCRIPTS_1.DIM1_FILTER_SCRIPT(), "\ ", "%20");
    But getting error in the script editor saying
    I think \ is causing this issue. If I use any other character other than \ in search expression its not throwing any error in script editor. Any idea is \ considered as delimiter/break in design studio?
    Any other way to fix this issue in design studio?
    Thanks,
    Nithin

  • How to show only six values in dropdown box in design studio 1.3

    Hi,
    There was an requirement from our client to show only last six months in the drop down, when actually there is almost past 30 months are coming from the database. The data format also looks similar to "2014007", "2014006:..etc. Any idea to achieve this through loop.?
    Thank You,
    Palani

    Hi Karol,
    I like your idea, but i have difficulties to use it
    i have a datasource DS_2 and i just want to show specific Members of my keyfigures.
    When i fill my dropdown with this code it just gets empty and returns an error. Somehow i have to say if i want to show the Key or Text ?
    i also need this infiormation to be able to compare my elements in the if clause ?!
    Can you help me out ?
    Best regards
    Manfred
    DS_2.getMembers("003N81FHQ23D64UTALOPW7MVN",0).forEach(function(element, index) {
    DROPDOWN_2.addItem(index, element);
    /*  if ((element == value1) || (expression2 == value2)) {
       if_statements
      } else {
       else_statements
    EDIT ....
    I've found the way how to access the keys and values ... i have to define an array and then i am able to access the internal keys and Text.
    Just for others searching ....
    var ArrayMem = DS_2.getMembers("003N81FHQ23D64UTALOPW7MVN",0);
    DROPDOWN_2.addItem("#", "No Filter");
    ArrayMem.forEach(function(element, index) {
      if ((element.text == "Anzahl Sätze") || (element.text == "Gepäckgewicht")) {
       DROPDOWN_2.addItem(element.internalKey, element.internalKey + " - " + element.text);
    This SCN article helped me out: http://scn.sap.com/community/businessobjects-design-studio/blog/2014/09/19/learn-about-arrays-in-design-studio-13
    Best regards
    Manfred

  • Round up value in Design Studio

    Hi Experts
    Im trying to round up a value in Design Studio 1.3.
    my displayed value in the browser is: "36'387'202.80"
    i need to format this value in "36 '4"
    please see attachement
    Datasource: HANA Calculation View
    thx for reply,
    Michael

    I am not using the HANA Calc view
    Could you look at this thread Design Studio Source set Scaling and Decimal Place - could you look at setScalingFactor function?

  • Design Studio vs SAPUI5

    This thought has been bothering me and I just want to ask some experts what they think
    I was wondering regarding the difference between creating a Dashboard/Application in Design Studio or direct using SAPUI5. I have create some native application using OData and consuming it in a SAPUI5 application using the MVC. I am current facing a requirement to create dashboard application using Design Studio and I am finding it difficult to create the relation between the both if there is such a thing. What I find really difficult is to not have a fool view of the HTML5 and script. Instead I am required to input varies scripts in different section in order to manage the events. Are there any plan to make DS more like a wysiwyg of the SAPUI5 which has a lot more elements and give direct visibility in an editor to manage properties and events. It just feels harder to use DS even though you can drag and drop elements. With SAPUI5  you just go the public SAPUI5 SDK check an UI element snippet code paste and go to the API and start fixing in the way you want.

    Hi Carlos,
    in the context you describe - access to HANA models in native HANA environment, I am sure you can come quite far also with Native UI5 on top of ODATA. The difference is - in this path you are on your own (which is sometime better, sometimes not so good)...
    I know that there is a functionality of generating HANA Views based on BEx Queries, and this is improved in last SPs of 7.40 NW - nevertheless there will be still some restrictions. And this is the place where the difference starts:
    BEx Query variable handling - here you would need to code some prompt dialog on your self, which is delivered in design studio
    More complex functionality in BEx Queries - I do not know what is the delta, but I know there is some
    Hierarchy handling - is HANA already handling all cases of hierarchies, even then - there are small differences in comparison to BW.
    Visualization - I am not sure if you can get a real cross-tab component (perhaps you do not need it)
    Context Menu - also something you have to make on your own
    more others I do not have in my mind now...
    Basically this is also the question - is the HANA functional scope for your scenarios comparable and acceptable to those which you are running in WAD? For some customers this answer is YES, for some NO. If yes, you can look at other reporting possibilities (eg. plain UI5). If no, I would recommend to go with Design Studio as many functions which are complex to develop are available already in the framework.
    Personally, I am wandering about your WAD scenarios - as very often those are much more complex and bound to BW functionality which is already answering the question above to NO, but perhaps some can be answered to YES.
    In practice, I think a mixed solution is a the key - you can try to move to native HANA as much as possible, this brings value - in terms of the stack clarity and also in terms of performance as there is nothing between HANA and UI (almost).
    Btw, the statements above are as of TODAY - I am sure in few years those will be revised with new HANA releases and improvements in the HANA models.
    this was my private view on this topic.
    Karol

  • Single/Double click in Design Studio Dashboard

    Hi All
    In my design studio dashboard, have enabled a functionality of jump-to from one cross tab to other. When doing a single click on a particular value say network - Jim as shown below it jumps to next table showing the relevant confirmation values. But the same thing when a double click is done instead of showing the relevant confirmation values for network - Jim, it displays all the available confirmation values.
    Single click view:
    Double click view:
    Is there a way to handle this? Like switch off single/double click or any scripting to control this?
    Any suggestions highly appreciated.
    Regards
    Merlin

    Hi Patrick
    If i try the solution suggested by Deepu, on a fresh dashboard it works perfectly fine.
    But the same when i do it on my existing dashboard, it does not gives me the expected results. Not only this many other features have resulted in similar situation . I end up kind of refreshing each and every component, thats a lot of re-work
    Guess the refresh doesnt happen properly in design studio.
    Thanks
    Merlin

  • Design Studio - Display a dummy image when searched photo does not exist

    hello,
    I would like to display an employee photo, which should be searched on the server folder with URL.
    Each photo name in my folder is : "employeeId.png".
    But some employees do not have a photo, and in this case I try to display a dummy photo, which I have in the same folder with employee id 00000000.
    My variables are :
    - URLlink variable is global variable type URL, which gives a path to my folder with employees photos
    - empnb variable is filled with employee id through getSelectedMember on cross table
    - filename variable to search a photo on the server
    - filename0 variable for those employees for which photo does not existe
    I tried to test the existence of an employee photo with getHeigh() method or getImage() method, to check if a photo filename set in Image1 is a real
    one. Cause if a photo does not exist, the Design studio put by default a small black cube inside Image.
    Unfortunatelly these tests are not working .
    My script:
    var filename =  URLlink + empnb + ".png";    // existing employee photo
    var filename0 = URLlink + "00000000" + ".png";  // dummy profile photo
    IMAGE_1.setImage(filename); //Try to put a photo found on the server 
    var height = IMAGE_1.getHeight(); 
    if (height == -1)
    { IMAGE_1.setImage(filename0);   }
    else   {IMAGE_1.setImage(filename);}
    Does anyone have other idea how to test if a photo exist or not in my folder.
    Many thanks!
    Bea

    I do not think it is possible today (at least not via checking of the image size). Such function would require
    * code extension in image component -> boolean IMAGE.exists()
    or
    * could be made by custom image implementation via design studio SDK. This custom image would send a request via Ajax and check response status. in case not existing some dummy images would be placed.
    for both options there are no plans as of today.
    the only option I see today is to generate in the folder "dummy" images for all employes who do not have any real image.

Maybe you are looking for

  • IPhone 2g does not stay unlocked

    I have an iPhone 2G (first iPhone) that was bought in 2007 locked to AT&T. I've recently had it unlocked by AT&T through iTunes. The problem is, it doesn't stay unlocked. 1. With the iPhone unlocked, I was using a Meteor sim. Then I changed to an O2

  • Urgent-how to run 'alter system kill session 'sid, serial#' in form 6i ?

    I want to write a procedure in Form 6i so that user can kill the session by herself. I know kill session sql is 'alter system kill session 'sid, serial#'', however, I fould that I can only run it it sql plus screen, how can I run it in Form or in Sto

  • ORACLE RAC - Clusterware 11Gr1  -

    Hi, We are starting a fresh installation of an Oracle RAC database on: IBM AIX 5.3 Processor Type: PowerPC_POWER7 Processor Implementation Mode: POWER 6 Processor Version: PV_6_Compat Number Of Processors: 2 Processor Clock Speed: 3108 MHz CPU Type:

  • Objects in java Swing Jframe

    Can anybody tell me how do I get the list of objects in Jframe. Thnaks in adavance Dinesh

  • APExpress and Brother HL 2040

    Okay-- at the beginning of the school year my Brother HL 2040 laser printer (USB) and APE were both working great. However, a few months ago (I've procrastinated fixing this problem for a while) the 2040 suddenly stopped working with APE (still works