Forums

Local Vars - how to build ?

Ogui3 05 Jul, 2023
Good evening,

I need your help regarding "Local Vars".

I'm trying to retrieve data by wanting to create a local variable but, when I add "local vars" in the behavior part, I can't manage to set it.

Could you tell me how to configure it?

Specifically, do you have an example variable name and an example variable value?

I'm trying to retrieve an array of results from a query to make it appear in a TCPDF export.

If you have a solution for me, I'm interested.

Good evening.


---------------------------------------------------------------------------------------------------------------------


Bonne soirée,

J'ai besoin de votre aide concernant "Local Vars".

J'essaie de récupérer des données en voulant créer une variable locale mais, lorsque j'ajoute des "variables locales" dans la partie comportement, je n'arrive pas à la définir.

Pourriez-vous me dire comment le configurer ?

Plus précisément, avez-vous un exemple de nom de variable et un exemple de valeur de variable ?

J'essaie de récupérer un tableau de résultats à partir d'une requête pour le faire apparaître dans une exportation TCPDF.

Si vous avez une solution pour moi, je suis intéressé.

Bonne soirée.
Max_admin 08 Jul, 2023
1 Likes
This is not the intended use of "Local vars", if you want to get data from the database and use it in the PDF then you need to use this syntax:
{var:read_data_name.Model.field}
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Ogui3 09 Jul, 2023
Ok, Thanks for your help.

Can you say me how can I retrieve a table issued of a view (after a request) in my pdf export ?

I have look for it but nothing on this subject in the forum.

Thanks
Max_admin 09 Jul, 2023
try {view:view_name}
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Ogui3 09 Jul, 2023
I just tried and it doesn't work.

I have a standalone page group with options to see the list of my contracts.

From this list, I can display a contract. In this visualization page, I display the contract which contains a table which returns the dates of the missions and a button allowing to send the contract in pdf.

The TCPDF function is in a sequential page group. For everything related to the contract terms poster, no problem, everything is in my pdf document. On the other hand, I cannot report my table with the dates of the missions in the pdf.

How to take the table and display it directly in my pdf?

There is only this table which refuses to be displayed and I cannot find any source in the forum allowing me to do so.

Thanks for your help.



-----------------------------------------------------------
Je viens d'essayer et ça ne marche pas.

J'ai un groupe de pages autonome avec des options pour voir la liste de mes contrats.

A partir de cette liste, je peux afficher un contrat. Dans cette page de visualisation, j'affiche le contrat qui contient un tableau qui renvoie les dates des missions et un bouton permettant d'envoyer le contrat en pdf.

La fonction TCPDF se trouve dans un groupe de pages séquentielles. Pour tout ce qui concerne l'affiche des clauses contractuelles, pas de problème, tout est dans mon document pdf. Par contre, je ne peux pas reporter mon tableau avec les dates des missions dans le pdf.

Comment prendre le tableau et l'afficher directement dans mon pdf ?

Il n'y a que ce tableau qui refuse d'être affiché et je ne trouve aucune source dans le forum me permettant de le faire.

Merci pour votre aide.
Ogui3 16 Jul, 2023
Is somebody could help me ?

Thanks
You need to login to be able to post a reply.