You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@royale.apache.org by "Koch (US), Warren R" <wa...@boeing.com> on 2020/12/30 20:27:14 UTC

RE: [EXTERNAL] Re: Grid Sort issues

I used it exactly as shown in the code right down to the button.  It gave me a strange response.

First time the column was toggled the whole grid except the grid border disappeared.  Then when I toggled the button again the grid contents came back and I could toggle the column.  But the Header button bar did not resize properly.  Instead of using the columnWidth settings it went automatic and shrank everything down.

I probably need to make a simple code package just showing the datagrid and what I'm getting.  I'll see if I can get something done along those lines.

Please keep in mind I am using the SDK from 10/29/2020.  I haven't tried a new one since the last attempt failed.

From: Carlos Rovira [mailto:carlosrovira@apache.org]
Sent: Wednesday, December 30, 2020 1:13 PM
To: users@royale.apache.org
Subject: [EXTERNAL] Re: Grid Sort issues


EXT email: be mindful of links/attachments.




Hi Warren,

I mean that using visible in the column will hide the column but not header button for that column will remain since is part of the header buttonbar, so the for the right way I mean to use the implementation that Greg did. Sorry to not be of much help on this since I don't know much more of that code. But the Column Swapping is working in TDJ, so if it's not working for you we should investigate where is the issue, if is a bug in the code or is something about the way you're using it

Thanks


El mié, 30 dic 2020 a las 17:40, wkoch (<wa...@boeing.com>>) escribió:
I'm not sure what you mean by "not doing it right".  DataGridColumn has a
visible attribute. I just gave it a localId and added buttons to control
visibility.

Yes it was the ColumnSwapping one.  The HeaderBar did not resize properly.



--
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: [EXTERNAL] Re: Grid Sort issues

Posted by Carlos Rovira <ca...@apache.org>.
Great you get the issue solved Warren! :)


El dom, 3 ene 2021 a las 20:38, wkoch (<wa...@boeing.com>) escribió:

> I went ahead and loaded moonshine with today's build.
>
> I did a Clean Project and re-compiled.  And now the error is gone.  The
> only
> thing I can think of was something was trapped in the CSS.
>
> Now I can get back to actually coding after I verify all the build changes
> since October didn't change something else...
>
>
>
> --
> 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: [EXTERNAL] Re: Grid Sort issues

Posted by wkoch <wa...@boeing.com>.
I went ahead and loaded moonshine with today's build.  

I did a Clean Project and re-compiled.  And now the error is gone.  The only
thing I can think of was something was trapped in the CSS.

Now I can get back to actually coding after I verify all the build changes
since October didn't change something else...



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/

Re: [EXTERNAL] Re: Grid Sort issues

Posted by Carlos Rovira <ca...@apache.org>.
Hi Warren,

it's ok to find "org.apache.royale.html.beads.models.ButtonBarModel" in the
frameworks folder since is the bead for Basic and probably used in Express
and even could be used in emulation (MX/Spark), but you should not find a
single match in Jewel.

If you reduced the problem to DG thats very good. You know need to do the
same putting back a single DG little by little until you find where is the
issue. Think that TDJ is working. Another thing could be to ensure the
nightly build is used correctly and there's no tries to use the older
version, also use the latest, or build locally.

I guess you should be very near to find where is the issue

Thanks

El dom, 3 ene 2021 a las 16:51, wkoch (<wa...@boeing.com>) escribió:

> I took apart my code bit by bit as you suggested, including stripping all
> the
> beads and renderers off the datagrid.  The problem went away when I finally
> removed the datagrid completely.
>
> I did a scan across the royale-asjs\frameworks folder in the SDK and found
> many places where org.apache.royale.html.beads.models.ButtonBarModel  is
> called out.
>
> So I would say No all is not ok in the SDK.
>
>
>
> --
> 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: [EXTERNAL] Re: Grid Sort issues

Posted by wkoch <wa...@boeing.com>.
I took apart my code bit by bit as you suggested, including stripping all the
beads and renderers off the datagrid.  The problem went away when I finally
removed the datagrid completely.  

I did a scan across the royale-asjs\frameworks folder in the SDK and found
many places where org.apache.royale.html.beads.models.ButtonBarModel  is
called out.

So I would say No all is not ok in the SDK.



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/

Re: [EXTERNAL] Re: Grid Sort issues

Posted by Carlos Rovira <ca...@apache.org>.
Hi Warren,

sorry but SDK is checked, the older bead is used in Basic and the new in
Jewel. All is ok.
One way to find issues is comment or disconnect parts of your app to reach
a working state, then add up to the mix until you get the fail and isolate
the point where you have the problem. I did this lots of times to find
issues and fix my code.
Eventually you can find an issue in Royale, if that's the case isolate and
report.

Thanks

El sáb, 2 ene 2021 a las 19:08, wkoch (<wa...@boeing.com>) escribió:

> I have no place in my code that directly references that bead.  I don't use
> the ButtonBar anywhere.  I suspect it's coming in indirectly from the
> datagrid.
>
> Should I be looking in the SDK?
>
>
>
> --
> 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: [EXTERNAL] Re: Grid Sort issues

Posted by wkoch <wa...@boeing.com>.
I have no place in my code that directly references that bead.  I don't use
the ButtonBar anywhere.  I suspect it's coming in indirectly from the
datagrid.

Should I be looking in the SDK? 



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/

RE: [EXTERNAL] Re: Grid Sort issues

Posted by Maria Jose Esteve <mj...@iest.com>.
Hi Warren,
The same error happened to me as it did to you, and as Carlos says, the origin was the change from html ButtonBarModel to jewel ButtonBarModel.
In my case, I had a custom component that extended from ButtonBar.
Carlos's advice, for me, is correct, download and compile the SDK every day because right now there are many changes that you can handle daily but that can become a very complicated task if you accumulate them.

Hiedra.

De: Carlos Rovira <ca...@apache.org>
Enviado el: sábado, 2 de enero de 2021 10:23
Para: users@royale.apache.org
Asunto: Re: [EXTERNAL] Re: Grid Sort issues

Hi Warren,

I think I know what the problem is: ButtonBarModel was changed for a jewel version that uses ArrayListSelectionModel, since other users reported a problem with selection in ButtonBar.

So please seek in your code for
  `org.apache.royale.html.beads.models.ButtonBarModel`
and change to
  `org.apache.royale.jewel.beads.models.ButtonBarModel`

For this kind of thing I ended doing daily builds and investing some minutes on catching up with the changes people are doing.
If not, it can be a very daunting task to keep synced, and impossible as the time passes.

HTH

Carlos



El jue, 31 dic 2020 a las 17:59, wkoch (<wa...@boeing.com>>) escribió:
I'm hoping this will help.  It's a snippet from the Release JS code.  If not
please tell me what you need to get more context.

D('org.apache.royale.geom.Point.prototype.subtract',gt.prototype.subtract);gt.prototype.add=function(a){return
new
gt(this.x+a.x,this.y+a.y)};D('org.apache.royale.geom.Point.prototype.add',gt.prototype.add);gt.prototype.normalize=function(a){var
b=this.length;0<b&amp;&amp;(b=a/b,this.x*=b,this.y*=b)};D('org.apache.royale.geom.Point.prototype.normalize',gt.prototype.normalize);gt.prototype.toString=function(){return'(x='+this.x+',
y='+this.y+')'};D('org.apache.royale.geom.Point.prototype.toString',gt.prototype.toString);
gt.prototype.copyFrom=function(a){this.x=a.x;this.y=a.y};D('org.apache.royale.geom.Point.prototype.copyFrom',gt.prototype.copyFrom);gt.prototype.setTo=function(a,b){this.x=a;this.y=b};D('org.apache.royale.geom.Point.prototype.setTo',gt.prototype.setTo);gt.prototype.Ga<http://gt.prototype.Ga>=function(){return
Math.sqrt(this.x*this.x+this.y*this.y)};Object.defineProperties(gt.prototype,{length:{get:gt.prototype.Ga<http://gt.prototype.Ga>}});gt.prototype.g={names:[{name:'Point',i:gh,kind:t}]};function
ht(){L.call(this)}E(ht,L);D(kh,ht);C=ht.prototype;C.createElement=function(){qo(this,Nd);this.Mh=this.element;this.ed=new
sr;this.element.appendChild(this.ed.element);this.element.appendChild(document.createTextNode(''));this.ed.element.royale_wrapper=this;this.typeNames='CheckBox
CheckBoxIcon';return this.element};C.C=function(){return
G.o(this.Mh.childNodes.item(1).nodeValue)};C.F=function(a){this.Mh.childNodes.item(1).nodeValue=a};C.Ia=function(){return
this.ed.element.checked};
C.Va=function(a){this.ed.element.checked=a};Object.defineProperties(ht.prototype,{text:{get:ht.prototype.C,set:ht.prototype.F},selected:{get:ht.prototype.Ia,set:ht.prototype.Va<http://ht.prototype.Va>}});ht.prototype.g={names:[{name:'CheckBox',i:kh,kind:t}]};function
Zq(){}E(Zq,Rr);D('org.apache.royale.jewel.beads.layouts.DataGridColumnLayout',Zq);Zq.LAYOUT_TYPE_NAMES=Qd;D('org.apache.royale.jewel.beads.layouts.DataGridColumnLayout.LAYOUT_TYPE_NAMES',Zq.LAYOUT_TYPE_NAMES);Zq.prototype.beadsAddedHandler=function(){Zq.s.beadsAddedHandler.apply(this);this.si<http://this.si>=G.as(G.as(this.host,wn).getBeadByType(Yq),Yq);this.hostComponent.addEventListener('headerLayout',G.j(this.ti,this,Ak));this.hostComponent.addEventListener(Yc,G.j(this.ti,this,Ak))};
D('org.apache.royale.jewel.beads.layouts.DataGridColumnLayout.prototype.beadsAddedHandler',Zq.prototype.beadsAddedHandler);Zq.prototype.ld=0;Zq.prototype.ti=function(a){var
b=this.datagrid.view.listArea.element;b=b.offsetWidth-b.clientWidth;a=a.type==Yc;if(b!=this.ld||a)this.ld=b,this.ri=!0,a||this.layout()};
Zq.prototype.layout=function(){var
a=this.layoutView,b=a.numElements;if(0>=b)return!1;for(var
d,f,h=0;h<b;h++){var
k=a.getElementAt(h);null!=k&amp;&amp;k.visible&amp;&amp;G.is(k,Hn)&amp;&amp;(d=k,this.si.buttonWidths?(f=this.si<http://this.si>.buttonWidths[h],f.configureWidth(k)):this.kd&amp;&amp;(this.kd.configureWidth(k),f=this.kd))}d&amp;&amp;(this.ri||this.ld)&amp;&amp;(f.applyRightOffset(d,this.ld),this.ri=!1);return
Zq.s.layout.apply(this)};D('org.apache.royale.jewel.beads.layouts.DataGridColumnLayout.prototype.layout',Zq.prototype.layout);
Zq.prototype.Lb<http://Zq.prototype.Lb>=function(){return
this._strand.parent};Zq.prototype.Lj=B('kd');Zq.prototype.Go=A('kd');Object.defineProperties(Zq.prototype,{datagrid:{get:Zq.prototype.Lb<http://Zq.prototype.Lb>},defaultWidth:{get:Zq.prototype.Lj,set:Zq.prototype.Go}});function
it(){}E(it,qq);D(Zi,it);it.prototype.layout=Rl(!0);D('org.apache.royale.jewel.beads.layouts.ViewLayout.prototype.layout',it.prototype.layout);it.prototype.g={names:[{name:'ViewLayout',i:Zi,kind:t}]};function
qo(a,b){b=document.createElement(b);return
a.element=b}D('org.apache.royale.html.util.addElementToWrapper',qo);function
jt(){}D(ti,jt);C=jt.prototype;C.handleItemAdded=function(a){a.item.addEventListener(zd,G.j(this.selectedHandler,this,el))};C.handleItemRemoved=function(a){a.item.removeEventListener(zd,G.j(this.selectedHandler,this,el))};C.selectedHandler=function(a){this.model.selectedIndex=a.index>>0;this.model.selectedItem=a.data;this.view.host.dispatchEvent(new
K(K.CHANGE))};C.modelChangeHandler=function(a){G.as(this.Ye,F,!0).dispatchEvent(new
K(a.type))};
C.m=function(a){this.Ye=a;this.model=G.as(a.getBeadByType(Lr),Lr);this.Ye.addEventListener(xd,G.j(this.handleItemAdded,this,Uc));this.Ye.addEventListener(Ad,G.j(this.handleItemRemoved,this,Wc));G.is(this.model,Ir)?G.as(this.model,Ir,!0).dispatcher=a:(this.model.addEventListener(il,G.j(this.modelChangeHandler,this,Xd)),this.model.addEventListener(vc,G.j(this.modelChangeHandler,this,Xd)))};Object.defineProperties(jt.prototype,{strand:{set:jt.prototype.m}});
jt.prototype.g={names:[{name:'DropDownListController',i:ti,kind:t}],l:[po]};function
kt(){}D(tf,kt);kt.prototype.applyImageData=z();kt.prototype.g={names:[{name:'IImage',i:tf,kind:v}],l:[Qp]};function
lt(){O.call(this)}E(lt,O);D(Kg,lt);lt.prototype.applyImageData=z();D('org.apache.royale.core.supportClasses.StyledImageBase.prototype.applyImageData',lt.prototype.applyImageData);lt.prototype.Dl=function(){return
this.model.url};lt.prototype.bq=function(a){this.model.url=a};lt.prototype.Qb=Rl(null);Object.defineProperties(lt.prototype,{src:{get:lt.prototype.Dl,set:lt.prototype.bq},imageElement:{get:lt.prototype.Qb}});lt.prototype.g={names:[{name:'StyledImageBase',i:Kg,kind:t}],l:[kt]};function
mt(a,b,d){a='undefined'!==typeof a?a:null;b='undefined'!==typeof
b?b:null;d='undefined'!==typeof
d?d:!1;J.call(this);this.fields=a;this.compareFunction=b;this.unique=d}E(mt,J);D(Ee,mt);mt.ANY_INDEX_MODE='any';D('org.apache.royale.collections.Sort.ANY_INDEX_MODE',mt.ANY_INDEX_MODE);mt.FIRST_INDEX_MODE='first';D('org.apache.royale.collections.Sort.FIRST_INDEX_MODE',mt.FIRST_INDEX_MODE);mt.LAST_INDEX_MODE='last';D('org.apache.royale.collections.Sort.LAST_INDEX_MODE',mt.LAST_INDEX_MODE);




--
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: [EXTERNAL] Re: Grid Sort issues

Posted by Carlos Rovira <ca...@apache.org>.
Hi Warren,

I think I know what the problem is: ButtonBarModel was changed for a jewel
version that uses ArrayListSelectionModel, since other users reported a
problem with selection in ButtonBar.

So please seek in your code for
  `org.apache.royale.html.beads.models.ButtonBarModel`
and change to
  `org.apache.royale.jewel.beads.models.ButtonBarModel`

For this kind of thing I ended doing daily builds and investing some
minutes on catching up with the changes people are doing.
If not, it can be a very daunting task to keep synced, and impossible as
the time passes.

HTH

Carlos



El jue, 31 dic 2020 a las 17:59, wkoch (<wa...@boeing.com>)
escribió:

> I'm hoping this will help.  It's a snippet from the Release JS code.  If
> not
> please tell me what you need to get more context.
>
>
> D('org.apache.royale.geom.Point.prototype.subtract',gt.prototype.subtract);gt.prototype.add=function(a){return
> new
>
> gt(this.x+a.x,this.y+a.y)};D('org.apache.royale.geom.Point.prototype.add',gt.prototype.add);gt.prototype.normalize=function(a){var
>
> b=this.length;0<b&amp;&amp;(b=a/b,this.x*=b,this.y*=b)};D('org.apache.royale.geom.Point.prototype.normalize',gt.prototype.normalize);gt.prototype.toString=function(){return'(x='+this.x+',
>
> y='+this.y+')'};D('org.apache.royale.geom.Point.prototype.toString',gt.prototype.toString);
>
> gt.prototype.copyFrom=function(a){this.x=a.x;this.y=a.y};D('org.apache.royale.geom.Point.prototype.copyFrom',gt.prototype.copyFrom);gt.prototype.setTo=function(a,b){this.x=a;this.y=b};D('org.apache.royale.geom.Point.prototype.setTo',gt.prototype.setTo);
> gt.prototype.Ga=function(){return
>
> Math.sqrt(this.x*this.x+this.y*this.y)};Object.defineProperties(gt.prototype,{length:{get:
> gt.prototype.Ga
> }});gt.prototype.g={names:[{name:'Point',i:gh,kind:t}]};function
>
> ht(){L.call(this)}E(ht,L);D(kh,ht);C=ht.prototype;C.createElement=function(){qo(this,Nd);this.Mh=this.element;this.ed=new
>
> sr;this.element.appendChild(this.ed.element);this.element.appendChild(document.createTextNode(''));this.ed.element.royale_wrapper=this;this.typeNames='CheckBox
> CheckBoxIcon';return this.element};C.C=function(){return
>
> G.o(this.Mh.childNodes.item(1).nodeValue)};C.F=function(a){this.Mh.childNodes.item(1).nodeValue=a};C.Ia=function(){return
> this.ed.element.checked};
>
> C.Va=function(a){this.ed.element.checked=a};Object.defineProperties(ht.prototype,{text:{get:ht.prototype.C,set:ht.prototype.F},selected:{get:ht.prototype.Ia,set:
> ht.prototype.Va
> }});ht.prototype.g={names:[{name:'CheckBox',i:kh,kind:t}]};function
>
> Zq(){}E(Zq,Rr);D('org.apache.royale.jewel.beads.layouts.DataGridColumnLayout',Zq);Zq.LAYOUT_TYPE_NAMES=Qd;D('org.apache.royale.jewel.beads.layouts.DataGridColumnLayout.LAYOUT_TYPE_NAMES',Zq.LAYOUT_TYPE_NAMES);Zq.prototype.beadsAddedHandler=function(){Zq.s.beadsAddedHandler.apply(this);
> this.si
> =G.as(G.as(this.host,wn).getBeadByType(Yq),Yq);this.hostComponent.addEventListener('headerLayout',G.j(this.ti,this,Ak));this.hostComponent.addEventListener(Yc,G.j(this.ti,this,Ak))};
>
> D('org.apache.royale.jewel.beads.layouts.DataGridColumnLayout.prototype.beadsAddedHandler',Zq.prototype.beadsAddedHandler);Zq.prototype.ld=0;Zq.prototype.ti=function(a){var
>
> b=this.datagrid.view.listArea.element;b=b.offsetWidth-b.clientWidth;a=a.type==Yc;if(b!=this.ld||a)this.ld=b,this.ri=!0,a||this.layout()};
> Zq.prototype.layout=function(){var
> a=this.layoutView,b=a.numElements;if(0>=b)return!1;for(var
> d,f,h=0;h<b;h++){var
>
> k=a.getElementAt(h);null!=k&amp;&amp;k.visible&amp;&amp;G.is(k,Hn)&amp;&amp;(d=k,this.si.buttonWidths?(f=
> this.si
> .buttonWidths[h],f.configureWidth(k)):this.kd&amp;&amp;(this.kd.configureWidth(k),f=this.kd))}d&amp;&amp;(this.ri||this.ld)&amp;&amp;(f.applyRightOffset(d,this.ld),this.ri=!1);return
>
> Zq.s.layout.apply(this)};D('org.apache.royale.jewel.beads.layouts.DataGridColumnLayout.prototype.layout',Zq.prototype.layout);
> Zq.prototype.Lb=function(){return
>
> this._strand.parent};Zq.prototype.Lj=B('kd');Zq.prototype.Go=A('kd');Object.defineProperties(Zq.prototype,{datagrid:{get:
> Zq.prototype.Lb
> },defaultWidth:{get:Zq.prototype.Lj,set:Zq.prototype.Go}});function
>
> it(){}E(it,qq);D(Zi,it);it.prototype.layout=Rl(!0);D('org.apache.royale.jewel.beads.layouts.ViewLayout.prototype.layout',it.prototype.layout);it.prototype.g={names:[{name:'ViewLayout',i:Zi,kind:t}]};function
> qo(a,b){b=document.createElement(b);return
>
> a.element=b}D('org.apache.royale.html.util.addElementToWrapper',qo);function
>
> jt(){}D(ti,jt);C=jt.prototype;C.handleItemAdded=function(a){a.item.addEventListener(zd,G.j(this.selectedHandler,this,el))};C.handleItemRemoved=function(a){a.item.removeEventListener(zd,G.j(this.selectedHandler,this,el))};C.selectedHandler=function(a){this.model.selectedIndex=a.index>>0;this.model.selectedItem=a.data;this.view.host.dispatchEvent(new
>
> K(K.CHANGE))};C.modelChangeHandler=function(a){G.as(this.Ye,F,!0).dispatchEvent(new
> K(a.type))};
>
> C.m=function(a){this.Ye=a;this.model=G.as(a.getBeadByType(Lr),Lr);this.Ye.addEventListener(xd,G.j(this.handleItemAdded,this,Uc));this.Ye.addEventListener(Ad,G.j(this.handleItemRemoved,this,Wc));G.is(this.model,Ir)?G.as(this.model,Ir,!0).dispatcher=a:(this.model.addEventListener(il,G.j(this.modelChangeHandler,this,Xd)),this.model.addEventListener(vc,G.j(this.modelChangeHandler,this,Xd)))};Object.defineProperties(jt.prototype,{strand:{set:jt.prototype.m}});
>
> jt.prototype.g={names:[{name:'DropDownListController',i:ti,kind:t}],l:[po]};function
>
> kt(){}D(tf,kt);kt.prototype.applyImageData=z();kt.prototype.g={names:[{name:'IImage',i:tf,kind:v}],l:[Qp]};function
>
> lt(){O.call(this)}E(lt,O);D(Kg,lt);lt.prototype.applyImageData=z();D('org.apache.royale.core.supportClasses.StyledImageBase.prototype.applyImageData',lt.prototype.applyImageData);lt.prototype.Dl=function(){return
>
> this.model.url};lt.prototype.bq=function(a){this.model.url=a};lt.prototype.Qb=Rl(null);Object.defineProperties(lt.prototype,{src:{get:lt.prototype.Dl,set:lt.prototype.bq},imageElement:{get:lt.prototype.Qb}});lt.prototype.g={names:[{name:'StyledImageBase',i:Kg,kind:t}],l:[kt]};function
> mt(a,b,d){a='undefined'!==typeof a?a:null;b='undefined'!==typeof
> b?b:null;d='undefined'!==typeof
>
> d?d:!1;J.call(this);this.fields=a;this.compareFunction=b;this.unique=d}E(mt,J);D(Ee,mt);mt.ANY_INDEX_MODE='any';D('org.apache.royale.collections.Sort.ANY_INDEX_MODE',mt.ANY_INDEX_MODE);mt.FIRST_INDEX_MODE='first';D('org.apache.royale.collections.Sort.FIRST_INDEX_MODE',mt.FIRST_INDEX_MODE);mt.LAST_INDEX_MODE='last';D('org.apache.royale.collections.Sort.LAST_INDEX_MODE',mt.LAST_INDEX_MODE);
>
>
>
>
> --
> 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: [EXTERNAL] Re: Grid Sort issues

Posted by wkoch <wa...@boeing.com>.
I'm hoping this will help.  It's a snippet from the Release JS code.  If not
please tell me what you need to get more context.

D('org.apache.royale.geom.Point.prototype.subtract',gt.prototype.subtract);gt.prototype.add=function(a){return
new
gt(this.x+a.x,this.y+a.y)};D('org.apache.royale.geom.Point.prototype.add',gt.prototype.add);gt.prototype.normalize=function(a){var
b=this.length;0<b&amp;&amp;(b=a/b,this.x*=b,this.y*=b)};D('org.apache.royale.geom.Point.prototype.normalize',gt.prototype.normalize);gt.prototype.toString=function(){return'(x='+this.x+',
y='+this.y+')'};D('org.apache.royale.geom.Point.prototype.toString',gt.prototype.toString);
gt.prototype.copyFrom=function(a){this.x=a.x;this.y=a.y};D('org.apache.royale.geom.Point.prototype.copyFrom',gt.prototype.copyFrom);gt.prototype.setTo=function(a,b){this.x=a;this.y=b};D('org.apache.royale.geom.Point.prototype.setTo',gt.prototype.setTo);gt.prototype.Ga=function(){return
Math.sqrt(this.x*this.x+this.y*this.y)};Object.defineProperties(gt.prototype,{length:{get:gt.prototype.Ga}});gt.prototype.g={names:[{name:'Point',i:gh,kind:t}]};function
ht(){L.call(this)}E(ht,L);D(kh,ht);C=ht.prototype;C.createElement=function(){qo(this,Nd);this.Mh=this.element;this.ed=new
sr;this.element.appendChild(this.ed.element);this.element.appendChild(document.createTextNode(''));this.ed.element.royale_wrapper=this;this.typeNames='CheckBox
CheckBoxIcon';return this.element};C.C=function(){return
G.o(this.Mh.childNodes.item(1).nodeValue)};C.F=function(a){this.Mh.childNodes.item(1).nodeValue=a};C.Ia=function(){return
this.ed.element.checked};
C.Va=function(a){this.ed.element.checked=a};Object.defineProperties(ht.prototype,{text:{get:ht.prototype.C,set:ht.prototype.F},selected:{get:ht.prototype.Ia,set:ht.prototype.Va}});ht.prototype.g={names:[{name:'CheckBox',i:kh,kind:t}]};function
Zq(){}E(Zq,Rr);D('org.apache.royale.jewel.beads.layouts.DataGridColumnLayout',Zq);Zq.LAYOUT_TYPE_NAMES=Qd;D('org.apache.royale.jewel.beads.layouts.DataGridColumnLayout.LAYOUT_TYPE_NAMES',Zq.LAYOUT_TYPE_NAMES);Zq.prototype.beadsAddedHandler=function(){Zq.s.beadsAddedHandler.apply(this);this.si=G.as(G.as(this.host,wn).getBeadByType(Yq),Yq);this.hostComponent.addEventListener('headerLayout',G.j(this.ti,this,Ak));this.hostComponent.addEventListener(Yc,G.j(this.ti,this,Ak))};
D('org.apache.royale.jewel.beads.layouts.DataGridColumnLayout.prototype.beadsAddedHandler',Zq.prototype.beadsAddedHandler);Zq.prototype.ld=0;Zq.prototype.ti=function(a){var
b=this.datagrid.view.listArea.element;b=b.offsetWidth-b.clientWidth;a=a.type==Yc;if(b!=this.ld||a)this.ld=b,this.ri=!0,a||this.layout()};
Zq.prototype.layout=function(){var
a=this.layoutView,b=a.numElements;if(0>=b)return!1;for(var
d,f,h=0;h<b;h++){var
k=a.getElementAt(h);null!=k&amp;&amp;k.visible&amp;&amp;G.is(k,Hn)&amp;&amp;(d=k,this.si.buttonWidths?(f=this.si.buttonWidths[h],f.configureWidth(k)):this.kd&amp;&amp;(this.kd.configureWidth(k),f=this.kd))}d&amp;&amp;(this.ri||this.ld)&amp;&amp;(f.applyRightOffset(d,this.ld),this.ri=!1);return
Zq.s.layout.apply(this)};D('org.apache.royale.jewel.beads.layouts.DataGridColumnLayout.prototype.layout',Zq.prototype.layout);
Zq.prototype.Lb=function(){return
this._strand.parent};Zq.prototype.Lj=B('kd');Zq.prototype.Go=A('kd');Object.defineProperties(Zq.prototype,{datagrid:{get:Zq.prototype.Lb},defaultWidth:{get:Zq.prototype.Lj,set:Zq.prototype.Go}});function
it(){}E(it,qq);D(Zi,it);it.prototype.layout=Rl(!0);D('org.apache.royale.jewel.beads.layouts.ViewLayout.prototype.layout',it.prototype.layout);it.prototype.g={names:[{name:'ViewLayout',i:Zi,kind:t}]};function
qo(a,b){b=document.createElement(b);return
a.element=b}D('org.apache.royale.html.util.addElementToWrapper',qo);function
jt(){}D(ti,jt);C=jt.prototype;C.handleItemAdded=function(a){a.item.addEventListener(zd,G.j(this.selectedHandler,this,el))};C.handleItemRemoved=function(a){a.item.removeEventListener(zd,G.j(this.selectedHandler,this,el))};C.selectedHandler=function(a){this.model.selectedIndex=a.index>>0;this.model.selectedItem=a.data;this.view.host.dispatchEvent(new
K(K.CHANGE))};C.modelChangeHandler=function(a){G.as(this.Ye,F,!0).dispatchEvent(new
K(a.type))};
C.m=function(a){this.Ye=a;this.model=G.as(a.getBeadByType(Lr),Lr);this.Ye.addEventListener(xd,G.j(this.handleItemAdded,this,Uc));this.Ye.addEventListener(Ad,G.j(this.handleItemRemoved,this,Wc));G.is(this.model,Ir)?G.as(this.model,Ir,!0).dispatcher=a:(this.model.addEventListener(il,G.j(this.modelChangeHandler,this,Xd)),this.model.addEventListener(vc,G.j(this.modelChangeHandler,this,Xd)))};Object.defineProperties(jt.prototype,{strand:{set:jt.prototype.m}});
jt.prototype.g={names:[{name:'DropDownListController',i:ti,kind:t}],l:[po]};function
kt(){}D(tf,kt);kt.prototype.applyImageData=z();kt.prototype.g={names:[{name:'IImage',i:tf,kind:v}],l:[Qp]};function
lt(){O.call(this)}E(lt,O);D(Kg,lt);lt.prototype.applyImageData=z();D('org.apache.royale.core.supportClasses.StyledImageBase.prototype.applyImageData',lt.prototype.applyImageData);lt.prototype.Dl=function(){return
this.model.url};lt.prototype.bq=function(a){this.model.url=a};lt.prototype.Qb=Rl(null);Object.defineProperties(lt.prototype,{src:{get:lt.prototype.Dl,set:lt.prototype.bq},imageElement:{get:lt.prototype.Qb}});lt.prototype.g={names:[{name:'StyledImageBase',i:Kg,kind:t}],l:[kt]};function
mt(a,b,d){a='undefined'!==typeof a?a:null;b='undefined'!==typeof
b?b:null;d='undefined'!==typeof
d?d:!1;J.call(this);this.fields=a;this.compareFunction=b;this.unique=d}E(mt,J);D(Ee,mt);mt.ANY_INDEX_MODE='any';D('org.apache.royale.collections.Sort.ANY_INDEX_MODE',mt.ANY_INDEX_MODE);mt.FIRST_INDEX_MODE='first';D('org.apache.royale.collections.Sort.FIRST_INDEX_MODE',mt.FIRST_INDEX_MODE);mt.LAST_INDEX_MODE='last';D('org.apache.royale.collections.Sort.LAST_INDEX_MODE',mt.LAST_INDEX_MODE);




--
Sent from: http://apache-royale-users.20374.n8.nabble.com/

Re: [EXTERNAL] Re: Grid Sort issues

Posted by Carlos Rovira <ca...@apache.org>.
Hi,

I need more context to help you since "buttonWidths" can refer to some
different components.


El jue, 31 dic 2020 a las 16:34, wkoch (<wa...@boeing.com>)
escribió:

> I just downloaded the nightly build.  My application broke.  It compiled
> but
> in the browser console I see:
>
> SCRIPT5007: Unable to get property 'buttonWidths' of undefined or null
> reference
>
> How do I fix that?
>
>
>
> --
> 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: [EXTERNAL] Re: Grid Sort issues

Posted by wkoch <wa...@boeing.com>.
I just downloaded the nightly build.  My application broke.  It compiled but
in the browser console I see:

SCRIPT5007: Unable to get property 'buttonWidths' of undefined or null
reference

How do I fix that?



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/

Re: [EXTERNAL] Re: Grid Sort issues

Posted by wkoch <wa...@boeing.com>.
Last time I downloaded I got compilation errors.  I hadn't heard if they were
fixed. I will try again.

The only issue with daily builds is I have applications in production.  I
need backwards compatibility and it's hard making sure every feature works
the same.

Would be nice to know about Build tracking... We never got a response on how
to do that.



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/

Re: [EXTERNAL] Re: Grid Sort issues

Posted by Carlos Rovira <ca...@apache.org>.
Hi Warren,

The problem with sticking with an older build is that you're not getting
the new enhancements we're doing to fix the issues you found or others that
people are working on. For example, the sort bead changed a lot thanks to
your report and is not dispatching the same events after my fixes to
refresh data on item updates. I even had to change things in other parts.

When I was migrating my apps, and even nowadays, I use to build daily at
the start of my day to find possible regression issues and be able to
respond as quickly as possible to them. I think after a 1.0 that will be
easier to stick in a release version, but we're still doing so much work,
so my perception is that it is better to try to keep in the cycle. I'm
seeing great improvements these days at all levels (bindings, compiler,...)
and all of that will help you find less issues.

For example, if you create an example that is not working referring to an
older state of the SDK, it can be working in the actual state, so I'll be
not able to help you on that.

about refreshing in DataGridSort, with my fix, I just need to do "
collection.refresh();", but that's because the bead now extends
EasyDataProviderChangeNotifier and we're overriding
handleDataProviderChanges() to operate for CollectionEvent.
COLLECTION_CHANGED events.

just my 2...



El mié, 30 dic 2020 a las 21:35, wkoch (<wa...@boeing.com>)
escribió:

> I did notice one thing.  I can set the columnWidth=0 and then fire a Sort
> on
> the headerbar.  I can set the column back to the original value and sort
> again.  It all works.
>
> So I'm wondering if there is something in the Sort bead that we could
> hijack
> into a forced refresh.
>
>
>
> --
> 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: [EXTERNAL] Re: Grid Sort issues

Posted by wkoch <wa...@boeing.com>.
I did notice one thing.  I can set the columnWidth=0 and then fire a Sort on
the headerbar.  I can set the column back to the original value and sort
again.  It all works.

So I'm wondering if there is something in the Sort bead that we could hijack
into a forced refresh.  



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/