Hello,
I simply would like to create a form without a relation to any table.
On the form I just have some fields (values will be parsed in JavaScript) and a HTML object showing a calendar (Data will be filled by PHP).
I used the formtype "Launch" without table name or primary key.
After changing a date field on the form it needs to be reloaded to run the PHP script with the new selected date.
But using "nuSaveAction()" throws an error:
"Primary key is invalid - Launch forms cannot be saved"
Is there another way to use forms simply as a container for fields and HTML objects but to reload them after a field was changed?
BR, Oli
Welcome to the nuBuilder Forums!
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Form without Table Topic is solved
-
- nuBuilder Team
- Posts: 4562
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 76 times
- Been thanked: 528 times
- Contact:
Re: Form without Table
nuGetBreadcrumb() works.
But when I load the form for the 1st time (after the login) the PHP code (in Before Edit) will not be processed and I have to refresh one time.
Is that a known behaviour and can I somehow force the processing of the PHP code?
But when I load the form for the 1st time (after the login) the PHP code (in Before Edit) will not be processed and I have to refresh one time.
Is that a known behaviour and can I somehow force the processing of the PHP code?
-
- nuBuilder Team
- Posts: 4562
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 76 times
- Been thanked: 528 times
- Contact:
Re: Form without Table
Are you using the latest version? Because I fixed a bug that might have been related to your issue.
Re: Form without Table
Sorry for reopening the topic but I am now facing the same issue again.
Same behaviour with other browsers (Edge, Chrome, Firefox) - the PHP code will not be executed after the page is opened for the first time.
Same behaviour with other browsers (Edge, Chrome, Firefox) - the PHP code will not be executed after the page is opened for the first time.
-
- nuBuilder Team
- Posts: 4562
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 76 times
- Been thanked: 528 times
- Contact:
Re: Form without Table
Did you add a nuDebug('BE event'); at the beginning of the BE event to see if the event is really not triggered?
Re: Form without Table
Yes, I did. And there is no nuDebug Entry until I did a manual refresh of the form.
-
- nuBuilder Team
- Posts: 4562
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 76 times
- Been thanked: 528 times
- Contact:
Re: Form without Table
Is the form opened directly (as Home) after logging in? Are parameters (like f= ) passed in the URL?