Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Form without Table Topic is solved

Questions related to using nuBuilder Forte.
oli
Posts: 118
Joined: Sat Mar 20, 2021 3:22 pm
Has thanked: 4 times

Form without Table

Unread post by oli »

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
kev1n
nuBuilder Team
Posts: 4297
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: Form without Table

Unread post by kev1n »

Can you refresh the Launch form with nuGetBreadcrumb() ?
oli
Posts: 118
Joined: Sat Mar 20, 2021 3:22 pm
Has thanked: 4 times

Re: Form without Table

Unread post by oli »

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?
kev1n
nuBuilder Team
Posts: 4297
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: Form without Table

Unread post by kev1n »

Are you using the latest version? Because I fixed a bug that might have been related to your issue.
oli
Posts: 118
Joined: Sat Mar 20, 2021 3:22 pm
Has thanked: 4 times

Re: Form without Table

Unread post by oli »

After updating nuBuilder it worked fine!!

Thank s a lot kev!n.
kev1n
nuBuilder Team
Posts: 4297
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: Form without Table

Unread post by kev1n »

:thumb:
oli
Posts: 118
Joined: Sat Mar 20, 2021 3:22 pm
Has thanked: 4 times

Re: Form without Table

Unread post by oli »

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.
kev1n
nuBuilder Team
Posts: 4297
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: Form without Table

Unread post by kev1n »

Did you add a nuDebug('BE event'); at the beginning of the BE event to see if the event is really not triggered?
oli
Posts: 118
Joined: Sat Mar 20, 2021 3:22 pm
Has thanked: 4 times

Re: Form without Table

Unread post by oli »

Yes, I did. And there is no nuDebug Entry until I did a manual refresh of the form.
kev1n
nuBuilder Team
Posts: 4297
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: Form without Table

Unread post by kev1n »

Is the form opened directly (as Home) after logging in? Are parameters (like f= ) passed in the URL?
Post Reply