Adding JS graph to Flex project

2015-06-09 Thread Oleg Konovalov
Hi,

We have Flex + Java Web App.
Needed to add Graphs to it, kind of a network of nodes, built from data
coming from DB. Tried Birdeye Ravis, were not happy with it.
So now we want to try using one of JS visual libs like VisJS or D3,
possibly try to add AngularJS if it becomes necessary, which I doubt.
Can I add such graph to Flex TabNavigator, inside NavigatorContent?

Also where should I put JS code inside FlashBuilder project? Any pointers?

Any good Eclipse 3.8 JS plugins?

TIA,
Oleg


Re: Profiling Flex/Java Web App

2015-04-13 Thread Oleg Konovalov
I tried to create brand new HelloWorld,
but got the same exact error in FB4.5.1.
A lot of people on the net got the same.
Did that profiler ever worked?
On Apr 10, 2015 14:17, "Alex Harui"  wrote:

> Did you try profiling a really simple “Hello World” type of application?
> There could be some issue with how the profiler talks to the SWF.  I think
> it uses a Socket.  Maybe something else is using that socket.
>
> -Alex
>
> On 4/10/15, 11:03 AM, "Oleg Konovalov"  wrote:
>
> >I don't think that is the issue.
> >
> >I tried profiling simple application (showing a graph with few nodes,
> >using
> >RaVis library - sample of what we have on one screen),
> >and got exactly the same error popup "No activity happened in the past 60
> >seconds
> >after connection was established with the application"  and only after
> >that
> >app came up.
> >
> >Is there anything I need to do to configure FB Profiler to run it?
> >(i haven't done that in Flex before)
> >
> >
> >On Thu, Apr 9, 2015 at 3:46 PM, Alex Harui  wrote:
> >
> >>
> >>
> >> On 4/9/15, 8:59 AM, "Oleg Konovalov"  wrote:
> >>
> >> >Alex,
> >> >
> >> >That profiler problem happens much before I reach my heavy duty popup
> >>with
> >> >many children,
> >> >on initial screen.
> >> >We are making calls to about 30 Stored Procs to get proper permissions
> >>and
> >> >load static data.
> >> >(can probably turn off some of them and only use data relevant to
> >>screen
> >> >with popup we need,although it might take time to investigate).
> >> >
> >> >As I said, Debugger is running fine, no timeouts whatsoever.
> >> >
> >> >Is Profiler more demanding than Debugger?
> >>
> >> Yes, the profiler is logging data for every line of code and every
> >>memory
> >> allocation.  So if there is too much work to get the app up and running
> >> you can have this sort of problem.
> >>
> >> I’ve never actually dealt with this situation myself.  IMO, it is an
> >> indicator that you could refactor the app and defer some of the work and
> >> see faster startup time and allow the profiler to do its thing.
> >>
> >> One thing you could try is to call pauseSampling() in a preinitialize
> >> handler in the app.  That might shutdown the logging and allow the app
> >>to
> >> start up faster.  Then call startSampling at the right moment to start
> >> collecting the data you need.  Here’s the doc:
> >>
> >>
> >>
> http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/
> >>sa
> >> mpler/package.html#pauseSampling()
> >>
> >> -Alex
> >>
> >>
> >
> >
> >--
> >Thank you,
> >Oleg.
>
>


Re: Profiling Flex/Java Web App

2015-04-09 Thread Oleg Konovalov
Alex,

That profiler problem happens much before I reach my heavy duty popup with
many children,
on initial screen.
We are making calls to about 30 Stored Procs to get proper permissions and
load static data.
(can probably turn off some of them and only use data relevant to screen
with popup we need,although it might take time to investigate).

As I said, Debugger is running fine, no timeouts whatsoever.

Is Profiler more demanding than Debugger?


On Thu, Apr 9, 2015 at 12:25 AM, Alex Harui  wrote:

> First, try a small test app to make sure everything really does work.
>
> Then, in your case, if you can control the number of children, instead of
> profiling 100, profile 50.  The same hotspots should show up.
>
> Or do 50 and then 20 and see if you see a trend.
>
> -Alex
>
> On 4/8/15, 3:25 PM, "Oleg Konovalov"  wrote:
>
> >Hi,
> >
> >I have a large Flex+Java app (Flex 4.5.1).
> >
> >Created a new complicated screen (with 3 ADGs) and WindowTitle popup
> >to edit a row with 2 sets of children (each is a DataGroup with Renderer,
> >one is a few TextInputs (with 2 way binding),
> >another is 2 dropdownlists (2nd gets a list based on 1st one selection, so
> >there is a call to stored proc), checkbox and a button.
> >
> >It seems that if there are 100s of these children, it takes >35secs for
> >that popup
> >to come up in Edit mode.
> >
> >I tried to profile it using FlashBuilder 4.5.1 on Tomcat 6.0,
> >but when I bring up profiler, it shows me popup "No activity happened in
> >the past 60 seconds
> >after connection was established with the application"  and only after
> >that
> >app comes up.
> >
> >Debugger works fine, and I can run that app without any problems.
> >
> >
> >Is there way to fix it?
> >
> >I have seen lots of posts showing similar error, but no solution so far.
> >
> >
> >Please help!
> >
> >--
> >Thank you,
> >Oleg.
>
>


-- 
Thank you,
Oleg.


Profiling Flex/Java Web App

2015-04-08 Thread Oleg Konovalov
Hi,

I have a large Flex+Java app (Flex 4.5.1).

Created a new complicated screen (with 3 ADGs) and WindowTitle popup
to edit a row with 2 sets of children (each is a DataGroup with Renderer,
one is a few TextInputs (with 2 way binding),
another is 2 dropdownlists (2nd gets a list based on 1st one selection, so
there is a call to stored proc), checkbox and a button.

It seems that if there are 100s of these children, it takes >35secs for
that popup
to come up in Edit mode.

I tried to profile it using FlashBuilder 4.5.1 on Tomcat 6.0,
but when I bring up profiler, it shows me popup "No activity happened in
the past 60 seconds
after connection was established with the application"  and only after that
app comes up.

Debugger works fine, and I can run that app without any problems.


Is there way to fix it?

I have seen lots of posts showing similar error, but no solution so far.


Please help!

-- 
Thank you,
Oleg.


DataGroup with TextArea

2014-12-09 Thread Oleg Konovalov
Hi,

I used to have a DataGroup with a Renderer which had a bunch of TextFields,
CheckBoxes, Dropdowns,...
Worked fine, was using it with VerticalLayout with requestMaxRowCount =4.
It had a button below to add an item or Delete button inside Renderer.
All that worked fine on TitleWindow popup.
I added a TextArea with heightInLines=2.
Now it became a total disaster: I can not allow enough space to have 3-4
items.
Tried maxHeight in DataGroup or Scroller or its parent FormItem. Tried to
change requestedMaxRowCount in DataGroup VerticalLayout,...
Nothing works.

Any idea how to manage TextArea in DataGroup with Renderers?

TIA,
Oleg


Re: Tooltip on GroupingCollection2

2014-12-07 Thread Oleg Konovalov
Any pointers ?


TIA,
Oleg.

On Fri, Dec 5, 2014 at 9:25 AM, Valdemar Lopes 
wrote:

> Please remove me from this maillist
>
> 2014-12-05 14:10 GMT+00:00 Oleg Konovalov :
>
> > Hi,
> >
> > Is there an easy way of showing tooltip on "folder" level
> > when you use ADG with GroupingCollection2.
> >
> > if I use tooltip="{myGC.field1}" in ADG,
> > getting error 1119:  access to possibly undefined property field1 through
> > reference with static
> > type GroupingCollection2.
> >
> > Using Flex 4.5.1
> >
> > --
> > Thank you in advance,
> > Oleg.
> >
>



-- 
Thank you,
Oleg.


Tooltip on GroupingCollection2

2014-12-05 Thread Oleg Konovalov
Hi,

Is there an easy way of showing tooltip on "folder" level
when you use ADG with GroupingCollection2.

if I use tooltip="{myGC.field1}" in ADG,
getting error 1119:  access to possibly undefined property field1 through
reference with static
type GroupingCollection2.

Using Flex 4.5.1

-- 
Thank you in advance,
Oleg.


Re: Flex3 module in Flex4 FB project

2014-11-05 Thread Oleg Konovalov
I think, the main Flex3->4 effort would be in converting all Cairngorm code
there to Parsley 2.4.
Is there an easy way to do that?

TIA,
Oleg.


On Tue, Oct 28, 2014 at 8:23 AM, Curtis Aube 
wrote:

> Not sure if this will help, but if you upgrade your Flex 3 app to be a
> Flex 4 app, you can maintain the look of your legacy app by setting set the
> theme to be Spark and Halo. Then moving forward, you can use spark with the
> new spark theme while maintaining the look of your legacy app.
>
> So in your flex-config.xml, you would set it to something like:
>
> 
> 
>
>themes/Halo/halo.swc
>themes/Spark/spark.css
> 
>
> Hope that helps. Good luck.
>
> Curtis
>
> > On Oct 23, 2014, at 4:55 PM, Oleg Konovalov  wrote:
> >
> > Hi,
> >
> > We currently have a legacy Flex3 app with Cairngorm which we would like
> to
> > bring into the Flex4 app with Parsley 2.4.
> > Is it possible to put that Flex3 code as module into Flex4 project in FB
> > 4.5.1?
> >
> > Is it possible to incorporate that Flex3 module as an item in Flex4 menu
> > (using 3rd party component) ?
> >
> > Is it possible to get interaction between this Flex3 module and Flex4
> > items, like user selects a row of data on one side, and shows it in
> another
> > view via XML data?
> >
> > Please advise.
> >
> > TIA,
> > Oleg
>
>


-- 
Thank you,
Oleg.


Re: Conditional renderer in MXML

2014-10-23 Thread Oleg Konovalov
It is in Flex3 ADG...
Still doable?
 On Oct 22, 2014 5:29 PM, "João Fernandes" <
joaopedromartinsfernan...@gmail.com> wrote:

> If using a Spark datagrid you can try on the gridColumn the
> itemrendererFunction to define on the fly which ItemRenderer Factory should
> be used.
>
> On 22 October 2014 21:14, Oleg Konovalov  wrote:
>
> > Hi,
> >
> > I am need to implement conditional logic for renderer in MXML
> > ADGRenderProvider, something like:
> > if (condition1)  renderer = renderer1
> > else renderer=renderer2
> >
> > How can I do that?
> >
> > TIA,
> > Oleg
> >
>
>
>
> --
>
> João Fernandes
>


Flex3 module in Flex4 FB project

2014-10-23 Thread Oleg Konovalov
Hi,

We currently have a legacy Flex3 app with Cairngorm which we would like to
bring into the Flex4 app with Parsley 2.4.
Is it possible to put that Flex3 code as module into Flex4 project in FB
4.5.1?

Is it possible to incorporate that Flex3 module as an item in Flex4 menu
(using 3rd party component) ?

Is it possible to get interaction between this Flex3 module and Flex4
items, like user selects a row of data on one side, and shows it in another
view via XML data?

Please advise.

TIA,
Oleg


Conditional renderer in MXML

2014-10-22 Thread Oleg Konovalov
Hi,

I am need to implement conditional logic for renderer in MXML
ADGRenderProvider, something like:
if (condition1)  renderer = renderer1
else renderer=renderer2

How can I do that?

TIA,
Oleg


Which panel?

2014-10-09 Thread Oleg Konovalov
Hi,
I have a bunch of Panels on the Form,
each having Submit and Cancel buttons. So when user presses Cancel, how do
I determine from which Panel it came?
Looks like I can't get it from event.currentTarget.panentDocumentI will
need to hide that panel.

Please advise.

TIA,
Oleg.


Re: HostComponent is NULL?

2014-09-12 Thread Oleg Konovalov
As I mentioned in previous post, I am already getting a 1-2 lines exception,
so what will try/catch block give me? :-)
On Sep 11, 2014 8:10 PM, "OmPrakash Muppirala"  wrote:

> On Thu, Sep 11, 2014 at 5:01 PM, Oleg Konovalov  wrote:
>
> > All I get in error stack trace is 1 line (or 2 if it called not directly
> > from MXML Spark Button definition, but from some method in that skin
> > class):
> >
> > MySkinClass::Btn1_click:   line xxx
> >
> >
> > I am using Parsley 2.4 (if that is relevant).
> >
> >
> Lots of times, Parsley eats the exceptions and lets things silently fail.
> I usually add a try catch in my code and inspect the scope chain for
> errors.
>
> In your case, try adding a try catch where you are trying to access the
> hostcomponent.
>
> In case you are using the parsley swcs, try switching to the parsely source
> directly and perhaps you can see the exact location things are failing.
>
> Thanks,
> Om
>
>
>
> > It is really strange:  I wrote a lot of such   view/viewSkin pairs and
> > never seen that problem before.
> >
> > In that case I copied existing pair of them and copied into it some code
> > from another pair with minor changes.
> > Probably missed something all compiles and looks normal.
> > have proper constructor in view...
> >
> >
> > On Thu, Sep 11, 2014 at 3:54 PM, Alex Harui  wrote:
> >
> > > Did you try to attach something?  Attachments don't always work on the
> > > mailing list.  Copy and paste the stack trace or post it somewhere and
> > > send a link to it.
> > >
> > > -Alex
> > >
> > > On 9/11/14 12:37 PM, "Oleg Konovalov"  wrote:
> > >
> > > >Skin's spark button click -- to hostComponent.method1()
> > > >On Sep 11, 2014 3:19 PM, "Alex Harui"  wrote:
> > > >
> > > >> What does the call stack look like?
> > > >>
> > > >> On 9/11/14 12:15 PM, "Oleg Konovalov"  wrote:
> > > >>
> > > >> >I am calling it by clicking a button on fully drawn screen, so I
> > would
> > > >> >expect that hostComponent to be initialized by then. Are there any
> > > >> >conditions to check or configuration I need to know about?
> > > >> >Seems to work fine on many similar screens.
> > > >> >Using Flex 4.5.1.
> > > >> >And F3 does bring me to correct method.
> > > >> >On Sep 11, 2014 3:03 PM, "Alex Harui"  wrote:
> > > >> >
> > > >> >> Calling too soon before hostComponent is assigned, or maybe
> > > >> >>hostComponent
> > > >> >> is the type you specified.
> > > >> >>
> > > >> >> On 9/11/14 11:53 AM, "Oleg Konovalov"  wrote:
> > > >> >>
> > > >> >> >Hi,
> > > >> >> >
> > > >> >> >I am creating a View/ViewSkin pair,
> > > >> >> >with view extending SkinnableContainer.
> > > >> >> >As usual, often have to call hostComponent.method1(),
> > > >> >> >but getting Error # 1009 Cannot access a property or method.
> > > >> >> >I do define HostComponent properly in the skin.
> > > >> >> >When I call that method1, hostComponent is NULL. Why?
> > > >> >> >What I might be missing?
> > > >> >> >
> > > >> >> >TIA,
> > > >> >> >Oleg
> > > >> >>
> > > >> >>
> > > >>
> > > >>
> > >
> > >
> >
> >
> > --
> > Thank you,
> > Oleg.
> >
>


Re: HostComponent is NULL?

2014-09-11 Thread Oleg Konovalov
All I get in error stack trace is 1 line (or 2 if it called not directly
from MXML Spark Button definition, but from some method in that skin class):

MySkinClass::Btn1_click:   line xxx


I am using Parsley 2.4 (if that is relevant).

It is really strange:  I wrote a lot of such   view/viewSkin pairs and
never seen that problem before.

In that case I copied existing pair of them and copied into it some code
from another pair with minor changes.
Probably missed something all compiles and looks normal.
have proper constructor in view...


On Thu, Sep 11, 2014 at 3:54 PM, Alex Harui  wrote:

> Did you try to attach something?  Attachments don't always work on the
> mailing list.  Copy and paste the stack trace or post it somewhere and
> send a link to it.
>
> -Alex
>
> On 9/11/14 12:37 PM, "Oleg Konovalov"  wrote:
>
> >Skin's spark button click -- to hostComponent.method1()
> >On Sep 11, 2014 3:19 PM, "Alex Harui"  wrote:
> >
> >> What does the call stack look like?
> >>
> >> On 9/11/14 12:15 PM, "Oleg Konovalov"  wrote:
> >>
> >> >I am calling it by clicking a button on fully drawn screen, so I would
> >> >expect that hostComponent to be initialized by then. Are there any
> >> >conditions to check or configuration I need to know about?
> >> >Seems to work fine on many similar screens.
> >> >Using Flex 4.5.1.
> >> >And F3 does bring me to correct method.
> >> >On Sep 11, 2014 3:03 PM, "Alex Harui"  wrote:
> >> >
> >> >> Calling too soon before hostComponent is assigned, or maybe
> >> >>hostComponent
> >> >> is the type you specified.
> >> >>
> >> >> On 9/11/14 11:53 AM, "Oleg Konovalov"  wrote:
> >> >>
> >> >> >Hi,
> >> >> >
> >> >> >I am creating a View/ViewSkin pair,
> >> >> >with view extending SkinnableContainer.
> >> >> >As usual, often have to call hostComponent.method1(),
> >> >> >but getting Error # 1009 Cannot access a property or method.
> >> >> >I do define HostComponent properly in the skin.
> >> >> >When I call that method1, hostComponent is NULL. Why?
> >> >> >What I might be missing?
> >> >> >
> >> >> >TIA,
> >> >> >Oleg
> >> >>
> >> >>
> >>
> >>
>
>


-- 
Thank you,
Oleg.


Re: [FlexJS] Presenting at the HTML5 Dev Conference

2014-09-11 Thread Oleg Konovalov
If you included GWT, include Vaadin too (it's better but used more in
Europe than in US).
I used it a few yrs ago and liked it a lot.


But maybe this time my vote would be for Dart  (AFTER FlexJS of course).


On Thu, Sep 11, 2014 at 4:50 PM, Alex Harui  wrote:

> Good questions.  My thoughts:
>
>
> On 9/11/14 1:03 PM, "Harbs"  wrote:
>
> >Some additional thoughts: (don¹t know if you can fit this in ‹ and I
> >don¹t have the answers to all these points)
> >
> >FlexJS vs. Dart vs. Haxe. It seems that all three of these have points
> >for strong typing.
> I definitely try to make sure it doesn't sound like we thought of the idea
> of using a higher-level language for generating JS.  I include GWT and TS
> in the list.  I try not to set it up as a competition, but rather, a
> validation that strong-typing is important in building big things.  We can
> all go down to the local lumber yard and hack together a dog house out of
> wood and nails, but folks who build skyscrapers use different tools and
> techniques.  No high-rise buildings are made of wood and nails.
>
> >
> >Is there an advantage of ActionScript over those? (not sure)
> For dog houses, and probably one and two-story houses, there isn't any
> advantage.  But eventually, as your application grows, and the team that
> is building it grows, the requirement most of these other languages have
> of needing all of the code in once place in order to type-check it becomes
> a practical limitation.  Yes, these languages let you promise that some
> external thing will have a particular contract, but the ActionScript VM
> will verify the contract at the point of integration.  The Dart VM might,
> I haven't checked, but the JS runtimes certainly won't.
>
> >Is there an advantage of MXML? (probably yes)
> I think HTML proved the advantages of declarative markup.
>
> >
> >Maybe some thoughts on the MXML approach vs. HTML/CSS approach?
> >advantages and challenges, etc.
> I could certainly see someone creating a way to generate HTML from MXML,
> so I don't see it as an either/or.  We are just starting with MXML because
> we have it, and it is extensible.  I'm still not clear what is happening
> with Web Components and HTML extensibility.  But for sure, we have a
> better chance of working in IE9.
>
> >
> >What about TypeScript? Do we have advantages over that? What?
> IMO, having a markup language gives us advantages over TS.
>
> While it would be awesome if FlexJS became the most popular way to write
> HTML/JS/CSS apps, I will be more than happy just to be popular among
> enterprise or some other smaller market of folks building really big apps.
>  The notion of having markup to basically have a diagram or schematic of
> your components, and better connectors in AS and the VM to ensure those
> components are connected properly, an IDE that understands all of that, a
> debugger that also understands that, and scalability up to really large
> applications whose source code cannot be gathered all in one place, and
> scaleability down to mobile apps so you can share business logic with the
> mobile companion apps should make us attractive to those who are thinking
> ahead.  Once the requirement comes out to put a fifth floor on your wooden
> house, or add an addition to your house built in another country, you will
> find yourself worrying about a lot more things if you aren't using FlexJS.
>
> -Alex
>
>


-- 
Thank you,
Oleg.


Re: HostComponent is NULL?

2014-09-11 Thread Oleg Konovalov
Skin's spark button click -- to hostComponent.method1()
On Sep 11, 2014 3:19 PM, "Alex Harui"  wrote:

> What does the call stack look like?
>
> On 9/11/14 12:15 PM, "Oleg Konovalov"  wrote:
>
> >I am calling it by clicking a button on fully drawn screen, so I would
> >expect that hostComponent to be initialized by then. Are there any
> >conditions to check or configuration I need to know about?
> >Seems to work fine on many similar screens.
> >Using Flex 4.5.1.
> >And F3 does bring me to correct method.
> >On Sep 11, 2014 3:03 PM, "Alex Harui"  wrote:
> >
> >> Calling too soon before hostComponent is assigned, or maybe
> >>hostComponent
> >> is the type you specified.
> >>
> >> On 9/11/14 11:53 AM, "Oleg Konovalov"  wrote:
> >>
> >> >Hi,
> >> >
> >> >I am creating a View/ViewSkin pair,
> >> >with view extending SkinnableContainer.
> >> >As usual, often have to call hostComponent.method1(),
> >> >but getting Error # 1009 Cannot access a property or method.
> >> >I do define HostComponent properly in the skin.
> >> >When I call that method1, hostComponent is NULL. Why?
> >> >What I might be missing?
> >> >
> >> >TIA,
> >> >Oleg
> >>
> >>
>
>


Re: HostComponent is NULL?

2014-09-11 Thread Oleg Konovalov
I am calling it by clicking a button on fully drawn screen, so I would
expect that hostComponent to be initialized by then. Are there any
conditions to check or configuration I need to know about?
Seems to work fine on many similar screens.
Using Flex 4.5.1.
And F3 does bring me to correct method.
On Sep 11, 2014 3:03 PM, "Alex Harui"  wrote:

> Calling too soon before hostComponent is assigned, or maybe hostComponent
> is the type you specified.
>
> On 9/11/14 11:53 AM, "Oleg Konovalov"  wrote:
>
> >Hi,
> >
> >I am creating a View/ViewSkin pair,
> >with view extending SkinnableContainer.
> >As usual, often have to call hostComponent.method1(),
> >but getting Error # 1009 Cannot access a property or method.
> >I do define HostComponent properly in the skin.
> >When I call that method1, hostComponent is NULL. Why?
> >What I might be missing?
> >
> >TIA,
> >Oleg
>
>


HostComponent is NULL?

2014-09-11 Thread Oleg Konovalov
Hi,

I am creating a View/ViewSkin pair,
with view extending SkinnableContainer.
As usual, often have to call hostComponent.method1(),
but getting Error # 1009 Cannot access a property or method.
I do define HostComponent properly in the skin.
When I call that method1, hostComponent is NULL. Why?
What I might be missing?

TIA,
Oleg


Re: Deep Linking problem in IE9

2014-06-08 Thread Oleg Konovalov
Hmm, was that posted to the group?


On Thu, Jun 5, 2014 at 11:04 PM, Oleg Konovalov  wrote:

> Hi,
>
> I tried to introduce Adobe Deep Linking to my Web App.
> That created a problem when I run it in IE9 - it often shows "#" on page
> title (if no URL params used)
> or even "#param1=x@param2=y" if I get to the app using these params
> and user goes somewhere in the app (like to another tab in the app).
>
> I try to explicitly set the Title to my MyApp:
>
> browserManager.init("", "MyApp");
> browserManager.setTitle("MyApp");
>
> Any cure for that?
> Please advise.
>
>
> Problem is not happening in Chrome.
>
> Using Flex 4.5.1.
>
>
> --
> TIA,
> Oleg.
>



-- 
Thank you,
Oleg.


Expanding ADG to particular level

2014-05-03 Thread Oleg Konovalov
Hi,



I have AdvancedDataGrid with multi level GroupingCollection2 which shows
1000s of rows.

I am using displayItemsExpanded="true".



Is there a way not to expand it not all the way up, but to the particular
level of grouping,

lets say to level 1 programmatically ?

So in that case user will see 100s of 1st level groups (each having 5-10
rows inside).

That makes a lot of sense and convenient to users.



How can I do that?



Using Flex 4.5.1 with Flex3 ADG.





TIA,

Oleg.


Validating DataGroup children

2014-04-27 Thread Oleg Konovalov
Hi,



I have a popup (TitleWindow) with Form,

which has a DataGroup, consisting of a number of "rows",

which have some GUI widgets (TextInputs, DropDownLists, ComboBoxes, etc)

in ItemRenderer.

I do validate data on that Form.




But how can I do validation of data which user fills on these children rows
(in ItemRenderer)?






TIA,

Oleg.


Re: CreationComplete of ViewStack components

2014-04-02 Thread Oleg Konovalov
Alex,

I tried to put my code populating dropdownlists (DDLs) into
 onContentCreationComplete of the whole TitleWindow,
but there my DDLs are still NULL.
Or you were talking about that ContentCreationComplete of the ViewStack?
that NavigatorContent?   Form?   DDLs themselves?

Please advise.

TIA,
Oleg.


On Wed, Apr 2, 2014 at 12:45 AM, Alex Harui  wrote:

> Best is to pull data, don't push it.  Put the data in a model and have the
> drop downs bind/pull from the model.
>
> But you might be able to use FlexEvent.CONTENT_CREATION_COMPLETE
>
> -Alex
> ________
> From: Oleg Konovalov [oleg...@gmail.com]
> Sent: Tuesday, April 1, 2014 6:49 PM
> To: flex-...@apache.org; us...@flex.apache.org
> Subject: CreationComplete of ViewStack components
>
> Hi,
>
>
>
>
> I have a popup (TitleWindow) which has ViewStack with a few
> NavigatorContent's which contain
>
> Form's with a bunch of components (TextInputs, DropDownLists, etc).
>
>
>
> User is editing some data, so when he selects ADG row and clicks Edit,
>
> that row data is displayed in that popup.
>
>
>
> I could easily populate data on the first NavigatorContent via
> onCreationComplete,
>
> but subsequent ones are showing me all DropDownList's as NULL.
>
> I tried to do myNavigationContent1.initialize() and
> myViewStack.initialize(), that didn't help.
>
>
>
>
>
> Any help is very appreciated.
>
>
>
>
>
> TIA,
>
> Oleg.
>



-- 
Thank you,
Oleg.


CreationComplete of ViewStack components

2014-04-01 Thread Oleg Konovalov
Hi,




I have a popup (TitleWindow) which has ViewStack with a few
NavigatorContent's which contain

Form's with a bunch of components (TextInputs, DropDownLists, etc).



User is editing some data, so when he selects ADG row and clicks Edit,

that row data is displayed in that popup.



I could easily populate data on the first NavigatorContent via
onCreationComplete,

but subsequent ones are showing me all DropDownList's as NULL.

I tried to do myNavigationContent1.initialize() and
myViewStack.initialize(), that didn't help.





Any help is very appreciated.





TIA,

Oleg.


Re: Filtering Hierarchical data in ADG

2014-03-09 Thread Oleg Konovalov
"Filter columns" means show only rows which have some term like anything
containing "term1" (in the column which you filter or optionally all
columns) or maybe starting from it.
Ideally that list should be updated as user types


On Tue, Mar 4, 2014 at 8:37 AM, Alex Harui  wrote:

> Filter columns as in not show some columns?
>
> On 3/4/14 4:30 AM, "Oleg Konovalov"  wrote:
>
> > Hi,
> >
> >
> >I have a true hierarchical data presented via HierarchicalData with input
> >in XML in MX AdvancedDataGrid.
> >
> >Need to filter columns in ADG.
> >
> >None of existing filters (standard or some proprietary filters in my
> >company) work.
> >
> >
> >
> >Any suggestions how to make it work?
> >
> >(haven't touched filters yet).
> >
> >
> >Any help is very appreciated.
> >
> >
> >
> >
> >TIA,
> >
> >Oleg.
> >
> >P.S. using Flex 4.5.1
>
>


-- 
Thank you,
Oleg.


Filtering Hierarchical data in ADG

2014-03-04 Thread Oleg Konovalov
 Hi,


I have a true hierarchical data presented via HierarchicalData with input
in XML in MX AdvancedDataGrid.

Need to filter columns in ADG.

None of existing filters (standard or some proprietary filters in my
company) work.



Any suggestions how to make it work?

(haven't touched filters yet).


Any help is very appreciated.




TIA,

Oleg.

P.S. using Flex 4.5.1


ViewStack, states and validator

2014-03-02 Thread Oleg Konovalov
Hi,



I have a popup where user enters data,

currently implemented as TitleWindow with a ViewStack and several
NavigationContent containers,

having Forms with a bunch of components.



When user clicks submit, it does validation and saves entered data to the
database.



I could have implemented it as a bunch of submits, but they have more or
less same components and data

(and process for example Add and Enter of same form).



So should I create Add and Enter state?

And a state for each NavigationComponent?



Also there is still some difference between input components on different
NavigationContent containers.

That's why what is validated on one, is not accurate on the other.

How should I handle that ?





Please advise.



Any code samples on that?





TIA,

Oleg.

P.S. Using Flex 4.5.1


Re: FormLayout not aligning

2014-02-26 Thread Oleg Konovalov
I fixed that problem.
My younger developer for some reason put an extra VGroup inside the Form
(there was one already surrounding the Form),
As soon as I removed inner one, FormLayout worked...



On Mon, Feb 24, 2014 at 11:58 AM, Sunit Tomar  wrote:

> can you send some code?
>
>
> On Mon, Feb 24, 2014 at 5:56 PM, Oleg Konovalov  wrote:
>
> > Why is it not posted?
> >
> >
> > On Sat, Feb 22, 2014 at 7:04 PM, Oleg Konovalov 
> wrote:
> >
> > > Hi,
> > >
> > > I have a Spark TitleWindow popup
> > > which has a Spark Form and a lot of FormItems, say 15
> > > (mostly Label and DropDownList's).
> > > Labels range from 2-5cm.
> > > I do have FormLayout specified inside that Form
> > > (and VerticalLayout outside it, because there is a few Buttons at the
> > > bottom of the window,
> > > but outside the Form).
> > > All those Dropdown are set to the same width.
> > >
> > > However, on that popup these FormItems
> > > are not aligned, I mean those DropDownnLists are spread all over the
> > form,
> > > not start on one level.
> > > Any idea how to fix it?
> > >
> > >
> > > --
> > > Thank you in advance,
> > > Oleg.
> > > P.S. using Flex 4.5.1
> > >
> >
> >
> >
> > --
> > Thank you,
> > Oleg.
> >
>
>
>
> --
> Thanks and Regards,
> Sunit Tomar
>



-- 
Thank you,
Oleg.


Re: DataGroup elements window adjustments

2014-02-24 Thread Oleg Konovalov
Why is it not posted?


On Sat, Feb 22, 2014 at 5:13 PM, Oleg Konovalov  wrote:

> Hi,
>
> I have a Spark TitleWindow popup with Form,
> which among other widgets includes DataGroup (one of FormItem's)
> with custom ItemRenderer (where I put rows of data as per dataProvider
> contents - custom component).
> So user should Add or Remove a row of data on button click.
> Adding/Removing row works, but the popup size remains the same,
> so after adding more than 1 row it starting covering buttons underneath,
> then row goes out of popup.
>
> Is there a way to adjust popup size (make popup listen to number of rows)
> or at least put these DataGroup rows into some vertical scroller?
> (so far neither option worked for me).
>
> Using Flex 4.5.1
>
> --
> Thank you in advance,
> Oleg.
>



-- 
Thank you,
Oleg.


Re: FormLayout not aligning

2014-02-24 Thread Oleg Konovalov
Why is it not posted?


On Sat, Feb 22, 2014 at 7:04 PM, Oleg Konovalov  wrote:

> Hi,
>
> I have a Spark TitleWindow popup
> which has a Spark Form and a lot of FormItems, say 15
> (mostly Label and DropDownList's).
> Labels range from 2-5cm.
> I do have FormLayout specified inside that Form
> (and VerticalLayout outside it, because there is a few Buttons at the
> bottom of the window,
> but outside the Form).
> All those Dropdown are set to the same width.
>
> However, on that popup these FormItems
> are not aligned, I mean those DropDownnLists are spread all over the form,
> not start on one level.
> Any idea how to fix it?
>
>
> --
> Thank you in advance,
> Oleg.
> P.S. using Flex 4.5.1
>



-- 
Thank you,
Oleg.


FormLayout not aligning

2014-02-22 Thread Oleg Konovalov
Hi,

I have a Spark TitleWindow popup
which has a Spark Form and a lot of FormItems, say 15
(mostly Label and DropDownList's).
Labels range from 2-5cm.
I do have FormLayout specified inside that Form
(and VerticalLayout outside it, because there is a few Buttons at the
bottom of the window,
but outside the Form).
All those Dropdown are set to the same width.

However, on that popup these FormItems
are not aligned, I mean those DropDownnLists are spread all over the form,
not start on one level.
Any idea how to fix it?


-- 
Thank you in advance,
Oleg.
P.S. using Flex 4.5.1


DataGroup elements window adjustments

2014-02-22 Thread Oleg Konovalov
Hi,

I have a Spark TitleWindow popup with Form,
which among other widgets includes DataGroup (one of FormItem's)
with custom ItemRenderer (where I put rows of data as per dataProvider
contents - custom component).
So user should Add or Remove a row of data on button click.
Adding/Removing row works, but the popup size remains the same,
so after adding more than 1 row it starting covering buttons underneath,
then row goes out of popup.

Is there a way to adjust popup size (make popup listen to number of rows)
or at least put these DataGroup rows into some vertical scroller?
(so far neither option worked for me).

Using Flex 4.5.1

-- 
Thank you in advance,
Oleg.


Working with '>', '<' in Web Service

2014-02-13 Thread Oleg Konovalov
Hi,

I am using a Web service between Flex client and Java based server,
some proprietary Web Service (which included REST/SOAP bridge).
We have noticed when client puts '>' or '<' in their data
[lets say in Description field he notes "if myValue is >0"],
it creates exceptions in that Web Service.
Is there a way to get around it?
(still would like to see correct characters when data is retrieved from DB2)

Less important:
if user communicates using some foreign characters,
they are not getting stored in DB2 database correctly.
So when retrieved, they are usually getting converted in some 3 other
characters.
Not sure whether that happens because of Flex or something else.

-- 
Thank you,
Oleg.


Fwd: Rendering Spark Datagroup

2014-02-13 Thread Oleg Konovalov
Hi,




I am trying to create Spark custom component which represents a table row

which includes TextInputs, DropDownList and CheckBox,

that is to Add/Edit/Delete data (rows) to DB.



I am pretty new to component development,

looking at somebody else's code who did something similar (kind of repeater
where you can add/delete a row),

trying to at least bring their similar component on my form,

and so far failing to show it, even one row.



Granted, I don't have all data they have, so trying to fake it. Their have
structures within structures, within structures (for example, to show list
of values in DropDownList's).

And theire itemRenderer has 6 levels before it gets to standard Spark
component (I guess, trying to make code reusable, so break it in layers).

I would like to at least make it show up on my form and work simplest
possible way for now.



Have a lot of questions.

Some exerpts from their code:







  







  








[Bindable]

public var fieldColumnMaps:Array = new Array;   // how is it passed to the
item renderer?

and why "new Array", not "new Array()". Is it legitimate?



[Bindable]

public var fieldColumnMapDS:Array = new Array; // includes fieldColumnMaps
among many other structures (e.g. dbFields array).  passes to DataGroup
dataProvider.









// from that ColumnMapRenderer:





 

 



 



  

 







override public function set data(value:Object):void {

// Not called explicitly by anything. HOW does it work?

 if (value is dbFields) {

 dbFields = value as dbFields;

   } else {

 dbFields = null;

   }

   super.data = value;

 }



Can anyone answer my questions throughout  that code?

Any code samples?



So far I managed only to show that  "Add Row" button on my form, and ONLY
if I do:

[Bindable]

public var fieldColumnMapDS:Array = [ {name:"anObject"} ];   // have to
initialize that array.



So does DataGroup require to have non-empty dataProvider to show anything?



Please advise!






TIA,

Oleg.

P.S.: this is alternative for me to doing similar development in FX
DataGrid (see another thread here about a week ago)



-- 
Thank you,
Oleg.


Rendering Spark Datagroup

2014-02-12 Thread Oleg Konovalov
Hi,




I am trying to create Spark custom component which represents a table row

which includes TextInputs, DropDownList and CheckBox,

that is to Add/Edit/Delete data (rows) to DB.



I am pretty new to component development,

looking at somebody else's code who did something similar (kind of repeater
where you can add/delete a row),

trying to at least bring their similar component on my form,

and so far failing to show it, even one row.



Granted, I don't have all data they have, so trying to fake it. Their have
structures within structures, within structures (for example, to show list
of values in DropDownList's).

And theire itemRenderer has 6 levels before it gets to standard Spark
component (I guess, trying to make code reusable, so break it in layers).

I would like to at least make it show up on my form and work simplest
possible way for now.



Have a lot of questions.

Some exerpts from their code:







  







  








[Bindable]

public var fieldColumnMaps:Array = new Array;   // how is it passed to the
item renderer?

and why "new Array", not "new Array()". Is it legitimate?



[Bindable]

public var fieldColumnMapDS:Array = new Array; // includes fieldColumnMaps
among many other structures (e.g. dbFields array).  passes to DataGroup
dataProvider.









// from that ColumnMapRenderer:





 

 



 



  

 







override public function set data(value:Object):void {

// Not called explicitly by anything. HOW does it work?

 if (value is dbFields) {

 dbFields = value as dbFields;

   } else {

 dbFields = null;

   }

   super.data = value;

 }



Can anyone answer my questions throughout  that code?

Any code samples?



So far I managed only to show that  "Add Row" button on my form, and ONLY
if I do:

[Bindable]

public var fieldColumnMapDS:Array = [ {name:"anObject"} ];   // have to
initialize that array.



So does DataGroup require to have non-empty dataProvider to show anything?



Please advise!






TIA,

Oleg.

P.S.: this is alternative for me to doing similar development in FX
DataGrid (see another thread here about a week ago)


Re: Rendering components in MX DataGrid

2014-02-12 Thread Oleg Konovalov
I meant I can not use Spark DataGrid, only Flex3 DG or ADG for consistency.
But I use some Flex4 components (DropDownList, etc).

So is it possible to put DDL inside Flex3 DataGrid?

And is it legitimate to expect to see that DDL or ComboBox on the screen
(even not populated) if myDG.dataProvider is null?


Thank you in advance,
Oleg


On Sun, Feb 9, 2014 at 10:14 PM, Michael A. Labriola <
labri...@digitalprimates.net> wrote:

> >>That pattern works for mx components in MX DataGrid, but Spark
> components do not "drop-in" as item renderers.
>
> >Oleg says he is using mx components only.
>
> >"(we use Flex3 MX and datagrids/ADGs throughout that app, so switching to
> Flex4 DGs/ADGs is not an option)."
>
> "Now I am able to render CheckBox and Button in MX DataGrid, but still
> can't use Spark DropDownList (or MX ComboBox)  inside DataGrid,"
>
> I am pretty sure that's what Alex is referring to...
>
> Mike
>
>


-- 
Thank you,
Oleg.


Re: Rendering components in MX DataGrid

2014-02-07 Thread Oleg Konovalov
Hi,



Now I am able to render CheckBox and Button in MX DataGrid,

but still can't use Spark DropDownList (or MX ComboBox)  inside DataGrid,

and it’s not working – DDL doesn’t show up and cannot populate it.



Here is my scenario:

User Selects a Version from another DropDownList outside DataGrid on the
same form,

we capture that Version, and call Stored Proc with that version via Web
Service,

It returns us data which we need to populate inside these DropDown’s.



So far I cannot make these components to show inside DataGrid.

In fact, as soon as I try to put them in the DataGrid (as itemRenderer with
Component),

It freezes that Version DropDownList, so no more Selection of Version is
possible.



I found a few examples on the net where all that is done with DropDownList
in Spark DataGrid,

but it doesn’t seem to work in Flex3 ComboBox (and I can’t give ID to that
component inside DataGridColumn,

so I can’t manipulate it from outside.



Any idea how to do that with Flex3 DataGrid?

(we use Flex3 MX and datagrids/ADGs throughout that app,

so switching to Flex4 DGs/ADGs is not an option).




Please help!



TIA,

Oleg


On Tue, Feb 4, 2014 at 8:03 AM, Christofer Dutz
wrote:

> Well please correct me if I'm on the wrong path,
> but if you have your compoenents inside an Item Renderer, but don't have a
> single item to render in the Container that uses this, then Flex doesn't
> Show a single one of them. In order to have your itemrenderer used, you
> have to provide your data Container with at least one element to make it
> actually Display anything.
>
> Chris
> ____
> Von: Oleg Konovalov 
> Gesendet: Dienstag, 4. Februar 2014 13:49
> An: flex-...@apache.org
> Betreff: Rendering components in MX DataGrid
>
> Hi,
>
>
>
> I have tried to add Spark Dropdown, MX Checkbox and a Button in MX DataGrid
>
> (as FX Component in itemRenderer). Neither of them had any data, I just
> needed to see them displayed,
>
> but none of them displayed. Why?
>
> Each of them displayed fine outside of DataGrid
>
> Am I missing something?
>
>
>
> Using Flex 4.5.1.
>
>
>
>
>
> TIA,
>
> Oleg.
>



-- 
Thank you,
Oleg.


Rendering components in MX DataGrid

2014-02-04 Thread Oleg Konovalov
Hi,



I have tried to add Spark Dropdown, MX Checkbox and a Button in MX DataGrid

(as FX Component in itemRenderer). Neither of them had any data, I just
needed to see them displayed,

but none of them displayed. Why?

Each of them displayed fine outside of DataGrid

Am I missing something?



Using Flex 4.5.1.





TIA,

Oleg.


Re: Adjusting layout on Button made invisible

2014-01-31 Thread Oleg Konovalov
Lee,

That worked.

Thanks a lot!
Oleg.


On Fri, Jan 31, 2014 at 3:05 PM, Lee Burrows
wrote:

> in addition to setting visible=false, set includeInLayout=false
>
>
> On 31/01/2014 19:57, Oleg Konovalov wrote:
>
>> Hi,
>>
>>
>>
>> I am using ApplicationControlBar with a bunch of buttons.
>>
>> Depending on some external conditions (app state), it should make some
>> buttons invisible,
>>
>> change their labels, etc.
>>
>>
>>
>> When these buttons become invisible look like someone with missing teeth.
>> :-(
>>
>> Is there a way to adjust other buttons positions so that it looks like one
>> flow without any gaps ?
>>
>>
>>
>> HBox or HGroup doesn't seem to solve that problem,
>>
>> at least I didn't find how.
>>
>>
>>
>>
>>
>> Please advise.
>>
>>
>>
>>
>>
>> Sorry for a silly question.
>>
>>
>>
>>
>>
>> TIA,
>>
>> Oleg.
>>
>> (using Flex 4.5.1)
>>
>>
>
> --
> Lee Burrows
> ActionScripter
>
>


-- 
Thank you,
Oleg.


Adjusting layout on Button made invisible

2014-01-31 Thread Oleg Konovalov
Hi,



I am using ApplicationControlBar with a bunch of buttons.

Depending on some external conditions (app state), it should make some
buttons invisible,

change their labels, etc.



When these buttons become invisible look like someone with missing teeth.
:-(

Is there a way to adjust other buttons positions so that it looks like one
flow without any gaps ?



HBox or HGroup doesn't seem to solve that problem,

at least I didn't find how.





Please advise.





Sorry for a silly question.





TIA,

Oleg.

(using Flex 4.5.1)


MX DataGrid not compatible with Spark Skin?

2014-01-26 Thread Oleg Konovalov
Hi,



I am working on a screen where I need an MX AdvancedDataGrid and a regular
DataGrid,

and have Spark skin.



I used to have a Spark DataGrid there in MXML skin page,

everything worked fine, but it looks slightly different from MX ADG,

so I am trying to replace that Spark DataGrid with either MX DataGrid or
ADG.

As soon as I do it, getting the following exception and screen turns white,
nothing there:

TypeError: Error #1034: Type Coercion failed: cannot convert
mx.collections::ArrayList@d6724d9 to
mx.controls.dataGridClasses.DataGridColumn.

  at mx.controls::DataGrid/set
columns()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\controls\DataGri
d.as:1357]

  at
ieddata.metaweb.view::ExplorerViewSkin/_ExplorerViewSkin_DataGrid1_i(
)[C:\MSDE\konovalo\dev\ieddata\pantheon_web\trunk\src\flexpackages\ied
data\metaweb\view\ExplorerViewSkin.mxml:30]

  at Function/()

  at Function/http://adobe.com/AS3/2006/builtin::call()

  at mx.core::ComponentDescriptor/get
properties()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\C
omponentDescriptor.as:271]

  at
mx.core::Container/createComponentFromDescriptor()[E:\dev\4.5.1\frame
works\projects\mx\src\mx\core\Container.as:4272]

  at
mx.core::Container/createComponentsFromDescriptors()[E:\dev\4.5.1\fra
meworks\projects\mx\src\mx\core\Container.as:4183]

  at
mx.core::Container/createChildren()[E:\dev\4.5.1\frameworks\projects\
mx\src\mx\core\Container.as:3189]

  at
mx.core::UIComponent/initialize()[E:\dev\4.5.1\frameworks\projects\fr
amework\src\mx\core\UIComponent.as:7624]

  at
mx.core::Container/initialize()[E:\dev\4.5.1\frameworks\projects\mx\s
rc\mx\core\Container.as:3131]

  at mx.core::UIComponent/
http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.
as:7485]

  at
mx.core::UIComponent/addChildAt()[E:\dev\4.5.1\frameworks\projects\fr
amework\src\mx\core\UIComponent.as:7189]

  at
spark.components::Group/addDisplayObjectToDisplayList()[E:\dev\4.5.1\
frameworks\projects\spark\src\spark\components\Group.as:2037]

  at spark.components::Group/
http://www.adobe.com/2006/flex/mx/internal::elementAdded()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\components\Group.a
s:1628]

  at
spark.components::Group/setMXMLContent()[E:\dev\4.5.1\frameworks\proj
ects\spark\src\spark\components\Group.as:633]

  at spark.components::Group/set
mxmlContent()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\compon
ents\Group.as:573]

  at spark.components::SkinnableContainer/set
mxmlContent()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\compon
ents\SkinnableContainer.as:657]

  at
spark.components::SkinnableContainer/createDeferredContent()[E:\dev\4
.5.1\frameworks\projects\spark\src\spark\components\SkinnableContainer
.as:1050]

  at
mx.containers::ViewStack/instantiateSelectedChild()[E:\dev\4.5.1\fram
eworks\projects\mx\src\mx\containers\ViewStack.as:1260]

  at
mx.containers::ViewStack/commitProperties()[E:\dev\4.5.1\frameworks\p
rojects\mx\src\mx\containers\ViewStack.as:756]

  at
mx.core::UIComponent/validateProperties()[E:\dev\4.5.1\frameworks\pro
jects\framework\src\mx\core\UIComponent.as:8209]

  at 
mx.managers::LayoutManager/validateProperties()[E:\dev\4.5.1\framewor
ks\projects\framework\src\mx\managers\LayoutManager.as:597]

  at
mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.5.1\frame
works\projects\framework\src\mx\managers\LayoutManager.as:813]

  at
mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.5
.1\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1180 ]





Skin which is my MXML view:

http://ns.adobe.com/mxml/2009";

xmlns:s="library://ns.adobe.com/flex/spark"

  xmlns:fb="http://ns.adobe.com/flashbuilder/2009";

xmlns:mx="library://ns.adobe.com/flex/mx"

xmlns:view="ieddata.metaweb.view.*"> that is where
that ExplorerViewSkin.mxml:30 is where exception is coming from.





That DataGrid in question is just plain vanilla, nothing special.



So why would I get that exception?



Please help!





Using Flex 4.5.1




TIA,

Oleg.


Re: Extracting XML from web service result with namespace

2014-01-21 Thread Oleg Konovalov
Alex,

Could you please elaborate?

I haven't used either of those classes and not sure which document you are
referring to, which version of Flex, etc.
and how to use these classes to extract useful XML from XML with namespaces.

Any code samples?

TIA,
Oleg.


On Mon, Jan 20, 2014 at 12:33 PM, Alex Harui  wrote:

> See the doc on Qname and Namespace.
>
> On 1/20/14 8:54 AM, "Oleg Konovalov"  wrote:
>
> >Hi,
> >
> >
> >
> >
> >I need to extract some XML data from proprietary Web Service (to be fed to
> >HierarchicalData for dataProvider of ADG).
> >
> >
> >
> >So I made service.returnType=¹e4x¹;
> >
> >In that case it returns data as XML.
> >
> >
> >
> >I need to get useful data from it after Snapshot:
> >
> > >xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/
> >">
> >
> > >xmlns:msdwHdr="http://xml.msdw.com/ns/appmw/soap/1.0/header
> >">
> >
> >http://xml.msdw.com/ns/appmw/soap/1.0/header
> >">restsoap#1390182244050#197728273958044232
> >
> >true
> >
> >
> >
> >
> >
> >http://xml.ms.com/ns/appmw/dataserver/1.0";>
> >
> >
> >
> >**
> >
> >ŠŠ..
> >
> >
> >
> >Using E4X, like:
> >
> >*var* root:XML = event.result *as* XML; //good!
> >
> >
> >*var* xmlRoot1:XMLList = root[*'SOAP-ENV:Body'*
> >].ADSSnapshotResponse.Snapshot.BASE_ELEMENT_NAME;
> >
> >it does return XMLList (tried different variants), but debugger shows
> >nothing at all inside that XMLList.
> >
> >
> >*var* root1:XMLList = root.children();  // that returns valid XMLList with
> >2 XML elements inside
> >
> >
> >
> >But all other data I could not get if I use any E4X:
> >
> >
> >
> >Can I skip Envelope, going to Body as one of its children?  suppose I
> >can...
> >
> >
> >
> >a) root.*SOAP-ENV:Body would give compilation errors because of Œ-Œ, Œ:¹*
> >
> >
> >
> >*b) root.Body gives blank XMLList*
> >
> >
> >
> >c) root.Body[0] returns NULL
> >
> >
> >
> >
> >
> >Any idea how to extract the load from ADS Response (envelope)?
> >
> >
> >
> >What can I do regarding XML Namespaces in E4X ?
> >
> >
> >
> >
> >
> >If I set service.returnType="xml" it returns data as XMLNode's.
> >
> >But I prefer to use E4X if possible.
> >
> >
> >
> >Please help!
> >
> >
> >
> >TIA,
> >
> >Oleg.
> >
> >
> >
> >P.S.: using Flex 4.5.1 with Flex3 ADG.
>
>


-- 
Thank you,
Oleg.


Extracting XML data from web service result with namespace using E4X

2014-01-20 Thread Oleg Konovalov
Hi,



I need to extract some data from proprietary Web Service (to be fed to
HierarchicalData for dataProvider of ADG).



So I made service.returnType=’e4x’;

In that case it returns data as XML.



I need to get useful data from it after Snapshot:

http://schemas.xmlsoap.org/soap/envelope/
">

http://xml.msdw.com/ns/appmw/soap/1.0/header
">

http://xml.msdw.com/ns/appmw/soap/1.0/header
">restsoap#1390182244050#197728273958044232

true





http://xml.ms.com/ns/appmw/dataserver/1.0";>



**

……..



Using E4X, like:

*var* root:XML = event.result *as* XML; //good!


*var* xmlRoot1:XMLList = root[*'SOAP-ENV:Body'*
].ADSSnapshotResponse.Snapshot.BASE_ELEMENT_NAME;

it does return XMLList (tried different variants), but debugger shows
nothing at all inside that XMLList.


*var* root1:XMLList = root.children();  // that returns valid XMLList with
2 XML elements inside



But all other data I could not get if I use any E4X:



Can I skip Envelope, going to Body as one of its children?  suppose I can...



a) root.*SOAP-ENV:Body would give compilation errors because of ‘-‘, ‘:’*



*b) root.Body gives blank XMLList*



c) root.Body[0] returns NULL





Any idea how to extract the load from ADS Response (envelope)?



What can I do regarding XML Namespaces in E4X ?





If I set service.returnType="xml" it returns data as XMLNode's.

But I prefer to use E4X if possible.



Please help!



TIA,

Oleg.



P.S.: using Flex 4.5.1 with Flex3 ADG.


Extracting XML from web service result with namespace

2014-01-20 Thread Oleg Konovalov
Hi,




I need to extract some XML data from proprietary Web Service (to be fed to
HierarchicalData for dataProvider of ADG).



So I made service.returnType=’e4x’;

In that case it returns data as XML.



I need to get useful data from it after Snapshot:

http://schemas.xmlsoap.org/soap/envelope/
">

http://xml.msdw.com/ns/appmw/soap/1.0/header
">

http://xml.msdw.com/ns/appmw/soap/1.0/header
">restsoap#1390182244050#197728273958044232

true





http://xml.ms.com/ns/appmw/dataserver/1.0";>



**

……..



Using E4X, like:

*var* root:XML = event.result *as* XML; //good!


*var* xmlRoot1:XMLList = root[*'SOAP-ENV:Body'*
].ADSSnapshotResponse.Snapshot.BASE_ELEMENT_NAME;

it does return XMLList (tried different variants), but debugger shows
nothing at all inside that XMLList.


*var* root1:XMLList = root.children();  // that returns valid XMLList with
2 XML elements inside



But all other data I could not get if I use any E4X:



Can I skip Envelope, going to Body as one of its children?  suppose I can...



a) root.*SOAP-ENV:Body would give compilation errors because of ‘-‘, ‘:’*



*b) root.Body gives blank XMLList*



c) root.Body[0] returns NULL





Any idea how to extract the load from ADS Response (envelope)?



What can I do regarding XML Namespaces in E4X ?





If I set service.returnType="xml" it returns data as XMLNode's.

But I prefer to use E4X if possible.



Please help!



TIA,

Oleg.



P.S.: using Flex 4.5.1 with Flex3 ADG.


Re: Building Class Explorer in Flex

2014-01-09 Thread Oleg Konovalov
Could you please send me a sample code how to use XMLListCollection with
ADG?
I tried it myself, but it doesn't show any data which is inside anything
except root.

Tried to Google it, but after few hours of search could not find any
working example,
especially with true hierarchical data (node within a node withing a
node...) to show it in a Tree like view.

TIA,
Oleg.



On Tue, Jan 7, 2014 at 3:59 PM, Martin, Brad  wrote:

> If you use an XmlListCollection, it will be able to display data
> hierarchically automatically.  Else your domain model objects should
> implement the hierarchical data interface, a data grid accepts that
> interface as well.
>
> -Original Message-
> From: Oleg Konovalov [mailto:oleg...@gmail.com]
> Sent: Tuesday, January 07, 2014 10:49 AM
> To: flex-...@incubator.apache.org;
> flex-users-sc.1332161687.jbdhnjpfpgdkhoapicme-olegkon=
> gmail@incubator.apache.org
> Subject: Building Class Explorer in Flex
>
> Hi,
>
> I am trying to build Class (Object Model) Explorer in Flex,
> so it would show user Classes within Classes and allow View/Add/Edit/Delete
> them.
> This is not Flex classes, but kind of ORM system for user data.
> So I receive user data as from DB with a row like:
> Path (class4.class3.class2) - not like package, but true hierachical data.
> Class (Class1 which consists of Attributes (primitives), say Strings, Ints,
> etc)
>
> Need to build a Tree from that and put it in the 1st ADG column.
> I have 1000s of Classes, and it can go 10+ levels deep.
>
> So any idea how to build a tree (HierarchicalData) out of that (true
> hierarchical data, not grouping)?
> Any code samples?
>
>
> I created a POC, here is an exerpt of input data for a tree:
> [Bindable]
> public var acClasses:Object = {
>   category:"root", children: [
> new PathVO("class4", [
>new PathVO("class3", [
>   new PathVO("class2", [
> new ClassVO("Class1", { "Attr1", "Attr2", "Attr3"} )
>   ] )
>] )
>  ] )
>  };
>
> Please advise!
>
> --
> Thank you in advance,
> Oleg.
>



-- 
Thank you,
Oleg.


XMLListCollection as ADG DataProvider

2014-01-09 Thread Oleg Konovalov
Hi,



I am trying to implement Object Model Explorer (something like Windows
Explorer which would allow users to view & modify

data in ORM kind of system consisting of 1000s of classes, so I need to dig
into Classes which are 10s of levels deep

(Class can contain other Classes or Attributes/primitives).

In that case Path is not like a package, but true containment.



Currently I am trying to implement a POC of such system with data in static
XML.

I tried to use Flex3 AdvancedDataGrid (with 1st column as a "Path",
i.e. Hierarchical
data - Tree kind of view).

Tried to put data in XML, make XMLListCollection a dataProvider for ADG,

was able to do it for simple cases, but when I do even simple thing like
put a node as a data container:



attrA

attrB

...

.

that data is not showing up in ADG.



Can you recommend a working code sample of XMLListCollection as
dataProvider for ADG?

(preferable with Hierarchical Data, not Grouping. although for starters
regular data is OK too)






-- 
Thank you,
Oleg.


Building Class Explorer in Flex

2014-01-07 Thread Oleg Konovalov
Hi,

I am trying to build Class (Object Model) Explorer in Flex,
so it would show user Classes within Classes and allow View/Add/Edit/Delete
them.
This is not Flex classes, but kind of ORM system for user data.
So I receive user data as from DB with a row like:
Path (class4.class3.class2) - not like package, but true hierachical data.
Class (Class1 which consists of Attributes (primitives), say Strings, Ints,
etc)

Need to build a Tree from that and put it in the 1st ADG column.
I have 1000s of Classes, and it can go 10+ levels deep.

So any idea how to build a tree (HierarchicalData) out of that (true
hierarchical data, not grouping)?
Any code samples?


I created a POC, here is an exerpt of input data for a tree:
[Bindable]
public var acClasses:Object = {
  category:"root", children: [
new PathVO("class4", [
   new PathVO("class3", [
  new PathVO("class2", [
new ClassVO("Class1", { "Attr1", "Attr2", "Attr3"} )
  ] )
   ] )
 ] )
 };

Please advise!

-- 
Thank you in advance,
Oleg.


Re: Search in ADG

2013-12-04 Thread Oleg Konovalov
Maurice,

I did try adg.horizontalScrollPolicy="on" and
adg.horizontalScrollPosition=   - did not do a trick.

And that adg.horizontalScrollPolicy="on" or "auto" only allowed me to
scroll about 1/3 of columns, the rest is not visible.


On Wed, Dec 4, 2013 at 2:48 AM, Maurice Amsellem <
maurice.amsel...@systar.com> wrote:

> Also, set ADG.scrollHorizontalPolicy to "on",   then simply calling ADG.
> horizontalScrollPosition =  will do the trick.
>
> -Message d'origine-
> De : Maurice Amsellem
> Envoyé : mercredi 4 décembre 2013 08:36
> À : 'dev@flex.apache.org'; flex-...@incubator.apache.org;
> flex-users-subscr...@incubator.apache.org
> Objet : RE: Search in ADG
>
> MX components manage scrolling internally,  Spark Scroller is used for
> spark skins only.
> So yes, you should remove it
>
> -Message d'origine-
> De : Oleg Konovalov [mailto:oleg...@gmail.com] Envoyé : mercredi 4
> décembre 2013 03:40 À : flex-...@incubator.apache.org;
> flex-users-subscr...@incubator.apache.org
> Objet : Search in ADG
>
> Hi,
>
> I have a Flex App where on several tabs (TabNavigator) I have MX
> AdvanceDataGrid's (wrapped in Spark Scroller's), which are dynamically
> populated (so I don't know in advance about 1/2 of Columns).
> Since the number of columns can be 200+, I am trying to implement a Search
> within Column Headers and data, one by one kind, so that when match is
> found, it highlights that cell or at least highlights that row and displays
> that column, brings it in user view.
> So far it shows that row, but I never was able to scroll to that column,
> so user can see it.
> I tried to use ADG's horizontalScrollPosition, verticalScrollPosition,
> validateNow with scrollToIndex,...
> When I try to set selectionMode="singleCell", that sometimes seem to
> freeze the app.
>
> Any advice or code snippet how to scroll to that matching Column?
> How to highlight the header and/or cell ?
>
> Can the problem be in that Scroller?
>
> Any help is very appreciated.
>
> --
> Thank you in advance,
> Oleg.
>



-- 
Thank you,
Oleg.


Search in ADG

2013-12-03 Thread Oleg Konovalov
Hi,

I have a Flex App where on several tabs (TabNavigator) I have MX
AdvanceDataGrid's (wrapped in Spark Scroller's), which are dynamically
populated (so I don't know in advance about 1/2 of Columns).
Since the number of columns can be 200+, I am trying to implement a Search
within Column Headers and data, one by one kind, so that when match is
found, it highlights that cell
or at least highlights that row and displays that column, brings it in user
view.
So far it shows that row, but I never was able to scroll to that column, so
user can see it.
I tried to use ADG's horizontalScrollPosition, verticalScrollPosition,
validateNow with scrollToIndex,...
When I try to set selectionMode="singleCell", that sometimes seem to freeze
the app.

Any advice or code snippet how to scroll to that matching Column?
How to highlight the header and/or cell ?

Can the problem be in that Scroller?

Any help is very appreciated.

-- 
Thank you in advance,
Oleg.


Re: Focusing on TabNavigator tab

2013-11-13 Thread Oleg Konovalov
Works great, Alex.

Thanks a lot!
Oleg.


On Tue, Nov 12, 2013 at 2:59 PM, Alex Harui  wrote:

> setFocus() is about what component will get keyboard input.  I think you
> are using "tab" to mean a TabNavigator child which is a container which
> never gets focus.  Only some control like a TextInput or Button or ADG
> gets focus
>
> If you want an ADG in a new Tabnavigator child to get focus, you should
> probably first call validateNow() after addChild(), set selectedIndex to
> the new tab, call validateNow() again, then call adg.setFocus()
>
> On 11/12/13 11:32 AM, "Oleg Konovalov"  wrote:
>
> >I am on one tab. Get data, it   creates another tab. I want a new tab to
> >get focus, so user can see new data.
> >Tab is a Box with ADG.
> >Gets created  by
> >dataTabs.addChild(tab)
> >
> >I tried to do tab.setFocus ()
> >and many other things.
> >Still not setting focus on that tab.
> >Using Flex 4.5.1
> > On Nov 12, 2013 12:21 PM, "Alex Harui"  wrote:
> >
> >> I'm not sure I understand the problem.  A "tab" is a button-like thing
> >> along the top of a TabNavigator.  It never truly gets focus.  The
> >> TabNavigator gets focus and arrow keys can be used to switch tabs.
> >>
> >> A TabNavigator's children are containers, and the containers never get
> >> focus.  Only their children do.
> >>
> >> It might be best to provide a 20-line MXML test case that shows what you
> >> want to accomplish.
> >>
> >> -Alex
> >>
> >> On 11/12/13 8:11 AM, "Oleg Konovalov"  wrote:
> >>
> >> >I do
> >> >dataTabs.addChild(tab).
> >> >After that how can I do selectedIndex on that tab?
> >> >On Nov 12, 2013 7:37 AM, "Oleg Konovalov"  wrote:
> >> >
> >> >>
> >> >> I have tried to
> >> >> 1) Google on that subject - could not find anything useful.
> >> >> 2) FocusEnabled = true - did nothing
> >> >> 3) play with FocusManager - did nothing
> >> >>
> >> >> Will see if SelectedIndex will work.
> >> >> Could you please give a context about it?
> >> >>
> >> >> TIA,
> >> >> Oleg.
> >> >>
> >> >>
> >> >>
> >> >> On Tue, Nov 12, 2013 at 12:18 AM, Chris Velevitch <
> >> >> chris.velevi...@gmail.com> wrote:
> >> >>
> >> >>> What have you tried?
> >> >>>
> >> >>> Have you set selectedIndex (zero-based)?
> >> >>>
> >> >>>
> >> >>> On Tue, Nov 12, 2013 at 3:50 PM, Oleg Konovalov 
> >> >>> wrote:
> >> >>>
> >> >>> > Hi,
> >> >>> >
> >> >>> > I am creating a few tabs in (Super)TabNavigator.
> >> >>> > How can I put a focus on one of them?
> >> >>> > Tried a few things, but it didn't work...
> >> >>> >
> >> >>> > Please help!
> >> >>> >
> >> >>> > --
> >> >>> > Thank you,
> >> >>> > Oleg.
> >> >>> >
> >> >>>
> >> >>>
> >> >>>
> >> >>> --
> >> >>>
> >> >>>
> >> >>> Chris
> >> >>> --
> >> >>> Chris Velevitch
> >> >>> Manager - Adobe Platform Users Group, Sydney
> >> >>> m: 0415 469 095
> >> >>> www.apugs.org.au
> >> >>>
> >> >>> Adobe Platform Users Group, Sydney
> >> >>> Topic: TBD
> >> >>> Date: Monday, 25th November
> >> >>> Details and RSVP on
> >> >>> http://www.meetup.com/Sydney-Adobe-Platform-User-Group
> >> >>>
> >> >>
> >> >>
> >> >>
> >> >> --
> >> >> Thank you,
> >> >> Oleg.
> >> >>
> >>
> >>
>
>


-- 
Thank you,
Oleg.


Re: Focusing on TabNavigator tab

2013-11-12 Thread Oleg Konovalov
I am on one tab. Get data, it   creates another tab. I want a new tab to
get focus, so user can see new data.
Tab is a Box with ADG.
Gets created  by
dataTabs.addChild(tab)

I tried to do tab.setFocus ()
and many other things.
Still not setting focus on that tab.
Using Flex 4.5.1
 On Nov 12, 2013 12:21 PM, "Alex Harui"  wrote:

> I'm not sure I understand the problem.  A "tab" is a button-like thing
> along the top of a TabNavigator.  It never truly gets focus.  The
> TabNavigator gets focus and arrow keys can be used to switch tabs.
>
> A TabNavigator's children are containers, and the containers never get
> focus.  Only their children do.
>
> It might be best to provide a 20-line MXML test case that shows what you
> want to accomplish.
>
> -Alex
>
> On 11/12/13 8:11 AM, "Oleg Konovalov"  wrote:
>
> >I do
> >dataTabs.addChild(tab).
> >After that how can I do selectedIndex on that tab?
> >On Nov 12, 2013 7:37 AM, "Oleg Konovalov"  wrote:
> >
> >>
> >> I have tried to
> >> 1) Google on that subject - could not find anything useful.
> >> 2) FocusEnabled = true - did nothing
> >> 3) play with FocusManager - did nothing
> >>
> >> Will see if SelectedIndex will work.
> >> Could you please give a context about it?
> >>
> >> TIA,
> >> Oleg.
> >>
> >>
> >>
> >> On Tue, Nov 12, 2013 at 12:18 AM, Chris Velevitch <
> >> chris.velevi...@gmail.com> wrote:
> >>
> >>> What have you tried?
> >>>
> >>> Have you set selectedIndex (zero-based)?
> >>>
> >>>
> >>> On Tue, Nov 12, 2013 at 3:50 PM, Oleg Konovalov 
> >>> wrote:
> >>>
> >>> > Hi,
> >>> >
> >>> > I am creating a few tabs in (Super)TabNavigator.
> >>> > How can I put a focus on one of them?
> >>> > Tried a few things, but it didn't work...
> >>> >
> >>> > Please help!
> >>> >
> >>> > --
> >>> > Thank you,
> >>> > Oleg.
> >>> >
> >>>
> >>>
> >>>
> >>> --
> >>>
> >>>
> >>> Chris
> >>> --
> >>> Chris Velevitch
> >>> Manager - Adobe Platform Users Group, Sydney
> >>> m: 0415 469 095
> >>> www.apugs.org.au
> >>>
> >>> Adobe Platform Users Group, Sydney
> >>> Topic: TBD
> >>> Date: Monday, 25th November
> >>> Details and RSVP on
> >>> http://www.meetup.com/Sydney-Adobe-Platform-User-Group
> >>>
> >>
> >>
> >>
> >> --
> >> Thank you,
> >> Oleg.
> >>
>
>


Re: Focusing on TabNavigator tab

2013-11-12 Thread Oleg Konovalov
I do
dataTabs.addChild(tab).
After that how can I do selectedIndex on that tab?
On Nov 12, 2013 7:37 AM, "Oleg Konovalov"  wrote:

>
> I have tried to
> 1) Google on that subject - could not find anything useful.
> 2) FocusEnabled = true - did nothing
> 3) play with FocusManager - did nothing
>
> Will see if SelectedIndex will work.
> Could you please give a context about it?
>
> TIA,
> Oleg.
>
>
>
> On Tue, Nov 12, 2013 at 12:18 AM, Chris Velevitch <
> chris.velevi...@gmail.com> wrote:
>
>> What have you tried?
>>
>> Have you set selectedIndex (zero-based)?
>>
>>
>> On Tue, Nov 12, 2013 at 3:50 PM, Oleg Konovalov 
>> wrote:
>>
>> > Hi,
>> >
>> > I am creating a few tabs in (Super)TabNavigator.
>> > How can I put a focus on one of them?
>> > Tried a few things, but it didn't work...
>> >
>> > Please help!
>> >
>> > --
>> > Thank you,
>> > Oleg.
>> >
>>
>>
>>
>> --
>>
>>
>> Chris
>> --
>> Chris Velevitch
>> Manager - Adobe Platform Users Group, Sydney
>> m: 0415 469 095
>> www.apugs.org.au
>>
>> Adobe Platform Users Group, Sydney
>> Topic: TBD
>> Date: Monday, 25th November
>> Details and RSVP on
>> http://www.meetup.com/Sydney-Adobe-Platform-User-Group
>>
>
>
>
> --
> Thank you,
> Oleg.
>


Re: Focusing on TabNavigator tab

2013-11-12 Thread Oleg Konovalov
I have tried to
1) Google on that subject - could not find anything useful.
2) FocusEnabled = true - did nothing
3) play with FocusManager - did nothing

Will see if SelectedIndex will work.
Could you please give a context about it?

TIA,
Oleg.



On Tue, Nov 12, 2013 at 12:18 AM, Chris Velevitch  wrote:

> What have you tried?
>
> Have you set selectedIndex (zero-based)?
>
>
> On Tue, Nov 12, 2013 at 3:50 PM, Oleg Konovalov  wrote:
>
> > Hi,
> >
> > I am creating a few tabs in (Super)TabNavigator.
> > How can I put a focus on one of them?
> > Tried a few things, but it didn't work...
> >
> > Please help!
> >
> > --
> > Thank you,
> > Oleg.
> >
>
>
>
> --
>
>
> Chris
> --
> Chris Velevitch
> Manager - Adobe Platform Users Group, Sydney
> m: 0415 469 095
> www.apugs.org.au
>
> Adobe Platform Users Group, Sydney
> Topic: TBD
> Date: Monday, 25th November
> Details and RSVP on http://www.meetup.com/Sydney-Adobe-Platform-User-Group
>



-- 
Thank you,
Oleg.


Focusing on TabNavigator tab

2013-11-11 Thread Oleg Konovalov
Hi,

I am creating a few tabs in (Super)TabNavigator.
How can I put a focus on one of them?
Tried a few things, but it didn't work...

Please help!

-- 
Thank you,
Oleg.


Getting SuperTabNavigator child

2013-10-29 Thread Oleg Konovalov
Hi,

I have several components (Box with DataGrids) dynamically added as
children to SuperTabNavigator.
Need to get a handle to such child component to refresh its DataGrid's data
(or possibly to close it and open another one like that with new data).

So how can I get a handle to the child of SuperTabNavigator?

-- 
Thank you in advance,
Oleg.


Getting SuperTabNavigator child

2013-10-29 Thread Oleg Konovalov
Hi,

I have several components (Box with DataGrids) added as children to
SuperTabNavigator.
Need to get a handle to such child component to refresh its DataGrid's data
(or possibly to close it and open another one like that with new data).

So how can I get a handle to the child of SuperTabNavigator?

-- 
Thank you in advance,
Oleg.


Re: blazeDS time zone

2013-10-01 Thread Oleg Konovalov
Justin,

My client is a large global company which is in ever region. So when user
in India saves data on server in Virginia, it shows him as saved 10.5 he's
later than he specified. How to fix it?
Also is conversion to ITCh done as date.getUTCDate() ?
On Sep 24, 2013 4:03 AM, "Justin Mclean"  wrote:

> Hi,
>
> > BlazeDS automatically translate the time stamp between the client time
> zone
> > setting the server time zone.
>
> As I mentioned in anther thread, this is a Flash Player feature not a
> BlaseDS one. Have a read of
>
> http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/Date.html
>
> As a result there's no option in BlazeDS to turn this off.
>
> Note this rather nasty issue:
> "However, the transition dates currently in effect are applied to dates in
> the past and the future, so the daylight saving time bias might calculate
> incorrectly for dates in the past when the locale had different transition
> dates."
>
> You best option is not to send Date objects about but use some other
> representation of dates. eg a String in the form "-MM-DD" or UTC time
> (a long)
>
> This has been discussed on the user and dev lists a few times, here's one
> example:
> http://apache-flex-users.246.n4.nabble.com/New-Date-issues-tc2679.html
>
> If you search you'll find a few other conversations.
>
> Thanks,
> Justin


Re: Migration to Apachle Flex 4.10

2013-09-30 Thread Oleg Konovalov
Can Flex 4.10 work with Flash Builder 4.5.1 ?

TIA,
Oleg.


On Sat, Sep 28, 2013 at 7:56 PM, piotr.zarzycki
wrote:

> I'm sorry Amit for wrong link. This is correct -> http://bit.ly/1azHNgM
>
>
>
> -
> Flex/Air Developer
> --
> View this message in context:
> http://apache-flex-development.247.n4.nabble.com/Migration-to-Apachle-Flex-4-10-tp30169p30180.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.
>



-- 
Thank you,
Oleg.


Re: Dynamic validation in AS

2013-09-18 Thread Oleg Konovalov
Oops, my mistake. It works just fine. Issue resolved.
Thank you, guys!!!
On Sep 18, 2013 10:23 AM, "Oleg Konovalov"  wrote:

> I still get the same exception from the same line if I do that.
> Any other ideas?
> On Sep 17, 2013 10:50 PM, "Justin Mclean" 
> wrote:
>
>> Hi,
>>
>> > validator.source = "{field}"; <<< Error: source attribute "{field}"
>> can
>> > not be of Type String [from mx.validators::Validator/set]
>>
>> validator.source = field;?
>>
>> Justin
>>
>


Re: Dynamic validation in AS

2013-09-18 Thread Oleg Konovalov
I still get the same exception from the same line if I do that.
Any other ideas?
On Sep 17, 2013 10:50 PM, "Justin Mclean"  wrote:

> Hi,
>
> > validator.source = "{field}"; <<< Error: source attribute "{field}"
> can
> > not be of Type String [from mx.validators::Validator/set]
>
> validator.source = field;?
>
> Justin
>


Re: Dynamic validation in AS

2013-09-17 Thread Oleg Konovalov
OK, I tried the following:

private function validateRequiredField(field:TextInput):void {
var validator:StringValidator = new StringValidator();
validator.source = "{field}"; <<< Error: source attribute "{field}" can
not be of Type String [from mx.validators::Validator/set]
validator.property = "text";
validator.requiredFieldError = "This field is required";
validators.push(validator);
}

Any idea why I am getting that error above?
I am passing Spark's TextInput control there, not a String.
Calling it in "for" loop going through Dictionary of TextInput object,
where Key is column name.

How can I fix it?

TIA,
Oleg.


On Tue, Sep 17, 2013 at 8:58 AM, Franck Wolff wrote:

> Don't know if it could help, but you can check this:
>
> http://www.graniteds.org/public/docs/3.0.0/docs/reference/flex/en-US/html/graniteds.validation.html
>
> F.
>
>
> 2013/9/17 Oleg Konovalov 
>
> > On Sep 16, 2013 7:36 PM, "Oleg Konovalov"  wrote:
> >
> > > Hi,
> > >
> > > I need to validate dynamic form data in Flex 4.5 ADG, meaning that I
> > don't
> > > know column names,
> > > order, but if the attribute is Required, than I have to make sure user
> > > filled it in.
> > > From all examples I have seen, validations is done in MXML, but in my
> > case
> > > since data is dynamic, it should be done in AS.
> > >
> > > Any samples?
> > >
> > > Data comes dynamically to ADG,
> > > but user can Add or Edit row in dynamically built Form.
> > >
> > > Please advise.
> > >
> > > TIA,
> > > Oleg
> > >
> >
>



-- 
Thank you,
Oleg.


Re: Dynamic validation in AS

2013-09-17 Thread Oleg Konovalov
On Sep 16, 2013 7:36 PM, "Oleg Konovalov"  wrote:

> Hi,
>
> I need to validate dynamic form data in Flex 4.5 ADG, meaning that I don't
> know column names,
> order, but if the attribute is Required, than I have to make sure user
> filled it in.
> From all examples I have seen, validations is done in MXML, but in my case
> since data is dynamic, it should be done in AS.
>
> Any samples?
>
> Data comes dynamically to ADG,
> but user can Add or Edit row in dynamically built Form.
>
> Please advise.
>
> TIA,
> Oleg
>


Export to Excel

2013-08-29 Thread Oleg Konovalov
Hi,

I am trying to export data from few DataGrids to Excel, using AS3XLS
library, but it seems it doesn't create a second sheet.
Does anyone knows how to do it? Or is there a better AS library
for that?

Optionally I might want to skip a few rows and put second DG data there.
But how to add blank rows in AS3XLS?

I know about POI, but need something quick. And I guess, for Flex Web app
that might be a security violation, correct? I mean, writing to file system.

Please advise.

TIA,
Oleg


Re: Building Spark DataGrid dynamically

2013-07-25 Thread Oleg Konovalov
Full exception trace with numbers:

TypeError: Error #1009: Cannot access a property or method of a null object
reference.

  at
spark.components.gridClasses::GridLayout/updateTypicalCellSizes()[E:\
dev\4.5.1\frameworks\projects\spark\src\spark\components\gridClasses\G
ridLayout.as:867]

  at
spark.components.gridClasses::GridLayout/measure()[E:\dev\4.5.1\frame
works\projects\spark\src\spark\components\gridClasses\GridLayout.as:44 4]

  at
spark.components.supportClasses::GroupBase/measure()[E:\dev\4.5.1\fra
meworks\projects\spark\src\spark\components\supportClasses\GroupBase.a
s:1148]

  at
mx.core::UIComponent/measureSizes()[E:\dev\4.5.1\frameworks\projects\
framework\src\mx\core\UIComponent.as:8496]

  at
mx.core::UIComponent/validateSize()[E:\dev\4.5.1\frameworks\projects\
framework\src\mx\core\UIComponent.as:8420]

  at
spark.components::Group/validateSize()[E:\dev\4.5.1\frameworks\projec
ts\spark\src\spark\components\Group.as:1012]

  at
mx.managers::LayoutManager/validateSize()[E:\dev\4.5.1\frameworks\pro
jects\framework\src\mx\managers\LayoutManager.as:665]

  at
mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.5.1\frame
works\projects\framework\src\mx\managers\LayoutManager.as:816]

  at
mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.5
.1\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1180 ]


On Thu, Jul 25, 2013 at 12:25 AM, Oleg Konovalov  wrote:

> It is Flex 4.5.1 (client requirement  :-(  )
> I will send full trace with numbers tomorrow.
>
> No, I haven't tried Flex 4.9-4.10 yet.
>
> Thanks,
> Oleg.
>
>
> On Thu, Jul 25, 2013 at 12:20 AM, Justin Mclean 
> wrote:
>
>> HI,
>>
>> What version of the SDK are you using? Does teh same happen using 4.9.1
>> or 4.10 (has been a large number of RTE fixes in 4.10).  Can you post a
>> full stack trace with line numbers?
>>
>> Thanks,
>> Justin
>
>
>
>
> --
> Thank you,
> Oleg.
>



-- 
Thank you,
Oleg.


Re: Building Spark DataGrid dynamically

2013-07-24 Thread Oleg Konovalov
It is Flex 4.5.1 (client requirement  :-(  )
I will send full trace with numbers tomorrow.

No, I haven't tried Flex 4.9-4.10 yet.

Thanks,
Oleg.


On Thu, Jul 25, 2013 at 12:20 AM, Justin Mclean wrote:

> HI,
>
> What version of the SDK are you using? Does teh same happen using 4.9.1 or
> 4.10 (has been a large number of RTE fixes in 4.10).  Can you post a full
> stack trace with line numbers?
>
> Thanks,
> Justin




-- 
Thank you,
Oleg.


Building Spark DataGrid dynamically

2013-07-24 Thread Oleg Konovalov
Hi,

I am building a screen with one Static DataGrid and one Dynamic (data comes
through SOAP
and I do not know the number of columns or their names in advance).
I also get a list of column names in order from another SOAP call.

That Dynamic DataGrid works (converting data from Vector of Objects to
ArrayList of Columns).

I still have a few problems:


1) I need to implement "Clear" of that Dynamic table.

No matter what I tried:

arrayColl=null;

arrayColl.removeAll();

arrayColl = new ArrayCollection();

myDG.dataProvider=null;

myDG.dataProvider=new ArrayCollection();

I am getting NULL reference exception coming from some system code:if
(cell.visible)...   where cell is null.

How can I clear that dynamic DG ?



full exception stack:

TypeError: Error #1009: Cannot access a property or method of a null object
reference.
at spark.components.gridClasses::GridLayout/updateTypicalCellSizes()
at spark.components.gridClasses::GridLayout/measure()
at spark.components.supportClasses::GroupBase/measure()
at mx.core::UIComponent/measureSizes()
at mx.core::UIComponent/validateSize()
at spark.components::Group/validateSize()
at mx.managers::LayoutManager/validateSize()
at mx.managers::LayoutManager/doPhasedInstantiation()
at mx.managers::LayoutManager/doPhasedInstantiationCallback()






















2)  It seems that by default that Dynamic DG puts columns in alphabetical

order, which is of course not what I need.

Any way to disable that or fix somehow?




3) I need to show 2 DGs on the screen, and the second of them is Dynamic,

and allow user to resize them vertically to be able to see more in static
or dynamic DG.

I put them in VDividedBox (and set height of both DG and container to 100%).

It split the screen vertically 50:50, but still there is no draggable in
between,

so can't resize.



Any help is very appreciated.




TIA,

Oleg.


Re: Building Spark Datagrid dynamically

2013-07-05 Thread Oleg Konovalov
I will try that.

I also need to be able to edit data with unknown number and names of
columns on Flex4 Form.
Any idea how to do it? Code sample?

TIA,
Oleg
On Jul 4, 2013 6:33 PM, "OmPrakash Muppirala"  wrote:

> (Please use dev@flex.apache.org for posting on this list)
>
> Spark DataGrid has support to automatically add the column based on the
> given dataProvider.  You can declare a Spark DataGrid and just give it a
> dataprovider.  The columns should appear automatically.
>
> As for the column lengths, you could specify it via the typicalItem
> property.
>
> Ex.:
> 
> 
>   field4="" />
> 
> 
>
> If this does not work for you, please give us a sample of your XML, code
> snippet, etc.
>
> Thanks,
> Om
>
> On Thu, Jul 4, 2013 at 3:24 PM, Oleg Konovalov  wrote:
>
> > Hi,
> >
> > I am getting data from the database via XML (SOAP Web Service),
> > and in that case I don't know number of columns or their names.
> > Need to display them in Spark DataGrid (and allow user to add, edit,
> delete
> > rows).
> >
> > The complication I see here is that in that project there is Parsley +
> > proprietary corporate
> > Flex/Java soap framework, so I normally know a Value Object and get a
> > Vector of rows, converting it into a ResultSet to process.
> >
> > in Parsley Command:
> > public function result(event:ResultEvent) {
> >   var rs:Vector. = ServiceUtils.extractResultSet(event.result,
> > ValueObject);
> > ...
> > }
> >
> > But in that case there is no static Value Object.
> >
> > Is there a way to create dynamic Value Objects?
> >
> >
> > Can you tell me how can I retrieve Columns (metadata) from XML (length
> and
> > Column Names) ?
> >
> > Please help!
> >
> > TIA,
> > --
> > Thank you,
> > Oleg.
> >
>


Building Spark Datagrid dynamically

2013-07-04 Thread Oleg Konovalov
Hi,

I am getting data from the database via XML (SOAP Web Service),
and in that case I don't know number of columns or their names.
Need to display them in Spark DataGrid (and allow user to add, edit, delete
rows).

The complication I see here is that in that project there is Parsley +
proprietary corporate
Flex/Java soap framework, so I normally know a Value Object and get a
Vector of rows, converting it into a ResultSet to process.

in Parsley Command:
public function result(event:ResultEvent) {
  var rs:Vector. = ServiceUtils.extractResultSet(event.result,
ValueObject);
...
}

But in that case there is no static Value Object.

Is there a way to create dynamic Value Objects?


Can you tell me how can I retrieve Columns (metadata) from XML (length and
Column Names) ?

Please help!

TIA,
-- 
Thank you,
Oleg.


Re: TextArea ignoring new lines

2013-02-11 Thread Oleg Konovalov
I can see '\' characters in myTextArea.text.  Should I try replacing them
with '\n' or that won't help?
As I said, that TA doesn't display new lines.  Any TA properties can help?

TIA,
Oleg
On Feb 8, 2013 1:15 PM, "Oleg Konovalov"  wrote:

> Hi,
>
>
> I am working on old Flex3 (Cairngorm2) app.
>
> One of TextArea's there is completely ignoring new lines (Carriage
> Return/Line Feed)
>
> and even skips some spaces (others work fine).
>
>
> Code is pretty simple (well, little simplified here):
>
> 
>
> ...
>
>
> private function updateText(evt:Event):void {
>
>  var event:UpdateEvent = new UpdateEvent(UpdateEvent.UPDATE_EVENT);
>
>   event.myText=myText.text;
>
>   trace("myText"+event.myText) //added by me
>
>   event.dispatch();
>
> }
>
>
>
> I have read about weird behaviors of TextArea (skipping or even doubling
> some characters) on the net,
>
> but so far could not find anything applicable in that case.
>
>
> For example, something likemyText.text.replace("\n", "\r") doesn't
> change anything.
>
> I guess, there is no "\n" there.
>
>
> If I trace, it returns line without newlines (like:
>  'startskip1lineskip2linesend;').
>
> But if I copy-paste that line to say another TextArea on the screen (or
> non flex Chat app, I would get multiline text:
>
> 'start
>
>
> skip1line
>
>
>
> skip2lines
>
> end;
>
>
> And for various reasons I can't debug that app.
>
>
> Any idea what might be wrong and how to fix it?
>
>
> Please help!
>
>
> TIA,
>
> Oleg.
>
> P.S.:  App connects to SPs in the Database via Web Service. No BlazeDS.
>
>
>


From ADG to Clipboard and Excel

2013-01-18 Thread Oleg Konovalov
Hi,

I need to add the following to my Flex4 (4.6) Web App:

1) being able to select some cells from AdvancedDataGrid
and copy it to Clipboard (to be able to paste to any file like
Word, Excel, CSV or text file

2) being able to export the whole ADG context to Excel.

Could you please suggest how to do it?
(read lots of posts, but honestly none useful)


Thank you in advance ,
Oleg.


Re: Dynamic DataGrid

2013-01-14 Thread Oleg Konovalov
It sounds interesting.

Not only we should not display columns without data by default,
but also user has an option to override that behavior ("force" some columns
from the list to appear even if they have no data).
so there is event for users to select/unselect some checkbox from list on
the screen.


On Mon, Jan 14, 2013 at 6:54 PM, Alex Harui  wrote:

> Remove all columns from the ADG and don't assign a dataprovder.  Is that
> what you want it to look like?
>
> If so, define the columns somewhere else and only assign them if there is
> data.
>
>
> On 1/12/13 1:00 PM, "Oleg Konovalov"  wrote:
>
> > Hi,
> >
> > I am trying to create dynamic DataGrid,
> > which shows columns only if it contains data
> > return by query (it has 10+ columns, so not easy to calculate sizes)..
> > I read a lot of posts on the net, tried  minWidth, ResizeMode, etc.
> >
> > Nothing really useful which works.
> > In most cases  it created very narrow columns except the last one - super
> > wide.
> >
> > Please help!
> >
> > (using Flex4 AdvancedDataGrid)
> >
>
> --
> Alex Harui
> Flex SDK Team
> Adobe Systems, Inc.
> http://blogs.adobe.com/aharui
>
>


-- 
Thank you,
Oleg.