aida tutorial

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

aida tutorial

Raymond Asselin-3
Aida version 6.0 beta1

Using the tutorial code :

< viewMain

    | e |
    e := WebElement new.
    e addTextH1: 'Carnet d'' adresses'.
    e add: self viewTabComponent.
    e table class: #webGrid.
    self observee adresses do: [:each |
            e cell addText: each nom.
        e newCell addLinkTo: each text: each prenom.
            e newCell addText:  each tel.
        e newCell align: #right; addText:  each courriel.
            e newRow].
    self pageFrameWith: e title: 'Carnet d''adresses' >

I get the result in 'Tutorial AIDA-1.png' .

Adding the table to e :

< viewMain

    | e |
    e := WebElement new.
    e addTextH1: 'Carnet d'' adresses'.
    e add: self viewTabComponent.
    e table class: #webGrid.
    e add: e table.
    self observee adresses do: [:each |
            e cell addText: each nom.
        e newCell addLinkTo: each text: each prenom.
            e newCell addText:  each tel.
        e newCell align: #right; addText:  each courriel.
            e newRow].
    self pageFrameWith: e title: 'Carnet d''adresses' >

I get the result in 'Tutorial AIDA.png'.  This is more what
I want except for the "offshore" table at the right...
I would like to understand how this happen...

Thanks

_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida

Tutorial AIDA-1.png (22K) Download Attachment
Tutorial AIDA.png (32K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: aida tutorial

Janko Mivšek
Hi Raymond,

Welcome to the list!

For your case, be careful to use tables for everything, after you start
using tables. That is, add your tabs element to a table too, then open a
new table for web grid. Something like:

  e cell addTextH1: 'Carnet d'' adresses'. e newRow.
  e cell add: self viewTabComponent.
  e newTable class: #webGrid.
  self observee adresses do: [:each |
  ...

This is needed because a tables in WebElement are rendered in different
order than elements added to the element directly.

Best regards
Janko


Raymond Asselin pravi:

> Aida version 6.0 beta1
>
> Using the tutorial code :
>
> < viewMain
>
>     | e |
>     e := WebElement new.
>     e addTextH1: 'Carnet d'' adresses'.
>     e add: self viewTabComponent.
>     e table class: #webGrid.
>     self observee adresses do: [:each |
>             e cell addText: each nom.
>         e newCell addLinkTo: each text: each prenom.
>             e newCell addText:  each tel.
>         e newCell align: #right; addText:  each courriel.
>             e newRow].
>     self pageFrameWith: e title: 'Carnet d''adresses' >
>
> I get the result in 'Tutorial AIDA-1.png' .
>
> Adding the table to e :
>
> < viewMain
>
>     | e |
>     e := WebElement new.
>     e addTextH1: 'Carnet d'' adresses'.
>     e add: self viewTabComponent.
>     e table class: #webGrid.
>     e add: e table.
>     self observee adresses do: [:each |
>             e cell addText: each nom.
>         e newCell addLinkTo: each text: each prenom.
>             e newCell addText:  each tel.
>         e newCell align: #right; addText:  each courriel.
>             e newRow].
>     self pageFrameWith: e title: 'Carnet d''adresses' >
>
> I get the result in 'Tutorial AIDA.png'.  This is more what
> I want except for the "offshore" table at the right...
> I would like to understand how this happen...
>
> Thanks
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Aida mailing list
> [hidden email]
> http://lists.aidaweb.si/mailman/listinfo/aida

--
Janko Mivšek
Svetovalec za informatiko
Eranova d.o.o.
Ljubljana, Slovenija
www.eranova.si
tel:  01 514 22 55
faks: 01 514 22 56
gsm: 031 674 565

_______________________________________________
Aida mailing list
[hidden email]
http://lists.aidaweb.si/mailman/listinfo/aida