This topic is locked

How to hide empty row in view page for a record.

3/21/2011 8:04:00 AM
ASPRunnerPro General questions
B
Basu author

Hi,
I have a view page for records in the horizontal layout as stated in the HTML code snippet below. I want to hide the rows(which are actually individual fields for respective record) which does not contain any value(i.e null value). I tried with some of the suggestions as mentioned in some other similar topics in this Forum, but it didn't work. Please help.
{BEGIN Control_Objective_Guidance_fieldblock}

<TR>

<TD class=editshade_b style="PADDING-LEFT: 20px; WIDTH: 20%" width=150 rowSpan=3 mywidth="136">Application Support&nbsp;<STRONG></STRONG>&nbsp;<STRONG></STRONG></TD>

<TD class=editshade_lb style="WIDTH: 20%" mywidth="136" ; WIDTH: 38px?>

<P align=center><STRONG><FONT color=#000000>High</FONT></STRONG></P></TD>

<TD class=editshade_lb style="PADDING-LEFT: 10px; VERTICAL-ALIGN: top; WIDTH: 20%"

mywidth="306">{$Application_support_High_tier_control_guidance_value}&nbsp;</TD>

<TD class=editshade_lb style="PADDING-LEFT: 10px; VERTICAL-ALIGN: top; WIDTH: 20%"

mywidth="225"><STRONG></STRONG>{$Application_support_High_tier_DE_value}&nbsp;</TD>

<TD class=editshade_lb style="PADDING-LEFT: 10px; VERTICAL-ALIGN: top; WIDTH: 20%"

mywidth="226">{$Application_support_High_tier_OE_value}&nbsp;</TD>

</TR>

{END Control_Objective_Guidance_fieldblock}

{BEGIN Control_Objective_Guidance_fieldblock}

<TR>

<TD class=editshade_lb style="WIDTH: 20%" mywidth="136" ; WIDTH: 38px?>

<P align=center><STRONG><FONT color=#000000>Medium</FONT> </STRONG></P></TD>

<TD class=editshade_lb style="PADDING-LEFT: 10px; VERTICAL-ALIGN: top; WIDTH: 20%"

mywidth="306">{$Application_support_Medium_tier_control_guidance_value}&nbsp;</TD>

<TD class=editshade_lb style="PADDING-LEFT: 10px; VERTICAL-ALIGN: top; WIDTH: 20%"

mywidth="225"><STRONG></STRONG>{$Application_support_Medium_DE_value}&nbsp;</TD>

<TD class=editshade_lb style="PADDING-LEFT: 10px; VERTICAL-ALIGN: top; WIDTH: 20%"

mywidth="226">{$Application_support_Medium_OE_value}&nbsp;</TD>

</TR>

{END Control_Objective_Guidance_fieldblock}

{BEGIN Control_Objective_Guidance_fieldblock}

<TR>

<TD class=editshade_lb style="WIDTH: 20%" mywidth="136" ; WIDTH: 38px?>

<P align=center><FONT color=#000000><STRONG>Low</STRONG></FONT></P></TD>

<TD class=editshade_lb style="PADDING-LEFT: 10px; VERTICAL-ALIGN: top; WIDTH: 20%"

mywidth="306">{$Application_support_Low_tier_control_guidance_value}&nbsp;</TD>

<TD class=editshade_lb style="PADDING-LEFT: 10px; VERTICAL-ALIGN: top; WIDTH: 20%"

mywidth="225"><STRONG></STRONG>{$Application_support_Low_tier_DE_value}&nbsp;</TD>

<TD class=editshade_lb style="PADDING-LEFT: 10px; VERTICAL-ALIGN: top; WIDTH: 20%"

mywidth="226"><STRONG></STRONG>{$Application_support_Low_tier_OE_value}&nbsp;</TD>

</TR>

{END Control_Objective_Guidance_fieldblock}
Regards,

Basu

Sergey Kornilov admin 3/21/2011
B
Basu author 3/25/2011



This should be pretty straightforward:

http://xlinesoft.com/asprunnerpro/docs/hide_empty_fields_on_view_page.htm


Hi,
The field variable I am using is "Application support High tier control guidance", but when I am using it in code as :
if values("Application support High tier control guidance")="" then
Response.Write "Application support High tier control guidance: " & values("Application support High tier control guidance")

xt.assign "Application_support_High_tier_control_guidance_fieldblock",false
end if
it is not wotking(code within if not getting processed). Again when I am using the variable in square brackets as
if values("[Application support High tier control guidance]")="" then
Response.Write "Application support High tier control guidance: " & values("Application support High tier control guidance")

xt.assign "Application_support_High_tier_control_guidance_fieldblock",false
end if
the code portion inside if is processed for both empty as well as non empty rows.
Please advice.
Regards,

Basu

Sergey Kornilov admin 3/25/2011

I would suggest to post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL. 'Demo Account' button can be found on the last screen in the program.