Welcome to the nuBuilder Forums!

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

DISPLAY sas_name instead of zzzsys_user_id

Post Reply
Tom_24409
Posts: 4
Joined: Sat Aug 15, 2015 3:16 pm

DISPLAY sas_name instead of zzzsys_user_id

Unread post by Tom_24409 »

I'm storing the current user in the table "ao_teilnehmer" in the field "tei_userid". The records of this table shall be displayed in the sub_form. In order to display the users which have saved the records by nameinstead of the user_id I've introduce a DISPLAY field with the SQL statement:
SELECT sus_name
FROM zzzsys_user
WHERE zzzsys_user_id = '#tei_userid#'

The issue is, that this SQL statement is always empty as '#tei_userid#' is not substituted with the database entries.

What's wrong with this approach?
Tom_24409
Posts: 4
Joined: Sat Aug 15, 2015 3:16 pm

Re: DISPLAY sas_name instead of zzzsys_user_id

Unread post by Tom_24409 »

changed the form; storing now the user-name directly instead of the ID.
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: DISPLAY sas_name instead of zzzsys_user_id

Unread post by admin »

Tom,

You could also try using a lookup with the readonly Description field showing the name.

Steven
Post Reply