Flex datagrid data on datachange
Hi all,
I am using an extended datagrid which takes its height on the basis of measured height of items. Item renderer for datagrid is a canvas. Which holds one more canvas(header for item renderer) and a text area. The problem I am facing is with the header canvas in item renderer. Header canvas has one label which diaplay a name of user. On the basis of data provider for the current item visibility of this label in header canvas is set as true or false. issue is when it set to false it repaints(on data change event) all the previous header canvas label also to visible false. And just the last item has the data. Rather it should set its visiblity false only for the current item and rest items sholud behave as value set for them.
Thanks in advance.
Adobe Newsbot hopes that the following resources helps you.
NewsBot is experimental and any feedback (reply to this post) on
its utility will be appreciated:
Flex 3 - Handling service results:
Flex interprets the XML data that a web service or HTTP
service returns to ..... a DataGrid control with DataTable data
returned from a .NET web service.
Link:
http://livedocs.adobe.com/flex/3/html/data_access_6.html
Flex cookbook beta - Building Flex Applications with SOAP Web
Services:
Mar 3, 2008 ... If you are using web services technologies
then it is usually ... The DataGrid tag instanciates an instance of
the DataGrid Flex control.
Link:
http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&productId=2&postI d=7863
Flex 3 - Using WebService components:
The Flex web service API generally supports Simple Object
Access Protocol (SOAP) ... property of a DataGrid control and
displayed in the DataGrid control.
Link:
http://livedocs.adobe.com/flex/3/html/data_access_3.html
Adobe - Flex General Discussion:
Flex datagrid data column / webservice - justneed2know -
08/27/2008 ... I use a web service to populate a datagrid and its
columns (on of which is date).
Link:
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=60&catid=585&threadid =1388794&enterthread=y
All Classes (Flex 3):
mx.rpc.soap, AbstractWebService is an abstract base class for
implementations that provide RPC access to SOAP-based web services.
Link:
http://livedocs.adobe.com/flex/3/langref/class-summary.html
Adobe - Developer Center : Using Flex Builder to Create Web:
Using Flex Builder to Create Web ServiceBased Flex
Applications ... The web service result data needs to flow to the
DataGrid. Select the 'Data will flow
Link:
http://www.adobe.com/devnet/flex/articles/flexbuilder_ws_04.html
Disclaimer: This response is generated automatically by the
Adobe NewsBot based on Adobe
Community
Engine.
Similar Messages
-
Flex datagrid data column / webservice
I use a web service to populate a datagrid and its columns
(on of which is date). The web services sources the data from a sql
server database and thru ASP.net to the Flex application. I've been
seeing strange things. During testing, database records such as
"8/27/2008 8:58:00 PM " correctly shows up as 8/27/2008 in the Flex
application, but records after 9PM such as "8/27/2008 9:01:21 PM"
shows up as 8/28/2008 (the next days) .. seems like after 9 throws
off the data rendering.. please suggest.Adobe Newsbot hopes that the following resources helps you.
NewsBot is experimental and any feedback (reply to this post) on
its utility will be appreciated:
Flex 3 - Handling service results:
Flex interprets the XML data that a web service or HTTP
service returns to ..... a DataGrid control with DataTable data
returned from a .NET web service.
Link:
http://livedocs.adobe.com/flex/3/html/data_access_6.html
Flex cookbook beta - Building Flex Applications with SOAP Web
Services:
Mar 3, 2008 ... If you are using web services technologies
then it is usually ... The DataGrid tag instanciates an instance of
the DataGrid Flex control.
Link:
http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&productId=2&postI d=7863
Flex 3 - Using WebService components:
The Flex web service API generally supports Simple Object
Access Protocol (SOAP) ... property of a DataGrid control and
displayed in the DataGrid control.
Link:
http://livedocs.adobe.com/flex/3/html/data_access_3.html
Adobe - Flex General Discussion:
Flex datagrid data column / webservice - justneed2know -
08/27/2008 ... I use a web service to populate a datagrid and its
columns (on of which is date).
Link:
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=60&catid=585&threadid =1388794&enterthread=y
All Classes (Flex 3):
mx.rpc.soap, AbstractWebService is an abstract base class for
implementations that provide RPC access to SOAP-based web services.
Link:
http://livedocs.adobe.com/flex/3/langref/class-summary.html
Adobe - Developer Center : Using Flex Builder to Create Web:
Using Flex Builder to Create Web ServiceBased Flex
Applications ... The web service result data needs to flow to the
DataGrid. Select the 'Data will flow
Link:
http://www.adobe.com/devnet/flex/articles/flexbuilder_ws_04.html
Disclaimer: This response is generated automatically by the
Adobe NewsBot based on Adobe
Community
Engine. -
Import CSV/Excel data into Flex Datagrid using Java/JSP
Hi,
Is there any way we can import excel/csv data into flex datagrid component.
I see that is been done using php in this site. http://code.google.com/p/as3xls/
Any help would be appreciated.
Thanks in advanceYou can store the list of data from the Excel sheet that you have read already into an ArrayList
Then go through the JDBC tutorial, and learn how to insert a single record into the table.
After you understand how to insert a single record, you can iterate through the ArrayList of data and insert them into the table in the database.
If you know JDBC, see if you can use OR Mapping frameworks like Hibernate or iBatis, they make it very easy to manage database in Java. -
Showing multiple links from inside a flex datagrid button
Hi,
I have a requirement where I need to show a button inside
flex datagrid column.Which I'm doing with custom itemrenderer.When
the User clicks on a particular button inside data grid I need to
show him multiple links with images where user cal click on one of
the links if he choses to do so.How do I achieve this.Any example
is greatly appreciated.
Regards
mflex."...show him multiple links with images ..." Where/how does
this need to be displayed?
Tracy -
Flex DataGrid with Dynamic Grouping
Does anyone know of any examples of Flex datagrids that have
grouping features comparable to the numerous grid components
available in the ASP.NET world? I’m thinking of .NET
component vendors such as Telerik, Infragistics, Component Art,
DevExpress, etc.
The way these .NET controls generally work is that you drag
the header of a column to a bar above the grid, which causes the
grid to redraw based on the new grouping you just specified.
This is an example of a grid component that I am currently
using:
Telerik
Grid
Thank you,
Mike ChabotThe renderer's data property is the data for the entire row so you can get the column1 data and assign the combobox's dataprovider accordingly.
Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui -
Hi,
I am using flex datagrid to develop an application in french,
as french is having special character in it,
i need to sort datagrid column in french. Flex datagrid
unable to sort data in french. i need french sorting,
if somebody has solution of this please help me to get out of
this.
If possible please reply me on
[email protected]i am using inbuilt flex sorting, i am not using sortcompare()
function.
its just a string sorting but as its in french ,character
"
É" is comig after character "
V" , because flex treated it as a special character
. it should come before "
V". so do we need to change character set for
flex? -
Can i extend the Flex DataGrid using ActionScript and create as Add-On Component ?
I've been trying to get this to work. But i'm having issues Not sure if it's related to the Array binding limitation mentioned in the release notes. Maybe someone else has some ideas.
I'm trying to bind to the dataProvider property of the DataGrid. That way when the user in Xcelsius selects a range, it will bind the data in the excel sheet to the DataGrid.
Problem is that i'm only getting one value to update (specifically the top value). At this time i'm only trying to bind a single column of data.
I noted that the commitProperties function gets called whenever a cell changes that i'm bound to, but the dataProvider is only receiving the first value of the array. Even odder is that the ArrayCollection that i receive simply looks like this:
commitProp:dataProvider=(mx.collections::ArrayCollection)#0
filterFunction = (null)
length = 1
list = (mx.collections::ArrayList)#1
length = 1
source = (Array)#2
[0] 1
uid = "A37C62CC-F3DC-E1B1-8159-CE984C2CCE33"
sort = (null)
source = (Array)#2
So i see that i get an array collection of ArrayList objects, the first one of which simple contains the value in the excell sheet "1".
I noted that the proxy.bind function has a parameter called "chain", maybe this is what i need to get multiple value binding? The documentation for the calls are pretty basic, which is understandable as this is new technology.
So anyone have some ideas? Maybe someone from BO who is apart of the SDK group can comment? -
Flex - Java Data transfer objects. How do you usually work ? (Brainstorming)
Hi,
I would like to explain you how I work and to know how you guys do.
All this discussion is just an example of how I work. I really want to know how other coders usually work. This way, maybe I can improve my code.
I would like to know how do you do when you want to retreive data into typed objects when these data contains reference to other typed objects.
Here is how I always work :
I want to retreive all my customers into a flex datagrid and to display all information.
Here is my Customer table structure (just an example)
id, name, refCompany, refLanguage, refCountry, refCustomerGroup
refCompany, refLanguage, refCountry, refCustomerGroup are IDs that reference to other tables.
To ensure to retreive all data into typed object, I make a Customer,Company, Language, Country, CustomerGroup, Flex and Java classes.
I make a query that looks like : Select * from Customer
My java code will looks like :
List<Customer> customers = new ArrayList<Customer>;
ResultSet rs = myConn.execSelect(query);
while(rs.next)
customers.add(new Customer(rs))
return customers;
In my Customer class, I have a constuctor that takes a resultSet
My customer class contains variables (refCompany that is actually a Company object (not an id), refLanguage that is actually a Language object (not an id),... )
Customer(ResultSet rs)
this.name = rs.getString("name")
this.refCompany = new Company.findById(rs.getInt("refCompany")) //This function returns a Company object
this.refLanguage = new Language.findById(rs.getInt("refLanguage")) // This function returns a Language object
Here is how I always do. I don't know if it is a good way because for each customer found in the database, I will make 4 queries (4 findById to find each object : company, language, country, customerGroup of the current customer).
But this way is generic, I don't have to make a specific query that will retreive all objects in one time. I select all customers, and in the constructor I select all objects that I have the reference...
The big problem with this way is when I retreive objects, I always retreive all referenced objects and I do not necessarily want it.
What do you think about the way I work ? How you guys do ? what is the best practice ?up...
-
How to disaply multiple column of a table in a single flex datagrid column
Hi,
I have a table in my database which has say 3 column (Firstname,LastName,Location). I wanted to display these 3 different values in a single column in flex datagrid.
Could you please help me out in this
Thanks,
PratikGenerally, in such scenarios each column is made corresponding to the column in database only and not single column.
However, we can setStyle of a datagrid to make it appear as if all three columns have been populated in single.
set verticalGridLines="false" for dataGrid. Further cosmetic changes can be made to realise the required look.
In some cases, labelFunction of a datagridColumn also suffices the need.
Tanu -
How to update flex field data on a human task?
After entering a human task and assigning the data how do you then update flex field data whilst the task is still assigned. I'm using the task services to communicate with the task and applying filters based on the flex field data.
I want to update the data when actions take place on the task e.g. suspend, aquire, release.
Any ideas?You can fetch the task , change the flex attribute value and update the task. Find below the steps we do for updating one of the TextAttribute
Task completeTask = // get the task using task query service
completeTask.getSystemMessageAttributes().setTextAttribute2(updatedfolderName);
completeTask = // update the task using "updateTask" method -
Is there a way to get my flex pitch data back?
I finished flex pitching all my vocals so I went on the flex timing (mono). When I finished I went back to flex pitch and all my flex pitch data was gone.
Look in your undo history. alt-cmd-Z.
You cannot apply different flex modes on the same audio file.
But...
Flex Pitch can also be use to time flex, so there's no need to switch to monophonic. -
HOT TO INTEGRATE, WCF flex 4 data services
OK. I am trying to build a simple HELLO WORLD WCF Sample and use FLEX 4 (new data servic
es wizard to invoke it).
I have the WCF Client
Tested the WCF Client (works great with JQUERY)
Now I have a brand new flex project and was able
to click the "DATA/SERVICES" and establish a good relationship to the wsdl
http://llocalhost/service.svc?wsdl
Flex 4 finds the service and the correct methods.
WHEN IT TEST IT OUT using the "TEST OPERATION" panel..it fails with a very ugly error.
a:InternalServiceFaultError in deserializing body of request message for
operation 'HelloWorld'. OperationFormatter encountered an invalid Message
body. Expected to find node type 'Element' with name 'HelloWorld' and
namespace 'http://localhost'. Found node type 'Element' with name
'q0:HelloWorld' and namespace 'http://tempuri.org/'OperationFormatter
encountered an invalid Message body. Expected to find node type 'Element'
with name 'HelloWorld' and namespace 'http://localhost'. .........
I also decided to try and test invoking it from a mxml file
NOTHING HAPPENS AT ALL..OR IT GET NULL OR OTHER ERRORS
<s:Application
xmlns:testWcFWebServices="services.service.*"
protected function helloWorld():void
//Alert.Show(ServiceTest.HelloWorld().result);
HelloWorldResult.token = ServiceTest.HelloWorld();
Alert.show(HelloWorldResult.lastResult);
<fx:Declarations>
<s:CallResponder id="HelloWorldResult"/>
<testWcFWebServices:Service id="ServiceTest" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/> </fx:Declarations>
</fx:Declarations>
PLEASE HELP...this is very disturbing when trying to figure this out.
search:
flex 4 CallResponder wcf wsdl hello world
flex 4 wcf wsdl data services
flex 4 wcf wsdl data services 2010
flex 4 wsdl data services wizard
flex 4 web service hello world example
flex 4 data services web service hello world example
flex 4 data services hello world example
flex 4 data services example
flex4 wcf
flex InternalServiceFaultError in deserializing body of request message for
flex services InvocationTargetExceptionHoly cow???? it finally came through....It really should not be that Hard. I should be able to right click the "DATA/SERVICES" icon and it generate a MXML action script file on how to consume it...
IF JUST WORKING WITH a simple Data Type:
DO NOT NEED TO work with a
<s:CallResponder id="myHelloWorldResult"/>
JUST SIMPLE CREATE A RESULT EVENT IN THE DECLARATION:
<testWcFWebServices:MyHelloWorld id="ServiceTest" result="ServiceTest_resultHandler(event)" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
protected function ServiceTest_resultHandler(event:ResultEvent):void
showResult(event.result.toString());
private function showResult(reqResult:String):void {
Alert.show(reqResult);
TO NOTE: I DID USE THIS SAMPLE AS I GUIDE: Even though this guy used action script...and I wanted to use the DATA\SERVICES wizard.
http://cookbooks.adobe.com/post_Connecting_Flex_4_with_WCF_Services-17006.html -
Flex DataGrid - Ability to add comments to the cells like MS Excel
I was wondering if there is a way or ready made component in flex for data grid where in a user can punch in comments for any of the grid cell he wants; much similar to what we have in MS Excel 2003/2007/2010. Any thoughts?
SOLUTION :
set in your renderer the border of the component you return to the following
class ATSBorder extends LineBorder {
public ATSBorder() {
super(Color.RED);
public void paintBorder(Component c, Graphics g, int x, int y,
int width, int height) {
g.setColor(lineColor);
int[] xPoints = new int[]{width - 7, width,width};
int[] yPoints = new int[]{0,0,7 };
int nPoints =3;
g.fillPolygon(xPoints, yPoints, nPoints);
} -
Flex datagrid pagination?
Hi. Does the datagrid or AdvancedDataGrid support pagination?
From what I've found, they don't seem to."curious_Lee" <[email protected]> wrote in
message
news:g91nfo$nv8$[email protected]..
> Hi. Does the datagrid or AdvancedDataGrid support
pagination? From what
> I've found, they don't seem to.
http://gurufaction.blogspot.com/2007/02/flex-datagrid-paging-example-with.html -
Flex datagrid borders off by 1px?
Is there a way to extend the datagrid component or any to her way to avoid this?
Flex datagrid column header borders and column borders keep going off by 1px... and they randomly alternate when resized.
I have no idea how to fix this, and it to me looks like a problem with flex, not so much what i coded
http://screencast.com/t/NmI3Zjk0NmU
http://screencast.com/t/YzE0NDk5 - resized
It's like it's going off by 1px because of some rounding error... no idea why this is happening, and I'm using
Code I'm using (a bit sloppy but still)
http://pastebin.ca/1888773I could use someone's help on this... Every single datagrid i create (at least with a custom header gradient, I think), has borders off by 1px, what can I do to fix this? I've even seen this happening on other sample flex projects. No idea how to fix this
Maybe you are looking for
-
Caller Id not working nothing showing in my settings under phone to activate or deactivate
HOw do I turn on caller I'd if I do not have option in phone settings used to have it not sure what happened
-
Convert virtually any CAD file into a PDF document .
Can Acrobat X Pro Convert virtually any CAD file into a PDF document using templates? Earlier Acrobat 9 Pro Extended used to be ?
-
I am unable to send a photo in any other settings other than small. when i select "large" or "actual" it still comes up small
-
Problem to Create Swing Form in Jdeveloper 12
Hi, I'm trying to create a JFrame in Swing but tells me the following error. Called DataObject.find on null
-
Remove empty space in Picture Library Slideshow web part
I'm using Picture Library Slideshow web part in one of my pages. The web part itself is working fine, but I'm a bit annoyed by the white space the web part is consuming. The web part puts lots of empty space between the web part header and the pictur