Hum, this page of the wiki https://wiki.nubuilder.cloud/ ... hp/Objects says hash cookies are good in run object filters and RecordID's. How does one see what hash cookies are available and their values?
In the video you linked there is an edit button for the contact. How does that work???
Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
Subform with many to many relationship
-
- nuBuilder Team
- Posts: 506
- Joined: Fri Dec 28, 2018 1:41 pm
- Location: Krakow, Poland
- Has thanked: 8 times
- Been thanked: 18 times
Re: Subform with many to many relationship
In PHP and SQL these hash cookies are always available.How does one see what hash cookies are available and their values?
https://wiki.nubuilder.cloud/ ... sh_Cookies
You can can define any value in JS to be available as hash cookie in PHP and SQL:
https://wiki.nubuilder.cloud/ ... etProperty
just real example:
in JS
Code: Select all
nuSetProperty('ZLEC_TO_FREEZE',$('#par_zlecenie').val());
nuRunPHPHidden('SUB_FREEZE','z'); //'z' is not important just any string value should be placed here
Code: Select all
....
$pz=('#ZLEC_TO_FREEZE#');
...
$q="UPDATE parts SET par_sub_frozen='1', par_updated_by = '$r',par_updated_on = '$timestamp' WHERE par_zlecenie='$pz';";
...
https://wiki.nubuilder.cloud/ ... PHP#nuHash
in a quick way you can display the value on the form using display object placing in the sql for example:
Code: Select all
Select '#USER_ID#'
https://wiki.nubuilder.cloud/ ... Properties
If you like nuBuilder, please leave a review on SourceForge
-
- nuBuilder Team
- Posts: 506
- Joined: Fri Dec 28, 2018 1:41 pm
- Location: Krakow, Poland
- Has thanked: 8 times
- Been thanked: 18 times
Re: Subform with many to many relationship
Edit button (with onclick) or the "ATTM - File name" display field (with onfocus) makes exactly the same thing so starting with the basic code of display field:In the video you linked there is an edit button for the contact. How does that work???
Code: Select all
if (nuFORM.edited) {return;} var f=nuSubformValue(this, 'con_rap'); if (f!=='') {nuForm('5d5fbf488ceedd4',f,'','');}
Code: Select all
if (nuFORM.edited) {return;}
Code: Select all
var f=nuSubformValue(this, 'con_rap');
Code: Select all
if (f!=='') {nuForm('5d5fbf488ceedd4',f,'','');}
https://wiki.nubuilder.cloud/ ... ipt#nuForm
For the edit button I added the hide and show option to avoid double click on the button - double click can force to execute the code twice - so I always protect all buttons from double click. You can do it with hide/show or disable/enable.
You do not have the required permissions to view the files attached to this post.
If you like nuBuilder, please leave a review on SourceForge