Iron Speed Technical Forums
Register Latest Topics
 
 
 


Reply
  Author   Comment  
txshah

Registered:
Posts: 26
Reply with quote  #1 
  

I have created a gallery page with ImagewithOverlaid text and would like to display the images conditionally on the Gallery page, i.e., display the Image and the associated text only if it meets a certain criteria, such as public or private.

I use the following formula in the cell editor - while this works in displaying/not displaying the image and overlaid text it creates a blank space for the images/texts which should not displayed.  Is there a way to remove/not have the blank spaces.

= if(communitytype="public",CommunityTableControlRow.GetImageWithOverlaidText("communitylogo", "<a class=\"button_link\" href=\"" + CommunityTableControlRow.ModifyRedirectUrl("../community/Show-Community.aspx?Community={PK}", "", True) + "\">" + communityname + "</a>", CommunityTableControlRow.ModifyRedirectUrl("../community/Show-Community.aspx?Community={PK}", "", True)),"")

Please see image below – the red boxes are where the images are not displaying but it is occupying the space that would like to remove.
Empy Space.jpg 
Thanks.


Gerard

Registered:
Posts: 588
Reply with quote  #2 
in the formula you are working with cell and telling it what to do in that cell.
What you want is to do is tell the page what images to display to a class of uses the best way is to sort that out by adjusting the where clause and have to where clauses on for public one for private
see Jimi's Answer as to how
http://sjc.ironspeed.com/post/or-in-where-clause-7489320?pid=1287871207#post1287871207&gsc.tab=0
Gerard
miles

Avatar / Picture

MVP Consultant
Registered:
Posts: 1,685
Reply with quote  #3 
Why not filter it at the database level? Then there are no gaps...
__________________
Miles Gibson, MScIS
Iron Speed MVP
Senior Consultant, Principal
Milestone Software Inc.

http://www.ironspeedmvp.com\localizer 
Email: miles@milestone.ca
Milestone Localizer: Full Localization for your Iron Speed applications!
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.

Download Iron Speed Designer

Terms of Service Privacy Statement