[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
t:repeat => t:fixgrid set dynamic render property for t:gridcol  XML
Forum Index -> Development
Author Message
mreich

Power User
[Avatar]

Joined: 30/01/2009 08:34:23
Messages: 744
Offline

Hi,

I think I've a special constellation (once again ;-))

I have a grids rendered within a repeat component, then I try to set the render property by .{render} the property is defined within the class which is the type of the list set in the repeat component. But it seems to get mixed up with the reference of the grid items properties which also have the form .{xxx} so the result is that the column isn't rendered even when render == true

regards
Markus
[Thumb - 2022-03-11 23_03_11-CaptainCasa Enterprise Client - RISC-HTML_ Development Tools.png]
 Filename 2022-03-11 23_03_11-CaptainCasa Enterprise Client - RISC-HTML_ Development Tools.png [Disk] Download
 Description
 Filesize 81 Kbytes
 Downloaded:  127 time(s)

[Thumb - 2022-03-11 23_04_36-workspace - woodproc_src_main_java_at_ithausverstand_woodproc_ui_OfferWPB.java -.png]
 Filename 2022-03-11 23_04_36-workspace - woodproc_src_main_java_at_ithausverstand_woodproc_ui_OfferWPB.java -.png [Disk] Download
 Description
 Filesize 32 Kbytes
 Downloaded:  157 time(s)

[WWW]
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5519
Offline

Hi Markus,

we can reproduce in an own example... Just working on it...

Thanks a lot!!! - Björn

Björn Müller, CaptainCasa GmbH
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5519
Offline

Hi Markus,

the interim build 20220312_INT1 contains the fix.
It is available in the CaptainCasa-Maven-Repoisitory (www.CaptainCasa.com).

Thanks again! Björn

Björn Müller, CaptainCasa GmbH
mreich

Power User
[Avatar]

Joined: 30/01/2009 08:34:23
Messages: 744
Offline

thx, for that quick fix

I had another problem with fixgrid within a repeat, maybe it's solved too, I haven't tried the interim version.

When using a t:gridfooter where e.g. a total is calculated. The total is calcualted on item scope as the general property i mentioned before in the gridfooter I reference by .{totalAmount}

BR
Markus
[WWW]
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5519
Offline

Yes, same problem. Should now be fixed... - Björn

Björn Müller, CaptainCasa GmbH
mreich

Power User
[Avatar]

Joined: 30/01/2009 08:34:23
Messages: 744
Offline

Hi,

now I found another problem
I want to create the fixgrid dynamically (with t:dynamiccontent)

there is a problem with the expression

when I do
LABELNode label = new LABELNode();
label.setText(".{type.descriptionT}");

it generates
#{d.EventsPB.events[0].type.descriptionT}

but it should be
#{d.EventsPB.events[0].gridEvent.rows[0].type.descriptionT}

BTW events is the Collection for t:repeat it contains the fixgrid gridEvent


regards
Markus
[WWW]
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5519
Offline

Hi Markus,

we need a bit more details about the structure: where is REPEAT, where is ROWDYAMICCONTENT? A mini demo program/XML page would be highly appreciated. ;-)

Kind regards! Björn

Björn Müller, CaptainCasa GmbH
mreich

Power User
[Avatar]

Joined: 30/01/2009 08:34:23
Messages: 744
Offline

sorry, I add JSP and class

In the row should be name = "Test Row" but it takes the name from the repeatItem
 Filename TestPB.java [Disk] Download
 Description
 Filesize 3 Kbytes
 Downloaded:  48 time(s)

 Filename test.jsp [Disk] Download
 Description
 Filesize 684 bytes
 Downloaded:  53 time(s)

[WWW]
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5519
Offline

...thanks! Can reproduce it... - Björn

Björn Müller, CaptainCasa GmbH
mreich

Power User
[Avatar]

Joined: 30/01/2009 08:34:23
Messages: 744
Offline

FYI

could solve the problem using a pagebean which includes the dynamic content in the repeat component
[WWW]
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5519
Offline

Hi,
very tricky way to bypass the inner problem! We are currently testing our bug fix for potencial collateral damage... The fix is contained in next Monday's version. If you want to have an interim update - just tell us!
Kind regards! Björn

Björn Müller, CaptainCasa GmbH
mreich

Power User
[Avatar]

Joined: 30/01/2009 08:34:23
Messages: 744
Offline

no hurry, monday is ok thx
[WWW]
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team