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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T21:37:34+00:00 2026-05-29T21:37:34+00:00

My Silverlight application inserts records tp a table named Prscrpts . The prescriptionno is

  • 0

My Silverlight application inserts records tp a table named Prscrpts. The prescriptionno is the primary key.

I also maintain another table named PrscrptRange which has the lastest prescription number. there are 3 records in this table, depending on the type of the prescription. eg: Medication :3035 , Plain : 74023, External :503336. I use three different ranges depending on the type of prescription.

Now, what I need is whenever I insert a record into the prescrpts table, I need to check whether the prescription is of type medication, if its medication, get the corresponding value from the PrscrptRange table and increment it and use this new value as the prescriptionno and update the PrscrptRange table and insert the new prescription record.

How can I do this in the client side? What I need to take care of is that no two person should use the same prescriptionno. (concurrency) This is an online order entry system.

Please Please Please 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-29T21:37:35+00:00Added an answer on May 29, 2026 at 9:37 pm

    If you want to do this on the client, you can do the following:

    1. Before you save get and increment the prescription number, within a transaction
    2. When you save send the prescription number with the request

    The problem with this that if the client decides not to save, you get holes in the series.

    I would have moved this functionality to the server, increment the prescription number and save the prescription in the same transaction.

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

Sidebar

Related Questions

I have a Silverlight web application. I am inserting records into a table (SQL
I am creating a Silverlight application which will be heavily javascripted against. To enable
I have a silverlight application which reads data from a db and displays them
I have a silverlight application which consists of a few tabs, which I would
I want to insert data into sql table in silverlight application. I know how
I am trying to build an silverlight application which takes user first name, last
I have a Silverlight 4 application which talks to a 'manager' class, which talks
I have silverlight application in asp.net web. In web application i have folder which
The Silverlight Application Package extension is given as .xap which is a zip file.
I recently developed a Silverlight application which uses Mark J Millers ClientChannelWrapper<T> to communicate

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.