Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » (no subject)
(no subject) [message #682143] Fri, 10 June 2011 13:27 Go to next message
Robert Aust is currently offline Robert Aust
Messages: 17
Registered: July 2009
Junior Member
Hi there,

I have a small dynamic text-field with some javaScript in it, e.g.
....
....doCheckBox(row['COL_A']);
....
which 'draws' a Checkbox-representation based on the given Value [On/Off].

Is there a way to resize the size of the field in the designer or even
to give it a 'display-name' to use in Designer?
E.g. show it in designer as 'CHKBOX_A' - or so?

Currently the size in the designer seems to depend on the code inside it
and that makes the layout somewhat unclear / cluttered.

btw - I'm using Birt 2.5.2.

Thanks for any help.
Robert
(no subject) [message #682217 is a reply to message #682143] Fri, 10 June 2011 16:19 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Robert,

Can you use a text element instead of the dynamic text? Set its type to
HTML.

Jason

On 6/10/2011 9:27 AM, Robert Aust wrote:
>
> Hi there,
>
> I have a small dynamic text-field with some javaScript in it, e.g.
> ...
> ...doCheckBox(row['COL_A']);
> ...
> which 'draws' a Checkbox-representation based on the given Value [On/Off].
>
> Is there a way to resize the size of the field in the designer or even
> to give it a 'display-name' to use in Designer?
> E.g. show it in designer as 'CHKBOX_A' - or so?
>
> Currently the size in the designer seems to depend on the code inside it
> and that makes the layout somewhat unclear / cluttered.
>
> btw - I'm using Birt 2.5.2.
>
> Thanks for any help.
> Robert
(no subject) [message #682304 is a reply to message #682217] Fri, 10 June 2011 19:40 Go to previous messageGo to next message
Robert Aust is currently offline Robert Aust
Messages: 17
Registered: July 2009
Junior Member
Hi Jason,

I tried that.
Both fields : dynamic text and text with content 'html' show the same
bahaviour, wehn I put the javascript-cose in it.

The size and display-name in designer can not be changed.
I tried to set 'Display Name' in advanced properties - but with no effect.

best regards,
Robert

Am 10.06.2011 18:19, schrieb Jason Weathersby:
> Robert,
>
> Can you use a text element instead of the dynamic text? Set its type to
> HTML.
>
> Jason
>
> On 6/10/2011 9:27 AM, Robert Aust wrote:
>>
>> Hi there,
>>
>> I have a small dynamic text-field with some javaScript in it, e.g.
>> ...
>> ...doCheckBox(row['COL_A']);
>> ...
>> which 'draws' a Checkbox-representation based on the given Value
>> [On/Off].
>>
>> Is there a way to resize the size of the field in the designer or even
>> to give it a 'display-name' to use in Designer?
>> E.g. show it in designer as 'CHKBOX_A' - or so?
>>
>> Currently the size in the designer seems to depend on the code inside it
>> and that makes the layout somewhat unclear / cluttered.
>>
>> btw - I'm using Birt 2.5.2.
>>
>> Thanks for any help.
>> Robert
>
(no subject) [message #682332 is a reply to message #682304] Fri, 10 June 2011 20:34 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

If you use a text element it should not matter how much text is in it,
it should show the same size if you set the type to html. I am not
certain what the issue is.

Jason

On 6/10/2011 3:40 PM, Robert Aust wrote:
> Hi Jason,
>
> I tried that.
> Both fields : dynamic text and text with content 'html' show the same
> bahaviour, wehn I put the javascript-cose in it.
>
> The size and display-name in designer can not be changed.
> I tried to set 'Display Name' in advanced properties - but with no effect.
>
> best regards,
> Robert
>
> Am 10.06.2011 18:19, schrieb Jason Weathersby:
>> Robert,
>>
>> Can you use a text element instead of the dynamic text? Set its type to
>> HTML.
>>
>> Jason
>>
>> On 6/10/2011 9:27 AM, Robert Aust wrote:
>>>
>>> Hi there,
>>>
>>> I have a small dynamic text-field with some javaScript in it, e.g.
>>> ...
>>> ...doCheckBox(row['COL_A']);
>>> ...
>>> which 'draws' a Checkbox-representation based on the given Value
>>> [On/Off].
>>>
>>> Is there a way to resize the size of the field in the designer or even
>>> to give it a 'display-name' to use in Designer?
>>> E.g. show it in designer as 'CHKBOX_A' - or so?
>>>
>>> Currently the size in the designer seems to depend on the code inside it
>>> and that makes the layout somewhat unclear / cluttered.
>>>
>>> btw - I'm using Birt 2.5.2.
>>>
>>> Thanks for any help.
>>> Robert
>>
>
(no subject) [message #682631 is a reply to message #682332] Sat, 11 June 2011 17:40 Go to previous messageGo to next message
Robert Aust is currently offline Robert Aust
Messages: 17
Registered: July 2009
Junior Member
Hi Jason,

It is just a designer issue, that i have small cells in a table, that
use javascript-code to generate the content.
It is not possible to reduce the size of the text/data-element to the
size of the table-cell or to give it a display-name, it will always show
the javascript-code as content in designer.

This is the case for both, text- and dynamic-text fields :
for example, these two have the same behaviour and the provided display
name has no effect in designer.

<cell id="342">
<property name="style">wgwValueCell</property>
<property name="textAlign">center</property>
<text-data id="1627">
<text-property name="displayName">BBB</text-property>
<expression name="valueExpr">doCheckbox(row["YN_COL_A"])</expression>
<property name="contentType">html</property>
</text-data>
</cell>
<cell id="343">
<text id="2881">
<text-property name="displayName">AAA</text-property>
<property name="display">block</property>
<property name="contentType">html</property>
<text-property
name="content"><![CDATA[doCheckbox(row["YN_COL_A"])]]></text-property>
</text>
</cell>

It's not a real problem - I was just wandering, if I did something wrong.

best regards,
Robert


Am 10.06.2011 22:34, schrieb Jason Weathersby:
> If you use a text element it should not matter how much text is in it,
> it should show the same size if you set the type to html. I am not
> certain what the issue is.
>
> Jason
>
> On 6/10/2011 3:40 PM, Robert Aust wrote:
>> Hi Jason,
>>
>> I tried that.
>> Both fields : dynamic text and text with content 'html' show the same
>> bahaviour, wehn I put the javascript-cose in it.
>>
>> The size and display-name in designer can not be changed.
>> I tried to set 'Display Name' in advanced properties - but with no
>> effect.
>>
>> best regards,
>> Robert
>>
>> Am 10.06.2011 18:19, schrieb Jason Weathersby:
>>> Robert,
>>>
>>> Can you use a text element instead of the dynamic text? Set its type to
>>> HTML.
>>>
>>> Jason
>>>
>>> On 6/10/2011 9:27 AM, Robert Aust wrote:
>>>>
>>>> Hi there,
>>>>
>>>> I have a small dynamic text-field with some javaScript in it, e.g.
>>>> ...
>>>> ...doCheckBox(row['COL_A']);
>>>> ...
>>>> which 'draws' a Checkbox-representation based on the given Value
>>>> [On/Off].
>>>>
>>>> Is there a way to resize the size of the field in the designer or even
>>>> to give it a 'display-name' to use in Designer?
>>>> E.g. show it in designer as 'CHKBOX_A' - or so?
>>>>
>>>> Currently the size in the designer seems to depend on the code
>>>> inside it
>>>> and that makes the layout somewhat unclear / cluttered.
>>>>
>>>> btw - I'm using Birt 2.5.2.
>>>>
>>>> Thanks for any help.
>>>> Robert
>>>
>>
>
(no subject) [message #683301 is a reply to message #682631] Mon, 13 June 2011 13:27 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Robert

You have not done anything wrong. If you have any ideas on how it would
look better, feel free to log an enhancement in bugzilla.

Jason

On 6/11/2011 1:40 PM, Robert Aust wrote:
>
> Hi Jason,
>
> It is just a designer issue, that i have small cells in a table, that
> use javascript-code to generate the content.
> It is not possible to reduce the size of the text/data-element to the
> size of the table-cell or to give it a display-name, it will always show
> the javascript-code as content in designer.
>
> This is the case for both, text- and dynamic-text fields :
> for example, these two have the same behaviour and the provided display
> name has no effect in designer.
>
> <cell id="342">
> <property name="style">wgwValueCell</property>
> <property name="textAlign">center</property>
> <text-data id="1627">
> <text-property name="displayName">BBB</text-property>
> <expression name="valueExpr">doCheckbox(row["YN_COL_A"])</expression>
> <property name="contentType">html</property>
> </text-data>
> </cell>
> <cell id="343">
> <text id="2881">
> <text-property name="displayName">AAA</text-property>
> <property name="display">block</property>
> <property name="contentType">html</property>
> <text-property
> name="content"><![CDATA[doCheckbox(row["YN_COL_A"])]]></text-property>
> </text>
> </cell>
>
> It's not a real problem - I was just wandering, if I did something wrong.
>
> best regards,
> Robert
>
>
> Am 10.06.2011 22:34, schrieb Jason Weathersby:
>> If you use a text element it should not matter how much text is in it,
>> it should show the same size if you set the type to html. I am not
>> certain what the issue is.
>>
>> Jason
>>
>> On 6/10/2011 3:40 PM, Robert Aust wrote:
>>> Hi Jason,
>>>
>>> I tried that.
>>> Both fields : dynamic text and text with content 'html' show the same
>>> bahaviour, wehn I put the javascript-cose in it.
>>>
>>> The size and display-name in designer can not be changed.
>>> I tried to set 'Display Name' in advanced properties - but with no
>>> effect.
>>>
>>> best regards,
>>> Robert
>>>
>>> Am 10.06.2011 18:19, schrieb Jason Weathersby:
>>>> Robert,
>>>>
>>>> Can you use a text element instead of the dynamic text? Set its type to
>>>> HTML.
>>>>
>>>> Jason
>>>>
>>>> On 6/10/2011 9:27 AM, Robert Aust wrote:
>>>>>
>>>>> Hi there,
>>>>>
>>>>> I have a small dynamic text-field with some javaScript in it, e.g.
>>>>> ...
>>>>> ...doCheckBox(row['COL_A']);
>>>>> ...
>>>>> which 'draws' a Checkbox-representation based on the given Value
>>>>> [On/Off].
>>>>>
>>>>> Is there a way to resize the size of the field in the designer or even
>>>>> to give it a 'display-name' to use in Designer?
>>>>> E.g. show it in designer as 'CHKBOX_A' - or so?
>>>>>
>>>>> Currently the size in the designer seems to depend on the code
>>>>> inside it
>>>>> and that makes the layout somewhat unclear / cluttered.
>>>>>
>>>>> btw - I'm using Birt 2.5.2.
>>>>>
>>>>> Thanks for any help.
>>>>> Robert
>>>>
>>>
>>
>
Previous Topic:Easily create sparklines
Next Topic:Dynamically created dataset and table report does not show detail
Goto Forum:
  


Current Time: Sun Oct 26 06:07:10 GMT 2014

Powered by FUDForum. Page generated in 0.12922 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software