Undefined VARIABLE in FORM

Dear All,
Another post with a classic "undefined <VARIABLE> in
FORM" error message I'm afraid. I don't think this is the usual
problem of scoping however or form not submitting the data.
Basically I've checked and triple checked the file with the
<cfform> tag in it and it definately contains the relevant
controls with the names correct. I've also put <cfdump
var="#Form#"><cfabort> tags at the top of each file to
ensure the information is getting through. Looking at the Form
structure I can see the variables that are being posted (all of
which have the values passed from the file with the form tag).
However, despite this, when I remove the <cfabort> tag to let
the website process then the error message returns. I can't think
of what else might be causing this. Any ideas?
The actual .cfm files are pretty long but the jist of them is
as follows:
<!-- calling.cfm - a file that contains a form -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml"
lang="en">
<head>
<title>A title</title>
</head>
<body>
<CFSET avariable=10> <!-- In the actual file
avariable comes from a database -->
<CFFORM name="aform" action="beingcalled.cfm">
<CFINPUT name="aformvar" type="hidden"
value=#avariable#>
<CFINPUT name="action" type="submit" value="Press Me">
</CFFORM>
</body>
</html>
<!-- beingcalled.cfm - a file that has form variables
added to it -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml"
lang="en">
<head>
<title>A title</title>
</head>
<body>
<CFDUMP var="#Form#"> <This shows aformvar as part
of the form structure>
<!-- Do something with Form.aformvar here -->
<CFIF Form.aformvar EQ 10> <!-- THIS DOESN'T
PROCESS - ERROR IS RETURNED -->
I should be displayed
</CFIF>
</body>
</html>
I am using coldfusion 7.
Many thanks in advance,

quote:
The actual .cfm files are pretty long but the jist of them is
as follows
I think that the above statement says it all. I
wish that I had a dollar for every time that I looked at a piece of
code and could swear that there was nothing in it that could be
causing "the problem".... yeah, right.
Even if it is long, you might consider posting it if, for no
other reason, another pair of eyes may be able to spot the
"obvious" problem that your eyes may be skipping over (and over and
over.....).
<edit> FYI, I once actually had a CF template that
would fail just because it was a certain size... period. It was a
few CF versions ago, but if I made the template larger, or smaller,
no problem, But I made no actual changes other than size to keep it
from failing... very strange, but heck, you never know sometimes
</edit>
Phil

Similar Messages

  • Error when inserting into table - Undefined Variable

    DB = Oracle 10.2.0.1
    WEBSERV = Apache 2.0.55
    LANG = PHP5
    I have created (or more accurately, copied) a php script to insert data into one of my database tables when I press submit. The code is as follows (my connect string works fine and its included in the dbutils.php file):
    <?php
    if($submit == "submit"){
    include "dbutils.php";
      $query = "insert into users values (seq_user_usr_id.NEXTVAL, '$usr_name')";
      $cursor = OCIParse ($db_conn, $query);
      if ($cursor == false){
        echo OCIError($cursor)."<BR>";
        exit;
      $result = OCIExecute ($cursor);
      if ($result == false){
        echo OCIError($cursor)."<BR>";
        exit;
      OCICommit ($db_conn);
      OCILogoff ($db_conn);
    else{
       echo '
        <html><body>
        <form method="post" action="index.php">
    <table width="400" border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td>Please enter a username:</td>
        <td><input type="text" name="usr_name"></input><br></td>
    </tr>
    <tr>
        <td><input type="submit" name="button" value="Submit"></input></td>
    </tr>
    </table>
        </form>
        </body></html>
    ?></p>I am getting the following error regarding an undefined variable:
    [Fri Jan 20 13:11:22 2006] [error] [client 127.0.0.1] PHP Notice: Undefined variable: submit in C:\\Program Files\\Apache Group\\Apache2\\htdocs\\mywebsite\\test.php on line 3
    Where would I declare this variable? It is just a check to see if the submit button is pressed as far as I can see. Any help would be greatfully appreciated.
    W8

    I have changed the code to this:
    <?php
    if($submit == "submit"){
    include "dbutils.php";
    $usr_name = $_POST['usr_name'];
    $query = "insert into users (column1, column2) values (seq_user_usr_id.NEXTVAL, '$usr_name')";
    $cursor = OCIParse ($db_conn, $query);
    if ($cursor == false){
    echo OCIError($cursor)."
    exit;
    $result = OCIExecute ($cursor);
    if ($result == false){
    echo OCIError($cursor)."
    exit;
    OCICommit ($db_conn);
    OCILogoff ($db_conn);
    else{
    $submit = $_POST['submit'];
    echo '
    <html><body>
    <form method="post" action="index.php">
    <table width="400" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td>Please enter a username:</td>
    <td><input type="text" name="usr_name"></input>
    </td>
    </tr>
    <tr>
    <td><input type="submit" name="submit" value="submit"></input></td>
    </tr>
    </table>
    </form>
    </body></html>
    ?>And now I am getting the following error:
    [Mon Jan 23 13:45:32 2006] [error] [client 127.0.0.1] PHP Notice:  Undefined index:  submit in C:\\Program Files\\Apache Group\\Apache2\\htdocs\\mywebsite\\test2.php on line 24Does anyone have any ideas?
    I am struggling to find an example to work from to get this working. If anyone can point me to any literature that will explain the code so that I can work this out for myself that would also be a great help.

  • Undefined Variable

    I have a beta version of a task management system that uploads new tasks to a SQL database using post and an HTTP service request. The same PHP page being posted to writes back an XML file that I use to get all of the information in a datagrid. All of the forms upload the all of the task info smoothly and the datagrid updates on the fly. My problem arises with a delete button inside the datagrid that that sends the ID of the selected item to my delete tasks PHP page through a function. I keep getting an error 1065 (undefined variable) when I click the delete button nested in a column of the datagrid. The code for my button is as follows
                                <mx:DataGridColumn headerText="clear task" editable="true">
                                    <mx:itemRenderer>
                                        <mx:Component>
                                            <mx:Button label="Delete" click="deleteInfo();" />
                                        </mx:Component>
                                    </mx:itemRenderer>  
                                </mx:DataGridColumn>
    The function in my CDATA reads
    function deleteInfo()
                      var number = dgtasks.selectedItem.number;
                      del_number = number;
                      deleteTask.send();
                      Alert.show(del_number);
    I have tried writing a number of different functions inside deleteInfo () just to see if it would even be called and I still get that error 1065. If anyone could help me out I would really appreciate. Thanks!

    Here is my entire file. The only thing negated are the URL's for the service requests. Thanks again!
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"  xmlns="*" layout="vertical" creationComplete="send_data();">
    <mx:String id="del_number">-1</mx:String>
    <!--- This is our HTTPService, it will send requests and recieve the latest XML information from the server -->
        <mx:HTTPService id="userRequest" url="myurl" useProxy="false" method="POST" >
        <!--- These are the post variables here, -->
        <!--- <edit_task>{activeId}</edit_task> will send the value of {activeId} to PHP as $_POST['edit_task'] -->
            <mx:request xmlns="">
                <employee>{employee.text}</employee>
                <client>{client.text}</client>
                <title>{title.text}</title>
                <description>{description.text}</description>
                <issued>{issued.text}</issued>
                <due>{due.text}</due>
                <priority>{priority.text}</priority>
                <opened>{opened.text}</opened>
                <adding_value>1</adding_value>
            </mx:request>
        </mx:HTTPService>
        <mx:HTTPService id="updateValue" url="myurl" useProxy="false" method="POST" > 
        <!--- These are the post variables here, --> 
        <!--- <edit_task>{activeId}</edit_task> will send the value of {activeId} to PHP as $_POST['edit_task'] --> 
            <mx:request xmlns=""> 
                <completed>{activeComplete}</completed> 
                <opened>{activeOpened}</opened> 
                <edit_task>{activeId}</edit_task> 
            </mx:request> 
        </mx:HTTPService> 
        <!--This is our HTTPService for removing a task from the table--> 
            <mx:HTTPService id="deleteTask" url="myurl" useProxy="false" method="POST" > 
            <mx:request xmlns=""> 
                <number>{del_number}</number> 
            </mx:request> 
        </mx:HTTPService> 
        <!--- These next 3 lines make String variables that i store the last ID clicked and the 'complete' and 'opened' status of that ID --> 
        <mx:String id="activeId">-1</mx:String> 
        <mx:String id="activeComplete">-1</mx:String> 
        <mx:String id="activeOpened">-1</mx:String> 
                    <mx:Panel width="100%" height="100%" title="Essence Task Manager"> 
                        <mx:DataGrid 
                            id="dgtasks" 
                            dataProvider="{userRequest.lastResult.tasks.task}" width="100%" height="50%" 
                            doubleClickEnabled="true" 
                            itemDoubleClick="alert_descript(event)" 
                            itemClick="clickItem(event);"> 
                            <mx:columns> 
                                <mx:DataGridColumn headerText="Task Number" dataField="number" editable="false"/> 
                                <mx:DataGridColumn headerText="Employee" dataField="employee" editable="false"/> 
                                <mx:DataGridColumn headerText="Client" dataField="client" editable="false"/> 
                                <mx:DataGridColumn headerText="title" dataField="title" editable="false"/> 
                                <mx:DataGridColumn headerText="description" dataField="description" editable="false"/> 
                                <mx:DataGridColumn headerText="issued" dataField="issued" editable="false"/> 
                                <mx:DataGridColumn headerText="due" dataField="due" editable="false"/> 
                                <mx:DataGridColumn headerText="priority" dataField="priority" editable="false"/> 
                                <mx:DataGridColumn headerText="Acknoweledged" dataField="opened" editable="true" rendererIsEditor="true"> 
                                    <mx:itemRenderer> 
                                        <mx:Component> 
                                            <mx:CheckBox selected="{data.opened}" click="data.opened=!data.opened"/> 
                                        </mx:Component> 
                                    </mx:itemRenderer>     
                                </mx:DataGridColumn> 
                                <mx:DataGridColumn headerText="Completed" dataField="completed" editable="true" width="100" rendererIsEditor="true"> 
                                        <mx:itemRenderer> 
                                    <mx:Component> 
                                        <mx:CheckBox selected="{data.completed}" click="data.completed=!data.completed"/> 
                                    </mx:Component> 
                                </mx:itemRenderer> 
                            </mx:DataGridColumn> 
                                <mx:DataGridColumn headerText="clear task" editable="true"> 
                                    <mx:itemRenderer> 
                                        <mx:Component> 
                                            <mx:Button label="Delete" click="deleteInfo();" /> 
                                        </mx:Component> 
                                    </mx:itemRenderer>     
                                </mx:DataGridColumn> 
                            </mx:columns> 
                            </mx:DataGrid> 
                            <mx:Panel title="Add Task" layout="horizontal" width="100%"> 
                                <mx:Form> 
                                    <mx:FormItem label="employee"> 
                                      <mx:TextInput id="employee"/> 
                                    </mx:FormItem>     
                                    <mx:FormItem label="client"> 
                                      <mx:TextInput id="client"/> 
                                    </mx:FormItem>   
                                    <mx:FormItem label="title"> 
                                      <mx:TextInput id="title"/> 
                                    </mx:FormItem> 
                                    <mx:FormItem label="description"> 
                                      <mx:TextInput id="description"/> 
                                    </mx:FormItem> 
                                        <mx:FormItem label="issued"> 
                                      <mx:TextInput id="issued"/> 
                                    </mx:FormItem>   
                                        <mx:FormItem label="due"> 
                                      <mx:TextInput id="due"/> 
                                    </mx:FormItem>   
                                   <mx:FormItem label="priority"> 
                                      <mx:TextInput id="priority"/> 
                                    </mx:FormItem>   
                                    <mx:FormItem label="opened"> 
                                      <mx:TextInput id="opened"/> 
                                    </mx:FormItem>    
                                    <mx:FormItem label="completed"> 
                                      <mx:TextInput id="completed"/> 
                                    </mx:FormItem>   
                                    <mx:FormItem> 
                                  <mx:Button label="Submit" click="send_data()"/> 
                                </mx:FormItem> 
                              </mx:Form> 
                                <mx:TabNavigator width="100%" height="100%"> 
                                <mx:VBox label="description"> 
                                        <mx:Panel title="Task Description" layout="vertical" width="100%" height="100%"> 
                                        <mx:FormItem> 
                                            <mx:Label  text="{dgtasks.selectedItem.description}"/> 
                                        </mx:FormItem> 
                                        </mx:Panel> 
                                    </mx:VBox> 
                                <mx:VBox label="comments"> 
                                <mx:DataGrid width="100%"> 
                                    <mx:columns> 
                                        <mx:DataGridColumn headerText="posted by"/> 
                                        <mx:DataGridColumn headerText="comment"/> 
                                    </mx:columns> 
                                </mx:DataGrid> 
                                </mx:VBox> 
                                </mx:TabNavigator> 
                            </mx:Panel> 
                       </mx:Panel> 
    <mx:Script> 
            <![CDATA[ 
                import mx.events.ListEvent; 
                import flash.events.Event; 
                import mx.controls.Alert; 
                private function send_data() 
                    userRequest.send(); 
                   function alert_descript(event:ListEvent) 
                    var showdescription:String = event.itemRenderer.data.description; 
                    Alert.show(showdescription); 
                function deleteInfo()
                      var number = dgtasks.selectedItem.number; 
                      del_number = number; 
                      deleteTask.send(); 
                      Alert.show(del_number); 
            ]]> 
        </mx:Script> 
        <!--This script is used to import the click event and than passes the variables back out to the mx--> 
        <mx:Script> 
            <![CDATA[ 
                //this is the clickItem function that is called above in the onClick function... 
                function clickItem(event:ListEvent) 
                    var id = event.itemRenderer.data.number; 
                    var comp = event.itemRenderer.data.completed; 
                    var opened = event.itemRenderer.data.opened; 
                    activeId = id; 
                    activeComplete = comp; 
                    activeOpened = opened; 
                    //send_data(); 
                    updateValue.send(); 
            ]]> 
        </mx:Script> 
    </mx:Application>

  • How to create a global variable in forms 6i

    How to create a global variable in forms 6i

    :GLOBAL.my_var := 15; Well, this statement is not correct! Global variables
    stores a character string of up to 255 characters in
    length. Thus, valid statement for Khurram example
    is:
    :GLOBAL.my_var := TO_CHAR(15);
    or
    :GLOBAL.my_var := '15';
    But numeric values are implicitly converted by oracle so there's nothing in fact wrong with the statement...
    :GLOBAL.my_var := 15;
    ;)

  • Referencing Global Variable in Forms DDL (Form Personalization R12)

    Team,
    I'm saving a profile option in a Global variable GLOBAL.FLINV_PROFILE_VALUE when a form opens.
    Then I am clearing the variable using Forms DDL and calling FND_PROFILE.SAVE function.
    I need to then reset the profile option with a second call to FND_PROFILE.SAVE. I'm trying to use Forms DDL, i.e.
    DECLARE
    a BOOLEAN;
    BEGIN
    a := fnd_profile.SAVE ('PER_SECURITY_PROFILE_ID'
    , '''||:global.flinv_profile_value||'''
    , ''USER''
    , ''1110''
    , NULL
    , NULL
    END;
    but I'm not finding a proper way to pass that global variable. Is there a way to reference these variables in the DDL? Should I use 'Call a procedure' and format the call differently?
    Any ideas are welcome.
    Joe

    Not sure why your using an anonymous block. Personalization rules should look like the following in a *.ldt file.
    BEGIN FND_FORM_CUSTOM_RULES "314"
    FUNCTION_NAME = "INV_INVITSNU"
    DESCRIPTION = "Disable Query-Enter Mode"
    TRIGGER_EVENT = "WHEN-NEW-BLOCK-INSTANCE"
    TRIGGER_OBJECT = "MTL_SERIAL_NUMBERS"
    SEQUENCE = "20"
    CREATED_BY = "34307"
    CREATION_DATE = "2012/04/22"
    OWNER = "USER123"
    LAST_UPDATE_DATE = "2012/04/22"
    LAST_UPDATE_LOGIN = "145888118"
    ENABLED = "Y"
    FIRE_IN_ENTER_QUERY = "N"
    FORM_NAME = "INVITSNU"
    RULE_TYPE = "A"
    BEGIN FND_FORM_CUSTOM_ACTIONS "314" "314"
    SEQUENCE = "10"
    PROPERTY_VALUE = "5"
    ARGUMENT_TYPE = "B"
    CREATED_BY = "34307"
    CREATION_DATE = "2012/04/22"
    OWNER = "USER123"
    LAST_UPDATE_DATE = "2012/04/22"
    LAST_UPDATE_LOGIN = "145888118"
    TARGET_OBJECT = "MTL_SERIAL_NUMBERS"
    ACTION_TYPE = "P"
    ENABLED = "Y"
    OBJECT_TYPE = "BLOCK"
    MESSAGE_TYPE = "S"
    BUILTIN_TYPE = "C"
    LANGUAGE = "*"
    PROPERTY_NAME = "195"
    MENU_SEPERATOR = "N"
    END FND_FORM_CUSTOM_ACTIONS
    BEGIN FND_FORM_CUSTOM_SCOPES "314" "20" ""
    LAST_UPDATE_DATE = "2012/04/22"
    OWNER = "USER123"
    CREATION_DATE = "2012/04/22"
    CREATED_BY = "34307"
    LAST_UPDATE_LOGIN = "145888118"
    END FND_FORM_CUSTOM_SCOPES
    END FND_FORM_CUSTOM_RULES

  • All of a sudden getting Undefined variable: attvalue in Squirrelmail

    I'm running squirrelmail 1.4.17, and it's been running fine for about 2 months now. This week all of a sudden, I'm getting the following error when trying to read e-mails:
    Notice: Undefined variable: attvalue in /usr/share/squirrelmail/functions/mime.php on line 1407
    The attvalue variable has to do with stripping out dangerous characters from e-mails. My concern is that my system has been compromised and that someone has disabled this value in order to hack into my server.
    The only non standard plugin I've installed into Squirrelmail is a filter that enables me to have an out of office message, it also helps me to move junk mail automatically. It too has been running fine for about a month.
    If anyone can offer any advice, I'd greatly appreciate it. Like I said, everything was fine until just a couple of days ago. No updates took place, everything else seems fine on the surface.
    Thanks
    Mike

    I did forget to mention one thing. At the same time this started happening, I also had a problem that I had experienced before upgrading to the latest Squirrelmail, and that is that in the sending mail processing, specifically in the file deliver.class.php (line 614), I was getting a Notice: Undefined variable: default_charset in /usr/share/squirrelmail/class/deliver/Deliver.class.php on line 614.
    I brute force fixed this problem by hard coding the default_charset variable in that function. I know that's not an ideal solution, but it at least fixed the problem from the users point of view.
    Again, this wasn't happening until just recently, and I can't figure out what on the server changed to trigger these problems.

  • How to declare a variable in form

    how to declare a variable in form?

    Hi,
       do you want to create variable in script or smartform?
    In scripts to define a variable use the following declaration statement.
    DEFINE &<VARIABLE_NAME>&
    place this statement as command. we can assign initial value for this by adding VALUE ' ' to above statement.
    If your requirement is for smartforms go to global declaration, create a variable there that will be applicable only for smartform.
    Hope this will help you,
    Regards,
    Aswini.

  • How can I obtain an object-type variable in Forms 6i?

    i create an object-type in oracle 8i database like this:
    TYPE OBJ_TYPE_NUMBER AS OBJECT
    FIELD1 NUMBER,
    MEMBER PROCEDURE INIT, ...
    i create a variable of this object-type in a stored procedure in Oracle 8i:
    v_Number OBJ_TYPE_NUMBER(10);
    and then call it's method:
    v_Number.INIT;
    it work's!
    But when I try to compile a previous variable declaration
    (v_Number OBJ_TYPE_NUMBER;) in Oracle Forms 6i I see only an error message.
    So my question is How can I declare and use an object-type variable in Forms 6i?

    Hi,
    the release after Forms 6i is Forms9i. Forms9i does have the PLSQL engine of Oracle 9.0.0.2 database which means that it should knwo how to handle object types in PLSQL.
    Frank

  • Question about using constant variables in Forms

    As I am still very new to Forms, please forgive my ignorance if the answer to my question is very simple. I am trying to figure out how to use constant variables within my Forms application. For example, if I want to setup return code constants for the application (mind me, these are examples):
    RC_SUCCESS CONSTANT PLS_INTEGER := 1;
    RC_FAILURE CONSTANT PLS_INTEGER := 0;
    RC_YEAR_DATA_NOT_FOUND := 50;
    Then in a module I created, if I wanted to check the return code against one of the constants I would do:
    DECLARE
    rc PLS_INTEGER;
    BEGIN
    GET_YEAR_DATA('2000', rc);
    IF rc = RC_YEAR_DATA_NOT_FOUND THEN
    -- Do some error handling
    END IF;
    END;
    I know that you can declare constants within individual procedures or packages but I can't see to find information on how to do this globally for the application. I've read about using global variables within Forms but the CHAR data type only and the fact the value can be changed doesn't really fit for this purpose. Am I missing something? Is there a config file or something for the webserver that can be used to set these up??
    Any help would be appreciated.
    Thanks

    To declare constants create a Package-Specification in a pll and deifne all your constants there, something like:
    PACKAGE PK_CONSTANTS IS
      RC_SUCCESS CONSTANT PLS_INTEGER := 1;
      RC_FAILURE CONSTANT PLS_INTEGER := 0;
      RC_YEAR_DATA_NOT_FOUND := 50;
    END;Then attach that pll to all your forms-modules, and use it like
    IF rc = PK_CONSTANTS.RC_YEAR_DATA_NOT_FOUND THEN
    END IF;A word about exceptions or errors: In my eyes its clearer (and in case of exceptions even better) to raise an exception than to hide it behind return-codes.

  • How declear global variable in form and use all form

    hi master,
    sir,
    how i declear global variable in form and how use this variable in all form
    i have year table and pik current year or date form table and move in global variable and use in all form
    please give ma idea
    thanking you
    Aamir

    Ok, so, what characterset was your database created with?
    Does that characterset have a representation of that character?
    -Mark

  • Formula node forbid to run VI when undefined variable is used

    On all LabVIEW version, we can use Formula node to evaluate mathematical formulas.
    We can define input and output variable freely and calculate using some variety of formula.
    But when we use undefined variable as output, can execute VIs with no errors.
    We think it is a problem because when programmer makes a typo, they cannot notice the mistake.
    When undefined variable is used as output variable, LabVIEW should forbid to run VI.

    I think you are going to get the same (or similar) answers than to my suggestion(s) to make VI outputs potentially "required" and the same for some functions (built-in VIs):
    http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Allow-required-outputs-in-VIs/idc-p/3157058
    http://forums.ni.com/t5/LabVIEW-Idea-Exchange/quot-Function-terminal-not-connected-quot-detection-plus/idi-p/1858573
    In general, I agree with you, there is a potential for problems. Not really for the reason you are mentioning, because a typo will break the VI (unless you have two output variables with very similar names - unlike in your example - such as y and y0). But it could make for some frustrating debugging session.

  • The NLS_LANG environment variable for Form Builder 10g on Linux

    Hi,
    I have installed Oracle Developer Suite 10g on Linux Enterprise AS4 successfully,and set environment variable NLS_LANG="SIMPLIFIED CHINESE_CHINA.ZHS16GBK",LANG="zh_CN.UTF-8".When i executed the following: /home/oracle/Orant/bin/frmbld
    I got the error as:
    X Error of failed request:BadFont(invalid Fond parameter)
    Major opcode of failed request:56(X_ChangeGC)
    Resource id in failed request:Ox2c000af
    Serial number of failed request:3376
    Current serial number in output stream 3517
    FRM-18122: ’Form Builder Debugger.
    If i delete the NLS_LANG environment variable,the Form Builder can be running,but i can't keyboard input[b] chinese characters in the PL/SQL Editor.
    I don't know how to solve the problem,anybody can help me?

    Hello Howard,
    Check out the following link here you can find your desired NLS parameters.
    http://www.oracle.com/technology/tech/globalization/htdocs/nls_lang%20faq.htm
    And about the NLS_LANG for developer why you want to create for developer. Its is already there in REGISTRY. Just seaching in developer registry you can find there.
    how do I set more than 1 at a time.
    You can set only one NLS_LANG parameter at a time.
    -Ammad
    Edited by: Ammad Ahmed on Apr 15, 2010 8:52 PM

  • JAVA_HOME: Undefined variable (..../j2ee/configtool.sh)

    Hello all
    I have installed SAP NetWeaver '04 Testdrive SR1 on Fedora Core 2.
    Now I try to install Adove Document Services, but when I start /usr/sap/NW4/DVEBMGS00/j2ee/configtool.sh I just get this message:
    JAVA_HOME: Undefined variable.
    How can I fix this problem ?
    Best regards
    Thomas Madsen Nielsen

    Hi Thomas
    What You need to do (the actions Ludovic talks about) is to maintain the enviroment variables on Your 04' server.
    Go to My Computer -> right click -> properties -> advanced -> enviroment variables.
    You need to add the path for Your j2ee in the path string under system variables and JAVA_HOME under user variables.
    Hope it helps
    /Mads

  • Undefined variables

    I am new to PHP & MySQL and am having a little difficulty. I am using Dreamweaver CS5.5 for website building. I just recently completed a tutorial by David Powers titled "Setting up a PHP developement environment for Dreamweaver. I downloaded and installed the latest version of XAMPP and found that things have changed a little since he made the tutorial making some of the screen shots and directions obsolete, but I managed to make my way through it with success until I got to the end. Everything was working and I successfully made a connection to my database, but when I clicked on "Live View" in dreamweaver I got error messages instead of the expected list of information stored in the database. Those error messages:
    Notice: Undefined variable: database_connTest in C:\xampp\htdocs\php_test\comments.php on line 34Notice: Undefined variable: connTest in C:\xampp\htdocs\php_test\comments.php on line 34
    Warning: mysql_select_db() expects parameter 2 to be resource, null given in C:\xampp\htdocs\php_test\comments.php on line 34
    Notice: Undefined variable: connTest in C:\xampp\htdocs\php_test\comments.php on line 36
    Warning: mysql_query() expects parameter 2 to be resource, null given in C:\xampp\htdocs\php_test\comments.php on line 36
    Any Idea what is causing this and how to repair it. I desire to continue learning more about building a dinamic website but feel I need to discover and correct my mistakes before I go on. Is it possible that the sample file was created in a PHP or MySQL language that isn't recognized by the newest version of the XAMPP software package?
    Thanks so much for your help.

    Yea I'm just really confused because I tested the server by making the "Time" php page that David had in his tutorial and it worked great. But when I installed the sample files as he instructed I was able to open the comments PHP file in dreamweaver and view it in design view or code view, but when I try viewing it in Live view, or on a browser all I get is the error message I pasted to my first post. Here is the code for the SQL file (I inserted the line numbers in hopes they might help):
    1  -- phpMyAdmin SQL Dump
    2  -- version 3.2.4
    3  -- http://www.phpmyadmin.net
    4  --
    5  -- Host: localhost
    6  -- Generation Time: Feb 05, 2010 at 02:41 PM
    7  -- Server version: 5.1.41
    8  -- PHP Version: 5.3.1
    9
    10 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
    11
    12
    13 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
    14 /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
    15 /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
    16 /*!40101 SET NAMES utf8 */;
    17
    18 --
    19 -- Database: `php_test`
    20 --
    21
    22 -- --------------------------------------------------------
    23
    24 --
    25 -- Table structure for table `comments`
    26 --
    27
    28 DROP TABLE IF EXISTS `comments`;
    29 CREATE TABLE IF NOT EXISTS `comments` (
    30   `comment_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
    31   `first_name` varchar(20) NOT NULL,
    32   `last_name` varchar(30) NOT NULL,
    33   `comment` text NOT NULL,
    34   PRIMARY KEY (`comment_id`)
    35 ) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
    36
    37 --
    38 -- Dumping data for table `comments`
    39 --
    40
    41 INSERT INTO `comments` (`comment_id`, `first_name`, `last_name`, `comment`) VALUES
    42 (1, 'Ben', 'Morin', 'I would like more seafood choices on the menu. Thanks.'),
    43 (2, 'Dieter', 'Dietrich', 'Is your London restaurant open on Saturdays?'),
    44 (3, 'Sachiko', 'Matsuda', 'Unbelievably excellent service received at your New Tokyo
    restaurant.'),
    45 (4, 'Letitia', 'Riley', 'Are there any plans to open a restaurant in Anchorage, Alaska?');
    46
    47 /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
    48 /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
    49 /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
    50
    And this is the code for the Comments.php file (I added the Line #s for lines 34 - 39 in case the error message was refering to this code):
    <?php require_once('Connections/connTest.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    Line 34- mysql_select_db($database_connTest, $connTest);
    Line 35- $query_getComments = "SELECT first_name, last_name, `comment` FROM comments ORDER BY comment_id DESC";
    line 36- $getComments = mysql_query($query_getComments, $connTest) or die(mysql_error());
    Line 37- $row_getComments = mysql_fetch_assoc($getComments);
    Line 38- $totalRows_getComments = mysql_num_rows($getComments);
    Line 39- ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Cafe Townsend - Customer Comments</title>
    <link href="assets/styles.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="wrapper">
      <div id="header"><img src="assets/header.jpg" width="700" height="92" alt="Cafe Townsend" /></div>
      <h1 id="main_header">Cafe Townsend Intranet</h1>
      <div id="main">
        <h2>Customer comments</h2>
        <div id="comments">
          <?php do { ?>
            <p><?php echo $row_getComments['comment']; ?> &#8212; <?php echo $row_getComments['first_name']; ?> <?php echo $row_getComments['last_name']; ?></p>
            <?php } while ($row_getComments = mysql_fetch_assoc($getComments)); ?>
        </div>
      </div>
      <div id="footer"></div>
    </div>
    </body>
    </html>
    <?php
    mysql_free_result($getComments);
    ?>

  • VARIABLES IN FORM NOT IN PROCEDURE: CHECKBOX

    We have started getting intermittant errors on a page, in places that were previously OK, yet no change was made to those particular objects.
    The browser displays the following:
    Not Found
    The requested URL /pls/apex/wwv_flow.accept was not found on this server.
    Oracle-Application-Server-10g/10.1.2.0.2 Oracle-HTTP-Server Server at <host> Port 7778
    The Apache error log shows the following:
    mod_plsql: /pls/apex/wwv_flow.accept HTTP-404
    wwv_flow.accept: SIGNATURE (parameter names) MISMATCH
    VARIABLES IN FORM NOT IN PROCEDURE: CHECKBOX
    NON-DEFAULT VARIABLES IN PROCEDURE NOT IN FORM:
    Application Express version: 3.2.0.00.27
    RDBMS version: 10.2.0.4
    Just wondering if we have reached some sort of resource limit here, and if so, is there a solution that doesn't involve deleting page objects?
    Further info: For troubleshooting, the entire application was exported from production and imported into the other 2 environments.
    Results: Production - OK
    UAT - OK
    Development - errors as above
    The code and db structures between these environments are identical - even the data is the same having refreshed the schemas from prod also.

    I was given this exception when trying to submit a form with radiobuttons, and no default cheked.
    It's intermittent behaviour was explained because of the nature of the code. It printed the input depending on some clients atributes, so that in some cases it would only print input without the 'cheked' property.
    Some workflow wouldn't print any radiobutton wirh the 'cheked' value, giving the user the posibility of not sending data on the parameter:
    <input type="radio" name="boletin" value="S" checked>
    Hope it helps!

Maybe you are looking for