cancel
Showing results for 
Search instead for 
Did you mean: 

determining chart's title via variable

Former Member
0 Kudos

Hi experts,

i have a requirement to display the title of charts automatically. For example when i want to see the amounts regarding calender year 2010 and select it after calling the report the year 2010 must be displayed in the title of the chart. When i select 2011 the tittle must be adjusted automatically. Is it possible to implement something like that?

I thank you all in advance for the help.

Best regards,

Ali

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Ali,

It is possible. Plz. refer a good blog on the same by Andrey Uryukin.

/people/andrey.uryukin/blog/2010/09/10/how-to-read-bex-variable-value-with-javascript-within-wadSAPNetworkWeblogs%2528SAPNetworkWeblogs%2529

--Priya

Former Member
0 Kudos

Hi Priya,

thanks for your helpful reply. The example is for the tray. Unfortunately i am not so good in the javascript. Could you please tell me how i could adjust this coding to access my chart title instead of a tray?

Thank you in advance.

Best Regards,

Ali

Former Member
0 Kudos

Have you use Bex Analyzer?

If yes, you can choose a Bextools for Text Variable, where you can choose a calender year

Former Member
0 Kudos

Hi Ali,

You can follow all steps as mentioned. You will only need to name your Chart a default Title say 'Analysis for Year :', & will need to make foll. changes to the JavaScript code written in the Script webitem:-

-- replace "ZCUST" by your Query Variable Name for Year

-- replace "Report for customer" by the Chart default Title "Analysis for Year :"

Rest shd. work as expected. Plz. try & let me know if any issue.

--Priya

Former Member
0 Kudos

Hi Priya,

thank you for your quick reply. I changed the javascript as shown. But unfortunately it doesn't work yet. I made all the steps. I created a special query just for xml with only one infoobject 0fiscyear restricted with PLXOPYEAR- variable. Then i created a second dataprovider in WAD which refers to this new query for xml and changed my javascript code.

Just one interessting point.I added the chart in a tabstrip which has the same name as chart name "SRH Bildung". If i start the template this title will be concatenated with fiscyear, it means javascript works for the title of tabstrip but not for the title of chart. I thought perhaps it could be the reason why it does not work. I changed the name of tabstrip but it doesn't work yet.

Perhaps you have some other helpful ideas.

Thank you for your help in advance.

Best Regards,

Ali

Answers (0)