Show region if field in recordset is NOT empty

Hi
Ive been using dreamweaver's built in "show region if
recordset is not empty," but now i need to change the code so that
it "shows the region if a field in the recordset is empty"
Does anyone know how to do this ?
below is my code for "show region if recordset is not empty"
recordset: rsUser
field to filter:image
<div id="avatar">
<?php if ($totalRows_rsUser > 0) { // Show if
recordset not empty ?>
<img src="uploadedImages/userImages/<?php echo
$rsUser->Fields('image'); ?>" height="92" width="92">
<?php } // Show if recordset not empty ?></div>
basically if the field "image" from rsUser is empty i dont
want the image to show.
thanks

Use the Show If recordset Is Empty server behavior.
<?php if ($totalRows_rsUser == 0) { // Show if recordset
empty ?>
<p>Empty</p>
<?php } // Show if recordset empty ?>
Ken Ford
Adobe Community Expert
Fordwebs, LLC
http://www.fordwebs.com
"Kamesh192" <[email protected]> wrote in
message news:epkqn2$gr2$[email protected]..
> Hi
>
> Ive been using dreamweaver's built in "show region if
recordset is not empty,"
> but now i need to change the code so that it "shows the
region if a field in
> the recordset is empty"
>
> Does anyone know how to do this ?
>
> below is my code for "show region if recordset is not
empty"
>
> recordset: rsUser
> field to filter:image
>
> <div id="avatar">
> <?php if ($totalRows_rsUser > 0) { // Show if
recordset not empty ?>
> <img src="uploadedImages/userImages/<?php echo
$rsUser->Fields('image');
> ?>" height="92" width="92">
> <?php } // Show if recordset not empty
?></div>
>
> basically if the field "image" from rsUser is empty i
dont want the image to
> show.
>
> thanks
>
>

Similar Messages

  • Show region server behaviors

    Regarding Dreamweaver's dynamic website option of "insert>data object>show region>show if recordset not empty", is there any way to create a show region which only shows the HTML if a particular record from the recordset is not empty?

    No.
    what I need is that when a recordset does turn up information (i.e. the searched-for database row has inputed values in its columns), yet one of those columns is blank then I do not want to show certains text.

  • Show region if empty not working (ASP)

    I have created an app in ASP (not .NET) to record some supplier stock info, with a summary page displaying a filtered recordset based upon the logged in user which is working fine and dandy... the problem lies when no records exist for the current user the summary page is coming back with the standard ASP, ADO error meaning no records exist: -
    ADODB.Field error '800a0bcd'
    Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.
    So I have tried adding "show region" behaviors to show a "no records exist" message and hiding the table containing the summary info, but the above error is still showing when I would only expect the "no records exist" message to display... page code as follows, all help appreciated..!
    <%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
    <%
    ' *** Logout the current user.
    MM_Logout = CStr(Request.ServerVariables("URL")) & "?MM_Logoutnow=1"
    If (CStr(Request("MM_Logoutnow")) = "1") Then
      Session.Contents.Remove("MM_Username")
      Session.Contents.Remove("MM_UserAuthorization")
      MM_logoutRedirectPage = "index.asp"
      ' redirect with URL parameters (remove the "MM_Logoutnow" query param).
      if (MM_logoutRedirectPage = "") Then MM_logoutRedirectPage = CStr(Request.ServerVariables("URL"))
      If (InStr(1, UC_redirectPage, "?", vbTextCompare) = 0 And Request.QueryString <> "") Then
        MM_newQS = "?"
        For Each Item In Request.QueryString
          If (Item <> "MM_Logoutnow") Then
            If (Len(MM_newQS) > 1) Then MM_newQS = MM_newQS & "&"
            MM_newQS = MM_newQS & Item & "=" & Server.URLencode(Request.QueryString(Item))
          End If
        Next
        if (Len(MM_newQS) > 1) Then MM_logoutRedirectPage = MM_logoutRedirectPage & MM_newQS
      End If
      Response.Redirect(MM_logoutRedirectPage)
    End If
    %>
    <!--#include file="Connections/StockLevels.asp" -->
    <%
    ' *** Restrict Access To Page: Grant or deny access to this page
    MM_authorizedUsers=""
    MM_authFailedURL="index.asp"
    MM_grantAccess=false
    If Session("MM_Username") <> "" Then
      If (true Or CStr(Session("MM_UserAuthorization"))="") Or _
             (InStr(1,MM_authorizedUsers,Session("MM_UserAuthorization"))>=1) Then
        MM_grantAccess = true
      End If
    End If
    If Not MM_grantAccess Then
      MM_qsChar = "?"
      If (InStr(1,MM_authFailedURL,"?") >= 1) Then MM_qsChar = "&"
      MM_referrer = Request.ServerVariables("URL")
      if (Len(Request.QueryString()) > 0) Then MM_referrer = MM_referrer & "?" & Request.QueryString()
      MM_authFailedURL = MM_authFailedURL & MM_qsChar & "accessdenied=" & Server.URLEncode(MM_referrer)
      Response.Redirect(MM_authFailedURL)
    End If
    %>
    <%
    if Session("MM_Username")="" then
    Response.Redirect("index.asp")
    end if
    %>
    <%
    Dim Recordset1__MMColParam
    Recordset1__MMColParam = "1"
    If (Session("MM_Username") <> "") Then
      Recordset1__MMColParam = Session("MM_Username")
    End If
    %>
    <%
    Dim Recordset1
    Dim Recordset1_cmd
    Dim Recordset1_numRows
    Set Recordset1_cmd = Server.CreateObject ("ADODB.Command")
    Recordset1_cmd.ActiveConnection = MM_StockLevels_STRING
    Recordset1_cmd.CommandText = "SELECT * FROM AULWEB.TESTP12 WHERE SNAM12 = ? ORDER BY VNDR12 ASC"
    Recordset1_cmd.Prepared = true
    Recordset1_cmd.Parameters.Append Recordset1_cmd.CreateParameter("param1", 200, 1, 15, Recordset1__MMColParam) ' adVarChar
    Set Recordset1 = Recordset1_cmd.Execute
    Recordset1_numRows = 0
    %>
    <%
    Dim Repeat1__numRows
    Dim Repeat1__index
    Repeat1__numRows = 10
    Repeat1__index = 0
    Recordset1_numRows = Recordset1_numRows + Repeat1__numRows
    %>
    <%
    '  *** Recordset Stats, Move To Record, and Go To Record: declare stats variables
    Dim Recordset1_total
    Dim Recordset1_first
    Dim Recordset1_last
    ' set the record count
    Recordset1_total = Recordset1.RecordCount
    ' set the number of rows displayed on this page
    If (Recordset1_numRows < 0) Then
      Recordset1_numRows = Recordset1_total
    Elseif (Recordset1_numRows = 0) Then
      Recordset1_numRows = 1
    End If
    ' set the first and last displayed record
    Recordset1_first = 1
    Recordset1_last  = Recordset1_first + Recordset1_numRows - 1
    ' if we have the correct record count, check the other stats
    If (Recordset1_total <> -1) Then
      If (Recordset1_first > Recordset1_total) Then
        Recordset1_first = Recordset1_total
      End If
      If (Recordset1_last > Recordset1_total) Then
        Recordset1_last = Recordset1_total
      End If
      If (Recordset1_numRows > Recordset1_total) Then
        Recordset1_numRows = Recordset1_total
      End If
    End If
    %>
    <%
    ' *** Recordset Stats: if we don't know the record count, manually count them
    If (Recordset1_total = -1) Then
      ' count the total records by iterating through the recordset
      Recordset1_total=0
      While (Not Recordset1.EOF)
        Recordset1_total = Recordset1_total + 1
        Recordset1.MoveNext
      Wend
      ' reset the cursor to the beginning
      If (Recordset1.CursorType > 0) Then
        Recordset1.MoveFirst
      Else
        Recordset1.Requery
      End If
      ' set the number of rows displayed on this page
      If (Recordset1_numRows < 0 Or Recordset1_numRows > Recordset1_total) Then
        Recordset1_numRows = Recordset1_total
      End If
      ' set the first and last displayed record
      Recordset1_first = 1
      Recordset1_last = Recordset1_first + Recordset1_numRows - 1
      If (Recordset1_first > Recordset1_total) Then
        Recordset1_first = Recordset1_total
      End If
      If (Recordset1_last > Recordset1_total) Then
        Recordset1_last = Recordset1_total
      End If
    End If
    %>
    <%
    Dim MM_paramName
    %>
    <%
    ' *** Move To Record and Go To Record: declare variables
    Dim MM_rs
    Dim MM_rsCount
    Dim MM_size
    Dim MM_uniqueCol
    Dim MM_offset
    Dim MM_atTotal
    Dim MM_paramIsDefined
    Dim MM_param
    Dim MM_index
    Set MM_rs    = Recordset1
    MM_rsCount   = Recordset1_total
    MM_size      = Recordset1_numRows
    MM_uniqueCol = ""
    MM_paramName = ""
    MM_offset = 0
    MM_atTotal = false
    MM_paramIsDefined = false
    If (MM_paramName <> "") Then
      MM_paramIsDefined = (Request.QueryString(MM_paramName) <> "")
    End If
    %>
    <%
    ' *** Move To Record: handle 'index' or 'offset' parameter
    if (Not MM_paramIsDefined And MM_rsCount <> 0) then
      ' use index parameter if defined, otherwise use offset parameter
      MM_param = Request.QueryString("index")
      If (MM_param = "") Then
        MM_param = Request.QueryString("offset")
      End If
      If (MM_param <> "") Then
        MM_offset = Int(MM_param)
      End If
      ' if we have a record count, check if we are past the end of the recordset
      If (MM_rsCount <> -1) Then
        If (MM_offset >= MM_rsCount Or MM_offset = -1) Then  ' past end or move last
          If ((MM_rsCount Mod MM_size) > 0) Then         ' last page not a full repeat region
            MM_offset = MM_rsCount - (MM_rsCount Mod MM_size)
          Else
            MM_offset = MM_rsCount - MM_size
          End If
        End If
      End If
      ' move the cursor to the selected record
      MM_index = 0
      While ((Not MM_rs.EOF) And (MM_index < MM_offset Or MM_offset = -1))
        MM_rs.MoveNext
        MM_index = MM_index + 1
      Wend
      If (MM_rs.EOF) Then
        MM_offset = MM_index  ' set MM_offset to the last possible record
      End If
    End If
    %>
    <%
    ' *** Move To Record: if we dont know the record count, check the display range
    If (MM_rsCount = -1) Then
      ' walk to the end of the display range for this page
      MM_index = MM_offset
      While (Not MM_rs.EOF And (MM_size < 0 Or MM_index < MM_offset + MM_size))
        MM_rs.MoveNext
        MM_index = MM_index + 1
      Wend
      ' if we walked off the end of the recordset, set MM_rsCount and MM_size
      If (MM_rs.EOF) Then
        MM_rsCount = MM_index
        If (MM_size < 0 Or MM_size > MM_rsCount) Then
          MM_size = MM_rsCount
        End If
      End If
      ' if we walked off the end, set the offset based on page size
      If (MM_rs.EOF And Not MM_paramIsDefined) Then
        If (MM_offset > MM_rsCount - MM_size Or MM_offset = -1) Then
          If ((MM_rsCount Mod MM_size) > 0) Then
            MM_offset = MM_rsCount - (MM_rsCount Mod MM_size)
          Else
            MM_offset = MM_rsCount - MM_size
          End If
        End If
      End If
      ' reset the cursor to the beginning
      If (MM_rs.CursorType > 0) Then
        MM_rs.MoveFirst
      Else
        MM_rs.Requery
      End If
      ' move the cursor to the selected record
      MM_index = 0
      While (Not MM_rs.EOF And MM_index < MM_offset)
        MM_rs.MoveNext
        MM_index = MM_index + 1
      Wend
    End If
    %>
    <%
    ' *** Move To Record: update recordset stats
    ' set the first and last displayed record
    Recordset1_first = MM_offset + 1
    Recordset1_last  = MM_offset + MM_size
    If (MM_rsCount <> -1) Then
      If (Recordset1_first > MM_rsCount) Then
        Recordset1_first = MM_rsCount
      End If
      If (Recordset1_last > MM_rsCount) Then
        Recordset1_last = MM_rsCount
      End If
    End If
    ' set the boolean used by hide region to check if we are on the last record
    MM_atTotal = (MM_rsCount <> -1 And MM_offset + MM_size >= MM_rsCount)
    %>
    <%
    ' *** Go To Record and Move To Record: create strings for maintaining URL and Form parameters
    Dim MM_keepNone
    Dim MM_keepURL
    Dim MM_keepForm
    Dim MM_keepBoth
    Dim MM_removeList
    Dim MM_item
    Dim MM_nextItem
    ' create the list of parameters which should not be maintained
    MM_removeList = "&index="
    If (MM_paramName <> "") Then
      MM_removeList = MM_removeList & "&" & MM_paramName & "="
    End If
    MM_keepURL=""
    MM_keepForm=""
    MM_keepBoth=""
    MM_keepNone=""
    ' add the URL parameters to the MM_keepURL string
    For Each MM_item In Request.QueryString
      MM_nextItem = "&" & MM_item & "="
      If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then
        MM_keepURL = MM_keepURL & MM_nextItem & Server.URLencode(Request.QueryString(MM_item))
      End If
    Next
    ' add the Form variables to the MM_keepForm string
    For Each MM_item In Request.Form
      MM_nextItem = "&" & MM_item & "="
      If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then
        MM_keepForm = MM_keepForm & MM_nextItem & Server.URLencode(Request.Form(MM_item))
      End If
    Next
    ' create the Form + URL string and remove the intial '&' from each of the strings
    MM_keepBoth = MM_keepURL & MM_keepForm
    If (MM_keepBoth <> "") Then
      MM_keepBoth = Right(MM_keepBoth, Len(MM_keepBoth) - 1)
    End If
    If (MM_keepURL <> "")  Then
      MM_keepURL  = Right(MM_keepURL, Len(MM_keepURL) - 1)
    End If
    If (MM_keepForm <> "") Then
      MM_keepForm = Right(MM_keepForm, Len(MM_keepForm) - 1)
    End If
    ' a utility function used for adding additional parameters to these strings
    Function MM_joinChar(firstItem)
      If (firstItem <> "") Then
        MM_joinChar = "&"
      Else
        MM_joinChar = ""
      End If
    End Function
    %>
    <%
    ' *** Move To Record: set the strings for the first, last, next, and previous links
    Dim MM_keepMove
    Dim MM_moveParam
    Dim MM_moveFirst
    Dim MM_moveLast
    Dim MM_moveNext
    Dim MM_movePrev
    Dim MM_urlStr
    Dim MM_paramList
    Dim MM_paramIndex
    Dim MM_nextParam
    MM_keepMove = MM_keepBoth
    MM_moveParam = "index"
    ' if the page has a repeated region, remove 'offset' from the maintained parameters
    If (MM_size > 1) Then
      MM_moveParam = "offset"
      If (MM_keepMove <> "") Then
        MM_paramList = Split(MM_keepMove, "&")
        MM_keepMove = ""
        For MM_paramIndex = 0 To UBound(MM_paramList)
          MM_nextParam = Left(MM_paramList(MM_paramIndex), InStr(MM_paramList(MM_paramIndex),"=") - 1)
          If (StrComp(MM_nextParam,MM_moveParam,1) <> 0) Then
            MM_keepMove = MM_keepMove & "&" & MM_paramList(MM_paramIndex)
          End If
        Next
        If (MM_keepMove <> "") Then
          MM_keepMove = Right(MM_keepMove, Len(MM_keepMove) - 1)
        End If
      End If
    End If
    ' set the strings for the move to links
    If (MM_keepMove <> "") Then
      MM_keepMove = Server.HTMLEncode(MM_keepMove) & "&"
    End If
    MM_urlStr = Request.ServerVariables("URL") & "?" & MM_keepMove & MM_moveParam & "="
    MM_moveFirst = MM_urlStr & "0"
    MM_moveLast  = MM_urlStr & "-1"
    MM_moveNext  = MM_urlStr & CStr(MM_offset + MM_size)
    If (MM_offset - MM_size < 0) Then
      MM_movePrev = MM_urlStr & "0"
    Else
      MM_movePrev = MM_urlStr & CStr(MM_offset - MM_size)
    End If
    %>
    <% Session ("accountname") = Recordset1.Fields.Item("SNAM12").Value%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>S2N part stock summary</title>
    <link href="Style.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="352"><img src="Assets/invertednifco.jpg" alt="Nifco logo" width="199" height="55" longdesc="http://www.nifcoeu.com" /></td>
        <td width="34%"> </td>
        <td width="352" align="right" valign="top" class="style23"><p>Logged in as:
          <%Response.Write(Session("MM_Username"))%>
                <br />
            <a href="<%= MM_Logout %>">Logout</a></p></td>
      </tr>
      <tr>
        <td width="352" valign="bottom"><img src="Assets/horizontal_grey_line.jpg" alt="grey line" width="352" height="5" /></td>
        <td> </td>
        <td width="352"> </td>
      </tr>
      <tr>
        <td width="352" class="style4"><span class="nifco_banner_txt">NI</span><span class="style21"><span class="nifcoF">f</span></span><span class="nifco_banner_txt">CO UK LIMITED</span></td>
        <td> </td>
        <td width="352"> </td>
      </tr>
      <tr>
        <td width="352" height="52" class="style4"> </td>
        <td> </td>
        <td width="352"> </td>
      </tr>
      <tr>
        <td colspan="3" align="center" valign="middle"><table width="99%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#000000">
          <tr>
            <td><div align="center">
              <h5 align="center">Your part number</h5>
            </div></td>
            <td><div align="center">
              <h5 align="center">Nifco part number</h5>
            </div></td>
            <td><div align="center">
              <h5 align="center">Part description</h5>
            </div></td>
            <td><div align="center">
              <h5 align="center">Actual stock</h5>
            </div></td>
            <td><div align="center">
              <h5 align="center">Stock on Order</h5>
            </div></td>
            <td><div align="center">
              <h5 align="center">Stock in Transit</h5>
            </div></td>
            <td><div align="center">
              <h5 align="center">UOM</h5>
            </div></td>
            <td><div>
              <h5 align="center">Nifco specific part</h5>
            </div></td>
            <td><h5> </h5></td>
            <td> </td>
          </tr>
          <%
    Dim RecordCounter
    RecordCounter = 0
    %>
          <%
    While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF))
    %>
              <% If Not Recordset1.EOF Or Not Recordset1.BOF Then %>
                <tr bgcolor=
              "<%
        RecordCounter = RecordCounter + 1
        If RecordCounter Mod 2 = 1 Then
          Response.Write "#999999"
         End If
        %>"
            >
                  <td><div>
                      <p align="center"><%=(Recordset1.Fields.Item("VNDR12").Value)%> </p>
                  </div></td>
                  <td><div>
                      <p align="center"><%=(Recordset1.Fields.Item("PNUM12").Value)%> </p>
                  </div></td>
                  <td><div>
                      <p align="center"><%=(Recordset1.Fields.Item("PDES12").Value)%></p>
                  </div></td>
                  <td><div>
                      <p align="center"><%=(Recordset1.Fields.Item("ASTK12").Value)%> </p>
                  </div></td>
                  <td><div>
                      <p align="center"><%=(Recordset1.Fields.Item("OSTK12").Value)%></p>
                  </div></td>
                  <td><div>
                      <p align="center"><%=(Recordset1.Fields.Item("ISTK12").Value)%></p>
                  </div></td>
                  <td><div>
                      <p align="center"><%=(Recordset1.Fields.Item("UOFM12").Value)%></p>
                  </div></td>
                  <td width="26"><div align="center"><%=(Recordset1.Fields.Item("NIFC12").Value)%></div></td>
                  <td width="26"><p><a href="update.asp?<%= Server.HTMLEncode(MM_keepURL) & MM_joinChar(MM_keepURL) & "VNDR12=" & Recordset1.Fields.Item("VNDR12").Value %>">Edit</a></p></td>
                  <td width="45"><p align="center"><a href="delete.asp?VNDR12=<%=(Recordset1.Fields.Item("VNDR12").Value)%>">Delete</a></p></td>
                </tr>
                <% End If ' end Not Recordset1.EOF Or NOT Recordset1.BOF %>
              <%
      Repeat1__index=Repeat1__index+1
      Repeat1__numRows=Repeat1__numRows-1
      Recordset1.MoveNext()
    Wend
    %>
        </table>
            <p> </p></td>
      </tr>
      <tr>
        <td width="352"> </td>
        <td><div align="center">
          <table border="0">
              <tr>
                <td><% If MM_offset <> 0 Then %>
                    <a href="<%=MM_moveFirst%>">First</a>
                    <% End If ' end MM_offset <> 0 %>            </td>
                <td><% If MM_offset <> 0 Then %>
                    <a href="<%=MM_movePrev%>">Previous</a>
                    <% End If ' end MM_offset <> 0 %>            </td>
                <td><% If Not MM_atTotal Then %>
                    <a href="<%=MM_moveNext%>">Next</a>
                    <% End If ' end Not MM_atTotal %>            </td>
                <td><% If Not MM_atTotal Then %>
                    <a href="<%=MM_moveLast%>">Last</a>
                    <% End If ' end Not MM_atTotal %>            </td>
              </tr>
              </table>
        </div>      <p align="center">      Records <%=(Recordset1_first)%> to <%=(Recordset1_last)%> of <%=(Recordset1_total)%></p></td>
        <td width="352" height="52" align="right" valign="bottom"> </td>
      </tr>
      <tr>
        <td width="352" align="center"><a href="newpart.asp">Register a new part</a></td>
        <td><% If Recordset1.EOF And Recordset1.BOF Then %>
            <div align="center">
              <h5>I'm sorry, no records found.<br />
                <input type="button" name="btnCancel" value="Go back!" onclick="history.back()"/>
                    </h5>
            </div>
            <% End If ' end Recordset1.EOF And Recordset1.BOF %></td>
        <td width="352" align="right" valign="bottom"><img src="Assets/horizontal_grey_line.jpg" alt="grey line" width="353" height="5" /></td>
      </tr>
      <tr>
        <td width="352"> </td>
        <td> </td>
        <td width="352"><div align="left"><span class="nifco_banner_txt">NI</span><span class="nifcoF">f</span><span class="style21"><span class="nifco_banner_txt">CO UK LIMITED</span></span></div></td>
      </tr>
      <tr>
        <td colspan="3"><div align="center" class="p_text">Nifco Supplier Stock Management System</div></td>
      </tr>
    </table>
    </body>
    </html>
    <%
    Recordset1.Close()
    Set Recordset1 = Nothing
    %>

    It depends on the markup situation, for example if your
    images are *not* wrapped in a container element that contains just
    the image, then I would do something like this:
    <img spry:if="'{boximage}' != '' &amp;&amp;
    '{boximage}' != 'undefined'" src="{boximage}" />
    <img spry:if="'{boximage}' == '' || '{boximage}' ==
    'undefined'" src="MissingImage.jpg" />
    Or in the case of the products demo where we have an image in
    a <p> I would use a spry:choose:
    <p spry:choose="choose">
    <img spry:when="'{boximage}' != '' &amp;&amp;
    '{boximage}' != 'undefined'" src="{boximage}" />
    <img spry:default="default" src="MissingImage.jpg" />
    </p>
    Using spry:choose where you can is better because it means
    the region processing code has one less conditional expression to
    evaluate since the default case has no expression associated with
    it.
    --== Kin ==--

  • Show if field is not empty - PHP/MySQL

    Is there a way I can only show bits of a page if a recordset
    has entries in a certain field, automatically hiding the area if
    the field is empty. (PHP/MySQL)
    To put it in real terms, I have loads of products listed in a
    repeating table. If a product has a photo gallery related to it
    there is a 1 entered in 'photos' field, it has a video attached
    here is a 1 entered in 'videos field and likewise for reviews it
    will have a 1 entered in the reviews field.
    What I'd like to have is a photo, video and review icon/link
    in the 'master table' which only appears in the repeated products
    that have a 1 listed in that field and have them not appear at all
    when there is a 0 in the field.
    Can anyone help me figure it out

    ADDT is certainly a great help, as it - among many other
    features - will allow you define whatever page element as
    "show/hide" based on a query result -- for this it´s using a
    so-called "condition builder" which lets you do that without
    coding.
    However you can achieve the same result without needing to
    resort to ADDT -- by using a basic "if" condition that´s
    checking the respective table column for having the value "1"
    stored, and if so, display the page segment
    The following 3 examples should work when replacing the
    sample "queryname" with the query name your page is actually using:
    <?php if ($row_queryname['photos'] == '1') {?>
    display photo icon here
    <?php }?>
    <?php if ($row_queryname['videos'] == '1') {?>
    display video icon here
    <?php }?>
    <?php if ($row_queryname['reviews'] == '1') {?>
    display videos icon here
    <?php }?>

  • Adobe Acrobat Version 9.0 & X are not showing "Clear Signature Field" with Custom e-sign plug-in

    Hi...
    We have created Custom PDF signature plug-in using Adobe X SDK.
    Earlier we had the same Custom PDF signature plug-in with Adobe 7.0 SDK and it used to show "Clear Signature Field" in context menu of digital signature placed on PDF.
    After upgrading the Custom signature plug-in to Adobe X SDK (complied again with SDK X, earlier it used to be 5.0 SDK) to support Acrobat 9, X and XI for digital signature, the "Clear Signature Field" option is appearing in context menu of digital signature box. Even the "Clear Signature Field" option is not shown for the user who has signed the document.
    "Clear Signature" option is available for Adobe Default Security signature.
    We have not changed anything in our plug-in code apart from recompiling it with Adobe X SDK.
    This is a critical issue for us.
    Here is the screen-shot from signed PDF having Adobe Default signature as well as our Custom plug-in signature.
    Here it clearly shows that "Clear Signature" option is not present in signature placed by Custom plug-in.
    Please let us know if anyone else has faced this type of issue earlier and has a resolution.
    Thanks In Advance...
    Waseem

    I am still not getting the Clear signature option for the user who has signed the PDF using Custom PDF Signature plug-in but the same is available for Acrobat Default security signature.
    Custom plug-in is compliled with Adobe X SDK and we have not made any code change to hide the Clear Signature option.
    I found a related posts where Clear Signature option is not shown:
    http://forums.adobe.com/message/5092195

  • Refresh of a Report Builder Dataset does NOT show newly added field

    I'm working with Report Builder 2.0 (we don't plan on getting SQL 2008 R2 - so NO 3.0 for us!) and have found that if I have an existing report using an existing stored procedure (it has 4 existing parameters) and I add a new field to the stored procedure
    it will not refresh the
    data set.  I have gone to the DataSet properties and executed the query(SPROC) where it does show the new field (so I know the sproc will
    execute), but when I click OK and hit Refresh Fields it stops responding.  I also tried the same steps without the Refresh Fields and still stops responding.  I also tried to add the field name and it errored out as invalid.
    The only work around I've found is to
    create a new dataset referencing the updated SPROC with a different name, deleting the old dataset and then re-naming the newer dataset with the old
    one's name so all the field references are the same.  I do know that in the case of renaming
    a field in a sproc that this would end BADLY because there is no way any of the old field's references would work.  
    But it seems odd I have to go through so much to refresh for new fields, so perhaps I'm missing a step in dealing with this situation.  Any recommendations would be appreciated.

    Hi CinBH,
    I understand that the Report Builder 2.0 hangs while flush the dataset by executing the query. In that case, I think it is necessary to capture a user dump when the problem occurred. And then, you can send the dump to Microsoft CSS support. Support Professionals
    from Microsoft will assist you to solve the problem.
    I am providing the steps below for you to gather the hang dump or crash dump to further work on this issue,
    Hang dump,
    a. Open Report Builder as usual, and wait for a while.
    b. When you found that the Report Builder application hang, and was not responding, please open TaskManager by one of follws,
    - Pressing “Ctrl + Alt + Del” button and then click “Start Task Manager” item.
    - Or right-clicking your task bar, click “Start Task Manager”menu.
    c. Once the Task Manager opened, switch to Process tab, find the “Report Builder” process MSReportBuilder.exe.
    d. Right-click the item, click Create dump file.
    e. After that, it will prompt a window and let you know the location of the dump file.
    You can copy the hang dump or crash dump file to your development machine configured with symbols files, and open it in Visual Studio 2008. Next, you can analyze the error / exception, and call stacks to see why the error happens.
    Thanks,
    Eileen

  • On OSX 10.6.8 Mac Mail sent items do not show the Bcc field. Adjusting settings in mail/prefs/viewing/custom/bcc has no affect on Mail, ie Bcc still does not appear on sent items. Anyone got a fix?

    On OSX 10.6.8 Mac Mail sent items do not show the Bcc field. Adjusting settings in mail/prefs/viewing/custom/bcc has no affect on Mail, ie Bcc still does not appear on sent items. Yet another example of Mac caring not a jot about the performance of versions of OS and software running on on older hardware. Anyone got a fix by any chance? Oh and fyi I need to see the Bcc in sent items to confirm sent email is attaching to Salesforece - when I see the Bcc I know I can delete it as a copy will be in SForce. Big thanks W.

    On OSX 10.6.8 Mac Mail sent items do not show the Bcc field. Adjusting settings in mail/prefs/viewing/custom/bcc has no affect on Mail, ie Bcc still does not appear on sent items. Yet another example of Mac caring not a jot about the performance of versions of OS and software running on on older hardware. Anyone got a fix by any chance? Oh and fyi I need to see the Bcc in sent items to confirm sent email is attaching to Salesforece - when I see the Bcc I know I can delete it as a copy will be in SForce. Big thanks W.

  • Next Button in a Hide and Show Region is not displayed correctly

    I created a new button at the bottom of the region in a Hide and Show Region called [Next >]. The button is displayed to the right of the region. I want it displayed at the right end of the bottom of the region. The following is the button properties
    Name
    Button Name : NEXT_SIGNS
    Text Label/Alt: Next >
    Displayed
    Sequence            130
    Display in Region: Signs and Nameplates (1) 100
    Button Position:    Bottom of Region
    Button Alignment: Right
    Attributes
    Static ID:          
    Button Style:      Template Based Button
    Button Template: PA Button
    Button Type:       Hot
    Button Attributes:
    Action When Button Clicked
    Action:                 Submit Page
    Execute Validation: Yes
    Database Action:    No Database Action
    Conditions
    None
    Security
    None
    Configuration
    NoneWhy is this occurring and how can I resolve the issue?
    The following is the template of the hide and show region:
    <div class="hide-show-region" id="#REGION_STATIC_ID#" #REGION_ATTRIBUTES#>
      <div class="hide-show-top">
        <div class="hide-show-title">
    <div class="rounded-corner-region">
    <div class="rc-blue-top">      
    <div class="rc-blue-top-r">
              #TITLE#</div>
    </div>
    </div>
           <a style="margin-left:5px;" href="javascript:hideShow('region#REGION_SEQUENCE_ID#','shIMG#REGION_SEQUENCE_ID#','#IMAGE_PREFIX#themes/theme_2/rollup_plus_dgray.gif','#IMAGE_PREFIX#themes/theme_2/rollup_minus_dgray.gif');" class="t1HideandShowRegionLink"><img src="#IMAGE_PREFIX#themes/theme_2/rollup_plus_dgray.gif"
      id="shIMG#REGION_SEQUENCE_ID#" alt="" />Click on arrow to enter/hide  information for signs and/or nameplates</a></div>
        <div class="hide-show-buttons">#CLOSE##PREVIOUS##NEXT##DELETE##EDIT##CHANGE##CREATE##CREATE2##EXPAND##COPY##HELP#</div>
      </div>
      <div class="hide" id="region#REGION_SEQUENCE_ID#">#BODY#</div>
    </div>APEX version 4.1
    DB version 10g Rel 2
    PLEASE HELP!!
    Robert
    http://apexjscss.blogspot.com

    I created a new button at the bottom of the region in a Hide and Show Region called [Next >]. The button is displayed to the right of the region.I only see it displayed to the right of the region in Firefox (Safari and IE8 showed it above the sub-regions). Not obvious to me why this is the case (it's usually IE that does it's own thing).
    I want it displayed at the right end of the bottom of the region.Button position Bottom of Region causes an anonymous HTML table containing the button(s) to be generated after the <tt>#BODY#</tt> placeholder in the region template. Your Hide/Show region template didn't have a <tt>#SUB_REGIONS#</tt> placeholder so by default the sub-regions were rendered after the <tt>#BODY#</tt> and the "Bottom of Region" button container (don't know if this is the intended behaviour or a bug). Adding <tt>#SUB_REGIONS#</tt> before <tt>#BODY#</tt> in the template gets things in the right order (button after sub-regions):
    <div class="hide-show-region" id="#REGION_STATIC_ID#" #REGION_ATTRIBUTES#>
      <div class="hide-show-top">
        <div class="hide-show-title">
    <div class="rounded-corner-region">
    <div class="rc-blue-top">      
    <div class="rc-blue-top-r">
              #TITLE#</div>
    </div>
    </div>
           <a style="margin-left:5px;" href="javascript:hideShow('region#REGION_SEQUENCE_ID#','shIMG#REGION_SEQUENCE_ID#','#IMAGE_PREFIX#themes/theme_2/rollup_plus_dgray.gif','#IMAGE_PREFIX#themes/theme_2/rollup_minus_dgray.gif');" class="t1HideandShowRegionLink"><img src="#IMAGE_PREFIX#themes/theme_2/rollup_plus_dgray.gif"
      id="shIMG#REGION_SEQUENCE_ID#" alt="" />Click on arrow to enter/hide  information for signs and/or nameplates</a></div>
        <div class="hide-show-buttons">#CLOSE##PREVIOUS##NEXT##DELETE##EDIT##CHANGE##CREATE##CREATE2##EXPAND##COPY##HELP#</div>
      </div>
      <div class="hide" id="region#REGION_SEQUENCE_ID#">
        #SUB_REGIONS#
        #BODY#
      </div>
    </div>Firefox is still showing the button to the right of the sub-regions. I'm assuming that this has something to do with everything in this theme being floated left (for reasons that escape me), so we'll try to clear the button container using CSS. The table doesn't have an ID or class so try an adjacent sibling selector using the ID of the preceding sub-region:
    #nameplates-name+table {
      clear: both;
    }Finally, the button alignment was set to "Left", so I changed it to "Right".
    Seems to be working in IE8 (all I have access to at present).
    Edited by: fac586 on 30-Nov-2012 20:10
    Fixed CSS selector syntax.

  • Classic Report with Hide and Show Region Template does not show report

    Hello,
    I created a "No Template" region on a page with a Classic Report. When I change it to a "Hide and Show" region template, the report does not show up when I click to Show the region...is there an additional step i'm missing to make the report show up. Its a very simple query.
    Thanks in advance,
    John

    How about posting some relevant information like Apex version, RDBMS version, Theme you are using, etc.?
    Regards,

  • ABAP query output not showing all output fields

    I added a new field group in an existing query and marked them to display in the output list. When I test the output from SQ01 -> InfoSer Query, the output is what I expect. However, if I execute the query itself, it does not show the additional fields I just created.
    I notice that in the Basic List layout design, the new fields are on a new line and not appended to the same line as the output fields before I did the modifications. I already tried to manipulate the output length and positions, but it didn't help. I turned on the ruler to drag the fields in the desired positions, sometimes it works but not for all the fields. Can someone help me please?

    I figured it out already. The maximum width for the report output is 255 only. Switching from graphical query painter, I got the error that some fields were overlapping. Then I recalculated the starting positions of the fields and adjusted their lengths. 

  • How to show attributes only in query panel but not in Add fields.

    Hi,
    Jdev - 11.1.1.7.0
    I have a requirement where I need to show attribute only in search panel but not in Add Fields list which is available in advanced section.
    Thanks for your time and help.
    Regards,
    Dileep.

    Hi,
    Is it really possible implement this kind of scenario, I could not find any property to disable the attribute only 'Add Fields' but not in query panel.
    Please some one confirm me this behavior.
    Thanks,
    Dileep.

  • Table Maintainace generator not showing all the fields in table

    Hello,
    I generate table maintainace genrator for Z-Table and also create Tranaction code for that.
    I have 27 fields in my Z-table but when I run tranaction code for table maintanance generator it shows only 8 fields.
    I want to show all 27 fields in my tranaction code of table maintainace generator.
    How I can Achieve this?
    Please Suggest.
    Thanks,
    Amit

    Hello Ram,
    Thanks for your answer.
    I increases lenght of screen and table control and activate function group.
    But still in program PBO of screen it showing 8 fields as follows:
    CHAIN.
        FIELD ZPROJ_FIN_STATS-PSPID .
        FIELD ZPROJ_FIN_STATS-GJAHR .
        FIELD ZPROJ_FIN_STATS-MONAT .
        FIELD ZPROJ_FIN_STATS-POSID .
        FIELD ZPROJ_FIN_STATS-IS_REL .
        FIELD ZPROJ_FIN_STATS-IS_TECO .
        FIELD ZPROJ_FIN_STATS-IS_CLSD .
        FIELD ZPROJ_FIN_STATS-LEG_STATUS .
        MODULE SET_UPDATE_FLAG ON CHAIN-REQUEST.
       ENDCHAIN.
    but Iwant total 27 field to show.
    How I can achieve this?
    Thanks,
    Amit

  • Recordset is not updateable in Access 2010 but works in previous versions

    I have a database that writes data from SQL tables to unbound controls on an unbound form. This database has been in place for years and has worked great. We recently just upgraded to 2010 and now I' m receiving an error message saying that the recordset
    is not updateable. This is the same exact code and settings and everything else that has worked in 2007.
    I know there are other posts on here that addressed this but none of the recommendations have solved my problem. I've tried changing the forms to dynaset(inconsistent updates), etc. and nothing.
    The actual SQL is all in VBA where it's running the SQL commands against SQL Server and writing the data to the unbound fields and then also writing it back to the tables. As I said, this has been in place for a number of years and has always worked great
    but I just can't put any rhyme to reason why it's not working in 2010.

    Hi,
    Based on my research, here’s the information about this error message:
    A recordset is never updateable when:
    It is based on a Crosstab query.
    It is based on a Union Query.
    It is an Aggregate Query that calculates a sum, average, count or other type of total on the values in a field.
    It is an Update Query that references a field in the Update To row from either a crosstab query, select query, or subquery that contains totals or aggregate functions
         Note: By using a domain aggregate function in the Update To row of an update query, you can reference fields from either a crosstab query, select query, or subquery that contains totals or aggregate functions.
    It is based on a Query that includes a linked ODBC table with no unique index.
    The database was opened as read-only or is located on a read-only drive.
    It is a SQL pass-through query.
    It is a query whose UniqueValues property is set to Yes. (That is, it is a query with a DISTINCT predicate.)
    Cartesian Joins(that is, a query that includes more than one table or query, and the tables or queries aren't joined by a join line in Design view.)
    Query based on three or more tables in which there is a many-to-one-to-many relationship.
         Note: Though you can't update the data in the query directly, you can update the data in a form or data access page based on the query if the form's RecordsetType property is set to Dynaset (Inconsistent Updates).
    Calculated fields. Even if the query itself is updateable, if a column in a query is based on a formula, the field cannot be updated. However, if the other fields in the formula are updated, the calculated field
    will automatically update.
    Recordsets Are Updateable Under Certain Conditions
    1. Query based on a Join of tables with no Relationship.
    Problem: If a query is based on two or more tables that DO NOT have a relationship established (with Referential Integrity enabled), the query will be non-updateable.
    Solution: Create a Primary Key or Unique Index on ALL of the fields used in the Join on the "one-side" table. To be clear, this means ONE primary key or unique index based on all of the fields, not separate indexes
    on each field.
    In a query based on a Join of tables with a one-to-many relationship (1:M), you might not be able to edit the data in one or more fields. As the following examples show :
    2. Join field from the "one" side.
    Problem: If you have a 1:M relationship created between two tables, you cannot change the primary key field (used in the Join) of the table on the "one" side of the relationship.
    Solution: Enable cascading updates between the two tables.
    3. New records, if the "many" side join field doesn't appear in the datasheet
    Problem: In a query based on a 1:M relationship, you can create a new record and fill in the fields that come from the "one" side table, but if the join field from the "many" side table is not visible in the
    query (that is, the foreign key), you cannot add data to the "many" side fields.
    Solution: Add the join field from the "many" side table (ie, foreign key) to your query to allow adding new records.
    4. New records on the "one" side that are duplicates of other "one" side records.
    Problem: When adding a new record, if you try to type into the "one" side fields, you will be attempting to create a new record. Even if you use the same primary key values, it will give you an error.
    Solution: Add a value to the "many" side join field (foreign key) that matches the "one" side join field (primary      key) of an already existing record. The "one" side values will simply
    appear.
    5. Join field from the "many" side, after you've updated data on the "one" side
    Problem: If you are currently editing fields from the  "one" side of the relationship, you cannot change the "many" side join field (foreign key).
    Solution: Save the record; then you'll be able to make changes to the "many" side join field.
    6. New records, if entire unique key of ODBC table isn't output
    Problem: This is different than #5 under Never Updateable. In this case, the primary key of the linked ODBC table exists, but is not added to the query.
    Solution: Select all primary key fields of ODBC tables to allow inserts into them.
    7. Query does not have Update Data permissions
    Problem: Query (or underlying table) for which Update Data permission isn't granted.
    Solution: To modify data, permissions must be assigned.
    8. Query does not have Delete Data Permissions
    Problem: Query (or underlying table) for which Delete Data permission isn't granted
    Solution: To delete data, permissions must be assigned.
    Jaynet Zhang
    TechNet Community Support

  • An entry in field Funds Ctr is not permitted for account 401000 Message no F5394

    Hi Friends,
    I have done Fund Management configuration and while posting the document through FB50, I am getting error message " An entry in field Funds Ctr is not permitted for account 401000 "Message no. F5394 and I also checked Field status and Posting keys for Gl account and everything looks fine..
    Please help on this..
    Thanks
    Goutam

    Hi,
    please check the message the error will give you the table number or Programme  name
    go to SE38  for programme and for table SM30
    system will show where is the exact error facing.
    thanks

  • MB5B - Stock on posting date doesn't show Storage Location field

    Hi All,
    I run report MB5B - Stock on posting date with Stock Types = Storage Loc/Batch Stock, but the report doesn't show
    Storage Location field in result.
    How can I see it in this report?
    Thank you very much for your kind support!
    Cao Huy.

    hi
    what i think i sthis report is only for the OPENINGand CLOSING stock for the period or day
    now whenu give SL field then system will only concider stock from that SL
    the filed of SL will not be viewable in report as it is just opening and closing balance
    regards
    kunal

Maybe you are looking for