Using Java Script
Posted: Wed Jun 13, 2012 4:01 pm
I am new to Java, I try to read from a table called Input and write in Input fields, Table has 2 columns -
Topic & Description
Java Script-1
Read Database
Writing from 1st Row For Topic
Writing from 2nd Row For Description
But it is not working, What can I do to make it work?
Topic & Description
Java Script-1
Read Database
Code: Select all
if(Global.UserData == undefined)
{
Global.UserData = Global.DataBase.Query("Select * FROM Input")
}
if(Global.UserData.Read()) return true;
else return false;
Code: Select all
Global.Browser.Selection.GetItem(0).value = Global.UserData.GetValue(0);Code: Select all
Global.Browser.Selection.GetItem(1).value = Global.UserData.GetValue(1);