Daniel, There is another option, but it would be complicated and need some complicated additional code to work; build an intelligent/mnemonic key for the CF Value. This is JUST an example, but lets say you built code that took the travelers initials (or first x letters of their first name) and appended a mnemonic key for the banks (a finite list from a built-in array) used and then the account number, you could insert that result as the CF value. The problem I have with this is pretty obvious, any intelligent design for values and codes has to be de-coded or decrypted in order to make any sense for someone looking at or trying to use those values. That's a lot of extra code for wherever that CF is used, but it IS another option. Just trying to "brain-stem" storm the issue.
Hope this helps. Kenn LBNL On Thu, Oct 20, 2011 at 2:04 PM, Ruslan Zakirov <[email protected]>wrote: > 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 > <[email protected]> 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. > -------- > RT Training Sessions (http://bestpractical.com/services/training.html) > * Washington DC, USA October 31 & November 1, 2011 > * Barcelona, Spain November 28 & 29, 2011
-------- RT Training Sessions (http://bestpractical.com/services/training.html) * Washington DC, USA October 31 & November 1, 2011 * Barcelona, Spain November 28 & 29, 2011
