[flexcoders] AIR with database advice

2010-04-12 Thread Vladimir
Hi,

I want to make desktop AIR application. This application must have access to 
its database which is made in MS SQL Server. Now I have created .NET 
application (Web Service) that access this database. And initial thought was to 
host this service somewhere but problem is that my clients want to have their 
databases on their computers and that computers will not be connected to the 
internet.
Now I don't know what to do.
1) To use other technology?
2) To use SQLite - I have never work with this, I don't know is data security, 
can I daily make database backup etc. 
3) Any other suggestion?

Thanks



[flexcoders] Fluorine fx, enterprise library, flex problem

2009-11-26 Thread Vladimir
Hi all,

I have one problem, I used enterprise library Data Access Application block for 
my .net project (GUI was built in windows forms) and app.config was stored in 
GUI project. Now I switched from main windows form project to fluorineFx site 
project and I can't access my database anymore. I don't know anymore how to 
locate this app.config and I don't know what to put in web.config because I 
think that now old app.config data should be in new FluorineFX web.config. And 
now I cant point my .net code from flex :(

Thanks



[flexcoders] Re: Fluorine fx, enterprise library, flex problem

2009-11-26 Thread Vladimir
What I don't know is where in FluorineFX web.config put this XML
configuration
  configSections
section name=dataConfiguration
  type=Microsoft.Practices.EnterpriseLibrary.
  Data.Configuration.DatabaseSettings, Microsoft.
  Practices.EnterpriseLibrary.Data /
  configSections
  connectionStrings
add
name=Northwind 
providerName=System.Data.SqlClient
connectionString=Data Source=(local);Initial Catalog=
Northwind;Integrated Security=True /
  connectionStrings
  dataConfiguration defaultDatabase=Northwind/
configuration


--- In flexcoders@yahoogroups.com, Vladimir vladak...@... wrote:

 Hi all,
 
 I have one problem, I used enterprise library Data Access Application block 
 for my .net project (GUI was built in windows forms) and app.config was 
 stored in GUI project. Now I switched from main windows form project to 
 fluorineFx site project and I can't access my database anymore. I don't know 
 anymore how to locate this app.config and I don't know what to put in 
 web.config because I think that now old app.config data should be in new 
 FluorineFX web.config. And now I cant point my .net code from flex :(
 
 Thanks





[flexcoders] Flex performance problem, pure MVC, AIR

2009-10-16 Thread Vladimir
I made Image Browser application. User can select any number of images and 
browse them in application.

I use Flex SDK 3.4
AIR framework
Pure MVC Framework

Main screen contains big container for images and one container that preview 
same images just smaller (thumbnails). For thumbs I used TileList controll with 
Simple Image item renderer. Each image is represented like PImage class value 
object that contains image ID and path.

When user select images that want to browse all images (PImage) are stored in 
ArrayCollection.

Problem:
When I select big number of images 50...200 or more and scroll in thumbnail 
container left-right I feel bad performance. User want to have smooth scroll 
but it's slow. I turned on live scroll on that container but still it's slow.

Is there any other way to solve this performance issue?

PS

Images must be storred in that ArrayCollection.



[flexcoders] Re: Setting combobox selectedindex

2008-02-06 Thread Vladimir Pavlovi#263;
From code, You can change selected index using 

productSubTypeCB.selectedIndex = 1;

--- In flexcoders@yahoogroups.com, Max Frigge [EMAIL PROTECTED] wrote:

 You are using selectedItem instead of selectedIndex.
 
 mx:ComboBox id=productSubTypeC B width=160
 
 dataProvider= {selectedProduc t.typeNames} 
 
 selectedIndex= 1
 
 change=productOffe r.productSubType = event.currentTarget .value /
 
 Max
 
 - Original Message 
 From: gur_sukh [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Thursday, February 7, 2008 4:18:30 AM
 Subject: [flexcoders] Setting combobox selectedindex
 
 
 
 
 
 
 
 
 
 
   
 
 
 
 
 
 The combobox dataprovider sets selectedindex to 0. How do we set it to
 
 something else. 
 
 
 
 AS the dataprovider is bound to model and every time it changes the
 
 selected index is 0. 
 
 
 
 For demo purposed i need to set this to 1. 
 
 
 
 mx:ComboBox id=productSubTypeC B width=160
 
 dataProvider= {selectedProduc t.typeNames} 
 
 selectedItem= 1
 
 change=productOffe r.productSubType = event.currentTarget .value /
 



[flexcoders] Re: Setting combobox selectedindex

2008-02-06 Thread Vladimir Pavlovi#263;
I'm a little bit lost in those replays :) 

Next example will do next: 
When array collecting which is data provider changes, selected index
will set to initial (for example second item - 1).

On page creationComplete, add event listener   
mx:... creationComplete=init()...

method implementation is following:

private function init():void
{
   //Every time selectedProduct.typeNames changes method
WatcherListener will be called
   ChangeWatcher.watch(this.selectedProduct, typeNames,
WatcherListener);
}

public function WatcherListener(event:Event):void 
{
 productSubTypeCB.selectedIndex = 1;
}

If You have any questions feel free to contact me on [EMAIL PROTECTED]

--- In flexcoders@yahoogroups.com, gur_sukh [EMAIL PROTECTED] wrote:

 yes tried that too, but when dataprovider is set the selectedIndex
 gets reset to 0 and hence the value.
 
 
 
 --- In flexcoders@yahoogroups.com, Battershall, Jeff
 jeff.battershall@ wrote:
 
  The way I accomlished this was by sub-classing ComboBox, to take a
value
  as a parameter and set the selectedIndex accordingly.  Ben Forta
has an
  example of this somewhere on his website.
  
  Jeff
  
  -Original Message-
  From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
  Behalf Of gur_sukh
  Sent: Wednesday, February 06, 2008 1:02 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: Setting combobox selectedindex
  
  
  No this is not the scenario i want to have initially a value selected
  when the combobox is shown.
  
  
  --- In flexcoders@yahoogroups.com, Scott Melby smelby@ wrote:
  
   It seems you are asking how to change your code so that your
combo box
   selectedIndex property gets updated each time your model
changes.  For
  
   demo purposes you could just do something like the following:
   
   /**
   * Returns the index of the
   */
   private function
  getSelectedProductSubTypeIndex(selectedProduct:Product):int
   {
   //TODO: in real system search the selectedProduct for the
correct
   sub type and return correct index
   //the thing to search for could be passed as a param as well
   return 1;
   }
   
   mx:ComboBox id=productSubTypeCB width=160
   
   dataProvider={selectedProduct.typeNames}
  
selectedIndex={this.getSelectedProductSubTypeIndex(selectedProduct)}
   change=productOffer.productSubType = event.currentTarget.value /
   
   
   Assuming your productType member is Bindable this method will get
   triggered (due to it having a parameter that is bindable) every time
  an 
   assignment is made to productType (like your model changes),
since it 
   always returns 1 your selected index will be set for you.
   
   hth
   Scott
   
   Scott Melby
   Founder, Fast Lane Software LLC
   http://www.fastlanesw.com
   
   
   
   gur_sukh wrote:
   
   
The combobox dataprovider sets selectedindex to 0. How do we
set it 
to something else.
   
AS the dataprovider is bound to model and every time it
changes the 
selected index is 0.
   
For demo purposed i need to set this to 1.
   
mx:ComboBox id=productSubTypeCB width=160 
dataProvider={selectedProduct.typeNames}
selectedItem=1
change=productOffer.productSubType =
event.currentTarget.value /
   
   
  
  
  
  
  
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
  http://www.mail-archive.com/flexcoders%40yahoogroups.com 
  Yahoo! Groups Links
 





[flexcoders] DataGrid - Swap columns and rows

2007-12-05 Thread Vladimir Stankovic
Hello everybody!

 

I have an XML file containing data of only one student sth like:

 

?xml version=1.0 encoding=utf-8?

catalog

student studentId=1

imeVlada Stankovic/ime

datumRodjenja24.09.1984./datumRodjenja

ispita5+/ispita

fakultetFON/fakultet

.

.

.

/student

/catalog

 

I would like to show data in the grid view but instead of columns I would
like rows to take the names of the student tags and to have 2 columns (one
with tags and the other with data).

 

How can I do this in flex?

 

Thx in advance!

 

Vlada

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of da FoX
Sent: 5. decembar 2007 13:49
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Call to Web Service in WebSphere

 


I'm playing around with Flex and want to call a custom made Web Service
in WebSphere.

When I run my application, It seems that a lot of requests are done to
the Web Service repeatably requesting the same XSD's (complex types).
It looks like the application is in an infinite loop, constantly doing
the same requests.. No call the the web service is made yet at this
point.

If I call the requested XSD manually in my browser, it is resolved
without problems.
And if I call another very simple web service, everything is working as
expected.

My Web Service definition looks like this:

mx:WebService
id=CALS

wsdl=http://localhost:9080/CustomerModuleWeb/sca/CustomerDataServiceExport/
wsdl/CustomerDataServiceExport_CustomerDataServiceHttp_Service.wsdl

endpointURI=http://localhost:9080/CustomerModuleWeb/sca/CustomerDataService
Export

service=CustomerDataServiceExport_CustomerDataServiceHttpService
port=CustomerDataServiceExport_CustomerDataServiceHttpPort
useProxy=false
showBusyCursor=true
fault=Alert.show(event.fault.faultString), 'Error'
mx:operation name=findAll
mx:request
customerRequest
Customer
CustNo16/CustNo
Group/Group
/Customer
/customerRequest
/mx:request
/mx:operation
/mx:WebService

What am I doing wrong here??

__
Looking for last minute shopping deals? 
Find them fast with Yahoo! Search.
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

 



[flexcoders] How to bind a ProgressBar to an XML file loading process

2007-11-08 Thread Vladimir Stankovic
I have an XML file loaded like:

 

  mx:HTTPService id=studentService
url=data/{Fakulteti.selectedItem}.xml

result=studentServiceResultHandler(event)/ 

 

private function studentServiceResultHandler(event:ResultEvent):void

{

var students:ArrayCollection = event.result.catalog.student;

var temp:ArrayCollection = new ArrayCollection();

var cursor:IViewCursor = students.createCursor();

while (!cursor.afterLast)

{

var student:Student = new Student();

student.fill(cursor.current);

temp.addItem(student);

cursor.moveNext();

}

catalog = temp;

}

 

 

I can't figure out how to put the ProgressBar that will fill as the array
gets loaded with data from the XML.

 

Please help!!!

 

Thx in advance,

 

Vlada Stankovic