Datagrid itemrenderer fails - data interchanged between cells
Hi,
I have the follwing datagrid, the 2nd column of which calls an itemrenderer...
<mx:DataGrid x="10" y="10" width="478" height="209" headerHeight="0" id="dgFollowUp" verticalAlign="top" variableRowHeight="true" wordWrap="true" borderStyle="none" borderThickness="0" color="#000000" useRollOver="false" selectionColor="#FFFFFF">
<mx:columns>
<mx:DataGridColumn dataField="sel" width="30" textAlign="left" sortable="false" id="colsel" headerText="" >
<mx:itemRenderer>
<mx:Component>
<mx:CheckBox paddingTop="2" paddingLeft="10" selected="{data.sel}"
change="{data.sel = this.selected;}" click="parentDocument.changeIsSelectedStatus(this.selected, data)"/>
</mx:Component>
</mx:itemRenderer>
</mx:DataGridColumn>
<mx:DataGridColumn headerText="" dataField="{data.FDOCNO_CONCAT}" itemRenderer="dgFollowupTextRenderer"/>
</mx:columns>
</mx:DataGrid>
...And here it is:
<?xml version="1.0"?>
<!-- itemRenderers\list\myComponents\RendererState.mxml -->
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="init()" height="100%">
<mx:Script>
<![CDATA[
import mx.states.SetProperty;
import mx.controls.Text;
import mx.controls.Label;
import mx.managers.PopUpManager;
private function init():void
var myLabel:Text = new Text;
var myText:String = data.FDOCNO_CONCAT;
var myLink:Label;
var myVboxIn:VBox;
myLabel.text = myText;
myLabel.width = 430;
myVbox.addChild(myLabel);
if (myText.length > 400)
myLink = new Label;
myLink.text = this.parentApplication.scn2LangXml.lastResult.followup.lblReadMore;
myLink.setStyle('color', 0x0000FF);
myLink.mouseChildren = false;
myLink.buttonMode = true;
myLink.useHandCursor = true;
myLink.addEventListener(MouseEvent.CLICK, callPopup);
myVbox.addChild(myLink);
public function callPopup(event:Event):void
var FollowUpDetailsPop:FollowUpDetails;
var count:Number = data.counter;
var tmp:String = data.FDOCNO +' :\n'+data.DESCRIPTION + '\n' + data.COMMENTS;
FollowUpDetailsPop = FollowUpDetails(PopUpManager.createPopUp(this, FollowUpDetails, true));
PopUpManager.centerPopUp(FollowUpDetailsPop);
FollowUpDetailsPop.text = tmp;
]]>
</mx:Script>
<mx:VBox id="myVbox" height="100%"/>
</mx:VBox>
...And here is the popup:
<?xml version="1.0" encoding="utf-8"?>
<mx:TitleWindow
xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute"
width="400"
height="300"
showCloseButton="true"
close="close()"
title="{this.parentApplication.scn2LangXml.lastResult.followupdate.lblTitleDetails}"
borderAlpha="1">
<mx:Script>
<![CDATA[
import mx.managers.PopUpManager;
[Bindable] var text:String;
private function close():void
PopUpManager.removePopUp(this);
]]>
</mx:Script>
<mx:TextArea id="txtDetails" text="{text}" x="10" y="10" width="360" height="240" editable="false"/>
</mx:TitleWindow>
...........Everything displays correctly and the popup functions well too.. The only problem is that when you scroll the initial datatagrid, you see data in the column, which calls the itemrenderer, being swapped between the rows. I have tried same on another example and 1) on sorting the column, the popup contains the wrong data and 2) if there are other columns, its only the one calling for itemrenderer which swaps data between its rows.
Any help | Many thanks..
Hi,
I have the follwing datagrid, the 2nd column of which calls an itemrenderer...
<mx:DataGrid x="10" y="10" width="478" height="209" headerHeight="0" id="dgFollowUp" verticalAlign="top" variableRowHeight="true" wordWrap="true" borderStyle="none" borderThickness="0" color="#000000" useRollOver="false" selectionColor="#FFFFFF">
<mx:columns>
<mx:DataGridColumn dataField="sel" width="30" textAlign="left" sortable="false" id="colsel" headerText="" >
<mx:itemRenderer>
<mx:Component>
<mx:CheckBox paddingTop="2" paddingLeft="10" selected="{data.sel}"
change="{data.sel = this.selected;}" click="parentDocument.changeIsSelectedStatus(this.selected, data)"/>
</mx:Component>
</mx:itemRenderer>
</mx:DataGridColumn>
<mx:DataGridColumn headerText="" dataField="{data.FDOCNO_CONCAT}" itemRenderer="dgFollowupTextRenderer"/>
</mx:columns>
</mx:DataGrid>
...And here it is:
<?xml version="1.0"?>
<!-- itemRenderers\list\myComponents\RendererState.mxml -->
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="init()" height="100%">
<mx:Script>
<![CDATA[
import mx.states.SetProperty;
import mx.controls.Text;
import mx.controls.Label;
import mx.managers.PopUpManager;
private function init():void
var myLabel:Text = new Text;
var myText:String = data.FDOCNO_CONCAT;
var myLink:Label;
var myVboxIn:VBox;
myLabel.text = myText;
myLabel.width = 430;
myVbox.addChild(myLabel);
if (myText.length > 400)
myLink = new Label;
myLink.text = this.parentApplication.scn2LangXml.lastResult.followup.lblReadMore;
myLink.setStyle('color', 0x0000FF);
myLink.mouseChildren = false;
myLink.buttonMode = true;
myLink.useHandCursor = true;
myLink.addEventListener(MouseEvent.CLICK, callPopup);
myVbox.addChild(myLink);
public function callPopup(event:Event):void
var FollowUpDetailsPop:FollowUpDetails;
var count:Number = data.counter;
var tmp:String = data.FDOCNO +' :\n'+data.DESCRIPTION + '\n' + data.COMMENTS;
FollowUpDetailsPop = FollowUpDetails(PopUpManager.createPopUp(this, FollowUpDetails, true));
PopUpManager.centerPopUp(FollowUpDetailsPop);
FollowUpDetailsPop.text = tmp;
]]>
</mx:Script>
<mx:VBox id="myVbox" height="100%"/>
</mx:VBox>
...And here is the popup:
<?xml version="1.0" encoding="utf-8"?>
<mx:TitleWindow
xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute"
width="400"
height="300"
showCloseButton="true"
close="close()"
title="{this.parentApplication.scn2LangXml.lastResult.followupdate.lblTitleDetails}"
borderAlpha="1">
<mx:Script>
<![CDATA[
import mx.managers.PopUpManager;
[Bindable] var text:String;
private function close():void
PopUpManager.removePopUp(this);
]]>
</mx:Script>
<mx:TextArea id="txtDetails" text="{text}" x="10" y="10" width="360" height="240" editable="false"/>
</mx:TitleWindow>
...........Everything displays correctly and the popup functions well too.. The only problem is that when you scroll the initial datatagrid, you see data in the column, which calls the itemrenderer, being swapped between the rows. I have tried same on another example and 1) on sorting the column, the popup contains the wrong data and 2) if there are other columns, its only the one calling for itemrenderer which swaps data between its rows.
Any help | Many thanks..
Similar Messages
-
Enabling data interchange between sites
Hi
I want to design an architecture that runs as the following manner :
1) The web site 1 ( WS 1 ) has a web application. It capture some data and
perform some process.
2) The result of process is to show a page with pictures and link to another
sites ( other companies ).
3) When the user clicks on any link, the WS 1 sends a packet of data to the
destination site ( WS 2 )
4) The WS 2 capture the data and prompts for user authentication, then
perform some operations and return a result values from the process. So, the
WS 2 is closed and back to the WS 1
5 ) The WS 1 catch teh return values and perform other operations
Is it possible ?
How can I implement this ? Do you have any code example ?
RegardsHi
Which version of WLS do you use ?
Do you have link of interest about the topic ?
Thank you
Naggi Rao <[email protected]> escribió en el mensaje de noticias
[email protected]..
We have the same model and we ended up using SOAP.
--Naggi
"Jin Group" <[email protected]> wrote in message
news:[email protected]..
Hi
I want to design an architecture that runs as the following manner :
1) The web site 1 ( WS 1 ) has a web application. It capture some data
and
perform some process.
2) The result of process is to show a page with pictures and link toanother
sites ( other companies ).
3) When the user clicks on any link, the WS 1 sends a packet of data tothe
destination site ( WS 2 )
4) The WS 2 capture the data and prompts for user authentication, then
perform some operations and return a result values from the process. So,the
WS 2 is closed and back to the WS 1
5 ) The WS 1 catch teh return values and perform other operations
Is it possible ?
How can I implement this ? Do you have any code example ?
Regards -
Hello,
I am involved in the design of an application which primarily involves Data Interchange between various datasources distributed across the country. Obviously, the communication has to be secure.
I am confused as to what technology would be most appropriate to use for this scenario...J2EE/JMS or .NET/Web Services...I guess the data interchange format should definitely be XML based.
I'd appreciate any feedback to enlighten me...
Thanks.
KrisHi Kris,
J2EE/JMS (with appropriate support for your requirements )would be able to perform the necessary data interchange you are looking at.
FioranoMQ has support for both SSL (secure socket layer) and XML messages that can facilitate the data interchange you are looking at in the format you want. Also FioranoMQ provides high end performance and throughput that can be helpful in your scenario.
You can check the following guides for more information on FioranoMQ and the above mentioned support.
http://www.fiorano.com/downloads/fmq/FMQDevGuide.pdf
http://www.fiorano.com/downloads/fmq/FMQAdminGuide.pdf
cheers
AmitB
FioranoSoftware Inc.
www.fiorano.com -
How to remove special characters while typing data in edit cell in datagrid in flex4
Hi Friends,
I am facing this problem "how to remove special characters while typing data in edit cell in datagrid in flex4".If know anyone please help in this
Thanks,
Anderson.Removes any characters from
@myString that do not meet the
provided criteria.
CREATE FUNCTION dbo.GetCharacters(@myString varchar(500), @validChars varchar(100))
RETURNS varchar(500) AS
BEGIN
While @myString like '%[^' + @validChars + ']%'
Select @myString = replace(@myString,substring(@myString,patindex('%[^' + @validChars + ']%',@myString),1),'')
Return @myString
END
Go
Declare @testStr varchar(1000),
@i int
Set @i = 1
while @i < 255
Select
@TestStr = isnull(@TestStr,'') + isnull(char(@i),''),
@i = @i + 1
Select @TestStr
Select dbo.GetCharacters(@TestStr,'a-z')
Select dbo.GetCharacters(@TestStr,'0-9')
Select dbo.GetCharacters(@TestStr,'0-9a-z')
Select dbo.GetCharacters(@TestStr,'02468bferlki')
perfect soluction -
Hello.....
I'm not able to log into Windows Server 2008 r2 server thorugh Remote Desktop connection, receiving below error message.
This issue is with only three servers in the environment
"Remote Desktop cannot verify the identity of the computer because there is a time or date diffrence between your computer and remote computer......"
The date/time is correct on the server when i checked in the console session of the server
Can see below messages in event logs
Event ID 1014:
"Name resolution for the name XYZdomain.com timed out after none of the configured DNS servers responded."
Event ID 1053:
The processing of Group Policy failed. Windows could not resolve the user name. This could be caused by one of more of the following:
a) Name Resolution failure on the current domain controller.
b) Active Directory Replication Latency (an account created on another domain controller has not replicated to the current domain controller).
Any thoughts ....Hi,
Have you tried to connect these three servers with IP address instead of computer name or DNS name?
Check Remote Desktop Connection settings: Option-->Advanced-->Connect from anywhere-->Settings-->Connection Settings-->Select “Do not user an RD Gateway server”
For more information please refer to following MS articles:
Remote Desktop cannot verify the identity of the remote computer because there is a time or date difference between your computer and the remote computer
http://social.technet.microsoft.com/Forums/en-US/w7itpronetworking/thread/c1f64836-5606-49b0-82eb-56be7f696520
Cannot connect via Remote Desktop
http://social.technet.microsoft.com/Forums/en-US/windowsserver2008r2general/thread/5087e897-8313-468c-ad37-ef18b87d4dd6
Lawrence
TechNet Community Support -
Datagrid itemrenderer multiple use
Hopefully a straightforward and easy to answer question,
I have a datagrid with an item renderer, like so
<mx:DataGrid id="dg1" x="371" y="97" creationComplete="dg1.dataProvider = getStuff.lastResult.info">
<mx:columns>
<mx:DataGridColumn id="val1" dataField="val1" itemRenderer="checkBoxRenderer"/>
<mx:DataGridColumn id="val1" dataField="val2" itemRenderer="checkBoxRenderer"/>
<mx:DataGridColumn id="val3" dataField="val3" itemRenderer="checkBoxRenderer"/>
<mx:DataGridColumn id="val4" dataField="val4" itemRenderer="checkBoxRenderer"/>
</mx:columns>
</mx:DataGrid>
the item renderer is this
<mx:CheckBox xmlns:mx="http://www.adobe.com/2006/mxml" selected="{handleData(##############)}">
<mx:Script>
<![CDATA[
private function handleData(value:String):Boolean
var checkValue:Boolean = false;
if (value == "yes")
checkValue = true;
trace(this.name);
return checkValue;
]]>
</mx:Script>
</mx:CheckBox>
i'm trying to use the same item renderer for all 4 columns and they read their data from different areas of the XML, an example of which looks like this:
<info><val1>yes</val1><val2>no</val2><val3>no</val3><val4>yes</val4></info>
<info><val1>yes</val1><val2>no</val2><val3>yes</val3><val4>yes</val4></info>
<info><val1>yes</val1><val2>yes</val2><val3>no</val3><val4>yes</val4></info>
I'm aware of being able to pass around values such as "data.val1" and "data.val2" within the renderer, so it'll work individually for a single column of data.
question is, how to i make them refer correctly to their respective datafields?
or will i have to use individual item renderers for each column / some botch job using alot of if statements and "this.name" ?Hello,
Your itemRenderer will need to implement IDropInListItemRenderer which hase set/get listdata:BaseListData or something like that.
The dataGridColumn seting the itemRenderer's data, if it will also implement the mentioned interface it will set it's listData. With this list data
you can take it's owner (a datagrid) and the column index and you can obtain the dataGridColumn you need. In this way from your itemRenderer you will have the associaed datagridColumn. From your dataGridColumn you can take your dataField and use it.
Claude Bur. -
Data sync between on-premise and azure database
HI, I am not able to setup data sync between my on-premise database and azure database. Following is the error I am getting after it ran for almost 36 hours...
Sync failed with the exception "GetStatus failed with exception:Sync worker failed, checked by GetStatus method. Failure details:An unexpected error occurred when applying batch file C:\Resources\directory\4c6dc848db5a4ae88265ee5aa1d44f40.NTierSyncServiceWorkerRole.LS1\DSS_7b1d73b4-d125-466f-94ab-eaa4553ea0ae\ed19f805-3d50-466a-96b3-861c4f22d8a4.batch.
See the inner exception for more details.Inner exception: Failed to execute the command 'UpdateCommand' for table 'dbo.Transactions'; the transaction was rolled back. Ensure that the command syntax is correct.Inner exception: SqlException Error Code: -2146232060
- SqlError Number:10054, Message: A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.) " For more information,
provide tracing ID ‘e6a1fad1-f995-4ffe-85db-0c6dc02423f1’ to customer support.Hi, sorry it has been a long time since your last post. Are you still using SQL Data Sync and hitting any issue which we could help with?
Linda -
Fail to Convert between UTF8 and UCS2: fail UTF Conversion
I'm using the JReport software, a product which generates java reports based on a jdbc datasource.
during installation the JReport installation program located Microsoft java VM installed on my PC and I accepted this option to be working JVM for JReport.
This worked very well. I have installed jdbc driver for Oracle 8.1.5 that worked fine as well on the design time (I have connected to Oracle, I have seen my tables and other information on my DB).
But when I switched the run-time view (when real data is going to load) then the following exception message appeared :
"Fail to Convert between UTF8 and UCS2: fail UTF Conversion" .
if there is anybody who understood my problem any kind of help will be appreceated
It will be helpfull to receive any suggestions made to this matter.
Anything relative help will be welcome.
thanks in advance.I had the same problem using Oracle 9i. The problem lied within the Oracle JDBC driver itself! --;
If you're using JDBC driver from Oracle 9i, stop using it!
You should download JDBC driver of Oracle 10g from Oracle site and use that driver instead.
After I changed the driver, I now have no problem of getting Korean characters from the database.
Hope this would solve your problem too. -
Hi,
is there any specific model/data interchange format between BPM tools that help us transfering models modelled in one tool to another.?
this question in on lines of requirement to transfer models from visio to aris, or vice versa.
Regards
Message was edited by:
user549879
Message was edited by:
user549879Hello,
There is no standardized interchange format to transfer information between ORACLE BPA / ARIS - Visio and other tools.
But we have a solution that is capable to transfer every model information out of Oracle BPA to Visio and visa versa.
This solution also enables the BPA methodology in Visio. That brings the modeling constrains of the BPA suite to Visio and helps to ensure the conventions.
But this is not a substitute for the BPA Suite because everything you model on the Visio side is still not repository based! So you will also need the BPA Suite to manage the complete modeling environment. But as a support for occasional users this is a good thing and closes most of the modeling gaps between different tools.
If you are interested in this solution please get directly in touch with us under:
www.opitz-consulting.de or [email protected]
You can address your mail directly to me
Dirk -
Difference between cell text and annotation
Hi ,
Can any body explain what is diff between cell text and annotation?Annotations can be plain text, or can include URL links to, for example, a project Web site, a spreadsheet, or PDF file on a server.
If you have read access to a cell, you can add annotations called cell text to the cell at any level. You can add cell text at the summary time period level and across multiple dimensions at any level. You can also add cell text for non-level 0 members (bottom-up versions), calculated cells (dynamic calc), and read-only cells. For example, you can add explanations for data analysis of variances and rolling forecasts.
Have a look at http://download.oracle.com/docs/cd/E12825_01/epm.111/hp_user.pdf
HTH-
Jasmine. -
I can not count the data from the module. Can prompt as it to make. It is desirable with examples (data read-out from the module and data transmission between channels. It is in advance grateful.
Hello. Most of the engineers in developer exchange are more familiar
with NI products. Contacting ICS for technical support is a better
course of action. -
Data reconciliation between R/3 and the BW Systems
How do we do data reconciliation between R/3 and the BW system for the following areas?
Purchasing
Controlling:
Project System:
COPA
SD
AP
Trgards,
Tony GTony
Have you looked these documents??
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/biw/how%20to%20validate%20infocube%20data%20by%20comparing%20it%20with%20psa%20data
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/7a5ee147-0501-0010-0a9d-f7abcba36b14
Re: BW v. R/3 data reconciliation
Hope this helps
Thanks
Sat -
Report for date variances between delivery and goods receipt date
dear guru ,
i search a standard report for date variances between delivery date in the purchase order and the goods receipt date.
Do you help me ?
ThanksHi,
Use Report ME80FN and here check the delivery schedule option in output screen. -
How can I create a diagram where equal data from different cells will be added to one sector?
Hi,
I'm a new Mac user, so I have a lot of problems and questions every day. Moving to Mac from PC is not an easy thing)
Here is my problem:
I need to create a few diagrams for my science work, but can't correct one mistake. Every time one data from one cell from the table takes its own place in the diagram. But I need to ceparate equal data to show it is one section.
An example:
Sex
Age
Female
18
Female
18
Female
18
Female
25
Female
30
We need to create a diagram to show that we have
60% - 18 years
20% - 25 years
20% - 30 years
But Numbers doesn't show it that way. Here how it does:
So please help me. How can I do that?Hi ProCauda,
Some example data of people and their age:
The COUNTIF function will give the number of people of each age.
In another table, B2 contains this formula (and Fill Down to the bottom of B)
=COUNTIF(Table 1::B,"="&A2)
In this example, 3 people are 18 years old, 0 people are 19 years old, and so on. Use this table to calculate each age as the % of the total, then use that as the data for your diagram (graph, chart).
Regards,
Ian. -
How can I get right data in a cell of JTable when table enter editing
how can I get right data in a cell of JTable when table enter editing
how can I get right data in a cell of JTable when table enter editing
Maybe you are looking for
-
How do i get Dreamweaver to recognize my website
I had to wipe clean my PC, I saved all the Dreamweaver files. I reloaded Dreamweaver on my freshly built C drive. I also placed all the Dreamweaver files on C drive in the same location before the rebuild. my questions are these 1, how can I get Drea
-
How do I get music videos, tv shows, and movies from my iTunes onto my iPod touch?
I just bought the 32 G iPod touch bc I read online that the 8G holds 2000 songs plus other stuff and the 32G holds 8000 songs plus more. I have 3000 songs on my iTunes and for some reason it said it won't hold more than 2600. Also I can't figure out
-
Windows does not start and cannot get into safe recovery mode
Had a blue screen and when I start up Windows wants to run in safe mode. But this runs for a few seconds and then stops with a blank screen (have left this for over 2 hours). If I select to start windows normally then the system just reboots to the w
-
This calendar item shows itself as every week.
I created a calendar item at work with Outlook, exported it to an .ics and e-mailed it to my home. When I open it with iCal, it shows up as every week. I deleted it, went back to work and tried again. It is a once per month item at work: BEGIN:VCALEN
-
Permanent Crash related to changing display settings while FCP is open.
Recently, the display settings (arrangement) on my two monitors started changing by itself while I was working in FCP 6.5. I'm using ancient monitors (Viewsonic MB90 and Mitsubishi Diamond Pro 920. I just don't have the money to upgrade right now). T