[flexcoders] Network Topology Diagrams

2009-12-29 Thread vin.flex

Hi,

I got  a requiremnt to display newtwork diagrmas. These diagrams should be 
created dynamically by loading data from the database. 

I have looked into some 3rd party frameworks like, ILOG Elixir, y files 
etc, but none of them was giving me a solution. 

Any bidy cna suggest how to implemnt this. 

thanks
vin 



[flexcoders] Re: crossdomain.xml issue

2009-07-30 Thread vin.flex

try setting the to-ports attribute.


?xml version=1.0? 
!DOCTYPE cross-domain-policy SYSTEM  
http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd; 
cross-domain-policy 
allow-access-from domain=* to-ports=80/ 
allow-http-request-headers-from domain=* headers=*/ 
/cross-domain-policy

thanks
vin




--- In flexcoders@yahoogroups.com, akila_ksri akila_k...@... wrote:

 Hi,
 
 My flex application is hosted on a public-ip machine and it is accessing the 
 webservice hosted on a Jboss server on another public-ip machine. The 
 crossdomain.xml file is placed at the root of the server and looks as shown 
 below
 
   ?xml version=1.0 ? 
   !DOCTYPE cross-domain-policy (View Source for full doctype...) 
  cross-domain-policy
   site-control permitted-cross-domain-policies=master-only / 
   allow-access-from domain=* secure=true / 
   allow-http-request-headers-from domain=* headers=* secure=true / 
   /cross-domain-policy
 
 I am able to access and load the swf file in the same domain. But when I 
 access the swf from a different domain, I am getting 'Security Error' and the 
 webservice call fails inspite of having the crossdomain file on the server.
 
 Any pointers in this regard would be greatly appreciated. I am stuck with 
 problem from past 1 week and need to get this working at the earliest.
 
 Thanks in advance,
 Akila





[flexcoders] Re: Need help Combobox label property

2009-07-29 Thread vin.flex
Hi there,

You can use the following code:

?xml version=1.0 encoding=utf-8?
mx:ComboBox xmlns:mx=http://www.adobe.com/2006/mxml;
   mx:Script
  ![CDATA[
 private var _selectedValue:String;
 private var bSelectedValueSet:Boolean = false;
 private var bDataProviderSet:Boolean = false;

 // Override committ, this may be called repeatedly 
 override protected function commitProperties():void
 {
// invoke ComboBox version 
super.commitProperties();

// If value set and have dataProvider 
if (bSelectedValueSet  bDataProviderSet)
{
   // Set flag to false so code won't be called until selectedValue 
is set again 
   bSelectedValueSet=false;
   // Loop through dataProvider 
   for (var i:int=0;ithis.dataProvider.length;i++)
   {
  // Get this item's data 
  var item:String = this.dataProvider[i].FIELDNAME;
   
  // Check if is selectedValue 
  if(item == _selectedValue)
  {
 // Yes, set selectedIndex 
 this.selectedIndex = i;
 break;
  }
   }
}
 }

 // Trap dataProvider being set 
 override public function set dataProvider(o:Object):void
 {
// invoke ComboBox version 
super.dataProvider = o;

// This may get called before dataProvider is set, so make sure not 
null and has entries 
if (o!=null  o.length)
{
   // Got it, set flag 
   bDataProviderSet = true;
} else
   bDataProviderSet = false;
 }

 // set for selectedValue 
 public function set selectedValue(s:String):void
 {
// Set flag 
bSelectedValueSet = true;
// Save value 
_selectedValue = s;
// Invalidate to force commit 
invalidateProperties();
 }
  ]]
   /mx:Script

/mx:ComboBox



create this as a reusable component and use this instead of regular 
combobox:

1) Make sure to replace FIELDNAME in the above code with the name of the 
field in the dataprovider.

2) Instead of selectedindex use comboboxId.selectedValue = Value you want to 
ser.

this will solve your problem.


vin.



[flexcoders] Setting firstVisibleItem in ADG

2009-07-14 Thread vin.flex


HI,


   I have an ADG with piechart as he itemrenderer for the entire row. 
If I click any node the chart is shown. 

  I want to set the opened node as the firstVisibleItem, so that 
the chart is visible completely. I am doing the following in itemOpen event.

myADG.fisrtVisibleItem = evt.item; 

This is not working everytime. Can anybody give sugggestions or other way to 
achieve this functionality.


thanks
vin



[flexcoders] Advanced DataGrid Issue Help???

2009-07-10 Thread vin.flex


Hi,

  I have noticed a issue. In an advanced datagrid if you open a 
row which is the last row visible then the children are not visible.
we need to scroll down to see them. is there any work around so that 
if we click to open a node, it is moves to the top so that their 
children are visible.

thanks 
vin



[flexcoders] Accesing Webservices behind Firewall

2009-07-07 Thread vin.flex
Hi there,

I have developed a Flex app with .NET webservices as the
backend. Webservices are deployed beind firewall. How can I access
those webservices from my client side Flex app.

Can I access using proxie using Weborb? If so what is the edition I
need to use. Can any body guide me in this issue?

thanks
vin



[flexcoders] very urgent PlZZZZZZZ Accessing webservices

2009-07-01 Thread vin.flex
Hi there,

I got an urgent situation. I have developed a flex app
accessing the data through webservices developed in C# .NET. 
webservices and my flex app reside in two different boxes.
and webservices are not available for outside public.

Everthing is working fine within the network. But when I access in 
production it is not able to load the WSDL. 

Can any body tell me how to make a request to the load webservice 
from the box hosting flex app(may be using proxies)?

any help will be really appreciated.

thanks 
vin



[flexcoders] reg exp for Password

2009-06-24 Thread vin.flex
Can any body help me with the regexp for password with following
specifications.

1)It should contain atleast contain 8 characters
2)Atleast it should have atleast one uppercase letter and one number
3) No special characters


thanks
vin



[flexcoders] reg expression for Password

2009-06-24 Thread vin.flex
can anybody help me with regexp for password with following specifications

1) It should contain atleast 8 characters
2) It should atleast has one uppercase letter and one digit
3) No special characters

thank s

vin



[flexcoders] Displaying HTML page

2009-06-23 Thread vin.flex
Hi 


I have  a html page(user agreement) which needs to be displayed in 
a popup as modal window. I am getting that html text as CLOB. I have 
binded the string to a text area component. It is not able to recognize 
all the html tags.

I have tried using IFRAME, but somehow my page is not visible.

any suggestions...

thanks in advance

vin.



[flexcoders] Re: Radio Button in DataGrid urgent Plz

2009-06-21 Thread vin.flex

Thanks for your response Harui. 

I have tried your checkbox renderer. I want to preselect a checkbox 
depending on the value of a field in my dataprovider. 

Can you help me how can I bind the check box to a field in my dataprovider?

thanks 
vin


--- In flexcoders@yahoogroups.com, vin.flex vin.f...@... wrote:

 Hi there,
 
 I had requirment for having radio button for one of the column in Datagrid 
 and the user should be able to select only one row radiobutton.
 
 I have used item renderer and assigned it to a RadioButton Group. But I got 
 scrolling issues and also I was unable to preselect one row(which is 
 required). 
 
 Can any body help me and share the code if you have .
 
 Thanks in advance
 
 vin





[flexcoders] Radio Button in DataGrid urgent Plz

2009-06-19 Thread vin.flex
Hi there,

I had requirment for having radio button for one of the column in Datagrid and 
the user should be able to select only one row radiobutton.

I have used item renderer and assigned it to a RadioButton Group. But I got 
scrolling issues and also I was unable to preselect one row(which is required). 

Can any body help me and share the code if you have .

Thanks in advance

vin 




[flexcoders] Problems using ItemRenderers in DataGrid

2009-06-17 Thread vin.flex

I have created a check box item renderer for my datgrid.
I will update the arraycollection by checking or unchecking 
the checkbox. I will submit the data to backend and I will assign the 
dataprovider with updated dataprovider. My data is getting
updated but the some checkboxes are appearing as checked.
They are not getting reinitialized.

Can any body help me solve this issue.Its urgent

Thanks 
vin

thanks in advance
vin