RE: RUN command in BDL + Web Front End 3.54 - wrong return code?
"Nanno Scheringa" <[email protected]>
| Newsgroups | gmane.comp.lang.4gl.fourjs.user |
|---|---|
| Message-ID | <[email protected]> |
Hello, Won't the web front end be running as user apache or http or something simular? In that case has that user access rights on fglform? HTH, Regards, Nanno Scheringa Ensemble B.V -----Oorspronkelijk bericht----- Van: [email protected] [mailto:[email protected]] Namens [email protected] Verzonden: woensdag 22 juni 2005 16:31 Aan: [email protected] Onderwerp: [fourjs-users] RUN command in BDL + Web Front End 3.54 - wrong return code? Hello, anybody out there using the latest version (3.54) of BDL compiler/DVM and Web Front End? We have noticed some strange behaviour of the RUN command in our Web application (with on-the-fly generation/compilation of .per form files) in this version. A very, very simplified example (main 4gl file): DATABASE somedb MAIN DEFINE f_command CHAR(80), ReCo INTEGER # return code ... initializations, some other stuff; eventually generate someform.per ... LET f_command = "fglform someform.per" RUN f_command RETURNING ReCo IF ReCo = 0 THEN ... do something with this form (OPEN WINDOW etc.) ... ELSE ... something went wrong ... END IF END MAIN If this is called via command line (FGLGUI=0) and someform.per is syntactically correct, ReCo is 0 (as expected). However, if this is called via the Web Front End, ReCo surprisingly is -1, _whether someform.per is syntactically correct or not_ (we can see the message "... form compilation was successful" in fglasd's output, if we start it in debug mode and someform.per is valid). It doesn't matter if we DEFINE ReCo INTEGER or SMALLINT. Our environment is: - SuSE Linux Enterprise Server 9 (SLES 9, glibc 2.3.3) - BDL compiler/DVM 3.54 - Web Front End 3.54 All this used to work with DVM 3.10 and Web Front End 3.10/3.20 (on older linux versions). What are we missing/doing wrong? -- Matthias Krauße UNIX/INFORMIX Administration Group active logistics Herdecke GmbH