Obtaining Work Hours

I have a request from the boss to make a report that will require me to display how many hours something has been in a particular state. (As in status). Hard to explain. Anyway, I need to go to the table in the db, find all rows for a particular trouble ticket, find when they were put into one of our 7 statuses, when they were put into another status (this info is already in those rows), then determine how many hours they spent there in
each status.

So a ticket report will say that ticket 1000 spent 4 hours in customer research, 5 hrs in our company coding. 3 in our company testing, 4 in customer testing, etc.

The thing is, It has to assume an 8-5 workday, and leave out any hours which don't fall in between 8 am to 5 pm, and also rule out any weekends.

View Replies


ADVERTISEMENT

12 Hours Format Into 24 Hours

i'm importing a date ( 13/2/2005 1:20:22 PM) from SQL server
to informix.
The problem now is informix doesnt accept alphabet in datetime format,
so i plan to convert it before the date insert into informix db.
But the problem is i dont know any function that can convert the date time
from 12 hours format to 24 hours format.

View Replies View Related

Obtaining IP Address With ASP

In reference to an e-commerce website, is it possible (using Active Server Pages) to obtain the IP address of a particular user? I would like to get an address that uniquely identifies the user. If so, how would that be done?

View Replies View Related

Obtaining A Value From A Field

I'm trying to do a postcode lookup. I'd like to obtain the value of a text field in a form before submission than pass that value to another asp page (which does the processing then passes the values back) via a hyperlink. I don't want to submit the form as I have another button to do that later when the user has completed the form.

I assume I'd have to do this with a Javascript function but I have several problems, I don't seem to be able to get the value and I don't know how to put it into an asp variable to use in the hyperlink.

View Replies View Related

Obtaining Client Side IP

Is their a client side VBscript command that I can use to post the local IP
address of the machine back to my web server.

I want to obtain the client's side IP address of their machine. However
because my IIS stands behind a firewall and uses reverse hosting techniques,
the http headers contains the firewall's IP instead of the client's.

View Replies View Related

Obtaining User's XP Username

I am writing an ASP that writes info to a database. The application does not reqire the user to log in as it doesn't have any authentication process, but as part of the information I write to the database, I need to pass in the user's Windows XP username. I don't want to have to ask the user to enter their username, so is there a way of obtaing the user's XP logon username without them having to type it?

View Replies View Related

Obtaining Value Of Radio Button

I'm wondering how I go about obtaining the value of a radio button and a list box in a form for validation.

I have it right now as

optCust = Request.Form("customer") - Radio button
lstCountry = Request.Form("country").Item

And when I place them in my validation that gets passed to the address bar they do not store with the value they are given. Am I pulling them from the form wrong or is their a special way that it should be passed to the address bar of my redirect error page?

View Replies View Related

Number Into Hours

I need to convert number into hours..Example: 12.60 should be 13 hrs,etc.

My variables
Total = oRs0("Tot") + oRs1("Tot1")

View Replies View Related

Average Of The Hours

I need to get average of the hours after (start_date - end_date). *start_date and end_date is in format 'mm/dd/yyyy hh:mi:ss am' . Is there any function in oracle that i can use so that i can directly get the average of the hours in SQL statement?

View Replies View Related

Subtracting Hours From 'Now()'

How can I subtract hours from 'Now()'?

I can subtract a day, but that's by only having ONE integer...what do I do for hours? (i need this because our server uses EST and clients need their TimeZone)

View Replies View Related

Add Hours To The Current Time

how you convert an integer such as 5 into an hour string so the system identifies it as an hour instead of just the number 5 and then once you do that ("if you need to do that at all") add 5 hours to the current time...

Also is there a way way to add lets say 50 hours to our current time and date so when it is calculated it shows 2 days and 2 hours away from now... If you cant do that it would be nice to know how to change 7.85 into just 7... or 8.94 into just 8... no rounding up or down just the first number before the decimal.

View Replies View Related

Total Weekly Hours

I am using a select sum(tot_daily) as total hours ...it calculates the time incorretly...
Example:
ID | Tot_hrs | Person
----------------------
1 5.45 A
2 5.45 A
3 5.45 A

The total hours should be 17 hours 15 mins...but the result comes as 16.35.... Is there a way to calculate it as 17.15 in db level in a select statement

View Replies View Related

ASP DATE Between NOW And 24 HOURS Earlier.

How would I write in SQL or ASP the following?:

Count number of Database Records between NOW and 24 HOURS EARLIER? I know
how to retrieve recordsets etc - its just the date thing I cant grasp. I am
stuck getting the 24 hours earlier data capture.

View Replies View Related

Date, 12 & 24 Hours Clock Format

I have two Win2K machines. Both "appear" to have been set up identically.

They both reckon that they're using UK date format.

However, if I create the following ASP code:

<%
Response.Write Now
%>

One returns
16/01/2004 17:12:19

Which is what I want, whilst the other returns:

1/16/2004 5:15:21 PM

Here, the day and month have been transposed and the time appears in the 12 hour clock format.

View Replies View Related

If The DateDiff Is 24 Hours, Delete Record

I just need to know the DateDiff function for what I need to do...

I will store the date of the database record in a variable called 'sDate' what now? (Also, the format is xx/xx/xx 2:4:56 PM/AM)

View Replies View Related

Writing Code To Countdown Hours

I'm trying to write a script to countdown the number of hours and minutes until tomorrow. So far, this is what I have:

Code:
<%
response.write(dateDiff("h",now(),date+1)) & " hours and " & dateDiff("m",Time(),date+1) & " Minutes "
%>
The code above correctly displays the hours until tomorrow. but it's not displaying the minutes correctly. It's displaying the total minutes until tomorrow. If there at 4 hours left until tomorrow it's saying "4 Hours and 240 minutes."

I need it to display "4 hours and 0 minutes."

View Replies View Related

Years, Months, Days, Hours, Seconds

Been playing with the function DateDiff, and with it it's easy to calculate the difference in years/months/days between two dates. However, if i wanted to calculate the difference in Years, Months, Days, Hours, Seconds (a la Ebay bids) how can I do this? Is it easy or complicated?

View Replies View Related

Database Current Time -(minus) 3 Hours

Ive got some code on my site that shows how current the database is. Basically it looks at fixed text file that I am basing the database on, checks to see iwhen it was created, then displays the time.

My webserver must be on the East Coast and I am on the West Coast, so the time the stamped file time is 3 hours ahead. Code:

View Replies View Related

I Just Spent Several Hours Shaving A Total Of 250 Milliseconds Off My Application

building variable width/DB tables etc using getrows instead of movenext.
Performance is a major concern as this app requires SSL.

My question is, when does it become more about the challenge of building
faster apps vs. getting the job done??? If my calculations are correct, I
just added an extra 10,000+ possible hits within a 12 hour day or so.. an
extra 10,000 hits???!!! What percentage of applications do you think will
ever see this kind of traffic?

Is this insane? If this app ever gets maxed out, will my end users ever
realistically notice a difference?

View Replies View Related

CDO Error "Failure In Obtaining User Token." (Error '8004020F')

I'm having a bit of trouble with an ASP form that I'm maintaining. Someone else wrote it and I'm new to CDO objects. I have a CDO.Message and a CDO.Configuration.

I set up the configuraton fields for the port and smtp server's ip address to be used. The configuration property of the message is set to be the new configuration object.

Then there's a ton of stuff appending bits and pieces to the text body.

Finally we have the message's Send method being called. That's where it breaks.

It seemed to just stop working one day. When I submit the form, the message returned is simply:

error '8004020f'

I know from the MSDN website that this error code means 'Failure in obtaining user token.' What I don't know is how to fix it!

View Replies View Related

Asp Does Not Work

i use a IIS 5.1 with win XP with the newest updates etc.
its possible to start aspx and html files but not asp files
what could it be ? what can i check ?

View Replies View Related

Can It Work Like A CGI?

Can a ASP work like a CGI.(Email Scripts) ? Can a ASP script for email will work, if a Script is on 1 server and form(html.form) is on another server and a thank you page is on 3rd server. Like if u don't know about a CGI there are many websites who give you permission to use their script by editing little bit in yours form and place them on yours server website, there are number of site.

And 1 more thing I want to ask is if some one use a windows server he have a form html on that server, can he run asp script which is on Linux server to get form result on his desired email id.

View Replies View Related

OnAfterPrint Cannot Work

cannot using onAfterPrint in IE 6.0, the page can print but cannot close.
Why??

my code like as below

<body
:
<script language="javascript" type="text/javascript">
<!--
window.print();
//-->
</script>
</body>

View Replies View Related

I Cannot Get This Inner Join To Work In Asp

<!--#Include Virtual="/bug/adovbs.inc"-->

<title>Bug Status Board</title>

<%
Dim conn
Set conn = Server.CreateObject("ADODB.Connection")
conn.Open "Provider=SQLOLEDB; Data Source = (local); Initial Catalog =
techsupportBT; User Id = sa; Password="
Set rs = server.CreateObject("ADODB.Recordset")
sSQL="SELECT T.BugIndex, T.[Date Entered], T.DESCRIPTION,"
sSQL= ssql &" T.Company, T.Technician, T.Developer, T.PROGRAM, "
sSQL= ssql &" T.Status, T.PRIORITY, T.[Version Fix], n.noc"
sSQL= ssql &"FROM TSHIGHISSUES INNER JOIN noc ON T.BugIndex =
n.bugindex "
set rs=conn.Execute(ssql)

and this is the error message that I get Error Type:

Microsoft OLE DB Provider for SQL Server (0x80040E14)
Incorrect syntax near the keyword 'INNER'

I cannot find an example anywhere that helps with this situation. This works fine in SQL, but for some reason asp is being a pain.

View Replies View Related

Can't Get CDO Mail To Work

I copied ASP/VBScript code from several sources and adapted it to my page and variables. Here is my current code for implementing CDO:

View Replies View Related

Why Sub Procedure Does Not Work

I am trying to construct a sub procedure that concects to db , executes a stored procedure and returns a recordset. Connection to db and executing the stored procedure works fine.

The problem is that when I call the sub in the asp page to be executed the recordset is refused to be returned from the sub and the recordset itself does not appear to be constructed. or in another words the error displayed is: 'object required' --> refering to my recordset --> 'rs'

I do not know why, can any one tell me the reason, I tried much but with no result.
NOTE: For testing puropses I looped through the recordset isnide the sub itself and it worked fine Code:

View Replies View Related

Global.asa How Does It Work?

Is there somebody who can explain to me how I can use a Global.asa to store Functions and Variables in it? I understand that there are 4 events that can be used in a global.asa : Application_OnStart, Application_OnEnd, Session_OnStart, Session_OnEnd

But still i don't get how i can CALL functions of variables. Because with those 4 things they start all in the beginning or in the end of a session or application.

For example i use an encrypt function in different pages, can i just put it in de global.asa and call it when i need it?

View Replies View Related

ASP Not Work In W2003

I've just moved all asp file from IIS4/5 to IIS6(2003), but they don't work.It there any trick?

View Replies View Related

Work Week

I need to provide a pulldown with work weeks displayed.Is there any easy way to do this?

I would like to go 6 months from the current date and show a week as Oct. 11- 15.Which is Monday to Friday.

View Replies View Related

Validation Does Not Work

I have an asp page. In this there is a form when submit it have to chech if the fields are not emtpy.When it not empty it wil insert into a database an a mail.If a field is empty it send it anyway, it doens't do the validation. Here is a part of my code:Code:

<% if request("action") = "Verzenden" then
datum = request("dtmmeldinghelp")
if datum <>"" then
'I have tried also: if len(datum) <0 then
response.Write("<html>" & "<body>" & "Fout" & "</body>" & "</html>")
else
' here come my sql insert to code and the code for email
' this works fine
%>

View Replies View Related

Aspfunction Does Not Work

i built this test program:

<HTML>
<HEAD><TITLE>Test</TITLE></HEAD>
<BODY>
the time is <% = Time %>
</BODY>
</HTML>


It does not show the time! very basic probably but not for me.

View Replies View Related

Button Won't Work

I am trying to add a button to a menu which it's action is conditioned by a session variable. The button shows up fine but I get no action from the button being clicked . The variable does have a valid value. If anyone can help me out with this it would be greatly appreciated. The code follows:

<input TYPE="submit" NAME="Button1" VALUE="Quote Generator">

<SCRIPT LANGUAGE="VBScript" FOR="Button1" EVENT="onClick">
If Session("RVQuoteAuthority") = "Y" then
Response.Redirect(Quote.asp)
else
MsgBox "No Authority"
End If
</SCRIPT>

View Replies View Related

How CDONTS Work ??

Talking about the cdonts objects.. i want to send the email in windows xp..
i downloaded cdonts.dll and registered it.. but still i am not able to send
the mail.. is it so that i need to set the settings in the Virtual SMTP server
in IIS ?

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved