Text Variable in Tray Title

HI BI experts,
we recently migrated many WAD from BW 3.5 to BI 7.0.
In BW 3.5 We had (in automatic) every Web Item with the Query (Dataprovider) title.
In BI 7.0 if we want the title over every Web Item, we have to manage the Tray; i can write the text manually in the Tray Settings but, unfortunately, in some Web Item, we have a text variable (a text variable is in the title of the query developed with the Query Designer).
My question is: How can i reproduce the right title of the query with the value of the text variable?
I'm not expert in Javascript, if the solution is in the javascript please give me an example of coding.
This is the xhtml code of a Web Item where "TXTORDI02" is the name of the text variable
                   <tr >
                        <td valign="top" colspan="2" >
                            <bi:CHART_ITEM name="CHART_1" designheight="325" designwidth="600" >
                                <bi:WIDTH value="600" />
                                <bi:HEIGHT value="325" />
                                <bi:WITH_TRAY value="X" type="CHOICE" >
                                    <bi:TRAY_SETTINGS type="COMPOSITE" >
                                        <bi:CAPTION value="Valori EV Costi x Destinazione(Periodo) -&TXORDI02&" />
                                        <bi:CAPTION_VISIBLE value="X" />
                                        <bi:STYLE value="PLAIN" />
                                        <bi:UPDATE_TYPE value="CLIENT" />
                                    </bi:TRAY_SETTINGS>
                                </bi:WITH_TRAY>
                                <bi:CHART_CUSTOMIZING value="biLargeData:99ZXG4E32B0MJ9FP1ISDPVW1C" />
                                <bi:CHART_TYPE value="COLUMNS" />
                                <bi:LEGEND_TYPE value="LEGEND_POSITION" />
                                <bi:DATA_PROVIDER_REF value="DATAPROVIDER_1" />
                                <bi:LINKED_DATA_PROVIDER_REF_LIST type="ORDEREDLIST" >
                                    <bi:LINKED_DATA_PROVIDER_REF value="DATAPROVIDER_1" index="1" />
                                </bi:LINKED_DATA_PROVIDER_REF_LIST>
                                <bi:OVERRIDE_AXIS_DESC type="CHOICE" value="" />
                                <bi:OVERRIDE_AXIS_LABEL type="CHOICE" value="" />
                            </bi:CHART_ITEM>
                        </td>
                    </tr>
Thanks in advance.
Fabrizio Modesti

Hi Fabrizio,
you could place an infofield item above the analysis item and refer to the Dataprovider with one element: information type = "generic text" and the value of the generic text element "QUERY_DESCRIPTION". Use the same item width as the analysis item.
Then the Query description is generic.
If you like you could use a container item with tray which includes these 2 elements.
<bi:INFO_FIELD_ITEM name="INFO_FIELD_ITEM_1" designheight="300" designwidth="800" >
   <bi:WIDTH value="800" />
   <bi:DATA_PROVIDER_REF value="DP_1" />
   <bi:INFORMATION_ELEMENT_LIST type="ORDEREDLIST" >
     <bi:INFORMATION_TYPE type="CHOICE" index="1" value="GENERIC_TEXT_ELEMENT" >
       <bi:GENERIC_TEXT_ELEMENT value="QUERY_DESCRIPTION" />
     </bi:INFORMATION_TYPE>
   </bi:INFORMATION_ELEMENT_LIST>
</bi:INFO_FIELD_ITEM>
Instead the Infofield item you could take a text item with the generic text:
<bi:TEXT_ITEM name="TEXT_ITEM_1" designheight="70" designwidth="400" >
    <bi:TEXT_BINDING type="CHOICE" value="GENERIC_TEXT_BINDING" >
        <bi:GENERIC_TEXT_BINDING type="COMPOSITE" >
            <bi:DATA_PROVIDER_REF value="DP_1" />
            <bi:GENERIC_TEXT_ELEMENT value="QUERY_DESCRIPTION" />
        </bi:GENERIC_TEXT_BINDING>
    </bi:TEXT_BINDING>
</bi:TEXT_ITEM>
best regards
ARNE

Similar Messages

  • Text Variable for Report Title

    Hi All,
    My requirement is to keep a dynamic text as current fiscal period in the Title of the report.
    I have created a Customer exit variable and the value is getting populated. But the user does'nt wanna see the Key (Ex 2007004 ), he want to see the text as
    Apr 2007.
    If i am using a replacement path variable, then i can say replace with text. But as the text variable need to be in the report title, i have choosen the cust exit which will give only the key not the text.
    Can anyone suggest me how to solve it.
    Thanks In Advance
    Ram

    Hi,
    check the below thread.
    0CALMONTH values need to display in Texts
    Regards,
    Siva.

  • Text Variables in Query Title

    I have a requirement in BI to have the Calenday Day/Month display in the Title of my Query.  I know how to do this with Calendar Year and Calendar Year/Month, using TEXT VARIABLES.  However, I was wondering if this was possible using Calenday Day.  And if so, are there any pre-requisites?
    The problem that I have come across is that when I create a new text variable and reference Calenday Year (after choosing replacement path), when I search for a  Calendar Day Variable to use, I don't see them displaying in my choices.  Any help, would be appreciated.

    Hi Maximina,
    if the element is not in your variable list than please close query designer and than open it again.
    Text variables on calendar day works as other text variables.
    If you still cant see it just enter it "directly" in the description field.
    If the name of your variable is "ZDAYTEXT" than write &ZDAYTEXT& in the description.
    Dont use the F4 help. This must work.
    Regards,
    Adem

  • How to Get User entered value in a text variable

    Hi,
    I have made a text variable to show the user entered value in the column header.
    The user enteres value in a formula variable ABC whose default value is say '30'.
    I am using customer exit to capture this value in the text variable. The code is as follows
    IF i_vnam EQ 'txtvar'.
    if i_step = 2.
    LOOP AT i_t_var_range INTO loc_var_range
    WHERE vnam = 'ABC'.
    CLEAR l_s_range.
    l_s_range-low = loc_var_range-low.
    l_s_range-opt = 'EQ'.
    l_s_range-sign = 'I'.
    APPEND l_s_range TO e_t_range.
    EXIT.
    ENDLOOP.
    endif.
    endif.
    Now when I am executing the query I am getting the default value in the column header i,e, 30. But when the user changes this default value to something else while executing the query, I simply get blank in the column. The changed value is not getting captured in the text variable.
    Thanks

    Hi,
    Insted of  going for exit,
    just create a Text variable proceesing typr Default/ Manual Entry and set the default value as u wish,
    use it in the KF header; dont use the same Text Variable for Query Title.
    Now i tried this for you and it is working fine.
    Regards
    ReddY A

  • Using currency conversion and text variable at the same time

    Hi all,
    In a 3.5 bex query, i am applying currency conversion on a key figure with a variable of 0currency.
    as i know, to be able to apply currency conversion, variable of currency should not be in Free characteristics or in Filter.
    it has to be selected only on the key figure.
    but now, i want to use text variable for selected currency (with type replacement path). But as i know, to be able to use text variable, variable of currency has to be
    in Free characteristics or in Filter.
    Can you please advise, how to both use currency conversion and text variable on currency?
    Thanks in advance.
    Sancho

    Sancho,
    I'm not 100% sure about this, but I'm thinking that if you are pulling the text variable from a selection in a structure, you should not need it in the free characteristic or filter. Try creating a structure, placing the currency in it as a selection, and creating a text variable as the title for the selection that is based on the currency. This may help.
    Cheers,
    Rusty

  • Using Standard Text Variables for FYPERIOD in Report Title ?

    Hi,
    We have a requirement where the user input the variable 0fiscper to the query (001.2010). How to get the text value of that variable in the query description in the bex query ?
    For example user input, 008.2010. We need to get "Aug 2010 Sales values " where Sales values will be the report text. I want to get Aug (month) and year (2010) before the report title. I have searched in google and sdn and could not find any link, but found a doc for the column header text using the same variable. I have tried the same procedure and its just display the zvariable name and Sales value's instead of the label. Please advise.
    Thanks
    DR

    You can create a Text variable with replacement path of Fiscper as reference char. Select Key in details tab of replacing variable.
    If you are just getting technical name, then it is understood that it is not getting replaced.

  • How to hide Text Variable in the Query title

    Hi guys,
    here again in a very easy pratical issue.
    I need to insert a text variable in a report title.
    The variable is updated with an exit and the text is get once the query is executed. This works fine.
    My problem is that in report selection (so opening the query and between queries available for an Infoprovider) I see the tech variable name of the query. Do you know if there is a method to hide the variable or if it is possible to valorize it when the report title in the report selection is displayed?
    Thanks in advance
    Bye!

    Hi, thanks for your answer.
    Also SAP marks this as a limitation.
    Bye!

  • Used of Sap text variable with replacement path in Bo designer

    Dear experts,
    I created a univers based on a SAp BW query. In this query I used a text variable in order to get dynamic header columns.
    The text variable is done by using "replacement path" that is the text is derived automatically from the user input triggered by a sap bw variable.
    example :
    the query contains a restricted key figure which shows net values for a selected year based on variable PYEAR.
    The name of this restricted keyfigure is &ZYEAR& where ZYEAR is the text variable with replacement path from the variable PYEAR.
    When generated the univers based on this query I get component &YEAR&.
    When I use this unvers in WebI my result containts header with &YEAR& althougth I selected for example the year 2006.
    According to several how to and white papers on SDN , it seems that text variables with replacement path are supported. So I am disapointed by this result.
    Can you give me advise to get a rigth result ?
    thanks a lot
    Olivier Doubroff

    Hi Rishit,
    I am trying to achieve the same as you, but it seems like text variables in restricted key figures do not work. I am using BO XI3.1 SP3 and SAP BW 7.01 SP6.
    A work-around for me has been to use the "user response" function in webi to create a webi variable that holds the dynamic text title. If the user inputs Jan 2010, I change the input to a date using the "user response" and "ToDate" functions in the webi variable editor. After changing the input to a date I use the RelativeDate to extract 1 month (e.g. 25 days) from the user input. Then I have both Jan 2010 and Dec 2010 as webi variables to use as headers for my restricted key figures.
    The formulas can easily become a little long, but by tweaking the user response string, you should be able to get dynamic headings by using webi functionality. But be aware that you need one webi variable for each dynamic heading if you use this method.
    Let me know if it works or if I can help more:-)
    Best regards,
    Morten

  • Using variables in the title of the graph

    Hi Gurus,
    I would like to use - for example a presentation- variable in the title of a graph.
    I assign a value for that variable in dashboard prompt.
    Does anybody know the syntax of using variable in the title of a graph
    (Not in a Title view!)
    Thanks in advance .
    Regards
    Laszlo

    You can reference presentation variables in the following areas :
    Title Views
    Narrative Views
    Column Filters
    Column Formulas
    Conditional Formatting conditions
    Chart scale markers.
    Gauge range settings.
    Static text.
    Direct Database Requests
    Dashboard prompts
    iBot Headlines and text

  • Need Calendar Year  as a Variable in the Title of a Table using WAD 3.5

    I am using Web Application Designer 3.5 for the first time.
    I am modifying a template that has the following table object in it:
    </object><object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="TABLE_4"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_GRID"/>
             <param name="DATA_PROVIDER" value="DATAPROVIDER_5"/>
             <param name="CAPTION" value="Employee Information"/>
             <param name="WIDTH" value="966"/>
             ITEM:            TABLE_4
    </object></P>
    The Caption of the table is currently set to "Employee Information".  I need the Caption of the table to say "2007 Employee Information" where the year is the previous year.  In other words, if the web application is executed in 2008, the title would say "2007 Employee Information".  If the web application is executed in 2009, the tilte would say "2008 Employee Information".
    I am very new to BW and WAD so a detailed explanation would be greatly appreciated.

    Goto the Query Description and click on the Text variable icon.
    Create a text variable of processing type as customer exit which populates the previous year value.
    Use this text variabkle along with the Query Description. So your description will look something like &TXT_VAR& EMPLOYEE INFORMATION
    Attach this query as dataprovider to the table item in WAD and you can see the table caption as the previous value followed by Employee Information.
    Hope this helps.

  • How can I apply a GREP style to a text variable?

    Hello everybody,
    I have a question concerning GREP styles inside Paragraph styles.
    1. I've created a text variable to generate a recurring title on the upper side of the page based on the main title paragraph style;
    2. The recurring title is in Adobe Garamond Small Caps, all letters in lower case, and it is formatted with a paragraph style sheet in the master page;
    3. I want to create a GREP style for the recurring title, according to which every time that in the recurring title appear an apostrophe or the double quotes, they are automatically lowered 2pt on the baseline
    (I already created the character style sheet that lowers letters of 2pt).
    What I need is the correct GREP formula to automatically apply the character style sheet to apostrophes and double quotes, in the line of text generated by the text variable...
    Thanks for your  help
    p.

    Hi,
    As I said, using Power Headers is the best way to do it.
    As Power Headers treats the header as "live text", you can use a simple grep style inserted in the header para style:
    … to obtain:
    For the sample, I use a char style named "-2pts" with Shift -5 pts and Green color to show you the place of ' and ".
    Don't forget that, even Power Headers treats the header as "live text", you only have to update Power Headers to make an update of the headers! 
    Even I use in another cases Tomaxxi's [JS] and it's a good way to treat the question, Jean-Claude Tremblay's solution is less interesting because the variable used is converted in text. If the variable text content changes, it's more complicated to manage the update!

  • Text Variable not working correctly

    In CS3 I could create a TEMPLATE (.indt) with the "creation date" text variable in it and when I opened it it would have the CURRENT DATE (the date the new file was generated from the template) . In CS4 it opens with the date the TEMPLATE was MADE and not the current date (the day the new file was generated). I need the template to open with the current date (the day the template was opened). I tried using the "modification date" variable which works the FIRST time but if I open it the next day the date changes. I need the date to remain the same as the creation date. Does this make sense? Why did Adobe change the behavior of this? Please help.
    -John Streeter

    Hi Rakesh,
    Just curious what is the purpose of creating a hidden column as suggested? Anyway, I have created it but nothing changes.
    Allow me to clarify my situation again.
    I have three columns:
    1. Actual This Year
    Type: Selection
    2. Actual Last Year
    Type: Selection
    3. % of Actual This Year / Actual Last Year
    Type: Formula
    Definition: (Actual This Year) %A (Actual Last Year)
    All columns use &0T_FYEAR& as text replacement variable. As such, all title would have year text.
    The first two columns have been restricted with Fiscal Year variable, 0P_FYEAR.
    1. Actual This Year
    0P_FYEAR
    2. Actual Last Year
    0P_FYEAR - 1
    Upon executing the query, I got the first two columns displaying their titles right, but the third column does not.
    For example, let's assume I entered 2008 for 0P_FYEAR variable, the columns would display the following titles:
    1. 2008
    2. 2007
    3. &0T_FYEAR&
    I need the third column to display current fiscal year i.e. 2008 but it does not.
    Appreciate your help!

  • Using Text variables in Formula

    Hi all,
    I wanted to know if there is a known problem with using a text variable in a formula's title???
    Every time I try to use the text var. in formula with the same technique i do in the selction,  i recieve the message :
    'No Valye found for text variable zzz in "&zzz&" .'
    Anyone have a clue?
    I promise to return and reward the answers
    Yaniv.

    Hi,
      Pls give the properties of the variable you have used.
    It should of user entry variable right?

  • How to make a text variable (running header - character) resize a text frame?

    I have successfully been able to get a metadata text variable to auto-resize a text frame, but when I change the text variable to a running header-character/paragraph variable, the text frame does not resize - in fact it gets smaller and squashes the text.
    Surely if Indesign can handle one kind of variable it should handle another??
    Please help!

    Thanks all.
    Will- I tried adding another character to the text box but this made no difference.
    Eugene- I'm trying to avoid the purchase of any 3rd party plugins due to budget constraints.
    I realised that all I needed to do was use a wide paragraph rule to emulate a box behind the text, and make the text box long enough to hold all possible variables.
    One other issue has now cropped up, the running header (character) only grabs the text up to the first return, but I need it to grab all text formatted with the Character Style (2-3 lines max).
    I require a forced line break in the title (where the header is being pulled from) as it has a paragraph rule style attached, requiring a full return for each line of the title.
    Any ideas?

  • Text variables with multiple lines

    Like in my other question: we typeset a lot of juridical books.
    We use text variables in the header for showing the current chapter and for example current author of that chapter.
    So we let the paragraph style of the chapter show in the header.
    When the title is longer then 2 lines in the header, Indesign pushes everything on 1 line. It becomes unreadable.
    We have a solution by putting 2 character style variables underneath each other on the master page or just manually make a new master with the good title on 2 or more lines.
    I have to ask Adobe to look to this 'issue', is this the right place?

    No this isn't the right place - this is a user to user forum -
    You can add your request here https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    What I do is - setup a nested style for
    Runhead line 1 up to 50 characters 
    Runhead line 2 up to end nested style
    Of course you need to have 2 running head styles based on Character Styles
    And insert those into the master page
    Or this will save you tonnes of work
    http://in-tools.com/products/plugins/power-headers/

Maybe you are looking for

  • Left Align for the input text in ADF

    Hi, When I drag and drop the data control in my jsp page, Automatically all the fields are aligned at the center of the page. But I want to align the input text fields to the left of the page. I have only valign which will give me top, bottom and cen

  • Delete Record Automatically deleting

    I have been trying to see if anyone has had this same issue with no real luck. I was hoping someone could give me a quick hand. I am created a delete record page as you would usually do. It is supposed to populate like any other page first so that yi

  • Get attached error when access http:/ host : port /pls/ DAD

    500 Internal Server Error java.lang.NoClassDefFoundError: oracle/webdb/cache/jni/Cache      at oracle.webdb.cache.CacheFactory.init(Unknown Source)      at oracle.webdb.page.ContentManager.init(Unknown Source)      at oracle.webdb.page.ParallelServle

  • My Windows 8 is asking for mediaaccessibility.dll file.

    I have installed and repaired the latest version of iTunes 5 times now. But I cannot launch it without an error message that the mediaaccessibility.dll file is missing. I get this error message: Error 7 (windows error 126)

  • How to batch import aiff to loops browser

    Sorry if this is somewhat novice question.  I have recently downloaded a pack of aiff loops and sounds that are supposed to work in Logic  Pro 9. Can someone direct me to the best method to batch convert these aiff files to work properly.  I would li