Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6320601
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T16:00:15+00:00 2026-05-24T16:00:15+00:00

//gets the correct User (checked with printlns) def user = User.get(params.user?.toString()) println usern.nickname +

  • 0
    //gets the correct User (checked with printlns)
    def user = User.get(params.user?.toString())

    println "usern.nickname " + user.id + " " + user.nickname
    println "user "+user
    /*
     * write in database
     */
        user.nickname = params.nickname
        user.email = params.email

/* a println of user.nickname shows the same as params.nickname, but the database
is not being updated with the value (params.nickname) */

I dont understand this. It´s so simple, but it doesnt update the database. Can anyone help, please give me your vaguest shots, Im thankful for any help

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T16:00:16+00:00Added an answer on May 24, 2026 at 4:00 pm

    Silly, but did you forget to save?

    If you did, user.save(flush:true) should do the trick.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm implementing an email mechanism in Play: User gets an email with a validation
I keep getting this error, although the file still gets moved into the correct
When my IronPython program gets to the line import wx I get this message:
Obviously it gets updated during a write operation, but are there any non-destructive operations
I need it so that when i type in domain.com/user/1 the one gets pulled
I have a form which, when the button gets clicked by a user, redirects
I have a OdbcDataReader that gets data from a database and returns a set
In views.py I have the following view which gets called when a new user
Im trying to get the total amount of points a user has, as well
I want to redirect a user who gets from page.php?letter=A&num=2 to the following address:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.