|
Re: birt report java script problem in chrome and firefox [message #803684 is a reply to message #802813] |
Tue, 21 February 2012 16:57 |
|
Can you try the attached?
Jason
On 2/20/2012 8:44 AM, rahul rahuldeshpande89@gmail.com wrote:
> I have downloaded an example of collapse/expand table rows using java script in birt from devshare . It is attached to this post . But this example is not working in mozilla firefox and chrome its showing error
>
> 'document.getElementById(btnstr) is null' in mozilla firefox.
> 'uncaught TypeError: Cannot set property 'value' of null' in chrome
>
> although it works fine in IE and in eclipse IDE birt viewer.
>
> I want to use this functionality in my report also
>
> Please help
>
> Thanks
> Rahul Deshpande
|
|
|
Re: birt report java script problem in chrome and firefox [message #803688 is a reply to message #802813] |
Tue, 21 February 2012 16:57 |
|
Can you try the attached?
Jason
On 2/20/2012 8:44 AM, rahul rahuldeshpande89@gmail.com wrote:
> I have downloaded an example of collapse/expand table rows using java script in birt from devshare . It is attached to this post . But this example is not working in mozilla firefox and chrome its showing error
>
> 'document.getElementById(btnstr) is null' in mozilla firefox.
> 'uncaught TypeError: Cannot set property 'value' of null' in chrome
>
> although it works fine in IE and in eclipse IDE birt viewer.
>
> I want to use this functionality in my report also
>
> Please help
>
> Thanks
> Rahul Deshpande
|
|
|
Re: birt report java script problem in chrome and firefox [message #803692 is a reply to message #802813] |
Tue, 21 February 2012 16:57 |
|
Can you try the attached?
Jason
On 2/20/2012 8:44 AM, rahul rahuldeshpande89@gmail.com wrote:
> I have downloaded an example of collapse/expand table rows using java script in birt from devshare . It is attached to this post . But this example is not working in mozilla firefox and chrome its showing error
>
> 'document.getElementById(btnstr) is null' in mozilla firefox.
> 'uncaught TypeError: Cannot set property 'value' of null' in chrome
>
> although it works fine in IE and in eclipse IDE birt viewer.
>
> I want to use this functionality in my report also
>
> Please help
>
> Thanks
> Rahul Deshpande
|
|
|
|
|
Re: birt report java script problem in chrome and firefox [message #804402 is a reply to message #804302] |
Wed, 22 February 2012 15:28 |
|
I believe the issue was that rows where named but did not have an id:
<INPUT Type="BUTTON"
id=<VALUE-OF>"mybutton"+row["ORDERNUMBER"]</VALUE-OF>
name=<VALUE-OF>"mybutton"+row["ORDERNUMBER"]</VALUE-OF> Value="-"
onClick='hidetable( this.form, <VALUE-OF>row["ORDERNUMBER"]</VALUE-OF>,
<VALUE-OF>row["Aggregation"]</VALUE-OF> )'></INPUT>
<VALUE-OF>row["ORDERNUMBER"]</VALUE-OF>
I added the id= field to the above HTML.
Jason
On 2/22/2012 7:58 AM, rahul rahuldeshpande89@gmail.com wrote:
> also please explain where did you made changes?
>
> Rahul D.
|
|
|
|
|
|
Re: birt report java script problem in chrome and firefox [message #815526 is a reply to message #815023] |
Wed, 07 March 2012 19:25 |
|
Ok I believe your issue is that your are using the run mapping instead
of frameset. You are using the script tag to hide a table before it is
actually making it to the browser:
<INPUT Type="BUTTON" name=<VALUE-OF>"mybutton"+row["parent"]</VALUE-OF>
id= <VALUE-OF>"mybutton"+row["parent"]</VALUE-OF> Value="-"
onClick="hidetable(this.form,
'<VALUE-OF>row["parent"]</VALUE-OF>','<VALUE-OF>row["Aggregation_2"]</VALUE-OF>');"></INPUT>
<VALUE-OF>row["Parentname"]</VALUE-OF> :
<VALUE-OF>row["parent_role"]</VALUE-OF>
<script>
hidetable( this.form, '<VALUE-OF>row["parent"]</VALUE-OF>',
'<VALUE-OF>row["Aggregation_2"]</VALUE-OF>' );
</script>
Remove this:
<script>
hidetable( this.form, '<VALUE-OF>row["parent"]</VALUE-OF>',
'<VALUE-OF>row["Aggregation_2"]</VALUE-OF>' );
</script>
and put the following script on the table detail rows onrender
this.getStyle().display = "none";
Put that same script on the onrender for the group header row containing
the "parent" column. Also I changed your input tag to look like:
<form >
<INPUT Type="BUTTON" name=<VALUE-OF>"mybutton"+row["parent"]</VALUE-OF>
id= <VALUE-OF>"mybutton"+row["parent"]</VALUE-OF> Value="-"
onClick='hidetable(this.form,
<VALUE-OF>row["parent"]</VALUE-OF>,<VALUE-OF>row["Aggregation_2"]</VALUE-OF>);'></INPUT>
<VALUE-OF>row["Parentname"]</VALUE-OF> :
<VALUE-OF>row["parent_role"]</VALUE-OF>
</form>
I tried to run your report and it timed out on the connection, but I was
able to reproduce the issue with my sample and then fix it. Attached
are your design that I modified and the my modified sample report.
Jason
On 3/7/2012 1:08 AM, rahul rahuldeshpande89@gmail.com wrote:
> as per your suggestion i am posting html.
> when we load the page all rows should be hidden.
> i am attaching two files .
> 1.test.html contains only html
>
> 2. Call_Report_activity.rptdesign
>
> please use following link to run the report
> replace localhost and port number as per your environment.
> userid& Uid are parameters i am passing to report. i am using apache tomcat to run the report .
>
> localhost:8888/birt/run?__report=Call_Report_activity.rptdesign&UserId=NmMwY2I5NTUtY2QxZC1kYzg0LTA1MTMtNGU1YjRlZDQ0ZTcw&__overwrite=true&Uid=6c0cb955-
> cd1d-dc84-0513-4e5b4ed44e70
>
> If your runing report in IDE then you will be promted for UserId please enter value for it as 'NmMwY2I5NTUtY2QxZC1kYzg0LTA1MTMtNGU1YjRlZDQ0ZTcw'.
>
> Rahul
-
Attachment: Examples.zip
(Size: 23.93KB, Downloaded 228 times)
|
|
|
|
Re: birt report java script problem in chrome and firefox [message #816509 is a reply to message #815979] |
Thu, 08 March 2012 23:37 |
|
Try setting your display to '' instead of 'block'
Jason
On 3/8/2012 4:24 AM, rahul rahuldeshpande89@gmail.com wrote:
> Jason ,
>
> Thanks a lot for your support. Both of your example working fine . all my java script issues are now resolved .
> But in my report i am facing row formatting problem . when we click on button to unhide/show the detail rows ,all data is get placed in first column only .
> Please see attached image. How ever your collapset.rptdesign report is working fine without any formatting issue.Have you used any special formatting for detail rows?
>
> Thanks
> Rahul
>
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05763 seconds