First of all, many thanks for xataface and support.
My question is how to filter "add existing" searchs results in the lookup widget of the grid widget .
Something like " widget:addexistingfilters = {contact_type: 3}" in the field.ini would be cool!
In HTML\Quickform\grid.php I found :
- Code: Select all
jQuery(document).ready(function($){
$('.xf-lookup-grid-row-button-<?php echo $fieldName;?>').each(function(){
$(this).RecordBrowser({
<?php if ($this->addExistingFilters):?>filters: <?php echo json_encode($this->addExistingFilters);?>,<?php endif;?>
table: <?php echo json_encode($this->table);?>,
callback: function(values){...
This is what i need but I can't find a clean way to use it simply...
Is someone got an idea?
Related question: the addexisting lookup widget in the grid widget only work if lookup widget is already used with another field , is it a bug or am I wrong with something ? (ver 1.2.4 1811)
thanks
--
oliv