Need to use where in select box
Need to use where in select box
XerK
Posts: 25Questions: 8Answers: 0
Field::inst( 'subjects_d.SubjectID' )
->options( Options::inst()
->table( 'subjects' )
->value( 'ID' )
->label( 'Name' )
->where( 'Type', 1 )
)
->validator( 'Validate::dbValues' ),
Field::inst( 'subjects.Name' ),
Why where not work in options
->where( 'Type', 1 )
This discussion has been closed.
Answers
you could put it in a function...
It should do. Are you getting any error messages back?
Allan
yes get messages back
DataTables warning: table id=example - Invalid JSON response. For more information about this error, please see http://datatables.net/tn/1
This is my server code.
Can you show me the data that is being sent back for the server please? If it isn't valid JSON there is a reasonable chance that it contains an error message. The link in the error message you are getting shows how to view the data sent back from the server.
Allan
Javascript
?
up
That still isn't the data that is being transferred from the server. How to view that data is described in the link that the error message contains: http://datatables.net/tn/1 .
Allan
I comment on it but you didn't approve my comment
it Give me type = 1 in Network Google chrome
what is an error there ?!
Could you post it again please? I've marked your account so it won't be flagged again.