Welcome to the nuBuilder Forums!

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

concat in browse form

Questions related to using nuBuilder Forte.
Post Reply
hering
Posts: 10
Joined: Sun Apr 09, 2023 12:54 pm
Has thanked: 8 times
Been thanked: 1 time

concat in browse form

Unread post by hering »

Hello,

I have problem with CONCAT in browse.

Browse>Columns>Display:

Code: Select all

CONCAT(wyr_operacja_c,wyr_operacja_s,wyr_operacja_m)
In browse it works for some rows and for some it doesn't.

thx.
You do not have the required permissions to view the files attached to this post.
kev1n
nuBuilder Team
Posts: 4292
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:

Re: concat in browse form

Unread post by kev1n »

Hi,

Have you tried running the query in phpMyAdmin to view the generated SQL and check if the output is as expected?
(see Form Info -> Browse SQL to view the generated SQL)

Please note that concatenating a string with NULL will always result in NULL.

Using IFNULL handles the case If any of these values are NULL, they are replaced with an empty string before concatenation.

Code: Select all

CONCAT(IFNULL(wyr_operacja_c,''),IFNULL(wyr_operacja_s,''),IFNULL(wyr_operacja_m,''))
hering
Posts: 10
Joined: Sun Apr 09, 2023 12:54 pm
Has thanked: 8 times
Been thanked: 1 time

Re: concat in browse form

Unread post by hering »

Thank You.
NULL was a problem ;-)
Post Reply