CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge -> Programming

 Hide / Show TR upon different type of content displayed

Print topic Send  topic

Author Message
dcharmed

Posts: 3
Posted: 10/24/2009, 11:02 PM

Hi,

I am trying to hide/show TR which consist of form input that i want it to be displayed according to type of form.
So i added a tagging to each row to identify the object to hide/show :

example : <!-- BEGIN TextBox TarikhLPPerakuLantikan -->

Unfortunately if the TR consist of date format input field with the datepicker... it cannot be hide/show properly. The datepicker did not visible/invisible correctly.

I have upgraded to the latest version of CC.

These are the codes.

HTML
<!-- BEGIN TextBox TarikhLPPerakuLantikan -->   
<tr class="Controls"> <td class="th">Tarikh LPPerakuLantikan</td>   
<td><label for="RPerolehanDetailsTarikhLPPerakuLantikan" style="display: none;">         
</label>  
<input id="RPerolehanDetailsTarikhLPPerakuLantikan" size="10" value="{TarikhLPPerakuLantikan}" name="{TarikhLPPerakuLantikan_Name}">    
<!-- BEGIN DatePicker DatePicker_TarikhLPPerakuLantikan -->  
<a href="javascript:showDatePicker('{Name}','{FormName}','{DateControl}');" id="RPerolehanDetailsDatePicker_TarikhLPPerakuLantikan">  
<img id="RPerolehanDetailsDatePicker_TarikhLPPerakuLantikan_Image" alt="Show Date Picker" src="../Styles/srpksilver/Images/DatePicker.gif" border="0"></a>  
<!-- END DatePicker DatePicker_TarikhLPPerakuLantikan --></td> </tr>   
<!-- END TextBox TarikhLPPerakuLantikan -->

CODES:
if($RPerolehanDetails->StatusSemasa->GetValue() == "new") {   
$RPerolehanDetails->TarikhLOA->Visible = false;   
$RPerolehanDetails->TarikhLOI->Visible = false;   
$RPerolehanDetails->TarikhLPPerakuLantikan->Visible = false;   
}

Anyone has a solution for this?
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.