[aida] webtabs

Herbert König herbertkoenig at gmx.net
Wed Jan 26 16:37:24 CET 2011

Hi Ching,

CdlS> It displays very nicely. I would like to display the text, "Hi, I am tab 1"
CdlS> and "Hi, I am tab 2" when the tabs are clicked. How do I accomplish this? I
CdlS> tried a few things which didn't work.

I use them this way:

        "I display the tabs"

        | e |
        e := WebElement new.
        e := ViewTabs new.
        e addView: #main description: 'Abrechnung'.
        e addView: #kontrollwerte description: 'Kontrollwerte'.
        e addView: #kurvenband description: 'Kurvenband'.
        "and so on"

For every addView: description: you need a view method which is named
after the naming convention viewMain which gets called by
addView: #viewMain

so you capitalize (is this English??) the first letter of your symbol
and prepend a view.

For example my viewKontrollwerte looks like:

        | e |
        e := WebElement new.
                add: self displayTabComponent; "Here I reuse my Tabs"
                addTextH1: 'Kontrollwerte (DA51) ändern';
                addText: 'This is your view one';
        self pageFrameWideNoNavigationWith: e title: 'REB Elling'

So in general:
every view needs its own Webtabs, so i put it in a method

This can be found out in http://www.aidaweb.si/documentation.html
There you go to 'programmers guide' then 'tables'. Actually the whole
docs are worth wile :-))


Herbert                            mailto:herbertkoenig at gmx.net

More information about the Aida mailing list