In a report called the Daily Bulletin I have a notification section. One of the fields is entitled NARRATIVE. If the rpdnotification table is empty, can I set the value of NARRITIVE to "None at this time" and have is display the same? I have tried several times but get no results. My code for that section is as follows.
TABLE rpdnotifiation
FIELDS are subject, authority, narrative, startdate, rundays, and rundays
Code is as follows
<% // Get NOTIFICATION from rpdnotifications
while(rsLog2.next()) {
String subject = rsLog2.getString("subject");
String authority = rsLog2.getString("authority");
String narrative = rsLog2.getString("narrative");
String startdate = rsLog2.getString("startdate");
String rundays = rsLog2.getString("rundays");
%>
<tr>
<td height="25" colspan="6"><table width="760" border="0" cellpadding="0" cellspacing="0" id="notification">
<tr>
<td width="123" height="25"><strong>?Entered:</strong> <%=startdate%></td>
<td width="485" height="25"><strong>?Subject: <%=subject%></strong></td>
<td width="152"><strong># of Days to Run:</strong> <%=rundays%></td>
</tr>
<tr>
<td height="25" colspan="3"><%=(narrative != null ? narrative : "None at this time")%>?</td>
</tr>
<tr>
<td height="25" colspan="3"><strong>?Authority: </strong><%=authority%></strong> ?</td>
</tr>
<tr>
<td height="25" colspan="3">?</td>
</tr>
<%
} // end of rsLog2 WHILE Loop
%>
TABLE rpdnotifiation
FIELDS are subject, authority, narrative, startdate, rundays, and rundays
Code is as follows
<% // Get NOTIFICATION from rpdnotifications
while(rsLog2.next()) {
String subject = rsLog2.getString("subject");
String authority = rsLog2.getString("authority");
String narrative = rsLog2.getString("narrative");
String startdate = rsLog2.getString("startdate");
String rundays = rsLog2.getString("rundays");
%>
<tr>
<td height="25" colspan="6"><table width="760" border="0" cellpadding="0" cellspacing="0" id="notification">
<tr>
<td width="123" height="25"><strong>?Entered:</strong> <%=startdate%></td>
<td width="485" height="25"><strong>?Subject: <%=subject%></strong></td>
<td width="152"><strong># of Days to Run:</strong> <%=rundays%></td>
</tr>
<tr>
<td height="25" colspan="3"><%=(narrative != null ? narrative : "None at this time")%>?</td>
</tr>
<tr>
<td height="25" colspan="3"><strong>?Authority: </strong><%=authority%></strong> ?</td>
</tr>
<tr>
<td height="25" colspan="3">?</td>
</tr>
<%
} // end of rsLog2 WHILE Loop
%>