Page 1 of 1

listvalues.ini errors

PostPosted: Fri Nov 06, 2009 12:59 pm
by dfwrgjeff
I can get it working using the values form the faq - but when I change it to my values it doesnt show anything:

This works:

[Rebate]
ENGL = English
MATH = Math
PHYS = Physics
CHEM = Chemistry

Here is my list:

[Rebate]
none = Customer did not request
50 = $50 Cash
100 = $100 Cash
50DD = $50 Dining Dough
150DD = $150 Dining Dough
Move = 2 Hour Move

Here is my fields.ini
[APARTMENT_NAME]
widget:label = "Property Name"

[APARTMENT_ADDRESS]
widget:label = "Address"

[APARTMENT_CITY]
widget:label = "City"

[MOVED_IN]
widget:label = "Moved In"
widget:calendar

[REBATE_AMOUNT]
widget:type = select
vocabulary = Rebate

[INVOICE_AMOUNT]
widget:label = "Invoice Amount"
widget:description = "Enter total bill out amount including bonus"

[REBATE_COST]
widget:label = "Rebate Cost"
widget:description = "Enter total cost of rebate or incentive"

PostPosted: Mon Nov 09, 2009 10:07 am
by shannah
A couple of possibilities:

1. Try wrapping the values in quotes. e.g.:
Code: Select all
[Rebate]
none = "Customer did not request"
50 = "$50 Cash"
100 = "$100 Cash"
50DD = "$50 Dining Dough"
150DD = "$150 Dining Dough"
Move = "2 Hour Move"


Another thing is that "none" might be a keyword for ini files so it may be causing problems.

2. If all else fails, you can implement the valuelist programmatically inside a delegate class.

PostPosted: Sat Nov 14, 2009 6:45 pm
by dfwrgjeff
that worked - thanks