Welcome to the nuBuilder Forums!

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

How to quickly open EditForm for a logged-in user instead of

Questions related to using nuBuilder Forte.
Post Reply
miasoft
Posts: 156
Joined: Wed Dec 23, 2020 12:28 pm
Location: Russia, Volgograd
Has thanked: 32 times
Been thanked: 7 times
Contact:

How to quickly open EditForm for a logged-in user instead of

Unread post by miasoft »

After logging in, the user sees only his entry in the Browse Form and then has to click on this entry to open the EditForm. These are unnecessary actions.
21.08_1.png
In my case, RecordId = UserLoginName
I try insert #USER_ID# in:
21.08_2.png
But no result - open empty EditForm. If I insert simple number (16 or 122 etc) instead of #USER_ID# then EditForm opens correctly.
I use this SQL-query for browse:

Code: Select all

SELECT
 klk.NPP,
    klk.STATUS,
    klk.SHORTNAME,
    klk.POL,
    klk.DATEBIRTH,
    klk.CURRDOLJN,
    klk.KODPODRAZD,
    klk.ARHIV,
    klk.OTLICH,
    klk.ONDATE

FROM  klk
LEFT JOIN zzzzsys_user ON sus_login_name = NPP
WHERE zzzzsys_user_id  = '#USER_ID#' OR '#GLOBAL_ACCESS#'='1'

ORDER BY
    SHORTNAME ASC
How to quickly open EditForm for a logged-in user instead of the sequence Browse ->Select -> EditForm?
You do not have the required permissions to view the files attached to this post.
Last edited by miasoft on Sat Aug 21, 2021 7:57 am, edited 1 time in total.
Wbr, miasoft.
kev1n
nuBuilder Team
Posts: 4299
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: How to quickly open EditForm for a logged-in user instea

Unread post by kev1n »

Use #LOGIN_NAME# instead of #USER_ID#
miasoft
Posts: 156
Joined: Wed Dec 23, 2020 12:28 pm
Location: Russia, Volgograd
Has thanked: 32 times
Been thanked: 7 times
Contact:

Re: How to quickly open EditForm for a logged-in user instea

Unread post by miasoft »

kev1n wrote:Use #LOGIN_NAME# instead of #USER_ID#
Thanks! Everything worked perfectly!
Wbr, miasoft.
Post Reply