Helpdesk App Creation Help
I currently have a helpdesk app created that will go out to
SQL, use a SELECT MAX statement to get the next ticket number when
opening a new helpdesk ticket, and assign this ticket number to the
new ticket before it is filled out and then it is submitted along
with the rest of the ticket info. It was the simplest way to do it
at the time of creation.
Now I am having the problem of duplicate ticket numbers in
the table because if someone has opened a new ticket but not yet
submitted it, and then another user starts a new ticket it will
have the same ticket number as the other user since it is still the
next highest number in the table. Sorry if this is confusing.
I am wondering if there a way for Coldfusion or SQL to
reserve a number without submitting it to the table? Or would I be
better off having it determine a ticket number on one page,
submitting it, and then going into an update screen on the next
page? That way the ticket number is submitted and won't be
duplicated. Any help would be appreciated.
Here are some of the steps that I think you should follow:
1) Let the person fill-in the form. At this time there is no
ticket number.
2) Once the person is done and submits the form, do the form
validation
on the form page itself.
3) On the action page, get the max(ticketno) using SQL.
[Use appropriate CFML syntax for the following code.]
if max(ticketno) = 0 then
newTicketNo = 1
else
newTicketNo = max(ticketno) + 1
end if
4) Use apropriate CFTRANSACTION tag attribute. It would be
BEGIN in this
case. Inside it, use CFTRY and CFCATCH tages. Now, insert a
row into the
table. CATCH any database exception. You can know the exact
error
message (whether primary key violation or something else). If
there are
no errors, COMMIT your transaction.
5) You just have successfully inserted a row. Now, use the
newTicketNo
on the subsequent page to show the user that a ticket has
been created
and his/her ticket number is newTicketNo.
Remember that databases have concurrent access, many people
can query
the database. The idea here is to generate the new ticket no.
(or any
primary key, for that matter) at the very end when you are
ready to
insert the row into the database. In case your insert fails,
you can
find out if it was integrity constraint violation and
re-query for
max(ticketno) and repeat the procedure.
Hope this helps.
- Milind Joshi
Redcarl wrote:
> I currently have a helpdesk app created that will go out
to SQL, use a SELECT
> MAX statement to get the next ticket number when opening
a new helpdesk ticket,
> and assign this ticket number to the new ticket before
it is filled out and
> then it is submitted along with the rest of the ticket
info. It was the
> simplest way to do it at the time of creation.
>
> Now I am having the problem of duplicate ticket numbers
in the table because
> if someone has opened a new ticket but not yet submitted
it, and then another
> user starts a new ticket it will have the same ticket
number as the other user
> since it is still the next highest number in the table.
Sorry if this is
> confusing.
>
> I am wondering if there a way for Coldfusion or SQL to
reserve a number
> without submitting it to the table? Or would I be better
off having it
> determine a ticket number on one page, submitting it,
and then going into an
> update screen on the next page? That way the ticket
number is submitted and
> won't be duplicated. Any help would be appreciated.
>
Similar Messages
-
Best app to help deaf people transcribe voice to text
Does anybody know of an app that helps deaf people get other people conversations to text?
I appreciate your help, guys!
I've already backed up the Mac's files using Time Machine, but I want to use another app to copy the files from the Mac's HDD to an external USB drive just in case there's something wrong with Time Machine.
I've been struggling with this unresponsiveness from my Mac for a long time now. Could someone PLEASE help me out? My thread: Fresh Install of Yosemite and still spinning beachballs... -
Hi, i'm new using numbers, and when I try to open a excel file don't let me do it, instead appears a box whit a error and close app, any help?
What does the error say?
A couple of thoughts: the file is corrupted or is password-protected. Corruption is more likely to cause Numbers to crash & Numbers cannot open password-protected Excel files. Try using one of the free Office clones & see what happens. -
I lost my I-phone 5 and do not have an I-cloud account .... Is there any other way I can use the "find my phone" app to help me locate it?
Or anyother way to locate it?No.
No.
Sorry.
Change your passwords, alert your carrier. -
I purchased extra Icloud storage because I couldn't take any more pictures on my phone, or download any more apps. The extra storage purchase did not change a thing. I still can't take pictures or download apps. Help!!
Icloud storage has nothing at all to do with the storage on your iphone.
Icoud storage is on a server somwewhere, not on your iphone.
You need to delete content from your iphone -
I am trying to change my apple id Country. but it says " you have a store credit balance, you must spend your balance before you can change it." i don't wanna spend it to change my country. by the way i can't update any of iPhone apps. need help
It's strange because I can change my AppleID country without this message.
So what to do? Just try to do this again, but on another device. You may also erase cookies and history of your browser.
I hope it will be helpful, good luck! -
HT5642 Unable to download app this time error while downloading app please help!!!
when i download some app from apps store i get the following error
"Unable to download app this time error while downloading app" please help!!!
i ve tried these Things but
didnt workout yet
1) i tried hard reset
2)i tried logout/login Itune & appstore
3)Connected to pc and rest setting Network and Full Rest
all of no use... i dont want to update my softwre from IOS 6.0
Plx help!1Hey Prahaladvatsan,
Thanks for the question. If I understand correctly, there is a blank app icon on the home screen. It looks like you have already done some troubleshooting. I would recommend that you read these articles, they may be helpful in troubleshooting your issue.
Restart or reset your iPhone, iPad, or iPod touch - Apple Support
Back up and restore your iPhone, iPad, or iPod touch using iCloud or iTunes - Apple Support
Thanks for using Apple Support Communities.
Have a good one,
Mario -
Hi... I am looking for an inexpensive app for my macbook pro that I can put pictures and videos together into a slideshow with captions and music WITHOUT a watermark and that also will burn the slideshow to a DVD in its own app. Help?
The issue with the A1400 is that like most economy compact cameras, they will not have very fast focus times in indoor lighting situations. Many people have gone to entry level DSLR's (Canon T3i) or micro 4/3 cameras. They are fairly expensive, but a late model refurbished T3i can sometimes be found with a kit lens for about $300.00. With Auto and scene modes, as well as full manual modes, these are very versatile cameras that focus very quickly, even in lower lighting situations. Canon is not really into the micro 4/3 cameras, instead they are focusing on the new G7x and G1x cameras, which are way out of your price range. The A720 is still available used at some places such as KEH camera, but you'll need to check often as their stock changes constantly. Obviously the DSLR's don't use AA batteries, but the T3i is good for about 600 photos (or more) per charge.
My refurbished DSLR was practically brand new condition when I got it. I could not find any sign of wear at all, so I feel they are a real bargain. These are rugged cameras that are made to last. The A1400 is a $99.00 camera, so it's not intended for heavy usage, plus the image quality of a DSLR (even entry level) is far better than the A1400. That would be my recommendation.
Steve M. -
My apple ID wont accept any cards as payment, so cant buy or update any apps, any help?
ive registered with a visa debit but it has stopped accepting it but then i tried to re-enter it, and then i tried a mastercard but that was no better
-
Hi,
I am unable to add my bank/card details in my apple account, every time i am getting a message that it has been declined. kindly help me in authorise my bank card in my apple account i need to purchase few apps, pls help meWhat sort of card are you trying to use ? If it's a debit card then I don't think that they are still accepted as a valid payment method - they are not listed on this page and there have been a number of posts recently about them being declined
If it's a credit card then is it registered to exactly the same name and address (including format and spacing etc) that you have on your iTunes account, it was issued by a bank in your country and you are currently in that country ? If it is then you could check with the card issuer to see if it's them that are declining it, and if not then try contacting iTunes support and see if they know why it's being declined : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Account Management -
I got home today and got a message on Messages or IMessage and the Messages app would not open i restarted my computer and it had a question mark as the icon for the app. Help!?!?! What does this meen how can i prevent further damage or fix damage delt
Is this what you see when you start up your MBP?
http://support.apple.com/kb/ts1440
Ciao. -
I have a problem with iPad2, apple logo appears but iPad won't boot up, then logo disappears & iPad dies - probably caused due to insufficient hard disk space (foolishly loaded up too many apps) - any help/advice greatly appreciated
What to Do When Your iPad Won't Turn On
http://ipad.about.com/od/iPad_Troubleshooting/ss/What-To-Do-When-Your-Ipad-Wo-No t-Turn-On.htm
iOS: Not responding or does not turn on
http://support.apple.com/kb/TS3281
iPad Frozen? How to Force Quit an App, Reset or Restart Your iPad
http://ipadacademy.com/2010/11/ipad-frozen-how-to-force-quit-an-app-reset-or-res tart-your-ipad
iPad: Basic troubleshooting
http://support.apple.com/kb/TS3274
Update and restore alert messages on iPhone, iPad, and iPod touch
http://www.buybuyla.com/tech/view/012953a0d412000e.shtml
iOS: Resolving update and restore alert messages
http://support.apple.com/kb/TS1275
iPad: Unable to update or restore
http://support.apple.com/kb/ht4097
Cheers, Tom -
My Ipad crashed, so I pressed both power and home button, now I have to restart my ipad on the itunes, but there are some important info I cannot loose... how can I save this info at this time? actually is some info the I saved in the "notes" app! help!!!
I Had it on my iPod, but I reset to factory settings and it got deleted :( If I find a way to get it back, I'll post it here so you can too.
-
I'm having trouble finding the HEALTH magazine app for my iPad. The mag insists that it has a free app. Help!!
What country are you in ? Is this the app : Health magazine ?
-
Macbook pro late 2011, completely messed up, a macbook pro of this year should not be operating like this, everything I click it brings up beachball very slow, blue ray and hd unwatchable as it jerks. genius bar app didnt help at all, very disappointed, can some1 help me?
You have a hardware problem. It is probably the hard drive is either to full, not enough free space, or it is starting to fail.
If you have an external drive connec that to the system and use the Recovery HD, Command + r keys at startup, to install a clean fresh copy of OS X Lion on the external then run the system from that. It will be slower but if you don't get the beachball then that is the sign your internal drive is on its way out or is filled up with files and not enough free space.
Maybe you are looking for
-
Pedido de Compra - Envio de e-mail para o fornecedor
Boa tarde pessoal Estou com uma dúvida sobre o processo para envio de e-mail do Pedido de Compra para o fornecedor. Hoje utilizamos o e-mail do último aprovador no Pedido de Compra para que seja enviado ao fornecedor. Existe alguma configuração para
-
Materialized view fast refresh raising error ORA-12031
Hi All, I have a table named TblA on A database. I have created mview name mviewTblA on database B. When I tried to Complete refresh on mviewTblA it is getting refresh but with fast refresh it is raising an error i.e ORA-12031: cannot use primary key
-
BAdI Change Display in Shopping Cart
Hi, Has anyone activated the functionality that allows you to change the display of the shopping cart? If yes, what can you actually alter with it and where did you find useful documentation? Jerry
-
Display transparent panel over JFrame
Hi I need to display a transparent panel (or even just a panel for that matter) on top of the other components in a JFrame, this would be like a notification box that can come and go away, but it should not be a JFrame, instead a floating JPanel. Bas
-
Deleting old and setting up new iCloud email address
I am trying to figure out how to delete an old .mac email address permanently, then initiate a new .me address. This used to be simple, ( maybe it still is? ), with MobileMe where you could just open those preferences and add or delete accounts. But