INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: List Edit Type not showing in expression  (Read 1349 times)

Grenache

  • World Citizen
  • ***
  • Posts: 197
List Edit Type not showing in expression
« on: April 17, 2012, 04:27:51 am »

I know this is probably very trivial, but I can't get the List Edit Style to work in expressions. For example, if I want an alternative label for Language and use this simple expression:

Name: Languages
Expression: [Language]

my "calculated" field just shows as a standard semicolon delimited field without a dropdown box or check boxes unlike the stock field [Language].
Logged

darichman

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1356
Re: List Edit Type not showing in expression
« Reply #1 on: April 17, 2012, 04:31:34 am »

Try appending  
Code: [Select]
&DataType=[list]   to the end :)
Logged

Grenache

  • World Citizen
  • ***
  • Posts: 197
Re: List Edit Type not showing in expression
« Reply #2 on: April 17, 2012, 04:38:09 am »

Thanks, but I've tried that and the result is exactly the same: no dropdown box or check boxes, just a plain text field.
Logged

darichman

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1356
Re: List Edit Type not showing in expression
« Reply #3 on: April 17, 2012, 04:48:16 am »

Is this for viewing in panes, or the Tag AW?

Unfortunately, you cannot edit data outputs resulting from expressions, so I don't think there's a way to get check-boxes.

If it's just an alternative label you need for a field, have you tried this?:
  Tools > Options > Library & Folders > Manage Library Fields
  Click on Language, Change the 'Display' or 'Display (plural)' options to whatever you like
Logged

Grenache

  • World Citizen
  • ***
  • Posts: 197
Re: List Edit Type not showing in expression
« Reply #4 on: April 17, 2012, 05:16:19 am »

Is this for viewing in panes, or the Tag AW?
Unfortunately, you cannot edit data outputs resulting from expressions, so I don't think there's a way to get check-boxes.

This is for tagging, and I can edit the "Languages" field just fine, even as a list by separating the values with a semicolon. I'm just wondering why this simple expression (which is just a reference to the stock field) doesn't "inherit" the same List Edit Style that I have when I use [Language] on its own?

Quote
If it's just an alternative label you need for a field, have you tried this?:
  Tools > Options > Library & Folders > Manage Library Fields
  Click on Language, Change the 'Display' or 'Display (plural)' options to whatever you like

Yes, I've used that in the past, but I prefer to keep the original stock field names to distinguish them from my user fields. Also it's only in some views I need to change the labels.

Well, thanks anyway - it's not that important, but I thought I might have overlooked something...
Logged

vagskal

  • Citizen of the Universe
  • *****
  • Posts: 1227
Re: List Edit Type not showing in expression
« Reply #5 on: April 17, 2012, 10:42:56 am »

Try this:

Make a custom user data type field of list edit type, named [Languages]. Close the manage library fields window and open it again. Change the custom field to a calculated field with this expression: [Lanuage]&datatype=
    .

    This works for me with the Genre field for instance. I do not use the Language field.
Logged

Grenache

  • World Citizen
  • ***
  • Posts: 197
Re: List Edit Type not showing in expression
« Reply #6 on: April 17, 2012, 01:37:45 pm »

Thanks, it's getting a little closer (and weirder). The expression
Code: [Select]
[Language]&datatype=[list] in a custom field gives me the dropdown list I didn't get when I entered the exact same expression in the view. That's the weird part. Anyway, I still haven't got the check-boxes I get when I'm just using the stock [Language] field.
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: List Edit Type not showing in expression
« Reply #7 on: April 17, 2012, 02:20:46 pm »

Set the Edit type to list first, and then set the Data type to be Calculated.
Logged
The opinions I express represent my own folly.
Pages: [1]   Go Up