List parameters - buton java

gatticlaudio

Claudio
I can not find the fault.
I am invoking through a button and javascript a filtered list, but it does not take the parameters.

window.location.href = ('/cobranzas/index.php?option=com_fabrik&view=list&listid=9&usekey=id_cliente|id_proceso&rowid={___id_cliente_raw}|{___id_proceso_raw}');

If you can help me, I appreciate it.

Thank you.
 
Placeholders don't work like that in JS. You have to get the values yourself.

Also, I'm not sufre what you are trying to do with the | syntax? You can only use one value. So for id_cliente ...

Code:
var id_cliente = this.form.formElement.get('___id_cliente').getValue();
window.location.href = ('/cobranzas/index.php?option=com_fabrik&view=list&listid=9&usekey=id_cliente&rowid=' + id_cliente);

I'm assuming this is a "table-less" form, so no tablename prefix on the element names? If it does have a table (List) associated with it, then use the full element name, like yourtable___id_cliente.

-- hugh
 
According to the documentation, it is possible to filter several elements:

Load form 1 and look for an existing record where 'user=62 AND status=1'. You can add as many key/value pairs as long as you ensure that each value is separated by a pipe ( | ).
Code (Text):
{fabrik view=form id=1 usekey=user|status rowid=62|1}
 
I see it but it gave me problems.
You will have some example of lists using BETWEEN ???, it is to filter a list.
Thank you.
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top