Autofill does not work with my site

viatechcenter

viatechcenter
I have update the last Fabrik 3.0 github.
I have "Stock" list since where "Ventas" form take the records via autofill form plugin. But the autofill code does not work:

{"fab_stock___categoria":"join___7___fab_venta_5_repeat___categoria", "fab_stock___stock":"join___7___fab_venta_5_repeat___stock","fab_stock___precio_unitario":"join___7___fab_venta_5_repeat___precio_unitario"}

Could you check my site?
http://www.cottonstyleperu.com/sistema
 

Attachments

  • autofill1.jpg
    autofill1.jpg
    32.2 KB · Views: 338
Hi I think Hugh raised a GitHub issue on this some time this week. So it's on my radar to look at. It will be next week though before I get to look at it.
Bump this thread next week if you haven't seen an update


---
I am here: http://tapatalk.com/map.php?2sayld
 
Looks like it's a different issue, as his AJAX call is firing. I suspect it may be to do with being in a repeat group.

-- hugh
 
can you turn on Joomla debug please so we get to see the uncompressed js files,

thx
Rob
 
I activeted Joomla debug

I activeted Joomla debug, but You can access to the administrator with the access (user and password: cheesegrits).
Thanks
Francisco.
 
Instead of autofill , I use ?user_ajax.php? technique like this :
If in form with id 10, I want elementB to fill with value based on selection from elementA then :

Step1: fabrik->elements->elementA->JavaScript add code
var identify= $('yourtable___elementA').get('value');
getInfo(identify);

Step2: create file 10.js with code like :
function getInfo(identify){
var url = 'index.php?option=com_fabrik&format=raw&view=plugin&task=userAjax&method=findA';
new Request({
url: url,
data: {
method: 'findA', 'identify':identify
},
onComplete:function(r){
form_10.formElements.get('yourtable___elementB').update(r);
}
}).send();
};

Step3: put file 10.js from step 2, in folder ?\components\com_fabrik\js\

Step4: create file user_ajax.php with code like :
<?php
defined('_JEXEC') or die('Restricted access');
class userAjax {
function findA() {
$result = '';
$db = JFactory::getDBO();
$ids = JRequest::getVar("identify", "");
$query = "SELECT fieldx FROM yourtable WHERE id = '$ids'";
$db->setQuery($query);
$results = $db-> loadObjectList ();
echo $results;
}
}
?>

Step5: put file user_ajax.php in folder?\components\com_fabrik\

test drive....
 
thanks for your post

Could you please make this operation in my website and tell me how much I pay you for this work? Send me your email to viatechcenter@gmail.com in order I will send you my administrator user and password. I need fix this issue today.
Thanks.
Francisco.
 
Contact me on Skype ('cheesegrits') so we can get this sorted out. I've tried replicating the issue locally, but no luck.

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top