Hi Angrez,
Please find the source of web page developed using smartlcient,
Please let me know weather watir can be used for this.
Source.
!
SmartClient SDK
Component Data Binding example
Copyright 2001-2007 Isomorphic Software, Inc. (www.isomorphic.com)
--
HEADTITLE
SmartClient SDK - Component Data Binding example
/TITLE/HEADSCRIPTwindow.isomorphicDir='../../isomorphic/';/SCRIPT
SCRIPT
SRC=../../isomorphic/system/modules/ISC_Core.js?isc_version=5.6.js/SCRIPTSCRIPTisc._lastModule='Core';/SCRIPT
SCRIPT
SRC=../../isomorphic/system/modules/ISC_Foundation.js?isc_version=5.6.js/SCRIPTSCRIPTisc._lastModule='Foundation';/SCRIPT
SCRIPT
SRC=../../isomorphic/system/modules/ISC_Containers.js?isc_version=5.6.js/SCRIPTSCRIPTisc._lastModule='Containers';/SCRIPT
SCRIPT
SRC=../../isomorphic/system/modules/ISC_Grids.js?isc_version=5.6.js/SCRIPTSCRIPTisc._lastModule='Grids';/SCRIPT
SCRIPT
SRC=../../isomorphic/system/modules/ISC_Forms.js?isc_version=5.6.js/SCRIPTSCRIPTisc._lastModule='Forms';/SCRIPT
SCRIPT
SRC=../../isomorphic/system/modules/ISC_DataBinding.js?isc_version=5.6.js/SCRIPTSCRIPTisc._lastModule='DataBinding';/SCRIPT
SCRIPT
SRC=../../isomorphic/skins/SmartClient/load_skin.js?isc_version=5.6.js/SCRIPT
BODY BGCOLOR=#D3D3D3SCRIPT
// load datasources
isc.DataSource.create({
serverType:sql,
fields:{
itemID:{primaryKey:true, hidden:true, type:sequence, name:itemID},
itemName:{
title:Item,
required:true,
type:text,
length:128,
name:itemName
},
SKU:{
title:SKU,
required:true,
type:text,
length:10,
name:SKU
},
description:{
title:Description,
type:text,
length:2000,
name:description
},
category:{
title:Category,
required:true,
type:text,
length:128,
foreignKey:supplyCategory.itemName,
name:category
},
units:{
title:Units,
valueMap:[Roll, Ea, Pkt, Set, Tube, Pad, Ream, Tin,
Bag, Ctn, Box],
type:enum,
length:5,
name:units
},
unitCost:{
title:Unit Cost,
required:true,
type:float,
validators:[
{
type:floatRange,
min:0,
errorMessage:Please enter a valid (positive) cost
},
{
type:floatPrecision,
errorMessage:The maximum allowed precision is 2,
precision:2
}
],
name:unitCost
},
inStock:{title:In Stock, type:boolean, name:inStock},
nextShipment:{title:Next Shipment, type:date, name:nextShipment}
},
tableName:supplyItem,
testFileName:supplyItem.data.xml,
ID:supplyItem
})
isc.DataSource.create({
serverType:sql,
fields:{
Name:{
title:Name,
type:text,
length:128,
name:Name
},
EmployeeId:{title:Employee ID, primaryKey:true, required:true,
type:integer,
name:EmployeeId},
ReportsTo:{title:Manager, required:true, type:integer,
rootValue:1,
foreignKey:employees.EmployeeId,name:ReportsTo},
Job:{
title:Title,
type:text,
length:128,
name:Job
},
Email:{
title:Email,
type:text,
length:128,
name:Email
},
EmployeeType:{
title:Employee Type,
type:text,
length:40,
name:EmployeeType
},
EmployeeStatus:{
title:Status,
type:text,
length:40,
name:EmployeeStatus
},
Salary:{title:Salary, type:float, name:Salary},
OrgUnit:{
title:Org Unit,
type:text,
length:128,
name:OrgUnit
},
Gender:{
title:Gender,
valueMap:[male, female],
type:text,
length:7,
name:Gender
},
MaritalStatus:{
title:Marital Status,
valueMap:[married, single],
type:text,
length:10,
name:MaritalStatus
}
},
tableName:employeeTable,
testFileName:employees.data.xml,
ID:employees
})
isc.DataSource.create({
serverType:sql,
fields:{
commonName:{title:Animal, type:text, name:commonName},
scientificName:{title:Scientific Name, primaryKey:true,
required:true, type:text,