Home » Archived » BIRT » Change theme by script
Change theme by script [message #256961] |
Wed, 03 October 2007 19:52 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: raison.fermat.eu
Hello,
With BIRT 2.1.1, we used in all our reports a parameter which list
available themes in library. It's easy then to change the running theme
using initialize script of the report (if someone want an example,
there's no problem).
But, since the 2.2.0 there is a strange behaviour of the web viewer
(using frameset). When loading the report, the user choice for the theme
works but when asking the change parameter again, it doesn't work (the
theme can not be found even with theme=(ThemeHandle)x or with
setThemeName() method).
I saw in eclipse bugzilla a lot of bugs according to script method in
the 2.2.0. So I also log this one into bugzilla since more than a week
and nobody answers (https://bugs.eclipse.org/bugs/show_bug.cgi?id=204597).
The 2.2.1 it released, it doesn't work in the last nightly i tested and
nobody cares ...
Is there someone looking to Web Viewer bugs ???
Thibaud
|
|
|
Re: Change theme by script [message #257053 is a reply to message #256961] |
Thu, 04 October 2007 14:46 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: jasonweathersby.alltel.net
Thibaud,
I am not certain why this happening. Do this happen when using the
deployed viewer? I believe it may have something to do with the
rptdocument not being recreated (not positive). If you make this change
in the BirtParameterDialog.js I believe it will work.
else if ( true )//this.__ifSubmit( this.__mode, action ) )
This will make it refresh the whole browser url.
Jason
Thibaud wrote:
> Hello,
> With BIRT 2.1.1, we used in all our reports a parameter which list
> available themes in library. It's easy then to change the running theme
> using initialize script of the report (if someone want an example,
> there's no problem).
>
> But, since the 2.2.0 there is a strange behaviour of the web viewer
> (using frameset). When loading the report, the user choice for the theme
> works but when asking the change parameter again, it doesn't work (the
> theme can not be found even with theme=(ThemeHandle)x or with
> setThemeName() method).
>
> I saw in eclipse bugzilla a lot of bugs according to script method in
> the 2.2.0. So I also log this one into bugzilla since more than a week
> and nobody answers (https://bugs.eclipse.org/bugs/show_bug.cgi?id=204597).
>
> The 2.2.1 it released, it doesn't work in the last nightly i tested and
> nobody cares ...
>
> Is there someone looking to Web Viewer bugs ???
>
> Thibaud
|
|
|
Re: Change theme by script [message #257123 is a reply to message #257053] |
Thu, 04 October 2007 19:17 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: raison.fermat.eu
Thanks a lot Jason,
I will try this solution and check if the rptdocument is rewrited.
I post in the bugzilla entry that it's the same in 2.2.1 also.
I use the view report in Web viewer shortcut.
In the preview it works well.
Thibaud
Jason Weathersby a écrit :
> Thibaud,
>
> I am not certain why this happening. Do this happen when using the
> deployed viewer? I believe it may have something to do with the
> rptdocument not being recreated (not positive). If you make this change
> in the BirtParameterDialog.js I believe it will work.
>
> else if ( true )//this.__ifSubmit( this.__mode, action ) )
>
> This will make it refresh the whole browser url.
>
> Jason
>
> Thibaud wrote:
>> Hello,
>> With BIRT 2.1.1, we used in all our reports a parameter which list
>> available themes in library. It's easy then to change the running
>> theme using initialize script of the report (if someone want an
>> example, there's no problem).
>>
>> But, since the 2.2.0 there is a strange behaviour of the web viewer
>> (using frameset). When loading the report, the user choice for the
>> theme works but when asking the change parameter again, it doesn't
>> work (the theme can not be found even with theme=(ThemeHandle)x or
>> with setThemeName() method).
>>
>> I saw in eclipse bugzilla a lot of bugs according to script method in
>> the 2.2.0. So I also log this one into bugzilla since more than a week
>> and nobody answers
>> (https://bugs.eclipse.org/bugs/show_bug.cgi?id=204597).
>>
>> The 2.2.1 it released, it doesn't work in the last nightly i tested
>> and nobody cares ...
>>
>> Is there someone looking to Web Viewer bugs ???
>>
>> Thibaud
|
|
|
Re: Change theme by script [message #257179 is a reply to message #257053] |
Thu, 04 October 2007 20:14 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: raison.fermat.eu
Can the report change, without a new rptdocument ?
In my example, I display the parameter value for the theme name.
The value is OK, so I thought a new rptdocument has been rewrited ?
Am I right ?
Jason Weathersby a écrit :
> Thibaud,
>
> I am not certain why this happening. Do this happen when using the
> deployed viewer? I believe it may have something to do with the
> rptdocument not being recreated (not positive). If you make this change
> in the BirtParameterDialog.js I believe it will work.
>
> else if ( true )//this.__ifSubmit( this.__mode, action ) )
>
> This will make it refresh the whole browser url.
>
> Jason
>
> Thibaud wrote:
>> Hello,
>> With BIRT 2.1.1, we used in all our reports a parameter which list
>> available themes in library. It's easy then to change the running
>> theme using initialize script of the report (if someone want an
>> example, there's no problem).
>>
>> But, since the 2.2.0 there is a strange behaviour of the web viewer
>> (using frameset). When loading the report, the user choice for the
>> theme works but when asking the change parameter again, it doesn't
>> work (the theme can not be found even with theme=(ThemeHandle)x or
>> with setThemeName() method).
>>
>> I saw in eclipse bugzilla a lot of bugs according to script method in
>> the 2.2.0. So I also log this one into bugzilla since more than a week
>> and nobody answers
>> (https://bugs.eclipse.org/bugs/show_bug.cgi?id=204597).
>>
>> The 2.2.1 it released, it doesn't work in the last nightly i tested
>> and nobody cares ...
>>
>> Is there someone looking to Web Viewer bugs ???
>>
>> Thibaud
|
|
|
Re: Change theme by script [message #257196 is a reply to message #257179] |
Thu, 04 October 2007 21:01 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: raison.fermat.eu
According to the timestamp of the file, the rptdocument is rewrited.
The forced submit doesn't change anything.
I also checked with firebug that the _doSubmit is done.
The only thing which works, is before changing the parameter value, to
delete the rptdocument. Then it works and the theme changes ... of course.
Thibaud a écrit :
> Can the report change, without a new rptdocument ?
> In my example, I display the parameter value for the theme name.
> The value is OK, so I thought a new rptdocument has been rewrited ?
> Am I right ?
>
> Jason Weathersby a écrit :
>> Thibaud,
>>
>> I am not certain why this happening. Do this happen when using the
>> deployed viewer? I believe it may have something to do with the
>> rptdocument not being recreated (not positive). If you make this
>> change in the BirtParameterDialog.js I believe it will work.
>>
>> else if ( true )//this.__ifSubmit( this.__mode, action ) )
>>
>> This will make it refresh the whole browser url.
>>
>> Jason
>>
>> Thibaud wrote:
>>> Hello,
>>> With BIRT 2.1.1, we used in all our reports a parameter which list
>>> available themes in library. It's easy then to change the running
>>> theme using initialize script of the report (if someone want an
>>> example, there's no problem).
>>>
>>> But, since the 2.2.0 there is a strange behaviour of the web viewer
>>> (using frameset). When loading the report, the user choice for the
>>> theme works but when asking the change parameter again, it doesn't
>>> work (the theme can not be found even with theme=(ThemeHandle)x or
>>> with setThemeName() method).
>>>
>>> I saw in eclipse bugzilla a lot of bugs according to script method in
>>> the 2.2.0. So I also log this one into bugzilla since more than a
>>> week and nobody answers
>>> (https://bugs.eclipse.org/bugs/show_bug.cgi?id=204597).
>>>
>>> The 2.2.1 it released, it doesn't work in the last nightly i tested
>>> and nobody cares ...
>>>
>>> Is there someone looking to Web Viewer bugs ???
>>>
>>> Thibaud
|
|
|
Re: Change theme by script [message #257204 is a reply to message #257196] |
Thu, 04 October 2007 22:12 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: jasonweathersby.alltel.net
Thibaud,
It has to overwrite the document. This worked on mine. In that same
file you can also append &__overwrite=true to the action. BTW my
default overwrite is set to true in the web.xml.
Jason
Thibaud wrote:
> According to the timestamp of the file, the rptdocument is rewrited.
>
> The forced submit doesn't change anything.
> I also checked with firebug that the _doSubmit is done.
>
> The only thing which works, is before changing the parameter value, to
> delete the rptdocument. Then it works and the theme changes ... of course.
>
>
> Thibaud a écrit :
>> Can the report change, without a new rptdocument ?
>> In my example, I display the parameter value for the theme name.
>> The value is OK, so I thought a new rptdocument has been rewrited ?
>> Am I right ?
>>
>> Jason Weathersby a écrit :
>>> Thibaud,
>>>
>>> I am not certain why this happening. Do this happen when using the
>>> deployed viewer? I believe it may have something to do with the
>>> rptdocument not being recreated (not positive). If you make this
>>> change in the BirtParameterDialog.js I believe it will work.
>>>
>>> else if ( true )//this.__ifSubmit( this.__mode, action ) )
>>>
>>> This will make it refresh the whole browser url.
>>>
>>> Jason
>>>
>>> Thibaud wrote:
>>>> Hello,
>>>> With BIRT 2.1.1, we used in all our reports a parameter which list
>>>> available themes in library. It's easy then to change the running
>>>> theme using initialize script of the report (if someone want an
>>>> example, there's no problem).
>>>>
>>>> But, since the 2.2.0 there is a strange behaviour of the web viewer
>>>> (using frameset). When loading the report, the user choice for the
>>>> theme works but when asking the change parameter again, it doesn't
>>>> work (the theme can not be found even with theme=(ThemeHandle)x or
>>>> with setThemeName() method).
>>>>
>>>> I saw in eclipse bugzilla a lot of bugs according to script method
>>>> in the 2.2.0. So I also log this one into bugzilla since more than a
>>>> week and nobody answers
>>>> (https://bugs.eclipse.org/bugs/show_bug.cgi?id=204597).
>>>>
>>>> The 2.2.1 it released, it doesn't work in the last nightly i tested
>>>> and nobody cares ...
>>>>
>>>> Is there someone looking to Web Viewer bugs ???
>>>>
>>>> Thibaud
|
|
|
Re: Change theme by script [message #257357 is a reply to message #257204] |
Fri, 05 October 2007 20:37 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: raison.fermat.eu
OK Jason, it works.
Modify the BirtParameterDialog.js and set to true the overwrite
parameter works. Thanks a lot for your help.
Is it really the way it has to work ?
I still consider this behaviour as a bug.
One day i have to ask how the cache works ;)
I will post this solution in the bug, if one day someone read it !!!
Thanks again,
Jason Weathersby a écrit :
> Thibaud,
>
> It has to overwrite the document. This worked on mine. In that same
> file you can also append &__overwrite=true to the action. BTW my
> default overwrite is set to true in the web.xml.
>
> Jason
>
> Thibaud wrote:
>> According to the timestamp of the file, the rptdocument is rewrited.
>>
>> The forced submit doesn't change anything.
>> I also checked with firebug that the _doSubmit is done.
>>
>> The only thing which works, is before changing the parameter value, to
>> delete the rptdocument. Then it works and the theme changes ... of
>> course.
>>
>>
>> Thibaud a écrit :
>>> Can the report change, without a new rptdocument ?
>>> In my example, I display the parameter value for the theme name.
>>> The value is OK, so I thought a new rptdocument has been rewrited ?
>>> Am I right ?
>>>
>>> Jason Weathersby a écrit :
>>>> Thibaud,
>>>>
>>>> I am not certain why this happening. Do this happen when using the
>>>> deployed viewer? I believe it may have something to do with the
>>>> rptdocument not being recreated (not positive). If you make this
>>>> change in the BirtParameterDialog.js I believe it will work.
>>>>
>>>> else if ( true )//this.__ifSubmit( this.__mode, action ) )
>>>>
>>>> This will make it refresh the whole browser url.
>>>>
>>>> Jason
>>>>
>>>> Thibaud wrote:
>>>>> Hello,
>>>>> With BIRT 2.1.1, we used in all our reports a parameter which list
>>>>> available themes in library. It's easy then to change the running
>>>>> theme using initialize script of the report (if someone want an
>>>>> example, there's no problem).
>>>>>
>>>>> But, since the 2.2.0 there is a strange behaviour of the web viewer
>>>>> (using frameset). When loading the report, the user choice for the
>>>>> theme works but when asking the change parameter again, it doesn't
>>>>> work (the theme can not be found even with theme=(ThemeHandle)x or
>>>>> with setThemeName() method).
>>>>>
>>>>> I saw in eclipse bugzilla a lot of bugs according to script method
>>>>> in the 2.2.0. So I also log this one into bugzilla since more than
>>>>> a week and nobody answers
>>>>> (https://bugs.eclipse.org/bugs/show_bug.cgi?id=204597).
>>>>>
>>>>> The 2.2.1 it released, it doesn't work in the last nightly i tested
>>>>> and nobody cares ...
>>>>>
>>>>> Is there someone looking to Web Viewer bugs ???
>>>>>
>>>>> Thibaud
|
|
|
Goto Forum:
Current Time: Sun Sep 01 09:27:33 GMT 2024
Powered by FUDForum. Page generated in 0.03749 seconds
|