Re: ideas/method to label lines
Re: ideas/method to label lines
- Subject: Re: ideas/method to label lines
- From: Theodore Petrosky <email@hidden>
- Date: Sat, 24 Apr 2010 15:08:50 -0700 (PDT)
This is beautiful... it will work. It was what I was thinking I just didn't know how..
Ted
--- On Sat, 4/24/10, Steve Peery <email@hidden> wrote:
> From: Steve Peery <email@hidden>
> Subject: Re: ideas/method to label lines
> To: "Theodore Petrosky" <email@hidden>
> Cc: email@hidden
> Date: Saturday, April 24, 2010, 4:36 PM
> If you want to store a unique index
> letter for each record then just store the letter in the
> database.
>
> If the display always starts on A and is based on the
> current order, you can just bind the repetition index to a
> variable:
>
> ItemRep : WORepetition {
> list = items;
> item = repItem;
> index = itemIndex;
> }
>
> and create a string from the index in the java file:
>
> public String indexLetter () {
> char c = (char)(65 + itemIndex);
> return String.valueOf(c);
> }
>
> and bind that into your repetition in the component:
>
> ItemIndex : WOString {
> value = indexLetter;
> }
>
>
> Steve
>
> On Apr 24, 2010, at 3:43 PM, Theodore Petrosky wrote:
>
> > I need to add rows to an object listed in a table. My
> client wants the rows labeled A, B, C, etc... So the
> question is.. how to do this. I thought about just numbering
> the rows in the database (1, 2, 3) then display them by
> using the ASCII number and add the row number.. (ie, I save
> in the database 1,2,3 and add 64 then display the resultant
> ascii character (65 = A, 66 = B, etc)...
> >
> > Is there an easier way? I get convoluted at times.
> >
> > Ted
> >
> >
> >
> > _______________________________________________
> > Do not post admin requests to the list. They will be
> ignored.
> > Webobjects-dev mailing list (email@hidden)
> > Help/Unsubscribe/Update your Subscription:
> >
> > This email sent to email@hidden
>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden