This topic is locked
[SOLVED]

 Problem with register.php

10/20/2010 23:43:07
PHPRunner General questions
I
indigo author

Hi i am using PHPR 5.2.
I was having a problem with register.php as some lookups were not working.

After hours of bug checks.. I narrowed down the problem to this.
I have a field "AA District" in my table. But in register.php one of the lines is:
CODE:
// show readonly fields

// AA District - ABC

//Does control field apper on search page or not?

$categoryFieldAppear=true;

$output = loadSelectContent("AA District",@$values["ABC"],$categoryFieldAppear,@$values["AA District"]);

$txt = "";

foreach( $output as $value ) {

$txt .= jsreplace($value)."\\n";

}

$pageObject->AddJsCode("var Cntrl = Runner.controls.ControlManager.getAt('".$strTableName."', ".$id.", 'AA_District');
When I change "AA_District" to "AA District", it works perfectly. However, each time, PHPR generates the code, I again have to manually change the code.

Is this a bug? Can this be corrected in PHPR itself?

Sergey Kornilov admin 10/21/2010

Sounds pretty strange. I would ask you to send your project file along with sample database for investigation.