hi i need to display the logged in user in the text field and must save the name into the cdt .
Please follow the Screenshot
Discussion posts and replies are publicly visible
My only guess for why this isn't working is because you copied and pasted Peter's suggested code exactly, without actually replacing "type!Timesheet" with the type! declaration for your actual CDT as utilized in ri!timeline. I can tell this hasn't been completed correctly because it'll look quite a bit different when you've successfully added a type! declaration on the form. At the end it'll look a bit more like this:
Hi mike,
i have tryed this one too,
The example you posted above might work except you didn't fill in the value for "employeeName" in your 'type!DSR_TimeSheetLineItem' call.
That said, it might be a bit simpler to use the method Peter was recommending previously (just.. filled out correctly), in which you can ignroe the "value:" parameter and just declare the value in the a!save() call.
addRowLink: a!dynamicLink( label: "Add Timesheet", saveInto: { a!save( target: ri!timeline, value: append( ri!timeline, 'type!{urn:com:appian:types:DSR}DSR_TimeSheetLineItem'( employerName: loggedInUser() ) ) ) } )
Thank you for the answer
Thanks for confirming - though i'm slightly confused why my reply also (apparently) got a downvote
sorry by mistakenly i click on that instead of verify the answer.
no worries - thanks for fixing :)
Hi mike again logged in user not saving into every record
I believe you changed this to include multiple variables (DSR_TimeSheet and timeline). Is it possible that your type listed in the expression is no longer the correct type for the timeline?