Timeline for Droplink value is always returning null in post action
Current License: CC BY-SA 4.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 22, 2019 at 11:03 | comment | added | Marek Musielak♦ | Comments converted into an answer | |
Feb 22, 2019 at 11:03 | answer | added | Marek Musielak♦ | timeline score: 1 | |
Feb 22, 2019 at 10:53 | comment | added | Naveen Dharnamoni | Changing the state to guid done the trick. Thanks a lot @MarekMusielak | |
Feb 22, 2019 at 9:50 | comment | added | Marek Musielak♦ |
So you're sending a state ID from your form in a POST action and expect that glass will autopopulate the employeeModel with a State object? Can you try to change the state in EmployeeModel to string or ID and see if it's passed properly via the POST action? I don't think Glass will populate your objects in POST actions.
|
|
Feb 22, 2019 at 8:44 | comment | added | Naveen Dharnamoni | Added the post action to the question @MarekMusielak | |
Feb 22, 2019 at 8:44 | history | edited | Naveen Dharnamoni | CC BY-SA 4.0 |
Added post action
|
Feb 22, 2019 at 7:04 | comment | added | Marek Musielak♦ | And what is your post action code? | |
Feb 22, 2019 at 5:10 | history | edited | Naveen Dharnamoni |
edited tags
|
|
Feb 22, 2019 at 4:52 | history | asked | Naveen Dharnamoni | CC BY-SA 4.0 |