baseportal
Start

baseportal message board

Welcome to the baseportal message board...

Please read the FAQ.

 
 Selected message: To the list 
    Message from Harald Bjerkan on 5/13 2007, 10:06 +00:00

    new entry notified by email/ word compatible


      Hi..
      In the pay version it is possible to be notified by email. In the free version you may use an additional database as a log. Copy your main database and add as the first field a date field and specify Time: Creating. Evry time a record is added to the main database, do also add the same record to the log db.
      When a record is modified in the main database do not modify the log, but add the data as a new record. If you also add a Transaction field in the log db and put New there for new records, Modified for modified and Deleted for deleted records, you will have full overview of all transactions. Here is a test database:

      http://www.baseportal.com/cgi-bin/baseportal.pl?htx=/habjerka/demo2/members

      Username: demo1
      Password: 111

      The database will be closed May 30th

      Regards
      Harald

    Your reply:

    Name: EMail: WWW:
    Subject:
    Text:
    Timezone:

    Post a new message


 All messages from this thread: To the list 

    Message from bugmenot on 5/20 2007, 23:31 +00:00

    Re: Display result in Red


      You have to replace the one line baseportal command by your own custom perl loop.
      If you have not yet done that, do it first.

      You must then generate correct HTML in that loop. Probably something like :
       This is a <span style="color:red">red</span> word.

      There are many ways to add an if test, once you got this far.
     Post a reply

    Message from Claus on 5/23 2007, 13:49 +01:00

    Re: Display result in Red


      Hi,

      try it in this way:

      <loop db=your_database code=perl>
      $color="black";
      $color="red" if ($testfield eq "stolen");
      out"<font color=$color>$filed1 - $field2 etc...<br></font>";
      </loop>

      hth

      Claus

     Post a reply
     
 Messages from 450 to 600: To the input form 
<< Newest messages | < Newer messages | To the input form | Older messages > | Oldest messages >>


Back to the homepage

© baseportal.com. All rights reserved. Terms of use



baseportal.com