OriginalPostID-83588
Discussion posts and replies are publicly visible
However other values which should be manually filled are getting saved into a database table, only this auto-generated value "loggedInUser()" is showing up as empty/Null
As I said your values will be passed to the rule inputs when a user action is made in the form. You could therefore set the value of your target the rule input with fn!loggedInUser() as part of the save of the 'Submit' button. You can test this in the form itself to prove that it's working. If the value is till not makign its way tio the database then:
Try this to see if it's working.. this field on the interface is not realising that something has been written. You still have 1 more action left i.e. 'click on submit button' .. you can modify the submit button code
saveInto: { a!save(ri!record.recordedBy,loggedInUser()) },
this way ri!record.recordedBy should get a value when you click the submit button.
This happens only when you create a username with the email-Id. When you create users from the admin console you can give a non-emailid usernames. The loggedinuser() function will return whatever username you have given.
Hi, Jaideep Banerjee many thanks it worked, The submit button recognized and auto-updated my logged-in name.
No changes were done to the Process model.:)
What you all need is this thing
(user(LoggedInUser(),"firstName") & "." & user(LoggedInUser(),"lastName"))
PrateekKhanna said:(user(LoggedInUser(),"firstName") & "." & user(LoggedInUser(),"lastName"))
nooooooooooooo
I thought they might want to join to create username , since it's giving emails by default.
they asked for "logged in username". this will always be predetermined for any particular viewer - the only thing anyone needs here is loggedInUser(), or if it must be a string, toString(loggedInUser()).