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 6737951
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:18:35+00:00 2026-05-26T11:18:35+00:00

In addition to the key_name I generate, I also would like to have some

  • 0

In addition to the key_name I generate, I also would like to have some other property, which will act as id (I don’t want to show key_name to the user). Can it be id? Or, how to generate unique value instead of id?

What I will do – I will generate a url with usage of that id and parent key name. If user clicks on this link, I’ll need to find this datastore entity and update it.

Here is the current code.

Creation of the record:

  item = Items.get_by_key_name(key_names=user_id, parent=person)
  if item is None:
    item = Items(key_name='id'+user_id, parent=person)

Getting the record:

item = Items.get_by_key_name(key_names=user_id, parent=person)

user_id is what should be hidden.

  • 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-26T11:18:35+00:00Added an answer on May 26, 2026 at 11:18 am

    I could be probably wrong because your requirements are not clear, but for me you should pass just the key to the view using:

    item.key()
    

    then you could pass back the key to the controller and easily retrieve a given entity with:

    item = Items.get(key)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In addition to this question: iPhone network performance , I would like to know
In addition to the datastore for your specific site, can you also share one
In addition to jquery plugin options, I want to override those values with html5
I have a table user and in addition INNER JOIN it with table cities
i need some help in addition to android-layouts. For eyample: Actually I use a
We have an existing Firebird database which we wish to setup in an ASP.NET
I want that its name would be the page address. For example, if page
i have a table which has cloumn : vaccine_date text ,vaccine_name text ,mother_id text
I am developing a system that will have a database backend. I am intending
I have a Rails 3 application using Devise for authentication. In addition to the

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.