Page 2 of 2
Re: Input object on launch form
Posted: Sat Feb 05, 2022 6:03 pm
by kev1n
Is it not the same form or the same tab? In any case, use nuSetProperty() in JS, to set a (global) hash cookie like
Code: Select all
nuSetProperty('Date_Debut', crtdn_date_debut.value, true);
in PHP, retrieve it like #Date_Debut#
Re: Input object on launch form
Posted: Sat Feb 05, 2022 7:06 pm
by BDemeuse
Re: Input object on launch form
Posted: Wed Feb 09, 2022 5:35 pm
by BDemeuse
Hi,
How can I set a null hash variable for a nuRunQuery ?
Ex:
if(empty($date_fin))
{
$date_fin = NULL;
};
$s = "call select_donateur('#date_debut#','#date_fin#', '#campagne_id#')";
nuRunQuery($s);
$date_fin = NULL does not work
I also have another question for the nuSendMail with attached files
"If you do want to send attachments, this array needs in the following format [$filename=>$filesource]"
what does [$filename=>$filesource] mean ?
Thanks again!!
Re: Input object on launch form
Posted: Wed Feb 09, 2022 5:59 pm
by kev1n
Where is $date_fin set?
Could you create a separate topic for your other question?
Re: Input object on launch form
Posted: Wed Feb 09, 2022 8:49 pm
by BDemeuse
Hi,
last news ... it works (null value) with a $variable of type INT but not of DATETIME.
I did a mistake by using #variable.
Sorry for the other topic. I will create a new post.
Regards and many thanks!!
Re: Input object on launch form
Posted: Thu Feb 10, 2022 7:41 am
by kev1n
Pass the NULL without enclosing single quotes