PDA

View Full Version : Air runtime security restriction for eval



MuratCorlu
27 Aug 2008, 9:00 AM
var liste = new Ext.grid.EditorGridPanel({
columns: [
{header:"Date", sortable: true, dataIndex:'date', editor: new Ext.form.DateField({
format: 'd/m/Y',
minValue: '01/01/08'
})
},
........
I'm trying to show a EditorGridPanel that have a column with dateformat. But when I doubleclick this cell, I get an error from Air like this:

line: 5948
message: Adobe AIR runtime security violation for JavaScript code in the application security sandbox (eval)
sourceURL: app:/js/ext/ext-all-debug.js

I red some documents about Air security sandboxes and restrictions and using eval. But I can't find any solution about this problem. What can I do to solve this security problem?

MuratCorlu
28 Aug 2008, 7:02 AM
........
items:[{
xtype:'combo',
readOnly:true,
fieldLabel:'Hasta Adı',
displayField:'kisi_isim',
valueField:'kisi_id',
hiddenName: 'kisi_id',
store: new Ext.data.SimpleStore({
data: HP.seciliKisi, // format: [{kisi_id:12,ad:'Murat',soyad:'Corlu'}]
fields: [{name:'kisi_id',mapping:'kisi_id'},{name:'kisi_isim',mapping:'ad + " " + obj.soyad'}]
})
......
When I clicked to combobox to select, I get an error like that:

line: 7055
message: Adobe AIR runtime security violation for JavaScript code in the application security sandbox (Function constructor)
sourceURL: app:/js/ext/ext-all-debug.js

devnull
28 Aug 2008, 11:43 AM
Have you read any of the other threads in this forum? the comboBox issues is discussed in several threads, with workarounds. I assume the grid issue is related.