[flexcoders] Re: Flex Contract in Financial Services company

2012-10-26 Thread k.sigiscar
London.

--- In flexcoders@yahoogroups.com, sachin sharma hey_sachin@... wrote:

 Where is the work location?
 
  
 a href=http://messenger.yahoo.com/edit/send/?.target=hey_sachin;
 img border=0 
 src=http://opi.yahoo.com/yahooonline/u=hey_sachin/m=g/t=9/l=us/opi.jpg;
 /a
 
 
 
  From: k.sigiscar k.sigiscar@...
 To: flexcoders@yahoogroups.com 
 Sent: Wednesday, 17 October 2012 1:39 PM
 Subject: [flexcoders] Re: Flex Contract in Financial Services company
  
 
   
 
 Hi Mark,
 
 Sorry, on location only.
 
 --- In flexcoders@yahoogroups.com, markflex2007 markflex2007@ wrote:
 
  May I work remotely?Thanks
  
  --- In flexcoders@yahoogroups.com, k.sigiscar k.sigiscar@ wrote:
  
   Hi,
   
   We have an opening for a Flex contractor on a large Market Surveillance 
   application.
   
   You must know Swiz / Parsley, Flex 3 to 4.5, BlazeDS / LCDS / GraniteDS, 
   Unit testing.
   
   Start: ASAP
   Duration: 3 months
   Daily rate: GBP 350-550
   
   Best regards,
   Karl Sigiscar.
  
 





[flexcoders] Re: Flex Contract in Financial Services company

2012-10-17 Thread k.sigiscar

Hi Mark,

Sorry, on location only.


--- In flexcoders@yahoogroups.com, markflex2007 markflex2007@... wrote:

 May I work remotely?Thanks
 
 --- In flexcoders@yahoogroups.com, k.sigiscar k.sigiscar@ wrote:
 
  Hi,
   
  We have an opening for a Flex contractor on a large Market Surveillance 
  application.
   
  You must know Swiz / Parsley, Flex 3 to 4.5, BlazeDS / LCDS / GraniteDS, 
  Unit testing.
   
  Start: ASAP
  Duration: 3 months
  Daily rate: GBP 350-550
   
  Best regards,
  Karl Sigiscar.
 





[flexcoders] Flex Contract in Financial Services company

2012-10-16 Thread k.sigiscar
Hi,
 
We have an opening for a Flex contractor on a large Market Surveillance 
application.
 
You must know Swiz / Parsley, Flex 3 to 4.5, BlazeDS / LCDS / GraniteDS, Unit 
testing.
 
Start: ASAP
Duration: 3 months
Daily rate: GBP 350-550
 
Best regards,
Karl Sigiscar.



[flexcoders] Re: Resetting Chart scale on LineAxis

2012-07-11 Thread k.sigiscar
;
pricesHLOCChart.height = 400;
}
}
}

tradeVolumesChart.series = columnSet.series;
}   

timeLine.startTime = startTime;
timeLine.endTime =  endTime;

// Create dingbats for the alert being investigated
createDingBats();

// Reset price at time of order line on both price and 
HLOC canvases

pricesAreaBackgroundCanvas.clear();
pricesHLOCBackgroundCanvas.clear();

invalidateDisplayList();
}


--- In flexcoders@yahoogroups.com, claudiu ursica the_braniak@... wrote:

 Hi Karl,
 Can you share some basic example? I don't know how your chart and data looks 
 like, and how you add/discard new data.
 
 I see you already ran into this and did not work...
 https://userflex.wordpress.com/2011/04/21/update-linear-axis/
 
 C
 
 
 
 
  From: k.sigiscar k.sigiscar@...
 To: flexcoders@yahoogroups.com 
 Sent: Monday, July 9, 2012 10:24 AM
 Subject: [flexcoders] Resetting Chart scale on LineAxis
  
 
   
 Hi,
 
 I have a chart with dynamic series on a LinearAxis (Y) and a DateTimeAxis (X).
 
 The series visibility can be set to true / false by the user.
 
 When a series with a very high value is displayed, the rest of the chart is 
 scaled down.
 
 When the series with the high values is then discarded (visibility set to 
 false), the chart doesn't scale down again.
 
 Is there a way to force the chart to reset its scale (min/max) values ?
 
 Best regards,
 Karl Sigiscar.




[flexcoders] Re: Data children disappearing when off range on DateTimeAxis

2012-07-11 Thread k.sigiscar
I checked the Flex JIRA bugs and found this entry, which might explain the 
problem:
https://bugs.adobe.com/jira/browse/FLEXDMV-1674


--- In flexcoders@yahoogroups.com, k.sigiscar k.sigiscar@... wrote:

 Hi,
 
 I have a mx:CartesianDataCanvas:
 
   
   mx:annotationElements
   mx:CartesianDataCanvas 
 id=volumeColumnForegroundCanvas /
   /mx:annotationElements
 
 
 On which I add some data children programmatically:
 
 
   protected function createDingBats():void
   {
   // Remove all the data children (dingbats) from the 
 DataDrawingCanvas in the annotationElements
 
   volumeColumnForegroundCanvas.removeAllChildren();
 
   for each(var dingBatDataItem:EventDTO in 
 secondDataProvider)
   {
   var dingBat:DingBat = new DingBat();
   dingBat.dingBatDTO = dingBatDataItem;
   
   var create:Boolean = false;
   
   switch(dingBatDataItem.eventType)
   {
   case A:
   
   create = 
 currentAlertType.chartTypeAlert;
   break;
   
   case N:
   
   create = 
 currentAlertType.chartTypeNewsEvent;
   break;
   
   case O:
   
   create = 
 currentAlertType.chartTypeOrdNexec;
   break;
   
   case E:
   create = 
 currentAlertType.chartTypeOrdNexec;
   }
   
   if(create)
   {
   // Add the dingbat to the 
 CartesianDataCanvas in the annotationElements of the volume column chart
   
 volumeColumnForegroundCanvas.addDataChild(dingBat, new 
 CartesianCanvasValue(dingBatDataItem.eventDate), null, null, new 
 CartesianCanvasValue(0));
   }
   }
   }
 
 I also have a DateTimeAxis whose minimum and maximum properties are bound to 
 values that change when a timeline changes its zoom factor
   
   mx:horizontalAxis
   mx:DateTimeAxis id=tradeVolumesChartHAxis

 dataUnits=hours

 labelFunction={hostComponent.dateLabelFunction}

 minimum={hostComponent.startTime}

 maximum={hostComponent.endTime}/
   /mx:horizontalAxis
 
 If I change the zoom factor, some of the data children get off range 
 (normal). But when I scroll right or left or reset the zoom factor, they 
 don't appear. They vanished.
 
 Is there something obvious I am missing ?
 
 Best regards,
 Karl.




[flexcoders] Re: Resetting Chart scale on LineAxis

2012-07-11 Thread k.sigiscar
I have checked out the Flex JIRA and this might be the issue since I use 
ColumnSet in my chart component:
https://bugs.adobe.com/jira/browse/FLEXDMV-1674



[flexcoders] Resetting Chart scale on LineAxis

2012-07-09 Thread k.sigiscar
Hi,

I have a chart with dynamic series on a LinearAxis (Y) and a DateTimeAxis (X).

The series visibility can be set to true / false by the user.

When a series with a very high value is displayed, the rest of the chart is 
scaled down.

When the series with the high values is then discarded (visibility set to 
false), the chart doesn't scale down again.

Is there a way to force the chart to reset its scale (min/max) values ?

Best regards,
Karl Sigiscar.





[flexcoders] Re: Resetting Chart scale on LineAxis

2012-07-09 Thread k.sigiscar

Hi Claudiu,

Yes, I saw that one. But he's using a CategoryAxis and not a DateTimeAxis (we 
bind the minimum and maximum properties of the DateTimeAxis to the values of 
our timeline component).

Therefore, we cannot do the same thing as he does to reset the chart scale.

Best regards,
Karl.


--- In flexcoders@yahoogroups.com, claudiu ursica the_braniak@... wrote:

 Hi Karl,
 Can you share some basic example? I don't know how your chart and data looks 
 like, and how you add/discard new data.
 
 I see you already ran into this and did not work...
 https://userflex.wordpress.com/2011/04/21/update-linear-axis/
 
 C
 
 
 
 
  From: k.sigiscar k.sigiscar@...
 To: flexcoders@yahoogroups.com 
 Sent: Monday, July 9, 2012 10:24 AM
 Subject: [flexcoders] Resetting Chart scale on LineAxis
  
 
   
 Hi,
 
 I have a chart with dynamic series on a LinearAxis (Y) and a DateTimeAxis (X).
 
 The series visibility can be set to true / false by the user.
 
 When a series with a very high value is displayed, the rest of the chart is 
 scaled down.
 
 When the series with the high values is then discarded (visibility set to 
 false), the chart doesn't scale down again.
 
 Is there a way to force the chart to reset its scale (min/max) values ?
 
 Best regards,
 Karl Sigiscar.




[flexcoders] Re: Resetting Chart scale on LineAxis

2012-07-09 Thread k.sigiscar
Hi,

The minimum and maximum properties of the LinearAxis are not bound to anything 
and they are the ones I have problems with (values not resetting when setting 
series visibility).

Only the minimum and maximum properties of the DateTimeAxis are bound and there 
is no problem with that part.

Best regards,
Karl.


--- In flexcoders@yahoogroups.com, claudiu ursica the_braniak@... wrote:

 Hi Karl,
 I am not an expert on the charts, I only played with an example from the docs 
 which updates nicely. Hence the request about some 
 basic example to see if it can be narrowed down. Unless you already try it, 
 you can debug the bindings via the 
 BindingManager.debugBinding() or wrap the min/max inside functions and add 
 temporary log/checks support inside those functions 
 to see if calls/updates are happenin. If it is a binding issue you are in 
 luck... 
 
 On the other hand, you may also have to byte the bullet and replace the 
 bindings with hand written code. That way you get a better control of what 
 code is executing...
 If it is a bug in the charts than you will need to fix/monkey patch it...
 
 Either way it helps if you can narrow it down to a simple example where you 
 can add/remove data from a button. If you can have that I can also 
 try to have a look at it.
 
 HTH,
 C
 
 
 
 
  From: k.sigiscar k.sigiscar@...
 To: flexcoders@yahoogroups.com 
 Sent: Monday, July 9, 2012 3:19 PM
 Subject: [flexcoders] Re: Resetting Chart scale on LineAxis
  
 
   
 
 Hi Claudiu,
 
 Yes, I saw that one. But he's using a CategoryAxis and not a DateTimeAxis (we 
 bind the minimum and maximum properties of the DateTimeAxis to the values of 
 our timeline component).
 
 Therefore, we cannot do the same thing as he does to reset the chart scale.
 
 Best regards,
 Karl.
 
 --- In flexcoders@yahoogroups.com, claudiu ursica the_braniak@ wrote:
 
  Hi Karl,
  Can you share some basic example? I don't know how your chart and data 
  looks like, and how you add/discard new data.
  
  I see you already ran into this and did not work...
  https://userflex.wordpress.com/2011/04/21/update-linear-axis/
  
  C
  
  
  
  
   From: k.sigiscar k.sigiscar@
  To: flexcoders@yahoogroups.com 
  Sent: Monday, July 9, 2012 10:24 AM
  Subject: [flexcoders] Resetting Chart scale on LineAxis
  
  
    
  Hi,
  
  I have a chart with dynamic series on a LinearAxis (Y) and a DateTimeAxis 
  (X).
  
  The series visibility can be set to true / false by the user.
  
  When a series with a very high value is displayed, the rest of the chart is 
  scaled down.
  
  When the series with the high values is then discarded (visibility set to 
  false), the chart doesn't scale down again.
  
  Is there a way to force the chart to reset its scale (min/max) values ?
  
  Best regards,
  Karl Sigiscar.
 




[flexcoders] Data children disappearing when off range on DateTimeAxis

2012-05-04 Thread k.sigiscar
Hi,

I have a mx:CartesianDataCanvas:


mx:annotationElements
mx:CartesianDataCanvas 
id=volumeColumnForegroundCanvas /
/mx:annotationElements


On which I add some data children programmatically:


protected function createDingBats():void
{
// Remove all the data children (dingbats) from the 
DataDrawingCanvas in the annotationElements

volumeColumnForegroundCanvas.removeAllChildren();

for each(var dingBatDataItem:EventDTO in 
secondDataProvider)
{
var dingBat:DingBat = new DingBat();
dingBat.dingBatDTO = dingBatDataItem;

var create:Boolean = false;

switch(dingBatDataItem.eventType)
{
case A:

create = 
currentAlertType.chartTypeAlert;
break;

case N:

create = 
currentAlertType.chartTypeNewsEvent;
break;

case O:

create = 
currentAlertType.chartTypeOrdNexec;
break;

case E:
create = 
currentAlertType.chartTypeOrdNexec;
}

if(create)
{
// Add the dingbat to the 
CartesianDataCanvas in the annotationElements of the volume column chart

volumeColumnForegroundCanvas.addDataChild(dingBat, new 
CartesianCanvasValue(dingBatDataItem.eventDate), null, null, new 
CartesianCanvasValue(0));
}
}
}

I also have a DateTimeAxis whose minimum and maximum properties are bound to 
values that change when a timeline changes its zoom factor

mx:horizontalAxis
mx:DateTimeAxis id=tradeVolumesChartHAxis
 
dataUnits=hours
 
labelFunction={hostComponent.dateLabelFunction}
 
minimum={hostComponent.startTime}
 
maximum={hostComponent.endTime}/
/mx:horizontalAxis

If I change the zoom factor, some of the data children get off range (normal). 
But when I scroll right or left or reset the zoom factor, they don't appear. 
They vanished.

Is there something obvious I am missing ?

Best regards,
Karl.




[flexcoders] Dynamic Chart Series problem

2012-04-17 Thread k.sigiscar
Hi,

I have created a custom chart component with dynamic series.

Everything but the VWAP series is shown.

I have tried created an empty array, assign series to it then set the series of 
the priceAreaChart instead of pushing them one by one. To no avail.

I have tried using invalidateSeriesStyles() as well.

Any clue ?



override protected function commitProperties():void
{
super.commitProperties();


if(isTextColorStyleChanged)
{
isTextColorStyleChanged = false;

pricesAreaChart.setStyle(color, 
textColorData);
pricesHLOCChart.setStyle(color, 
textColorData);
tradeVolumesChart.setStyle(color, 
textColorData);
legend.setStyle(color, textColorData);
}

if(isFontFamilyStyleChanged)
{
isFontFamilyStyleChanged = false;

pricesAreaChart.setStyle(fontFamily, 
fontFamilyData);
pricesHLOCChart.setStyle(fontFamily, 
fontFamilyData);
tradeVolumesChart.setStyle(fontFamily, 
fontFamilyData);
legend.setStyle(fontFamily, fontFamilyData);
}

if(isFontWeightStyleChanged)
{
isFontWeightStyleChanged = false;

pricesAreaChart.setStyle(fontWeight, 
fontWeightData);
pricesHLOCChart.setStyle(fontWeight, 
fontWeightData);
tradeVolumesChart.setStyle(fontWeight, 
fontWeightData);
legend.setStyle(fontWeight, fontWeightData);
}

if(isFontSizeStyleChanged)
{
isFontSizeStyleChanged = false;

pricesAreaChart.setStyle(fontSize, 
fontSizeData);
pricesHLOCChart.setStyle(fontSize, 
fontSizeData);
tradeVolumesChart.setStyle(fontSize, 
fontSizeData);
legend.setStyle(fontSize, fontSizeData);
}

if(this._bDataDirty)
{
this._bDataDirty = false;   

// Reset charts series

pricesAreaChart.series = [];
pricesHLOCChart.series = [];
tradeVolumesChart.series = [];

// Remove Dynamic skin parts

for each(var dynamicSkinPartObject:Object in 
dynamicPartsInstances) {

removeDynamicPartInstance(dynamicSkinPartObject.partName, 
dynamicSkinPartObject.instance);  
}

dynamicPartsInstances = [];

// Remove all the data children (dingbats) from 
the DataDrawingCanvas in the annotationElements

pricesAreaForegroundCanvas.removeAllChildren();
pricesHLOCForegroundCanvas.removeAllChildren();

// Create dingbats for the alert being 
investigated
createDingBats();

// Create charts series

var columnSet:ColumnSet = new ColumnSet();
columnSet.type = stacked;

for each(var item:StockDataItemDTO in 
dataProvider)
{
if(item.data)
{
// Create one data tip per 
market
//createDataTip(item);


//###
// Each 

[flexcoders] Re: Dynamic Chart Series problem

2012-04-17 Thread k.sigiscar
Problem solved:

I just commented that line:

pricesHLOCChart.series.push(vwapLineSeries); // Same VWAP line series as
the AreaChart


Added the same series to two different charts causes trouble.


--- In flexcoders@yahoogroups.com, k.sigiscar k.sigiscar@... wrote:

 Hi,
 
 I have created a custom chart component with dynamic series.
 
 Everything but the VWAP series is shown.
 
 I have tried created an empty array, assign series to it then set the series 
 of the priceAreaChart instead of pushing them one by one. To no avail.
 
 I have tried using invalidateSeriesStyles() as well.
 
 Any clue ?
 
 
 
   override protected function commitProperties():void
   {
   super.commitProperties();
 
   
   if(isTextColorStyleChanged)
   {
   isTextColorStyleChanged = false;
   
   pricesAreaChart.setStyle(color, 
 textColorData);
   pricesHLOCChart.setStyle(color, 
 textColorData);
   tradeVolumesChart.setStyle(color, 
 textColorData);
   legend.setStyle(color, textColorData);
   }
   
   if(isFontFamilyStyleChanged)
   {
   isFontFamilyStyleChanged = false;
   
   pricesAreaChart.setStyle(fontFamily, 
 fontFamilyData);
   pricesHLOCChart.setStyle(fontFamily, 
 fontFamilyData);
   tradeVolumesChart.setStyle(fontFamily, 
 fontFamilyData);
   legend.setStyle(fontFamily, fontFamilyData);
   }
   
   if(isFontWeightStyleChanged)
   {
   isFontWeightStyleChanged = false;
   
   pricesAreaChart.setStyle(fontWeight, 
 fontWeightData);
   pricesHLOCChart.setStyle(fontWeight, 
 fontWeightData);
   tradeVolumesChart.setStyle(fontWeight, 
 fontWeightData);
   legend.setStyle(fontWeight, fontWeightData);
   }
   
   if(isFontSizeStyleChanged)
   {
   isFontSizeStyleChanged = false;
   
   pricesAreaChart.setStyle(fontSize, 
 fontSizeData);
   pricesHLOCChart.setStyle(fontSize, 
 fontSizeData);
   tradeVolumesChart.setStyle(fontSize, 
 fontSizeData);
   legend.setStyle(fontSize, fontSizeData);
   }
   
   if(this._bDataDirty)
   {
   this._bDataDirty = false;   
 
   // Reset charts series
   
   pricesAreaChart.series = [];
   pricesHLOCChart.series = [];
   tradeVolumesChart.series = [];
   
   // Remove Dynamic skin parts
   
   for each(var dynamicSkinPartObject:Object in 
 dynamicPartsInstances) {
   
 removeDynamicPartInstance(dynamicSkinPartObject.partName, 
 dynamicSkinPartObject.instance);  
   }
   
   dynamicPartsInstances = [];
   
   // Remove all the data children (dingbats) from 
 the DataDrawingCanvas in the annotationElements
   
   pricesAreaForegroundCanvas.removeAllChildren();
   pricesHLOCForegroundCanvas.removeAllChildren();
   
   // Create dingbats for the alert being 
 investigated
   createDingBats();
   
   // Create charts series
   
   var columnSet:ColumnSet = new ColumnSet();
   columnSet.type = stacked;
   
   for each(var item:StockDataItemDTO in 
 dataProvider)
   {
   if(item.data)
   {
   // Create one data tip per 
 market

[flexcoders] CSS Type selectors are not supported in component

2012-03-07 Thread k.sigiscar

Hi,

I have a custom ActionScript component with a lot of [Style] metadata.

I have overriden the styleChanged and commitProperties methods, I getStyle in 
styleChanged and setStyle in commitProperties on the children.

Everything works when I set the styles directly on the component declaration in 
MXML.

If I create a CSS class like .stockChart and apply it with the styleName 
property, it also works.

However, if I create a CSS class of the same name as the component class, 
StockChart, I get the following warning:

CSS Type selectors are not supported in component

Any clue about this ?

Best regards,
Karl.




[flexcoders] How to find intersection point between a lineseries and a vertical line.

2012-03-06 Thread k.sigiscar

Somebody asked the same question on the Adobe forum a while back, to no avail:
http://forums.adobe.com/message/3435124

Did somebody on this forum succeed in doing such a thing ?



[flexcoders] Re: How to find intersection point between a lineseries and a vertical line.

2012-03-06 Thread k.sigiscar

Thanks Brendan.




[flexcoders] Offset with addDataChild() on DataDrawingCanvas or CartesianDataCanvas

2012-03-05 Thread k.sigiscar
Hi,

I use addDataChild() on a canvas to add some elements along a chart.

However, there is an offset between the element added and the line series.

Any clue ?

Cheers,
Karl.




[flexcoders] Embedded font not working with some components

2010-04-01 Thread k.sigiscar
Hi,

I have an embedded font that works perfect in a Flex 3 application. This is a 
shell that loads modules. Each module has views using a set of standard UI 
components. They all use the same fontFamily using the embedded font. All 
UIComponents used in modules are referred in the shell so they can use the 
embedded font. However, we have a problem with only two UIComponents: the 
AdvancedDatagrid and the PieChart. If we test this outside of our project, in a 
smaller test project, these two components work with the embedded font in 
modules... Odd.

Any clue ?

Best regards,

Karl.



[SPAM] [flexcoders] Re: how to open pdf, word file using flex

2010-01-05 Thread k.sigiscar



Hi,

Yes, you need to create a PDF template with Adobe Livecycle Designer with the 
relevant fields. Then your Flex app must send XML data to your PDF remote 
object (residing on the LCDS Server) with the name of the XML nodes matching 
those of the fields in the PDF template (for data binding).

I have written a number of recipes in the Flex Cookbook beta website about PDF 
generation.

LCDS: Using the PDFResourceServlet to read the generated PDF 

http://cookbooks.adobe.com/post_LCDS__Using_the_PDFResourceServlet_to_read_the_gen-13726.html


LCDS: Creating a PDF form with localized captions 

http://cookbooks.adobe.com/post_LCDS__Creating_a_PDF_form_with_localized_captions-13166.html


LCDS: Displaying a datagrid in a generated PDF 

http://cookbooks.adobe.com/post_LCDS__Displaying_a_datagrid_in_a_generated_PDF-13886.html


LCDS: Displaying pictures dynamically loaded by Flex in a generated PDF 

http://cookbooks.adobe.com/post_LCDS__Displaying_pictures_dynamically_loaded_by_Fl-13267.html

Best regards,
Karl Sigiscar.


--- In flexcoders@yahoogroups.com, Tracy Spratt tr...@... wrote:

 I just looked at it a little bit, and it appears to be a solution to a niche
 problem, and does require a lot of server-side work, including a pre-built
 PFD template of the Flex app without any data.
 
  
 
 Tracy Spratt,
 
 Lariat Services, development services available
 
   _  
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of valdhor
 Sent: Wednesday, December 23, 2009 11:18 AM
 To: flexcoders@yahoogroups.com
 Subject: [SPAM] [flexcoders] Re: how to open pdf, word file using flex
 
  
 
   
 
 http://www.adobe.
 http://www.adobe.com/devnet/flex/articles/portable_ria.html
 com/devnet/flex/articles/portable_ria.html looks cool. I haven't read
 through it yet but will have to see if it really REQUIRES LCDS.
 
 --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
 vikranth4u vikranth4u@ wrote:
 
  Hi
  can anybody help me regarding how to write a code to open a pdf or doc
 file using flex
 





[flexcoders] Data Management Service: affecting several tables

2009-02-27 Thread k.sigiscar

Hello,

This is an architectural question.

We have a project where we have a process that uses EJB3 to
insert/update/delete to several tables at once when it receives data
from the client. But right now, we use Remote Object to trigger that
process. I would like to use an Assembler to use the Data Management
Service instead.

We have two JBoss servers, one for the front end and one for the back
end. The front end server holds the lightweight version of the
entities returned to Flex. The back end server holds the heavyweight
entities that are reflected in the database.

Is it possible to use the Data Management Service and affect several
tables at once ?

Regards,
Karl Sigiscar.




[flexcoders] data grid columns adjustment

2009-01-19 Thread k.sigiscar
Hi,
 
I'm working on datagrid columns adjustment based on the content of
cells. Basically columns widths are adjusted based on maximum cell
width in the column. I extended the DataGrid class and added
adjustment on setting of dataprovider. The problem is that columns are
not adjusted if the datagrid is not visible at the time of setting the
dataprovider. 
 
For example I have a datagrid in an accordion component and if the
data grid is not in the active panel at the beginning, the columns are
not adjusted. After the data grid is shown for the first time, each
later adjustment works, even if the data grid is not visible (i.e, not
in the active panel of the accordion). I also want to invoke
adjustment on data grid width changes. Does anybody has any ideas
which events I can listen to for these two cases? The important thing
is also not to invoke the adjustment too often, I mean not to attach
it to an event which is often dispatched.
 
Thanks,
Grzegorz and Karl.




[flexcoders] Re: Datagrid columns autosize

2009-01-09 Thread k.sigiscar

Yes, I figured that out for dates etc... based on their formatting.

For numerical values, I was thinking of using temporary sorting in
order to get the biggest value without looping. Of course, sorting
involves looping but there are optimized algorithms. Hopefully, the
Sort() of the flex framework is optimized enough.



--- In flexcoders@yahoogroups.com, Doug McCune d...@... wrote:

 But doing some pretty simple calculations based on data type is
easy. For
 example, if you know a field is a date and you want to display the
full date
 and time string, you know how wide that needs to be. Or if a field is a
 phone number, etc. Unknown strings present problems, but maybe just some
 simple stuff would be better than nothing at all?
 
 Doug
 
 On Thu, Jan 8, 2009 at 5:04 PM, Tracy Spratt tspr...@... wrote:
 
 No, to size a column to the widest content, the datagrid would
have to
  read and compute the size for every field in every record.  This
would be
  impossible for large datasets.
 
 
 
  Tracy Spratt
  Lariat Services
 
  Flex development bandwidth available
--
 
  *From:* flexcoders@yahoogroups.com
[mailto:flexcod...@yahoogroups.com] *On
  Behalf Of *k.sigiscar
  *Sent:* Thursday, January 08, 2009 3:56 AM
  *To:* flexcoders@yahoogroups.com
  *Subject:* [flexcoders] Datagrid columns autosize
 
 
 
 
  Hello,
 
  I was wondering if somebody had a solution for sizing automatically
  the width of datagrid columns based on their content.
 
  I have seen some implementations but none are satisfactory in terms of
  performance/stability.
 
  Thanks,
  Karl.
 
   
 





[flexcoders] Datagrid columns autosize

2009-01-08 Thread k.sigiscar

Hello,

I was wondering if somebody had a solution for sizing automatically
the width of datagrid columns based on their content.

I have seen some implementations but none are satisfactory in terms of
performance/stability.

Thanks,
Karl.




[flexcoders] Re: Can the Data Management Service detect database changes (not client changes) ?

2008-11-20 Thread k.sigiscar

Thank you Jeff. We now evaluate your solution for implementation.

In last resort, we had thought about using JMS to send messages with
the entity object whenevener an EJB writes to the database (in other
words, using Flex Messaging). But your solution is more interesting as
it would pass through the Data Management Service as we originally
planned.


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

 Unfortunately there's no great way to do this automatically... DMS
provides the DataServiceTransaction api which you can use to mirror
any changes you make directly to the database but we do not have a
hook to call these automatically in response to a database operation.
 
 The one approach I've heard of that works in some databases is to
register a trigger in the database for that operation, then publish a
JMS message in response to that trigger.  Then in the LC DS process,
you listen for that JMS message and use the DataServiceTransaction api
to push that change out to the clients.
 
 Jeff
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of k.sigiscar
 Sent: Wednesday, November 19, 2008 3:55 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Can the Data Management Service detect
database changes (not client changes) ?
 
 
 Is it possible with LCDS to have the Data Management Service detect
 database changes ? We already have LCDS configured with a custom Java
 assembler. Any change commited on a client reflects to other clients
 and in the database too. But we also have some backend processes
 changing the database. In that case, is it possible to configure LCDS
 to detect those changes to the database and push them to the clients ?





[flexcoders] Can the Data Management Service detect database changes (not client changes) ?

2008-11-19 Thread k.sigiscar
Is it possible with LCDS to have the Data Management Service detect
database changes ? We already have LCDS configured with a custom Java
assembler. Any change commited on a client reflects to other clients
and in the database too. But we also have some backend processes
changing the database. In that case, is it possible to configure LCDS
to detect those changes to the database and push them to the clients ?