Go Back   SmartClient Forums > Installation
Wiki Register Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 3rd Apr 2009, 04:08
atchuta.yalamanchili atchuta.yalamanchili is offline
Registered Developer
 
Join Date: Mar 2009
Posts: 2
Default Validations for SmartClient Editable Grid

Hi,

While running the SmartClient Editable Grid on JBoss with MyEclipse 7.1 ,
I am using static data for the population of this editable grid. The editing is being done but there is problems if I want to validate something.

the validation part is not working for the same application.

Do I have to change something in my code.

Please find below my code:

isc.ListGrid.create({
ID: "countryList",
width:550, height:224, alternateRecordStyles:true, showAllRecords:true, cellHeight:22,
// use server-side dataSource so edits are retained across page transitions
data: [{
continent:"North America",
countryName:"United States",
countryCode:"US",
area:9631420,
population:298444215,
gdp:12360.0,
independence:1776-07-04,
government:"federal republic",
government_desc:2,
capital:"Washington, DC",
member_g8:true,
article:"http://en.wikipedia.org/wiki/United_states"
},
{
continent:"Asia",
countryName:"China",
countryCode:"CH",
area:9596960,
population:1313973713,
gdp:8859.0,
government:"Communist state",
government_desc:0,
capital:"Beijing",
member_g8:false,
article:"http://en.wikipedia.org/wiki/China"
},
{
continent:"Asia",
countryName:"Japan",
countryCode:"JA",
area:377835,
population:127463611,
gdp:4018.0,
government:"constitutional monarchy with parliamentary government",
government_desc:1,
capital:"Tokyo",
member_g8:true,
article:"http://en.wikipedia.org/wiki/Japan"
},
{
continent:"Asia",
countryName:"India",
countryCode:"IN",
area:3287590,
population:1095351995,
gdp:3611.0,
independence:1776-07-04,
government:"federal republic",
government_desc:2,
capital:"New Delhi",
member_g8:false,
article:"http://en.wikipedia.org/wiki/India"
},
{
continent:"Europe",
countryName:"Germany",
countryCode:"GM",
area:357021,
population:82422299,
gdp:2504.0,
independence:1776-07-04,
government:"federal republic",
government_desc:2,
capital:"Berlin",
member_g8:true,
article:"http://en.wikipedia.org/wiki/Germany"
},
{
continent:"Europe",
countryName:"United Kingdom",
countryCode:"UK",
area:244820,
population:60609153,
gdp:1830.0,
independence:1776-07-04,
government:"constitutional monarchy",
government_desc:1,
capital:"London",
member_g8:true,
article:"http://en.wikipedia.org/wiki/United_kingdom"
}],
// display a subset of fields from the datasource
fields:[
{name:"countryCode", title:"Flag", width:40, type:"image", imageURLPrefix:"flags/16/", imageURLSuffix:".png", canEdit:false},
{name:"countryName"},
{name:"continent"},
{name:"member_g8"},
{name:"population", formatCellValue:"isc.Format.toUSString(value)"},
{name:"independence"}
],
autoFetchData: true,
canEdit: true,
editEvent: "click",
editByCell: true
})
Reply With Quote
  #2  
Old 3rd Apr 2009, 08:42
Isomorphic Isomorphic is online now
Administrator
 
Join Date: May 2006
Posts: 30,519
Default

What specific behavior are you expecting, and what specifically is happening (always post this information with any question).
Reply With Quote
  #3  
Old 5th Apr 2009, 10:02
atchuta.yalamanchili atchuta.yalamanchili is offline
Registered Developer
 
Join Date: Mar 2009
Posts: 2
Default Validations for SmartClient Editable Grid(List Grid)

if i edit any cell in List Grid which is editable grid,
for example if i edited Date value put characters, its not giving inline validation error message like Date is invalid format.

Note: i am using inline data.

Please suggest me, validation of data is work for inline data?

And give me instructions how to create own data source with Smart Client ,

How connect to this Data Source ? and
how populate data into list grid?.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search


© 2010,2011 Isomorphic Software. All Rights Reserved