How I make a Frame to disappear?

View: New views
6 Messages — Rating Filter:   Alert me  

How I make a Frame to disappear?

by geruzalira :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello

how I make a Frame to disappear?

After its creation as make it to disappear if I to need?

Sorry but my english that's terrible.

Thanks

Parent Message unknown Re: How I make a Frame to disappear?

by stefan.asemota :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hi there
myFrame.setVisible(false);

Dpl. Software developer / analyst

Connect: http://twitter.asemota.ch


On 27.07.2009, at 18:33, geruzalira <geruzalira@...> wrote:


Hello

how I make a Frame to disappear?

After its creation as make it to disappear if I to need?

Sorry but my english that's terrible.

Thanks
--
View this message in context: http://www.nabble.com/How-I-make-a-Frame-to-disappear--tp24683919p24683919.html
Sent from the Rialto-Development mailing list archive at Nabble.com.



------------------------------------

Yahoo! Groups Links






     


Re: How I make a Frame to disappear?

by geruzalira :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Owww Sorry ...

I forgot to say ....

myFrame.setVisible(false);
//this function if the script will be in the same block, however one will be in a different block does not function :(




stefan.asemota wrote:
hi there
myFrame.setVisible(false);

Dpl. Software developer / analyst

Connect: http://twitter.asemota.ch


On 27.07.2009, at 18:33, geruzalira <geruzalira@gmail.com> wrote:


Hello

how I make a Frame to disappear?

After its creation as make it to disappear if I to need?

Sorry but my english that's terrible.

Thanks
--
View this message in context: http://www.nabble.com/How-I-make-a-Frame-to-disappear--tp24683919p24683919.html
Sent from the Rialto-Development mailing list archive at Nabble.com.



------------------------------------

Yahoo! Groups Links






     

Re: How I make a Frame to disappear?

by Cyril Balit :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

 As Stefan mention it the setVisible function allow to hide or show a component. If i understand your problem is that you want to hide a frame in another script where you don't have reference on your frame. You have to find a way to keep a reference on it (global variables, javscript object that hold your component...). It's depend of your context. You have to give more piece of code if you want help.

Cyril

--- In rialto-dev@..., geruzalira <geruzalira@...> wrote:

>
>
> Owww Sorry ...
>
> I forgot to say ....
>
> myFrame.setVisible(false);
> //this function if the script will be in the same block, however one will be
> in a different block does not function :(
>
>
>
>
>
> stefan.asemota wrote:
> >
> > hi there
> > myFrame.setVisible(false);
> >
> > Dpl. Software developer / analyst
> >
> > Connect: http://twitter.asemota.ch
> >
> >
> > On 27.07.2009, at 18:33, geruzalira <geruzalira@...> wrote:
> >
> >
> > Hello
> >
> > how I make a Frame to disappear?
> >
> > After its creation as make it to disappear if I to need?
> >
> > Sorry but my english that's terrible.
> >
> > Thanks
> > --
> > View this message in context:
> > http://www.nabble.com/How-I-make-a-Frame-to-disappear--tp24683919p24683919.html
> > Sent from the Rialto-Development mailing list archive at Nabble.com.
> >
> >
> >
> > ------------------------------------
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >      
> >
> >
> >
>
> --
> View this message in context: http://www.nabble.com/How-I-make-a-Frame-to-disappear--tp24683919p24687327.html
> Sent from the Rialto-Development mailing list archive at Nabble.com.
>



Re: How I make a Frame to disappear?

by geruzalira :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Well,

This function is called whenever a component combo is changed ... sorry one more time for the English


function atualizaElementosPorGrupo() {
               
        if (nmFamilia == "Produto Acabado"){
                a2dfmt_vl_custounitario.setVisible(false);
                a2cmndfmt_custo.setVisible(false);
                       
                var VarianteFrame = new rialto.widget.Frame({name:'GradeVariante',top:'630',left:'0',width:'225',height:'200',title:'Variante',open:true,dynamic:false,position:'absolute',draggable:false,parent:winTemplate});
                        a2dfmt_cl_variante.attach(VarianteFrame);
                        a2dfmt_tx_variante.attach(VarianteFrame);
               
       
        }else if (nmFamilia == "Matéria Prima"){
                     "HERE I NEED TO DISAPPEAR THE VarianteFrame"
         }

Cyril Balit wrote:
Hello,

 As Stefan mention it the setVisible function allow to hide or show a component. If i understand your problem is that you want to hide a frame in another script where you don't have reference on your frame. You have to find a way to keep a reference on it (global variables, javscript object that hold your component...). It's depend of your context. You have to give more piece of code if you want help.

Cyril

--- In rialto-dev@yahoogroups.com, geruzalira <geruzalira@...> wrote:
>
>
> Owww Sorry ...
>
> I forgot to say ....
>
> myFrame.setVisible(false);
> //this function if the script will be in the same block, however one will be
> in a different block does not function :(
>
>
>
>
>
> stefan.asemota wrote:
> >
> > hi there
> > myFrame.setVisible(false);
> >
> > Dpl. Software developer / analyst
> >
> > Connect: http://twitter.asemota.ch
> >
> >
> > On 27.07.2009, at 18:33, geruzalira <geruzalira@...> wrote:
> >
> >
> > Hello
> >
> > how I make a Frame to disappear?
> >
> > After its creation as make it to disappear if I to need?
> >
> > Sorry but my english that's terrible.
> >
> > Thanks
> > --
> > View this message in context:
> > http://www.nabble.com/How-I-make-a-Frame-to-disappear--tp24683919p24683919.html
> > Sent from the Rialto-Development mailing list archive at Nabble.com.
> >
> >
> >
> > ------------------------------------
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >      
> >
> >
> >
>
> --
> View this message in context: http://www.nabble.com/How-I-make-a-Frame-to-disappear--tp24683919p24687327.html
> Sent from the Rialto-Development mailing list archive at Nabble.com.
>


Re: How I make a Frame to disappear?

by Cyril Balit :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

To retrieve the componenent in the else block you can use the
getComponentByName method of the rialto session object.  This method
retrieve the first component with the given name create in your rialto
session. The name must be the one use in the creation of the rialto
component.

in your example

if (nmFamilia == "Produto Acabado"){
  a2dfmt_vl_custounitario.setVisible(false);
  a2cmndfmt_custo.setVisible(false);
  var VarianteFrame = new
 
rialto.widget.Frame({name:'GradeVariante',top:'630',left:'0',width:'225'\
,height:'200',title:'Variante',open:true,dynamic:false,position:'absolut\
e',draggable:false,parent:winTemplate});
  a2dfmt_cl_variante.attach(VarianteFrame);
  a2dfmt_tx_variante.attach(VarianteFrame);
  }else if (nmFamilia == "Matéria Prima"){
        var VarianteFrame =
rialto.session.getComponentByName('GradeVariante');
         if(VarianteFrame){VarianteFrame.setVisible(false)}
  }


Cyril

--- In rialto-dev@..., geruzalira <geruzalira@...> wrote:
>
>
> Well,
>
> This function is called whenever a component combo is changed ...
sorry one

> more time for the English
>
>
> function atualizaElementosPorGrupo() {
>
>  if (nmFamilia == "Produto Acabado"){
>   a2dfmt_vl_custounitario.setVisible(false);
>   a2cmndfmt_custo.setVisible(false);
>
>   var VarianteFrame = new
>
rialto.widget.Frame({name:'GradeVariante',top:'630',left:'0',width:'225'\
,height:'200',title:'Variante',open:true,dynamic:false,position:'absolut\
e',draggable:false,parent:winTemplate});

>    a2dfmt_cl_variante.attach(VarianteFrame);
>    a2dfmt_tx_variante.attach(VarianteFrame);
>
>
>  }else if (nmFamilia == "Matéria Prima"){
>                      "HERE I NEED TO DISAPPEAR THE VarianteFrame"
>          }
>
>
> Cyril Balit wrote:
> >
> > Hello,
> >
> >  As Stefan mention it the setVisible function allow to hide or show
a
> > component. If i understand your problem is that you want to hide a
frame
> > in another script where you don't have reference on your frame. You
have
> > to find a way to keep a reference on it (global variables, javscript
> > object that hold your component...). It's depend of your context.
You have

> > to give more piece of code if you want help.
> >
> > Cyril
> >
> > --- In rialto-dev@..., geruzalira geruzalira@ wrote:
> >>
> >>
> >> Owww Sorry ...
> >>
> >> I forgot to say ....
> >>
> >> myFrame.setVisible(false);
> >> //this function if the script will be in the same block, however
one will

> >> be
> >> in a different block does not function :(
> >>
> >>
> >>
> >>
> >>
> >> stefan.asemota wrote:
> >> >
> >> > hi there
> >> > myFrame.setVisible(false);
> >> >
> >> > Dpl. Software developer / analyst
> >> >
> >> > Connect: http://twitter.asemota.ch
> >> >
> >> >
> >> > On 27.07.2009, at 18:33, geruzalira geruzalira@ wrote:
> >> >
> >> >
> >> > Hello
> >> >
> >> > how I make a Frame to disappear?
> >> >
> >> > After its creation as make it to disappear if I to need?
> >> >
> >> > Sorry but my english that's terrible.
> >> >
> >> > Thanks
> >> > --
> >> > View this message in context:
> >> >
> >>
http://www.nabble.com/How-I-make-a-Frame-to-disappear--tp24683919p246839\
19.html
> >> > Sent from the Rialto-Development mailing list archive at
Nabble.com.

> >> >
> >> >
> >> >
> >> > ------------------------------------
> >> >
> >> > Yahoo! Groups Links
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >>
http://www.nabble.com/How-I-make-a-Frame-to-disappear--tp24683919p246873\
27.html
> >> Sent from the Rialto-Development mailing list archive at
Nabble.com.
> >>
> >
> >
> >
> >
>
> --
> View this message in context:
http://www.nabble.com/How-I-make-a-Frame-to-disappear--tp24683919p246978\
13.html
> Sent from the Rialto-Development mailing list archive at Nabble.com.
>