Focal Point
[CLOSED] Cannot expose FORM variables

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/4897042776

July 15, 2015, 01:18 AM
PGPoulsen
[CLOSED] Cannot expose FORM variables
Hi

When I try to expose a FORM variable I get this error (the program is rettkod.fex and the variable is CPR):
0 ERROR AT OR NEAR LINE     19  IN PROCEDURE _rettkodFOCEXEC * 
(FOC295) A VALUE IS MISSING FOR: CPR


I'm pretty sure that the code is correct because it works in production environment. It just won't work in test environment.

I cannot figure out what is wrong with my test environment. Any help/hints would be appreciated.

Note that I'm use a very old version of webFOCUS. Version 4.3.5

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS 4.3.5
Windows
July 15, 2015, 10:04 AM
GamP
You could start your debugging process by issueing a -? & on the first line of your rettkod fex, possibly followed by a -EXIT. That way you'll see exactly what variables are available to you at the beginning of the procedure.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
July 15, 2015, 11:46 AM
PGPoulsen
Thanks alot!

I have now tried it and &CPR is not defined. Now the big question is: why? As I wrote it does work in production. It is just in the test environment that it doesn't work.

CURRENTLY DEFINED & VARIABLES:                                       
   &&DAG         = 15                                                           
   &&DAGMD       = 1507                                                         
   &&DAGSDATO    = 20150715                                                     
   &&DATO        = 15. juli 2015                                                
   &&DREV        = D:                                                           
   &&LAES        = SQL SQLMSS SET CONCUR RONLY                                  
   &&PRINTBIBL   = C:\TBS\Print\                                                
   &&SKRIV       = SQL SQLMSS SET CONCUR ROWVER                                 
   &&STARTDATO   = 15072015                                                     
   &&SYSTYPE     = TEST                                                         
   &ACCEPTS      =        0                                                     
   &AUTOINDEX    = NO                                                           
   &BASEIO       =        0                                                     
   &CHNGD        =        0                                                     
   &DATE         = 07/15/15                                                     
   &DELTD        =        0                                                     
   &DMY          = 150715                                                       
   &DMYY         = 15072015                                                     
   &DUPLS        =        0                                                     
   &FOCNEXTPAGE  =        0                                                     
   &FOCREL       = R729902B                                                     
   &FORMAT       =        0                                                     
   &INDEXIO      =        0                                                     
   &INPUT        =        0                                                     
   &INVALID      =        0                                                     
   &KONTORID     = IT                                                           
   &LAN          = 6                                                            
   &LINES        =        0                                                     
   &MDY          = 071515                                                       
   &MDYY         = 07152015                                                     
   &NOMATCH      =        0                                                     
   &NYTILSS      = 4                                                            
   &OMB          = N                                                            
   &PRINTER      =                                                              
   &PROGMODE     =                                                              
   &READS        =        0                                                     
   &RECORDS      =        0                                                     
   &REJECTS      =        0                                                     
   &REPORTNAME   = Reguleringer mv.                                             
   &RETCODE      =        0                                                     
   &RUSER        = PPO                                                          
   &SAG          = stl                                                          
   &SERVERTEXTID = TEST                                                         
   &SETFILE      =                                                              
   &SORTIO       =        0                                                     
   &STUSYSINITID = TBS                                                          
   &STUSYSTEXTID = Tilbagebetalingssystem                                       
   &TOD          = 17.39.55                                                     
   &TRANS        =        0                                                     
   &YMD          = 150715                                                       
   &YYMD         = 20150715                                                     
  0 ERROR AT OR NEAR LINE     19  IN PROCEDURE _rettkodFOCEXEC * 
   (FOC295) A VALUE IS MISSING FOR: CPR



WebFOCUS 4.3.5
Windows
July 15, 2015, 12:23 PM
Hank W.
So, the next question is where is that &CPR declared - in general, how and where do the other parameters get populated.

Say if you have an -INCLUDE in the beginning for standard shared parameters, is that different in test than in prod & so forth...


Cheers,
H.

WebFOCUS 8.1.05M
Oracle 11g - DB2
RedHat
July 17, 2015, 02:15 PM
Rob Bowen
First I would inspect the Query Parameters being passed by the HTML page either using the F12 debugging tools in the browser, or Fiddler.

If you don't see the value there, then the variable is likely not inside of your form tags.

You may need to post your HTML so that we can take a look at it if it is not getting passed in the request Query Parameters.


WebFOCUS 8.1.04; SQL Server 2012; Windows 7; Windows Server 2012 R2;