[aida] webtabs - thanks

Ching de la Serna ching.dls at gmail.com
Thu Jan 27 13:27:17 CET 2011


Hi Herbert,

I followed your example and it's great. I am learning more and seeing how
great Aida is.

Ching de la Serna

On Thu, Jan 27, 2011 at 7:00 PM, <aida-request at aidaweb.si> wrote:

> Send Aida mailing list submissions to
>        aida at aidaweb.si
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://lists.aidaweb.si/mailman/listinfo/aida
> or, via email, send a message with subject or body 'help' to
>        aida-request at aidaweb.si
>
> You can reach the person managing the list at
>        aida-owner at aidaweb.si
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Aida digest..."
>
>
> Today's Topics:
>
>   1. webtabs (Ching de la Serna)
>   2. Re: webtabs (Herbert K?nig)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 26 Jan 2011 23:08:25 +0800
> From: Ching de la Serna <ching.dls at gmail.com>
> Subject: [aida] webtabs
> To: aida at aidaweb.si
> Message-ID:
>        <AANLkTi=BboxTQOqznJzMgbwMLtkSTX1prNzUpsyuR=6Q at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,
>
> I've been trying out WebTabs and it's truly great. I have this method:
>
> viewMain
>        | e |
>        e := WebElement new.
>        e addTextH1: 'Web Tabs'.
>  e add: (WebTabs new
>            selected: 2;
>            addLinkTo: self observee
>              text: 'Tab 1';
>            addLinkTo: self observee
>                text: 'Tab 2';
>          yourself).
>
> It displays very nicely. I would like to display the text, "Hi, I am tab 1"
> and "Hi, I am tab 2" when the tabs are clicked. How do I accomplish this? I
> tried a few things which didn't work.
>
> Thanks in advance.
>
> Ching de la Serna
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.aidaweb.si/pipermail/aida/attachments/20110126/acbee0fb/attachment.html
>
> ------------------------------
>
> Message: 2
> Date: Wed, 26 Jan 2011 16:37:24 +0100
> From: Herbert K?nig <herbertkoenig at gmx.net>
> Subject: Re: [aida] webtabs
> To: AIDA/Web general discussion list <aida at aidaweb.si>
> Message-ID: <9610208535.20110126163724 at gmx.net>
> Content-Type: text/plain; charset=ISO-8859-1
>
> 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:
>
> displayTabComponent
>        "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"
>        ^e
>
> 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:
>
> viewKontrollwerte
>        | e |
>        e := WebElement new.
>        e
>                add: self displayTabComponent; "Here I reuse my Tabs"
>                addBreak;
>                addTextH1: 'Kontrollwerte (DA51) ?ndern';
>                addBreak;
>                addText: 'This is your view one';
>                addBreak;
>                addBreak;
>        self pageFrameWideNoNavigationWith: e title: 'REB Elling'
>
> So in general:
> every view needs its own Webtabs, so i put it in a method
> (#displayTabComponent).
>
>
> 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 :-))
>
>
> Cheers,
>
> Herbert                            mailto:herbertkoenig at gmx.net
>
>
>
> ------------------------------
>
> _______________________________________________
> Aida mailing list
> Aida at aidaweb.si
> http://lists.aidaweb.si/mailman/listinfo/aida
>
>
> End of Aida Digest, Vol 44, Issue 17
> ************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.aidaweb.si/pipermail/aida/attachments/20110127/36573597/attachment.htm 


More information about the Aida mailing list