on 02-15-2011 1:51 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.