hiding fields in a record that have no data

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default hiding fields in a record that have no data

    I am assuming this is pretty simple to do, but I am not sure how. I have an
    asp intranet site I am building. I have a one admin form that allows users to
    post a meeting. They meeting has an area to select a start time and end time.
    in the start time they can select all day event, in which they end time is left
    empty. How on the detail page the user sees, can I hide a field if there is
    not data in it. dreamweaver has the ability to hide a recordset and display
    something else if the recordset is empty, how do you do it for just one field
    and not the whole recordset. Thanks Craig

    Balds Guest

  2. Similar Questions and Discussions

    1. Hiding Text when MySQL has no data value
      When a user signs into my website, he/she sees the following personalized information: Name: sample user Birthdate: 01/01/2005 Favorite color:...
    2. Related Fields - Getting New data into them
      I have related fields that pull data from a record if it matches the serial number from the other record. What i want to be able to do is if...
    3. Fields.value other data types help
      Thanks for the answers to my other post. You nailed it, not char data types. How can I iterate through the fields when the fields are int,...
    4. Hiding data from screen scrapers and bots
      I was hoping someone here would know something about screen scrapers, spiders, bots. Perhaps it's a stupid question, but here it goes anyway... ...
    5. Raw Column Data to Fields
      Here is the situation: Table1 col1 ------------------------------------------- FirstNameLastNameMiddleNameStateCode First 9 chars are...
  3. #2

    Default Re: hiding fields in a record that have no data

    Select the dynamic code on the page and use the server behavior "Show If
    Recordset is not Empty". That will make the area you selected visible only
    if that field has info for that record.


    --
    Nancy Gill
    Team Macromedia Volunteer for Dreamweaver MX/UltraDev
    [url]http://www.macromedia.com/go/team/[/url]
    Co-Author: Dreamweaver MX: Instant Troubleshooter (August, 2003)
    Technical Editor: DMX 2004: The Complete Reference, DMX 2004: A Beginner's
    Guide, Mastering Macromedia Contribute
    Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP Web Development

    "Balds" <webforumsuser@macromedia.com> wrote in message
    news:d2cq0a$hpu$1@forums.macromedia.com...
    > I am assuming this is pretty simple to do, but I am not sure how. I have
    an
    > asp intranet site I am building. I have a one admin form that allows
    users to
    > post a meeting. They meeting has an area to select a start time and end
    time.
    > in the start time they can select all day event, in which they end time is
    left
    > empty. How on the detail page the user sees, can I hide a field if there
    is
    > not data in it. dreamweaver has the ability to hide a recordset and
    display
    > something else if the recordset is empty, how do you do it for just one
    field
    > and not the whole recordset. Thanks Craig
    >

    Nancy Gill Guest

  4. #3

    Default Re: hiding fields in a record that have no data

    On Tue 29 Mar 2005 06:56:58p, Balds wrote in macromedia.dreamweaver.appdev:
    > How on the detail page the user sees, can I hide a field if there is
    > not data in it.
    Pseudocode:

    if (length(myfield) > 0) then
    print myfield
    end if
    Joe Makowiec Guest

  5. #4

    Default Re: hiding fields in a record that have no data

    I tried both methods and couldn't get either one to work. I have tried the
    'show if recordset is not empty' before and that seems to only work if I am
    talking about a whole record not just a field in that record. I should mention
    that I also need to hide the field tag also so I have a <tr> web site:
    (website field from database) </tr> I need that whole <tr> to hide if there is
    not a value for that field. I also tried the following: But I do not think
    I am sure how to implement this. I am a novice in asp coding. where do I put
    that, is there any other syntax that needs to go with it? is that enough code
    to hide the field name tag also or just the field itself? if (length(myfield)
    > 0) then print myfield end if
    Balds Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139