Exporting with a variable.
-
Hi, I am using the shortcode and export builder on cfdb and have the following shortcode and is working fine. Having a variable called “restaurante”
[cfdb-datatable form=”Paid outs” show=”Fecha:,Cuenta:,Cantidad: $” filter=”User=$_GET(restaurante)”]
This works fine.But when I try to make an export hyperlink using the same parameters the excell worksheet is downloaded empty. Maybe I am doing something wrong? please help.
The following export shortcode is generated when I change the option to Export from shortcode. And I am inserting the link called “test”. The problem is with the filter. If I take it out it exports all of the records. But I need only the ones with the variable value.
<a href="https://irsinet.azurewebsites.net/wp-admin/admin-ajax.php?action=cfdb-login&cfdb-action=cfdb-export&form=Paid%20outs&show=Fecha%3A%2CCuenta%3A%2CCantidad%3A%20%24&filter=User%3D%24_GET(restaurante)&enc=xlsx&l=4650e7b2e7f69ec4b99fb52b91c6b152">test</a>
Thank you.
- The topic ‘Exporting with a variable.’ is closed to new replies.