W
|
wildwally 3/27/2014 |
DAL method and fields are server side code and javascript is a client side code the two do not work together at the same time. |
O
|
overmars author 3/29/2014 |
thanks wildwally, DAL method and fields are server side code and javascript is a client side code the two do not work together at the same time. You can however pass data from the server to the client (JS). using the $pageObject -> setProxyValue("name", "value"); & proxy.name Search help manual for setProxyValue for more details. |
![]() |
Sergey Kornilov admin 3/30/2014 |
You need to move your DAL code to one of server side events i.e. to BeforeDisplay. In BeforeDisplay event you can execute your SQL query, retrieve values from the database and pass it to Javascript via setProxyValue() function. |
O
|
overmars author 4/1/2014 |
You need to move your DAL code to one of server side events i.e. to BeforeDisplay. In BeforeDisplay event you can execute your SQL query, retrieve values from the database and pass it to Javascript via setProxyValue() function. Here are code samples: https://xlinesoft.com/phprunner/docs/setproxyvalue.htm
|
![]() |
Sergey Kornilov admin 4/1/2014 |
Still wrong. Please see the manual one more time: $pageObject->setProxyValue("name", "Some value");
alert(proxy['name']); |