Menu

Follow up page

Help
MisterT
2005-04-25
2013-06-03
  • MisterT

    MisterT - 2005-04-25

    Hi!
    I'm looking for way to handle an empty result set. I like link the user to a special page if there are no records in the form.

    I've tried the attribute "followUpOnError" but it doesn't help (an empty result set is not an error).

    Are there any ideas with this?

    Thanks in advance + regards T.

     
    • Henner Kollmann

      Henner Kollmann - 2005-04-25

      There's a special tag for this purpose: hasNoRecords!

      Henner

       
      • MisterT

        MisterT - 2005-04-25

        OK, sounds good.

        Unfortunately there's no example for this tag in distribution files. In the documentation I found that the only attribute is "message". How do I have to set it up for a redirection?

        Thanks + regards T.

         
        • Henner Kollmann

          Henner Kollmann - 2005-04-25

          Use the body!

          Henner

           
          • MisterT

            MisterT - 2005-04-25

            What kind of body do you mean?

            regards T.

             
            • Henner Kollmann

              Henner Kollmann - 2005-04-25

              Tag body - see dbforms source. The tag body is only rendered if there is no data.

               

Log in to post a comment.

MongoDB Logo MongoDB