Skip to main content
September 9, 2022
Solved

how to add logged in user in database

  • September 9, 2022
  • 5 replies
  • 1 view

Hi All

I am using one text field in my interface and in the display value, I am using loggedInuser() function.

and in save into i am doing like the below way, but it's not going into the database.

Even i tried like this 

a!save(ri!comments.commentBy,loggedInUser())

    Best answer by harshitb6843

    The 'saveInto' of this component will only work when you use this component. Otherwise, it won't work. 

    Now in order to save this value to DB, you can write your a!save() statement on the button's saveInto so that when you press the button, the values are saved in the right variables and then you save that variable to your DB using a PM 

    5 replies

    harshitb6843
    September 9, 2022

    The 'saveInto' of this component will only work when you use this component. Otherwise, it won't work. 

    Now in order to save this value to DB, you can write your a!save() statement on the button's saveInto so that when you press the button, the values are saved in the right variables and then you save that variable to your DB using a PM 

    September 9, 2022

    Thanks harshit [emoticon:c4563cd7d5574777a71c318021cbbcc8]

    harshitb6843
    September 9, 2022

    If it works, please take a moment and verify the answer. It will let other contributors know that you have found the answer. 

    September 9, 2022

    While insertion you have to save loggedinuser to the particular field. For that you can use UpdateDictory function.

    Appian Community