[rt-users] Multiple related Custom Fields

Ruslan Zakirov ruz at bestpractical.com
Thu Oct 20 17:04:16 EDT 2011


Hi,

Either solution might work, I didn't tried any. However, at the end
you will have to store all data in one custom field. You can look at
IP field implementation in RT4 that uses Content and LargeContent
columns. This may help you make your field more searches friendly, for
example you store data for search in Content and additional data in
LargeContent.

On Thu, Oct 20, 2011 at 7:53 PM, Daniel Silveira
<DSilveira at prmg.mpf.gov.br> wrote:
> Hello everybody,
>
> I need to create Custom Fields that support multiple values, with correlated
> data, for instance: multiple traveler's name, bank and account.
> If I had only one traveler, it would be ok. I would create one CF for each
> field. But I need more than one traveler/bank/account on the same ticket.
> And the data is correlated, that means, i can't have 3 CF's supporting
> multiple values each. This way I wouldn't know what bank and account belong
> to each traveler.
>
> Resuming, i need: CF.Traveler: [ Name:_______, Bank:_______,
> Account:_________ ]
>
> I thought 3 ways for doing this. I would appreciate if you point me the
> easier one.
>
> 1) Create external form and input data by email, through "Command by email"
> extension. Concatenate the fields traveler/bank/account and input on a
> multiple valued CF on RT (like: John Doe - Bank: lehman brothers - Account:
> 123456-5);
>
> 2) Create a javascript helper (like the one used with the date fields) and
> instruct user to input the correct data on each field. Than, concatenate the
> fields traveler/bank/account and put them on one multiple valued CF (just
> like the example showed above).
>
> 3) Create a new type: CustomFieldTraveler, that support the sub-fields
> mencioned. (I don't know if this is possible!)
>
> Thanks in advance.
> Daniel Silveira
> --------
> RT Training Sessions (http://bestpractical.com/services/training.html)
> *  Washington DC, USA — October 31 & November 1, 2011
> *  Barcelona, Spain — November 28 & 29, 2011

-- 
Best regards, Ruslan.



More information about the rt-users mailing list