You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@royale.apache.org by wkoch <wa...@boeing.com> on 2021/01/17 21:44:01 UTC
Popup and Databinding
I'm sure I'm missing a bead somewhere...
I am making a popup programatically. In that popup I have things that are
supposed to bind. I have a datagrid that is populated from a database call
and a simple label that's bound to a string.
Nothing is binding……
--
Sent from: http://apache-royale-users.20374.n8.nabble.com/
Re: Popup and Databinding
Posted by Carlos Rovira <ca...@apache.org>.
Ok! great you got it working :)
El lun, 18 ene 2021 a las 18:21, wkoch (<wa...@boeing.com>)
escribió:
> Sorry -- I wasn't clear -- both the ItemRendererDataBinding and
> ContainerDataBinding beads worked. I went with ContainerDataBinding as
> Harbs is right. It's a better fit.
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>
--
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira
Re: Popup and Databinding
Posted by wkoch <wa...@boeing.com>.
Sorry -- I wasn't clear -- both the ItemRendererDataBinding and
ContainerDataBinding beads worked. I went with ContainerDataBinding as
Harbs is right. It's a better fit.
--
Sent from: http://apache-royale-users.20374.n8.nabble.com/
Re: Popup and Databinding
Posted by Carlos Rovira <ca...@apache.org>.
Hi Warren,
Can you share a minimum code for the Popup with some binding that is not
working. The code you shared doesn't show that part.
And as well the part of the code in your app where you declare and use that
popup. I'll try both pieces of code in a local project.
thanks
El lun, 18 ene 2021 a las 16:01, wkoch (<wa...@boeing.com>)
escribió:
> Correction. Now either of them work.
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>
--
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira
Re: Popup and Databinding
Posted by wkoch <wa...@boeing.com>.
Correction. Now either of them work.
--
Sent from: http://apache-royale-users.20374.n8.nabble.com/
Re: Popup and Databinding
Posted by wkoch <wa...@boeing.com>.
Tried that. Didn't work.
--
Sent from: http://apache-royale-users.20374.n8.nabble.com/
Re: Popup and Databinding
Posted by Harbs <ha...@gmail.com>.
ContainerDataBinding might be more appropriate.
> On Jan 18, 2021, at 4:14 PM, wkoch <wa...@boeing.com> wrote:
>
> I found the issue. Was missing the ItemRendererDataBinding bead in the popup
> code.
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
RE: Popup and Databinding
Posted by wkoch <wa...@boeing.com>.
I found the issue. Was missing the ItemRendererDataBinding bead in the popup
code.
--
Sent from: http://apache-royale-users.20374.n8.nabble.com/
RE: Popup and Databinding
Posted by Maria Jose Esteve <mj...@iest.com>.
Hi wkoch,
sorry but I didn't understand you ...
From your App.mxml do you need to open a Popup directly from code or do you need to "create" it and then "open" it?
The grid is in your main canvas App.mxml and in the popup there is a label?
What you need is that when you move through the grid the Popup label is updated?
Hiedra
-----Mensaje original-----
De: wkoch <wa...@boeing.com>
Enviado el: lunes, 18 de enero de 2021 1:07
Para: users@royale.apache.org
Asunto: Re: Popup and Databinding
*Main Page:*
<?xml version="1.0" encoding="utf-8"?>
<j:Application xmlns:f="http://ns.adobe.com/mxml/2009"
xmlns:b="library://ns.apache.org/royale/basic"
xmlns:j="library://ns.apache.org/royale/jewel"
xmlns:h="library://ns.apache.org/royale/html"
xmlns:c="components.*"
xmlns:accessories="org.apache.royale.html.accessories.*"
xmlns:local="*"
xmlns:layouts="org.apache.royale.jewel.beads.layouts.*"
initialize="appInit()"
applicationComplete="appComplete()">
<b:ApplicationDataBinding />
<b:ContainerDataBinding />
...
import org.apache.royale.jewel.PopUp;
*Popup Page:*
<?xml version="1.0" encoding="utf-8"?>
<j:VGroup xmlns:f="http://ns.adobe.com/mxml/2009"
xmlns:b="library://ns.apache.org/royale/basic"
xmlns:j="library://ns.apache.org/royale/jewel"
xmlns:h="library://ns.apache.org/royale/html"
initComplete="initApp()"
x="410" gap="5" y="510" width="800" height="1000">
I have tons of datagrids and labels that sre binding properly on the main page. I tried putting various databinding beads on the popup but no luck.
--
Sent from: http://apache-royale-users.20374.n8.nabble.com/
Re: Popup and Databinding
Posted by wkoch <wa...@boeing.com>.
*Main Page:*
<?xml version="1.0" encoding="utf-8"?>
<j:Application xmlns:f="http://ns.adobe.com/mxml/2009"
xmlns:b="library://ns.apache.org/royale/basic"
xmlns:j="library://ns.apache.org/royale/jewel"
xmlns:h="library://ns.apache.org/royale/html"
xmlns:c="components.*"
xmlns:accessories="org.apache.royale.html.accessories.*"
xmlns:local="*"
xmlns:layouts="org.apache.royale.jewel.beads.layouts.*"
initialize="appInit()"
applicationComplete="appComplete()">
<b:ApplicationDataBinding />
<b:ContainerDataBinding />
...
import org.apache.royale.jewel.PopUp;
*Popup Page:*
<?xml version="1.0" encoding="utf-8"?>
<j:VGroup xmlns:f="http://ns.adobe.com/mxml/2009"
xmlns:b="library://ns.apache.org/royale/basic"
xmlns:j="library://ns.apache.org/royale/jewel"
xmlns:h="library://ns.apache.org/royale/html"
initComplete="initApp()"
x="410" gap="5" y="510" width="800" height="1000">
I have tons of datagrids and labels that sre binding properly on the main
page. I tried putting various databinding beads on the popup but no luck.
--
Sent from: http://apache-royale-users.20374.n8.nabble.com/
Re: Popup and Databinding
Posted by Harbs <ha...@gmail.com>.
What’s the base for your MXML file?
> On Jan 17, 2021, at 11:44 PM, wkoch <wa...@boeing.com> wrote:
>
> I'm sure I'm missing a bead somewhere...
>
> I am making a popup programatically. In that popup I have things that are
> supposed to bind. I have a datagrid that is populated from a database call
> and a simple label that's bound to a string.
>
> Nothing is binding……
>
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/