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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T01:35:30+00:00 2026-05-24T01:35:30+00:00

I have used the index of a value object to map to a screen

  • 0

I have used the index of a value object to map to a screen object so that new items added index as -1, -2, -3, -4, -5 etc. Now that I am ready to add these new objects to the database I want to clear their index value so that I can run a createService on them.

It wont allow me to delete object.property and setting it to 0 or trying to set it to null will not allow the object to be created in the database.

What other method can I use for clearing the property?

  • 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-24T01:35:31+00:00Added an answer on May 24, 2026 at 1:35 am

    First of all, Problem statement is not good enough.Still let me try to answer it(as per my understanding). I suspect you are trying to add it to database table where index property is set to autoIncrement. If it is so, why do you need to set index such as -1,-2,-3 etc. Simply maintain a collection of your objects without giving them any index. Anyway, new Item will only be added at the end of the collection, so you can be sure about the index sequencing.

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

Sidebar

Related Questions

I have a plist file called playerData that includes a number object at index
I have a custom user type that is used to map from a decimal
I have code that needs to render regions of my object differently depending on
I have an ArrayCollection that shows up on the main screen of my app.
I have a class that contains different enums (different types). This class is used
We have the following object int [,] oGridCells; which is only used with a
It says that in my array that I have gone over the index. My
We have a view that is used to lookup a record in a table
How can I get my object index? I have a dictionary containing arrays and
I have an aspx page on which I am using XDomainRequest object to populate

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.