Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon5.gif   Automatic creation of new entry in another logbook, posted by Carlos Mateo on Thu Nov 17 11:50:45 2005 
    icon2.gif   Re: Automatic creation of new entry in another logbook, posted by Stefan Ritt on Fri Nov 18 21:03:03 2005 
       icon7.gif   Re: Automatic creation of new entry in another logbook, posted by Carlos Mateo on Mon Nov 21 10:41:46 2005 
Message ID: 1512     Entry time: Thu Nov 17 11:50:45 2005     Reply to this: 1517
Icon: Question  Author: Carlos Mateo  Author Email: cmateo@indra.es 
Category: Question  OS: Windows  ELOG Version: 2.6.0beta5 
Subject: Automatic creation of new entry in another logbook 
Hi

I am trying to create an entry in logbook2 when I submit a new entry in logbook1. The automatically created entry in logbook2 will have a reference to the entry that created it.

So far I have tried several ways:

1.- Using the "Execute new" I call elog to create the second entry. As the server is single-process, it locks: elog is waiting for elogd to be ready and elogd is waiting for elog to finish to accept new requests.
As my server is on a Windows machine I canīt execute elog on background.

2.- I tried to run 2 servers on different ports using the same elogd.cfd file, calling the second server from elog. This "almost" works: the logbook files are updated, but the original server must be restarted to "see" the changes.

3.- Using the "Menu text" option, I create a link to create the new entry. The problem is that attributes are not parsed: a link like this <a href="/logbook2/?cmd=New&pAttr=Value $ID">Test</a> wonīt substitute $ID

Is there a way to do what I want?

TIA,
Carlos
ELOG V3.1.5-fe60aaf