valuelist.ini problem

A place for users and developers of the Xataface to discuss and receive support.

valuelist.ini problem

Postby samhans » Sat Feb 11, 2012 7:52 pm

hai friends
my problem is now with the dynamic valulist.ini file. actually i have two tables one named user_details and other is loan_cardholders .

in the user_details {userid,serno,name} and in loan_cardholders {loanid , serno } fields are there.

i want to make a valuelist in the loan_cardholders such that in the form user could select the serno from the available users in the user_details table.

for this i have created the valuelist.ini file in the loan cardholders table. with code
[users]
__sql__="select serno,name from user_details order by name"

in the fields.ini file i wrote the select widget and vocabulary is users.

but after that i can see the drop down but blank, without any value .

please help. where am i wrong.
samhans
 
Posts: 96
Joined: Fri Feb 10, 2012 1:22 am

Re: valuelist.ini problem

Postby shannah » Sun Feb 12, 2012 11:08 am

sounds like it's not finding your valuelist. Where is the valuelist defined? (it needs to be either in the main application valuelists.ini file or the table that has the select list).

Also double check that you are referencing the correct valuelist name in your vocabulary directive (case sensitive).

_Steve
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 26 guests

Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved