Urgent - Need help on Coding in Forms
I created a Master/Detail form. I now wish to create a field to display the sum total of a Detail field.
I wrote a loop in a Program Unit which has the count upto last_record (Restricted Built-in) but cannot use this call from a Post Query due to Forms' limitation of not using a Restricted Built-in/Procedure in a Pre/Post trigger.
I also cannot use the call to the Program Unit in a Key-ExeQry trigger as Oracle Apps. has the Ctrl+F11 key for Execute Query. Since the form is built for query purpose for now, I wish to display the totals upon Execute Query.
Where can I make the call for this Program Unit or what code do I need to write and where in order to display the total upon Execute Query.
Any help would be greatly appreciated.
hi,
sorry to hurt you. Sometimes you can solve a problem in forms without writing any code
create a field with number datatype
in the property pallette
calculation mode = summary
summary function = sum
summarized field = <name of the field of which you want a sum>
Set the block level property
Query all records = yes
now ctrl + r
F8
HTH
vinayak
(if you want the test form that i created for you you can mail me)
null
Similar Messages
-
Hello,
I am new in writing HTML code. I need help to align my Form
and it's text.
Please view my code and please show me how to align all the
square boxes (the square box is where the user type the text
input). Currently I have 2 boxes but they are not aligned. The
below is my code:
<FORM name="input" method="get" >
PROJECTROOT: <INPUT TYPE=TEXT SIZE=50 NAME=proj_root>
<br>
FRONTEND: <INPUT TYPE=TEXT SIZE=50 NAME=frontend>
<br>>
<BR>
<INPUT TYPE=SUBMIT VALUE=Submit onclick="save()">
<BR>
</FORM>
Would you please help.
Thank you very much
Goober35<form name="input" method="get" action=""> <!-- ARE
YOU SURE YOU NEED "GET"
and not "POST"? -->
<table cellspacing="0" cellpadding="0" border="0"
width="300">
<tr>
<td><label for="proj_root">PROJECTROOT:
</label></td>
<td><input type="text" size="50" name="proj_root"
id="proj_root"></td>
</tr>
<tr>
<td><label for="frontend">FRONTEND:
</label></td>
<td><input type="text" size="50" name="frontend"
id="frontend"></td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit"
name="submit"
id="submit" value="Submit" onclick="save()"></td>
</tr>
</table>
</form>
(your form needs an action attribute value)
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"goober35" <[email protected]> wrote in
message
news:gcjmlh$p42$[email protected]..
> Hello,
> I am new in writing HTML code. I need help to align my
Form and it's text.
> Please view my code and please show me how to align all
the square boxes
> (the
> square box is where the user type the text input).
Currently I have 2
> boxes but
> they are not aligned. The below is my code:
>
> <FORM name="input" method="get" >
> PROJECTROOT: <INPUT TYPE=TEXT SIZE=50
NAME=proj_root> <br>
> FRONTEND: <INPUT TYPE=TEXT SIZE=50 NAME=frontend>
<br>>
> <BR>
> <INPUT TYPE=SUBMIT VALUE=Submit onclick="save()">
<BR>
>
> </FORM>
>
>
> Would you please help.
>
> Thank you very much
> Goober35
>
>
> <FORM name="input" method="get" >
> PROJECTROOT: <INPUT TYPE=TEXT SIZE=50
NAME=proj_root> <br>
> FRONTEND: <INPUT TYPE=TEXT SIZE=50 NAME=frontend>
<br>>
> <BR>
> <INPUT TYPE=SUBMIT VALUE=Submit onclick="save()">
<BR>
>
> </FORM>
> -
Hi Everybody,
I'm having a Struts application that uses DynaValidatorForm for performing Validations.
The basic flow is like this -> I've got a home page, then a login page (action -> register.do) & a third page (action -> authenticate.do) which is displayed after authenticating the user.
I'm trying to re-direct the user to the home page once he directly accesses /authenticate.do
For this, in the Action class of /register, I'd defined a session attribute & set a value to it.
Then, in the Action class of /authenticate, I'm checking for the session attribute. If not present, I'm re-directing the user to home page.........
The problem that I'm facing is that when I directly access /authenticate.do, the application is not getting re-directed & instead, it is displaying error messages that User name & password (the 2 fields present in my login page) are required..........
The <action> tag of /authenticate.do has got validate="true" & hence it seems that validation occurs before re-directing....
Therefore, can someone tell me why is the application not posting the form to Action class of /authenticate........
Thanx in advance.....
Regards,
Sasidharan N<form name="input" method="get" action=""> <!-- ARE
YOU SURE YOU NEED "GET"
and not "POST"? -->
<table cellspacing="0" cellpadding="0" border="0"
width="300">
<tr>
<td><label for="proj_root">PROJECTROOT:
</label></td>
<td><input type="text" size="50" name="proj_root"
id="proj_root"></td>
</tr>
<tr>
<td><label for="frontend">FRONTEND:
</label></td>
<td><input type="text" size="50" name="frontend"
id="frontend"></td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit"
name="submit"
id="submit" value="Submit" onclick="save()"></td>
</tr>
</table>
</form>
(your form needs an action attribute value)
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"goober35" <[email protected]> wrote in
message
news:gcjmlh$p42$[email protected]..
> Hello,
> I am new in writing HTML code. I need help to align my
Form and it's text.
> Please view my code and please show me how to align all
the square boxes
> (the
> square box is where the user type the text input).
Currently I have 2
> boxes but
> they are not aligned. The below is my code:
>
> <FORM name="input" method="get" >
> PROJECTROOT: <INPUT TYPE=TEXT SIZE=50
NAME=proj_root> <br>
> FRONTEND: <INPUT TYPE=TEXT SIZE=50 NAME=frontend>
<br>>
> <BR>
> <INPUT TYPE=SUBMIT VALUE=Submit onclick="save()">
<BR>
>
> </FORM>
>
>
> Would you please help.
>
> Thank you very much
> Goober35
>
>
> <FORM name="input" method="get" >
> PROJECTROOT: <INPUT TYPE=TEXT SIZE=50
NAME=proj_root> <br>
> FRONTEND: <INPUT TYPE=TEXT SIZE=50 NAME=frontend>
<br>>
> <BR>
> <INPUT TYPE=SUBMIT VALUE=Submit onclick="save()">
<BR>
>
> </FORM>
> -
Hi!!
I urgently need help with this:
When I compile this in Flex Builder 3 it says: The element type 'mx:Application' must be terminated by the matching end-tag '</mx:Application>'.
but I have this end tag in my file, but when I try to switch from source view to desgin view it says, that: >/mx:Script> expected to terminate element at line 71, this is right at the end of the .mxml file. I have actionscript(.as) file for scripting data.
This is the mxml code to terminate apllication tag which I did as you can see:
MXML code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" backgroundGradientAlphas="[1.0, 1.0]" backgroundGradientColors="[#007200, #000200]" width="1024" height="768" applicationComplete="popolni_vse()">
<mx:HTTPService id="bazaMME" url="lokalnabaza/baza_MME_svn.xml" showBusyCursor="true" resultFormat="e4x"/>
<mx:Script source="dajzaj.as"/>
<mx:states>
<mx:State name="Galerije">
<mx:SetProperty target="{panel1}" name="title" value="Galerije MME"/>
<mx:SetProperty target="{panel2}" name="title" value="opis slik"/>
<mx:SetProperty target="{panel3}" name="title" value="Opis Galerije"/>
<mx:AddChild relativeTo="{panel1}" position="lastChild">
<mx:HorizontalList x="0" y="22" width="713.09863" height="157.39436" id="ListaslikGalerije"></mx:HorizontalList>
</mx:AddChild>
<mx:SetProperty target="{text1}" name="text" value="MME opisi galerij "/>
<mx:AddChild relativeTo="{panel1}" position="lastChild">
<mx:Label x="217" y="346" text="labela za test" id="izbr"/>
</mx:AddChild>
<mx:SetProperty target="{label1}" name="text" value="26. November 2009@08:06"/>
<mx:SetProperty target="{label1}" name="x" value="845"/>
<mx:SetProperty target="{label1}" name="width" value="169"/>
<mx:SetProperty target="{Gale}" name="text" value="plac za Galerije"/>
</mx:State>
<mx:State name="Projekti"/>
</mx:states>
<mx:MenuBar id="MMEMenu" labelField="@label" showRoot="true" fillAlphas="[1.0, 1.0]" fillColors="[#043D01, #000000]" color="#9EE499" x="8" y="24"
itemClick="dajVsebino(event)" width="1006.1268" height="21.90141">
<mx:XMLList id="MMEmenuModel">
<menuitem label="O nas">
<menuitem label="reference podjetja" name="refMME" type="check" groupName="one"/>
<menuitem label="reference direktor" name="refdir" type="check" groupName="one"/>
<menuitem label="Kontakt" name="podatMME" groupName="one" />
<menuitem label="Kje smo" name="lokaMME" type="check" groupName="one" />
</menuitem>
<menuitem type="separator"/>
<menuitem label="Galerija">
<menuitem label="Slovenija" name="galSvn" type="check" groupName="one"/>
<menuitem label="Nemčija" name="galDeu" type="check" groupName="one" />
</menuitem>
<menuitem type="separator"/>
<menuitem label="projekti">
<menuitem label="Slovenija" name="projSvn" type="check" groupName="one"/>
<menuitem label="Nemčija" name="projDeu" type="check" groupName="one" />
<menuitem label="Madžarska" name="projHun" type="check" groupName="one"/>
</menuitem>
</mx:XMLList>
</mx:MenuBar>
<mx:Label x="845" y="10" text="25. November 2009@08:21" color="#FFFFFF" width="169" height="18.02817" id="label1"/>
<mx:Label x="746" y="10" text="zadnja posodobitev:" color="#FFFFFF"/>
<mx:Panel x="9" y="57" width="743.02814" height="688.4507" layout="absolute" title="Plac za Vsebino" id="panel1">
<mx:Text x="0" y="-0.1" text="MME vsebina" width="722.95776" height="648.4507" id="Gale"/>
</mx:Panel>
<mx:Label x="197.25" y="748.45" color="#FFFFFF" text="Copyright © 2009 MME d.o.o." fontSize="12" width="228.73239" height="20"/>
<mx:Label x="463.35" y="748.45" text="izdelava spletnih strani: FACTUM d.o.o." color="#FBFDFD" fontSize="12" width="287.60565" height="20"/>
<mx:Panel x="759" y="53" width="250" height="705.07043" layout="absolute" title="Plac za hitre novice" id="panel3">
<mx:Text x="0" y="0" text="MME novice" width="230" height="665.07043" id="text1"/>
<mx:Panel x="-10" y="325.35" width="250" height="336.61972" layout="absolute" title="začasna panela" color="#000203" themeColor="#4BA247" cornerRadius="10" backgroundColor="#4B9539" id="panel2">
<mx:Label x="145" y="53" text="vrednost" id="spremmen"/>
<mx:Label x="125" y="78" text="Label"/>
<mx:Label x="125" y="103" text="Label"/>
<mx:Label x="0" y="53" text="spremenljivka iz Menuja:"/>
<mx:Label x="45" y="78" text="Label"/>
<mx:Label x="45" y="103" text="Label"/>
</mx:Panel>
</mx:Panel>
<mx:Label x="9.9" y="10" text="plac za naslov MME vsebine" id="MMEnaslov" color="#040000"/>
</mx:states></mx:Application>I know it's been a while but… did you fix this?
It looks to me like you are terminating the <mx:Application> tag at the top. The opening tag should end like this: resultFormat="e4x">, not resultFormat="e4x"/> (Remove the /).
Carlos -
Urgently need help for parsing IP header
Hi, could anyone tell which class I should use to parsing the IP header of a packet?
Thanks many many times!> Hi, could anyone tell which class I should use to
parsing the IP header of a packet?
DatagramPacket?
> Urgently need help for parsing IP header
Don't flag your question as urgent, even if it is for you.
* We all answer questions here voluntarily, in our leisure time. We do that because doing so is fun for us, because we enjoy helping people and having interesting discussions. Guess what, it is much less fun if it gets stressful. So the last thing you want to do to get us to answer your question is to pass your stress over to us.
* People who are stressed and want a fast answer often don't even find the time to do the necessary research or to formulate their question in an easy to comprehend way. That's even less fun to work with. So you really don't want us to feel your stress. Instead you want to take your time to write a well formulated post that is fun to answer. The less likely it is for us to know that your question is urgent, the more likely you are to get a fast answer!
* The simple notion that you want your post to be answered faster than those of the other members might feel rather unfair to some of us. Doubly so because often "urgent" questions actually are homework questions. Yours might be different, but someone who had bad experiences with this type of question might not read far enough to notice. -
Need help in formating a form dealing with negative currency
Need Help!!!
Creating forms in Adobe acrobat Pro I could format a number cell to calculate additions/subtractions of currency. If the result was negative I could get the cell to show the negative result in red text and show parentheses around them. How can I do that in LiveCycle?
If i have to use formcalc - what would i type in?In LiveCycle can be done using the Numeric Field object and some formcalc script.
Use the "Numeric Field" from the Object Library. For the Field patterns (Select the placed numeric field, On object Window Object -> Field) use "num.currency{}" to show the currency(Ex: $) and "parentheses" if its negative. Write some script to show red text/border in red .
On exit event of the Numeric Field here is the script:
if($.rawValue <0) then $.font.fill.color.value = "255,0,0" endif // This will make entire text in red color if the value is negative.
if($.rawValue <0) then $.validate.nullTest = "error" endif //This will make border of the field in red color if the value is negative.
Hope this helps. -
Need Help - JVM error in Forms 10g in Debug mode
Hello,
This issue has bothered me since I started coding in Forms. If I use an Associative Array with a VARCHAR2 index type, whenever I try to look at the contents of the array, a small JVM aborting messagebox appears with OK as the only option. Once I click OK, I get a Forms error saying it has lost connection with the server. This ONLY happens if I'm trying to look at the contents of the array when it has data. I can see the variable in the debug console just fine when it doesn't have data, but once one value is populated, the JVM aborting message pops up. Another weird caveat is the JVM error will only occur IF you have a debug window open which would display the contents of this array. I can still use arrays of this type IF I don't try and look at the contents in the debugger.
Here is a quick test case. I just have a simple form with one push button. The following code is in the WHEN-BUTTON-PRESSED trigger:
DECLARE
TYPE COLUMN_ARRAY IS TABLE OF VARCHAR2(4000) INDEX BY VARCHAR2(50);
testArray COLUMN_ARRAY;
BEGIN
testArray('col1') := 'value1'; -- break point here
testArray('col2') := 'value2';
testArray('col3') := 'value3';
END;
Put a breakpoint on the first statement and debug it. If you have the local variables debug window up, the JVM aborting error will appear when you step over the first line. We have submitted a metalink bug report about 3 months ago but never heard anything back. I wanted to post something here incase anyone else has encountered this error and might know how to fix it.
Here are some details of the environment we are using.
Forms [32 Bit] Version 10.1.2.3.0 (Production)
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Oracle Toolkit Version 10.1.2.0.2 (Production)
PL/SQL Version 10.1.0.5.0 (Production)
Oracle Procedure Builder V10.1.2.3.0 - Production
PL/SQL Editor (c) WinMain Software (www.winmain.com), v1.0 (Production)
Oracle Query Builder 10.1.2.3.0 - Production
Oracle Virtual Graphics System Version 10.1.2.0.2 (Production)
Oracle Tools GUI Utilities Version 10.1.2.0.2 (Production)
Oracle Multimedia Version 10.1.2.0.2 (Production)
Oracle Tools Integration Version 10.1.2.0.2 (Production)
Oracle Tools Common Area Version 10.1.2.0.2
Oracle CORE 10.1.0.5.0 Production
There was also a log file that was created on the error. Here are the contents:
# An unexpected error has been detected by Java Runtime Environment:
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x603c0f7b, pid=4184, tid=5384
# Java VM: Java HotSpot(TM) Client VM (11.3-b02 interpreted mode, sharing windows-x86)
# Problematic frame:
# C [orageneric10.dll+0xc0f7b]
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
--------------- T H R E A D ---------------
Current thread (0x010b7400): JavaThread "main" [_thread_in_native, id=5384, stack(0x00030000,0x00130000)]
siginfo: ExceptionCode=0xc0000005, reading address 0x0000000c
Registers:
EAX=0x00000000, EBX=0x00000000, ECX=0x77c421e7, EDX=0x00000001
ESP=0x0012ba60, EBP=0x0012bb60, ESI=0x00c8a47c, EDI=0x00000000
EIP=0x603c0f7b, EFLAGS=0x00210212
Top of Stack: (sp=0x0012ba60)
0x0012ba60: 00000000 0369d8ac 037f6c00 037f6c00
0x0012ba70: 037f6c00 003b65a8 6d9335ec 00000000
0x0012ba80: 00000018 0369d8ac 6d8b83bc 2b193da8
0x0012ba90: 0369d8ac 00000018 6d96abbe 0369d8ac
0x0012baa0: 6d91ad4e 6d97c34f 037f6c00 0369d8a8
0x0012bab0: 0369d8b0 6d97d636 270aba00 00000000
0x0012bac0: 037f6c00 0369d8a8 6d96e711 0369d8b0
0x0012bad0: 037f6c00 0000000a 0369d898 00000010
Instructions: (pc=0x603c0f7b)
0x603c0f6b: 90 55 8b ec 81 ec fc 00 00 00 ff 75 0c 8b 45 08
0x603c0f7b: 8b 50 0c 8b 48 10 89 95 04 ff ff ff 8b 50 14 89
Stack: [0x00030000,0x00130000], sp=0x0012ba60, free space=1006k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [orageneric10.dll+0xc0f7b]
C [oraclient10.dll+0x45fa9]
C [orageneric10.dll+0x2b21d]
C [DEB.dll+0xea2b]
C [DEB.dll+0xcd54]
j oracle.opb.debugger.impl.DbgServer.nGetPackageValues(JJ)[B+0
j oracle.opb.debugger.impl.DbgServer.getPackageValues(IJ)V+5
j oracle.opb.debugger.impl.DbgPacketProcessor.processCommand(Loracle/opb/net/CommandPacket;)Z+624
j oracle.opb.debugger.impl.DbgPacketProcessor.processPacket(Z)Z+30
j oracle.opb.debugger.impl.DbgPacketProcessor.processPacketsUntilRun()V+2
j oracle.opb.debugger.impl.DbgServer.suspended()V+22
v ~StubRoutines::call_stub
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j oracle.opb.debugger.impl.DbgServer.nGetPackageValues(JJ)[B+0
j oracle.opb.debugger.impl.DbgServer.getPackageValues(IJ)V+5
j oracle.opb.debugger.impl.DbgPacketProcessor.processCommand(Loracle/opb/net/CommandPacket;)Z+624
j oracle.opb.debugger.impl.DbgPacketProcessor.processPacket(Z)Z+30
j oracle.opb.debugger.impl.DbgPacketProcessor.processPacketsUntilRun()V+2
j oracle.opb.debugger.impl.DbgServer.suspended()V+22
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x03c28400 JavaThread "Packet Receiver[oracle.opb.net.PacketTransceiver@61de33]" [_thread_in_native, id=5424, stack(0x03da0000,0x03ea0000)]
0x03c27000 JavaThread "Packet Sender[oracle.opb.net.PacketTransceiver@61de33]" [_thread_blocked, id=1660, stack(0x03ca0000,0x03da0000)]
0x0325ec00 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=3432, stack(0x03880000,0x03980000)]
0x03258800 JavaThread "CompilerThread0" daemon [_thread_blocked, id=6132, stack(0x03760000,0x03860000)]
0x03257400 JavaThread "Attach Listener" daemon [_thread_blocked, id=4244, stack(0x03660000,0x03760000)]
0x03253400 JavaThread "Finalizer" daemon [_thread_blocked, id=4212, stack(0x03550000,0x03650000)]
0x0324ec00 JavaThread "Reference Handler" daemon [_thread_blocked, id=6056, stack(0x03440000,0x03540000)]
=>0x010b7400 JavaThread "main" [_thread_in_native, id=5384, stack(0x00030000,0x00130000)]
Other Threads:
0x0324d000 VMThread [stack: 0x03330000,0x03430000] [id=3540]
0x03260400 WatcherThread [stack: 0x03980000,0x03a80000] [id=5840]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
def new generation total 960K, used 538K [0x22990000, 0x22a90000, 0x22e70000)
eden space 896K, 52% used [0x22990000, 0x22a06b08, 0x22a70000)
from space 64K, 100% used [0x22a80000, 0x22a90000, 0x22a90000)
to space 64K, 0% used [0x22a70000, 0x22a70000, 0x22a80000)
tenured generation total 4096K, used 109K [0x22e70000, 0x23270000, 0x26990000)
the space 4096K, 2% used [0x22e70000, 0x22e8b660, 0x22e8b800, 0x23270000)
compacting perm gen total 12288K, used 82K [0x26990000, 0x27590000, 0x2a990000)
the space 12288K, 0% used [0x26990000, 0x269a48c0, 0x269a4a00, 0x27590000)
ro space 8192K, 67% used [0x2a990000, 0x2aef7ea8, 0x2aef8000, 0x2b190000)
rw space 12288K, 53% used [0x2b190000, 0x2b805530, 0x2b805600, 0x2bd90000)
Dynamic libraries:
0x00400000 - 0x00410000 C:\Oracle\Ora10gRep\bin\frmweb.exe
0x7c900000 - 0x7c9b2000 C:\WINNT\system32\ntdll.dll
0x7c800000 - 0x7c8f6000 C:\WINNT\system32\kernel32.dll
0x608d0000 - 0x60963000 C:\Oracle\Ora10gRep\bin\oranls10.dll
0x60730000 - 0x607dc000 C:\Oracle\Ora10gRep\bin\oracore10.dll
0x60c40000 - 0x60c47000 C:\Oracle\Ora10gRep\bin\orauts.dll
0x71ab0000 - 0x71ac7000 C:\WINNT\system32\WS2_32.dll
0x77dd0000 - 0x77e6b000 C:\WINNT\system32\ADVAPI32.dll
0x77e70000 - 0x77f02000 C:\WINNT\system32\RPCRT4.dll
0x77fe0000 - 0x77ff1000 C:\WINNT\system32\Secur32.dll
0x77c10000 - 0x77c68000 C:\WINNT\system32\msvcrt.dll
0x71aa0000 - 0x71aa8000 C:\WINNT\system32\WS2HELP.dll
0x76b40000 - 0x76b6d000 C:\WINNT\system32\WINMM.dll
0x77f10000 - 0x77f59000 C:\WINNT\system32\GDI32.dll
0x7e410000 - 0x7e4a1000 C:\WINNT\system32\USER32.dll
0x62b40000 - 0x62b53000 C:\Oracle\Ora10gRep\bin\oraunls10.dll
0x774e0000 - 0x7761d000 C:\WINNT\system32\ole32.dll
0x66220000 - 0x6623c000 C:\Oracle\Ora10gRep\bin\nn.dll
0x64ce0000 - 0x64dbd000 C:\Oracle\Ora10gRep\bin\UIW.dll
0x64ca0000 - 0x64cb1000 C:\Oracle\Ora10gRep\bin\UTL.dll
0x64cd0000 - 0x64cd7000 C:\Oracle\Ora10gRep\bin\UTC.dll
0x64cc0000 - 0x64cc9000 C:\Oracle\Ora10gRep\bin\UTJ.dll
0x64f10000 - 0x64f21000 C:\Oracle\Ora10gRep\bin\UIIM.dll
0x73000000 - 0x73026000 C:\WINNT\system32\WINSPOOL.DRV
0x5d090000 - 0x5d12a000 C:\WINNT\system32\COMCTL32.dll
0x64ed0000 - 0x64ef6000 C:\Oracle\Ora10gRep\bin\UIOLE.dll
0x763b0000 - 0x763f9000 C:\WINNT\system32\comdlg32.dll
0x7c9c0000 - 0x7d1d7000 C:\WINNT\system32\SHELL32.dll
0x77f60000 - 0x77fd6000 C:\WINNT\system32\SHLWAPI.dll
0x663d0000 - 0x66414000 C:\Oracle\Ora10gRep\bin\CA.dll
0x66340000 - 0x6636a000 C:\Oracle\Ora10gRep\bin\mmc.dll
0x616b0000 - 0x61893000 C:\Oracle\Ora10gRep\bin\oraclient10.dll
0x62b60000 - 0x62b66000 C:\Oracle\Ora10gRep\bin\oravsn10.dll
0x60d30000 - 0x60de8000 C:\Oracle\Ora10gRep\bin\oracommon10.dll
0x60300000 - 0x6071c000 C:\Oracle\Ora10gRep\bin\orageneric10.dll
0x629c0000 - 0x629d2000 C:\Oracle\Ora10gRep\bin\orasnls10.dll
0x62b80000 - 0x62c86000 C:\Oracle\Ora10gRep\bin\oraxml10.dll
0x00330000 - 0x00341000 C:\WINNT\system32\MSVCIRT.dll
0x607e0000 - 0x608cc000 C:\Oracle\Ora10gRep\bin\oran10.dll
0x62000000 - 0x6202c000 C:\Oracle\Ora10gRep\bin\oranl10.dll
0x62030000 - 0x62042000 C:\Oracle\Ora10gRep\bin\oranldap10.dll
0x62090000 - 0x62184000 C:\Oracle\Ora10gRep\bin\orannzsbb10.dll
0x61e10000 - 0x61e52000 C:\Oracle\Ora10gRep\bin\oraldapclnt10.dll
0x61f30000 - 0x61f47000 C:\Oracle\Ora10gRep\bin\orancrypt10.dll
0x71ad0000 - 0x71ad9000 C:\WINNT\system32\WSOCK32.dll
0x76d60000 - 0x76d79000 C:\WINNT\system32\iphlpapi.dll
0x77120000 - 0x771ab000 C:\WINNT\system32\OLEAUT32.dll
0x621a0000 - 0x621d7000 C:\Oracle\Ora10gRep\bin\oranro10.dll
0x621f0000 - 0x621fc000 C:\Oracle\Ora10gRep\bin\orantcp10.dll
0x61f70000 - 0x61f76000 C:\Oracle\Ora10gRep\bin\oranhost10.dll
0x61f20000 - 0x61f26000 C:\Oracle\Ora10gRep\bin\orancds10.dll
0x62210000 - 0x62216000 C:\Oracle\Ora10gRep\bin\orantns10.dll
0x60970000 - 0x60c31000 C:\Oracle\Ora10gRep\bin\orapls10.dll
0x62500000 - 0x62507000 C:\Oracle\Ora10gRep\bin\oraslax10.dll
0x627b0000 - 0x628b3000 C:\Oracle\Ora10gRep\bin\oraplp10.dll
0x618b0000 - 0x61906000 C:\Oracle\Ora10gRep\bin\orahasgen10.dll
0x622b0000 - 0x622e6000 C:\Oracle\Ora10gRep\bin\oraocr10.dll
0x622f0000 - 0x62315000 C:\Oracle\Ora10gRep\bin\oraocrb10.dll
0x5b860000 - 0x5b8b5000 C:\WINNT\system32\NETAPI32.dll
0x76bf0000 - 0x76bfb000 C:\WINNT\system32\PSAPI.DLL
0x62a80000 - 0x62af6000 C:\Oracle\Ora10gRep\bin\orasql10.dll
0x66450000 - 0x66538000 C:\Oracle\Ora10gRep\bin\frmw.dll
0x00410000 - 0x004d4000 C:\Oracle\Ora10gRep\bin\frmwcm.dll
0x662f0000 - 0x66320000 C:\Oracle\Ora10gRep\bin\mmi.dll
0x64e30000 - 0x64e93000 C:\Oracle\Ora10gRep\bin\UIREM.dll
0x659a0000 - 0x659ee000 C:\Oracle\Ora10gRep\bin\ROS.dll
0x64ad0000 - 0x64c05000 C:\Oracle\Ora10gRep\bin\VGS.dll
0x66250000 - 0x6627e000 C:\Oracle\Ora10gRep\bin\mmw.dll
0x662a0000 - 0x662b0000 C:\Oracle\Ora10gRep\bin\mmv.dll
0x73b50000 - 0x73b67000 C:\WINNT\system32\AVIFIL32.dll
0x77be0000 - 0x77bf5000 C:\WINNT\system32\MSACM32.dll
0x75a70000 - 0x75a91000 C:\WINNT\system32\MSVFW32.dll
0x662c0000 - 0x662df000 C:\Oracle\Ora10gRep\bin\mms.dll
0x66690000 - 0x6680f000 C:\Oracle\Ora10gRep\bin\DEB.dll
0x627a0000 - 0x627af000 C:\Oracle\Ora10gRep\bin\oraplc10.dll
0x66380000 - 0x66389000 C:\Oracle\Ora10gRep\bin\mma.dll
0x64ff0000 - 0x65003000 C:\Oracle\Ora10gRep\bin\UAT.dll
0x64f70000 - 0x64f94000 C:\Oracle\Ora10gRep\bin\UIA.dll
0x64f30000 - 0x64f45000 C:\Oracle\Ora10gRep\bin\UIDC.dll
0x76390000 - 0x763ad000 C:\WINNT\system32\IMM32.DLL
0x773d0000 - 0x774d3000 C:\WINNT\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.5512_x-ww_35d4ce83\comctl32.dll
0x74720000 - 0x7476c000 C:\WINNT\system32\MSCTF.dll
0x755c0000 - 0x755ee000 C:\WINNT\system32\msctfime.ime
0x71a50000 - 0x71a8f000 C:\WINNT\System32\mswsock.dll
0x76f20000 - 0x76f47000 C:\WINNT\system32\DNSAPI.dll
0x76fb0000 - 0x76fb8000 C:\WINNT\System32\winrnr.dll
0x76f60000 - 0x76f8c000 C:\WINNT\system32\WLDAP32.dll
0x00d30000 - 0x00d88000 C:\WINNT\system32\hnetcfg.dll
0x71a90000 - 0x71a98000 C:\WINNT\System32\wshtcpip.dll
0x76fc0000 - 0x76fc6000 C:\WINNT\system32\rasadhlp.dll
0x6d8b0000 - 0x6db06000 C:\Oracle\Ora10gRep\jdk\jre\bin\client\jvm.dll
0x7c340000 - 0x7c396000 C:\WINNT\system32\MSVCR71.dll
0x6d340000 - 0x6d348000 C:\Oracle\Ora10gRep\jdk\jre\bin\hpi.dll
0x6d860000 - 0x6d86c000 C:\Oracle\Ora10gRep\jdk\jre\bin\verify.dll
0x6d3e0000 - 0x6d3ff000 C:\Oracle\Ora10gRep\jdk\jre\bin\java.dll
0x6d8a0000 - 0x6d8af000 C:\Oracle\Ora10gRep\jdk\jre\bin\zip.dll
0x6d6c0000 - 0x6d6d3000 C:\oracle\Ora10gRep\jdk\jre\bin\net.dll
VM Arguments:
jvm_args: -Djava.compiler=NONE abort exit -Xrs -Xbootclasspath/p:C:\Oracle\Ora10gRep\vbroker4\lib\vbjboot.jar
java_command: <unknown>
Launcher Type: generic
Environment Variables:
CLASSPATH=C:\Oracle\Ora10gRep\j2ee\OC4J_BI_Forms\applications\formsapp\formsweb\WEB-INF\lib\frmsrv.jar;C:\Oracle\Ora10gRep\jlib\repository.jar;C:\Oracle\Ora10gRep\jlib\ldapjclnt10.jar;C:\Oracle\Ora10gRep\jlib\debugger.jar;C:\Oracle\Ora10gRep\jlib\ewt3.jar;C:\Oracle\Ora10gRep\jlib\share.jar;C:\Oracle\Ora10gRep\jlib\utj.jar;C:\Oracle\Ora10gRep\jlib\zrclient.jar;C:\Oracle\Ora10gRep\reports\jlib\rwrun.jar;C:\Oracle\Ora10gRep\forms\java\frmwebutil.jar
PATH=C:\Oracle\Ora10gRep\bin;C:\Oracle\Ora10gRep\jdk\jre\bin\client
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 9, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows XP Build 2600 Service Pack 3
CPU:total 1 (1 cores per cpu, 1 threads per core) family 15 model 2 stepping 9, cmov, cx8, fxsr, mmx, sse, sse2
Memory: 4k page, physical 1046512k(39192k free), swap 4094688k(2722564k free)
vm_info: Java HotSpot(TM) Client VM (11.3-b02) for windows-x86 JRE (1.6.0_13-b03), built on Mar 9 2009 01:15:24 by "java_re" with MS VC++ 7.1
time: Thu Jul 02 14:35:18 2009
elapsed time: 131 seconds
Any help is appreciated.
Thanks!!!Nobody has any suggestions or comments???
Can anyone confirm they have the same issue when running the sample code I provided below?
Can anyone see the contents of a VARCHAR2 index based array when debugging??
Thanks -
Need help with Adobe Interactive Form Saving
Hi Gurus,
I need your help with Adobe Interactive form saving.
I have written the code in pre-save event to prompt a message when user didn't enter any value before saving. The form data should not be saved upon clicking save (Just prompt the message and exit form the form). Can u please advice me how to do this.
Regards,
Srinisee the link: http://forms.stefcameron.com/2008/04/
it says:
preSave: Failed validations will not prevent the form from being saved however Acrobat/Reader will issue a special warning message, after issuing the validation error message, to inform the user that the validations failed. Iu2019m guessing this is because the user may be saving the form to continue filling it at a later time so the save canu2019t be completely prevented.
regards,
BJagdishwar. -
Hi my friends and Labview Application Engineers,
I need help urgently.
I need to map my table control into a multicolumn listbox.
However, I get Error 1057 as shown in attached photo.
How should I get rid of the error? Thank you very much!
Attachments:
Error Msg.jpg 84 KB-You want to get more views??? I think if your post is important and valid automatically many will view the post and try to help. But if you simply post the same thing 2 times doesn't mean you get more views.
-Coming to solve problem can elaborate your problem little more and post your vi if possible in LV12.
Thanks
Thanks
uday,
Please Mark the solution as accepted if your problem is solved and help author by clicking on kudoes
Certified LabVIEW Associate Developer (CLAD) Using LV13 -
Need help with coding for HTML5 Video with Flash fallback
Hello, need help with my coding in Dreamweaver CS5.5 for HTML5 video with Flash fallback. Not sure if the coding is correct. Do I need anything else Javascipt etc?
The reason you see a blank page is because it's trying to load the file that is pretty humungous and there is no preloader. So, you see a white screen till it complets loading.
Also, the reason why its loading a SWF file and not any of HTML5 type video is because your doctype declaration is XHTML1.0 and not HTML5.
Change the 1st line in your .html file from:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
to:
<!DOCTYPE html>
Then see if your HTML5 video types load with <video> tag. -
Need help with PHP contact form
Hi guys,
I've made a PHP contact form for my site and need help with a couple of things:
The form action links an external PHP script (scripts/contact-form-script.php) but is there a way I can have it so the PHP script for the form is contained within the same PHP file as my contact form (contact.php)?
I tried just putting the form code at the top of contact.php but the browser automatically reads the anti-spam re-direct, so maybe that needs revising too?
The second thing is, how can I make the Name, Email and Message fields mandatory? So if a user tries to submit the form and hasn't filled in one of the required fields and clicks submit, contact.php reloads with a message at the top of the form saying something like 'Complete the required fields' and highlights the relevant field with a red border?
Here's the code for contact.php:
<form action="http://www.mydomain.com/scripts/contact-form-script.php" method="post" name="contact" id="contact">
<p><strong>Name:*</strong><br />
<input name="name" type="text" class="ctextField" /></p>
<p><strong>E-mail:*</strong><br />
<input name="email" type="text" class="ctextField" /></p>
<p><strong>Telephone:</strong><br />
<input name="telephone" type="text" class="ctextField" /></p>
<p><strong>Company:</strong><br />
<input name="company" type="text" class="ctextField" /></p>
<p><strong>Address:</strong><br />
<input name="address1" type="text" class="ctextField" /></p>
<p><input name="address2" type="text" class="ctextField" /></p>
<p><strong>Town:</strong><br />
<input name="town" type="text" class="ctextField" /></p>
<p><strong>County:</strong><br />
<input name="county" type="text" class="ctextField" /></p>
p><strong>Postcode:</strong><br />
<input name="postcode" type="text" class="ctextField" /></p>
<p><strong>Message:*</strong><br />
<textarea name="message" cols="55" rows="8" class="ctextField"></textarea></p>
<p><input name="submit" value="SEND MESSAGE" class="submitButton" type="submit" /><div style="visibility:hidden; width:1px; height:1px"><input name="url" type="text" size="45" id="url" /></div></p>
</form>
And this is the PHP I'm using to submit the form data for contact-form-script.php:
<?php
$headers .= "Reply-To: " . $_POST["email"] . "\r\n";
$to = "[email protected]";
$subject = "Contact from website";
$message = $headers;
$message .= "Name: " . $_POST["name"] . "\r\n";
$message .= "E-mail: " . $_POST["email"] . "\r\n";
$message= '
<table cellspacing="0" cellpadding="8" border="0" width="500">
<tr>
<td colspan="2"></td>
</tr>
<tr bgcolor="#eeeeee">
<td width="154" style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>Name</strong></td>
<td width="314" style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$name.'</td>
</tr>
<tr bgcolor="#eeeeee">
<td style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>E-mail address:</strong></td>
<td style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$email.'</td>
</tr>
<tr bgcolor="#eeeeee">
<td style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>Telephone number:</strong></td>
<td style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$telephone.'</td>
</tr>
<tr bgcolor="#eeeeee">
<td style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>Company:</strong></td>
<td style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$company.'</td>
</tr>
<tr bgcolor="#eeeeee">
<td style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>Address</strong></td>
<td style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$address1.'</td>
</tr>
<tr bgcolor="#eeeeee">
<td></td>
<td style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$address2.'</td>
</tr>
<tr bgcolor="#eeeeee">
<td style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>Town</strong></td>
<td style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$town.'</td>
</tr>
<tr bgcolor="#eeeeee">
<td style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>County</strong></td>
<td style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$county.'</td>
</tr>
<tr bgcolor="#eeeeee">
<td style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>Postcode</strong></td>
<td style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$postcode.'</td>
</tr>
<tr bgcolor="#eeeeee">
<td colspan="2" style="font-family:Verdana, Arial; font-size:11px; color:#333333;"><strong>Message</strong></td>
</tr>
<tr bgcolor="#eeeeee">
<td colspan="2" style="font-family:Verdana, Arial; font-size:11px; color:#333333;">'.$message.'</td>
</tr>
<tr><td colspan="2" style="padding:0px;"><img src="images/whitespace.gif" alt="" width="100%" height="1" /></td></tr>
</table>
$url = stripslashes($_POST["url"]);
if (!empty($url)) {
header( 'Location: http://www.go-away-spam-robots.com' );
exit();
mail($to, $subject, $message, $headers);
header( 'Location: http://www.mydomain.com/sent.php' ) ;
?>
Any help on this would be greatly appreciated.
Thank you and I hope to hear from you!
SMRevised code with form validation for Name Email and Message:
<?php
if (array_key_exists('submit', $_POST)) {
$name = $_POST['name'];
$email = $_POST['email'];
$telephone = $_POST['telephone'];
$company = $_POST['company'];
$address1 = $_POST['address1'];
$address2 = $_POST['address2'];
$town = $_POST['town'];
$county = $_POST['county'];
$postcode = $_POST['postcode'];
$formMessage = $_POST['message'];
if (empty($name)) {
$warning['name'] = "Please provide your name";
if (empty($email)) {
$warning['email'] = "Please provide your email";
if (empty($formMessage)) {
$warning['message'] = "Please provide your message";
$headers .= "Reply-To: " . $_POST["email"] . "\r\n";
$to = "[email protected]";
$subject = "Contact from website";
$message = $headers;
$message .= "Name: " . $_POST["name"] . "\r\n";
$message .= "E-mail: " . $_POST["email"] . "\r\n";
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$message= "
<table cellspacing='0' cellpadding='8' border='0' width='500'>
<tr>
<td colspan='2'></td>
</tr>
<tr bgcolor='#eeeeee'>
<td width='154' style='font-family:Verdana, Arial; font-size:11px; color:#333333;'><strong>Name</strong></td>
<td width='314' style='font-family:Verdana, Arial; font-size:11px; color:#333333;'>".$name."</td>
</tr>
<tr bgcolor='#eeeeee'>
<td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'><strong>E-mail address:</strong></td>
<td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'>".$email."</td>
</tr>
<tr bgcolor='#eeeeee'>
<td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'><strong>Telephone number:</strong></td>
<td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'>".$telephone."</td>
</tr>
<tr bgcolor='#eeeeee'>
<td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'><strong>Company:</strong></td>
<td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'>".$company."</td>
</tr>
<tr bgcolor='#eeeeee'>
<td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'><strong>Address</strong></td>
<td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'>".$address1."</td>
</tr>
<tr bgcolor='#eeeeee'>
<td></td>
<td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'>".$address2."</td>
</tr>
<tr bgcolor='#eeeeee'>
<td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'><strong>Town</strong></td>
<td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'>".$town."</td>
</tr>
<tr bgcolor='#eeeeee'>
<td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'><strong>County</strong></td>
<td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'>".$county."</td>
</tr>
<tr bgcolor='#eeeeee'>
<td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'><strong>Postcode</strong></td>
<td style='font-family:Verdana, Arial; font-size:11px; color:#333333;'>".$postcode."</td>
</tr>
<tr bgcolor='#eeeeee'>
<td colspan='2' style='font-family:Verdana, Arial; font-size:11px; color:#333333;'><strong>Message</strong></td>
</tr>
<tr bgcolor='#eeeeee'>
<td colspan='2' style='font-family:Verdana, Arial; font-size:11px; color:#333333;'>".$formMessage."</td>
</tr>
<tr><td colspan='2' style='padding: 0px;'><img src='images/whitespace.gif' alt='' width='100%' height='1' /></td></tr>
</table>
$url = stripslashes($_POST["url"]);
if (!empty($url)) {
header( 'Location: http://www.go-away-spam-robots.com' );
exit();
if (!isset($warning)) {
mail($to, $subject, $message, $headers);
header( 'Location: http://www.mydomain.com/sent.php' ) ;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
<style type="text/css">
p {
margin: 0;
padding: 10px 0 0 0;
.warning {
color:#C00;
</style>
</head>
<body>
<form action="" method="post" name="contact" id="contact">
<p><strong>Name:*</strong><br />
<input name="name" <?php if (isset($warning['name'])) { echo "style='border: 1px solid #C00'"; } ?> type="text" class="ctextField" />
<?php if (isset($warning['name'])) { echo "<p class='warning'>".$warning['name']."</p>"; }?>
</p>
<p><strong>E-mail:*</strong><br />
<input name="email" <?php if (isset($warning['email'])) { echo "style='border: 1px solid #C00'"; } ?>type="text" class="ctextField" />
<?php if (isset($warning['name'])) { echo "<p class='warning'>".$warning['email']."</p>"; }?>
</p>
<p><strong>Telephone:</strong><br />
<input name="telephone" type="text" class="ctextField" /></p>
<p><strong>Company:</strong><br />
<input name="company" type="text" class="ctextField" /></p>
<p><strong>Address:</strong><br />
<input name="address1" type="text" class="ctextField" /></p>
<p><input name="address2" type="text" class="ctextField" /></p>
<p><strong>Town:</strong><br />
<input name="town" type="text" class="ctextField" /></p>
<p><strong>County:</strong><br />
<input name="county" type="text" class="ctextField" /></p>
<p><strong>Postcode:</strong><br />
<input name="postcode" type="text" class="ctextField" /></p>
<p><strong>Message:*</strong><br />
<?php if (isset($warning['message'])) { echo "<p class='warning'>".$warning['message']."</p>"; }?>
<textarea name="message" <?php if (isset($warning['message'])) { echo "style='border: 1px solid #C00'"; } ?> cols="55" rows="8" class="ctextField"></textarea></p>
<p><input name="submit" value="SEND MESSAGE" class="submitButton" type="submit" /><div style="visibility:hidden; width:1px; height:1px"><input name="url" type="text" size="45" id="url" /></div></p>
</form>
</body>
</html> -
I urgently require help in recovering my user password for my MacBook Pro on OS X Lion, I forgot my password and Apple ID recoveries aren't enabled and I can't enable them as I don't know my password and my hint didn't help me at all, I really, really need help!
Also, a solution may be found if you search in the "More Like This" section over in the right column.Solution may be found if you search in the "More Like This" section over in the right column.
-
[Urgent] Need help calculating difference between two dates
I'm trying to write a code to display the current day and time, then accept two dates from the user and display the difference between the two dates. To display the current date and time, I've used the SimpleDateFormatter library but I'm having difficulty calculating the difference between two dates. Could someone please help me with this?
Below is my code so far
import java.util.Date;
import java.util.Scanner;
import java.text.SimpleDateFormat;
public class DateFormatter {
public void displayNow()
Date todaysDate = new Date();
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MMM-dd HH:mm:ss");
String formattedDate = formatter.format(todaysDate);
System.out.println("Today's date and time is: "+formattedDate);
public void calculateDifference(Date startDate, Date endDate)
/* This is whre i need help! */
public static void main(String[] args)
DateFormatter df = new DateFormatter();
Scanner sc = new Scanner(System.in);
df.displayNow();
System.out.println("Please enter a date: ");
String date1 = sc.next();
System.out.println("Please enter another date: ");
String date2 = sc.next();
}The methods displayNow() and calculateDifference(Date startDate, Date endDate) are essential and cannot be skipped out.tarahmarie101 wrote:
Dude. I've tried doing assignments under pressure, and it doesn't work. Here's a piece of free advice. Start earlier next time, don't put "urgent" in the title of your post b/c it just pisses people off around here--and is a sure sign of an overdue homework assignment which no one around here likes helping with, and try to ask intelligent questions--don't just say "Help me!"
Of course, it takes some time to learn what the intelligent questions are. You have my sympathy. Try asking questions about how to do a particular task, instead of asking people to tell you what to do. It starts to get easier after a while.
actually dude i started on this on monday.. but there were so many other stuff to do along with this.. and i did try referring up the Calendar utility but it was a bit confusing actually.. it was only after that did i come to this forum.. nor am i very good at Java.. anyhoo thanks for your sympathies :P -
URGENT: Need help reading URL of current page
Hello kind people!
I need help, and its very simple:
How do i read the URL of a web page?
For example, the URL of this page is:
http://forums.sun.com/thread.jspa?threadID=5327796
So how can i be able to read in this URL in my java program?
thanks SO MUCH
P.S. I HAVE searched the java docs and everything, the closest thing i found was request.getRequestURL().? but i have no idea how to use it. you have NO IDEA how appreciative i would be if you could simply show me exactly how to read in the URL of a given page.
thanks SO MUCH
Edited by: homegrownpeas on Aug 31, 2008 5:19 PMGoing by what I understand here is a simple version of how you can read data from over HTTP.
This expects the "page" to be text (hence an InputStreamReader instead of an InputStream.)
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLConnection;
import java.util.HashMap;
* GPLv2.
* @author karlm816
public class HomeGrownPeas {
* @param args
public static void main(String[] args) {
HashMap<String, String> params = new HashMap<String, String>();
params.put("threadID", "5327796");
System.out.println(loadHttpPage("http://forums.sun.com/thread.jspa", params));
public static String loadHttpPage(String sUrl, HashMap<String, String> params) {
// Build the HTTP request string
StringBuilder sb = new StringBuilder();
if (params != null) {
for (String key : params.keySet()) {
if (sb.length() > 0) {
sb.append("&");
sb.append(key);
sb.append("=");
sb.append(params.get(key));
System.out.println("params: " + sb.toString());
try {
URL url = new URL(sUrl);
URLConnection connection = url.openConnection();
connection.setDoOutput(true);
connection.setRequestProperty("Content-Length", "" + sb.length());
connection.setUseCaches(false);
if (connection instanceof HttpURLConnection) {
HttpURLConnection conn = (HttpURLConnection) connection;
conn.setRequestMethod("POST");
OutputStreamWriter osw = new OutputStreamWriter(connection.getOutputStream());
osw.write(sb.toString());
osw.close();
// Now use sb to hold the resutls from the request
sb = new StringBuilder();
BufferedReader in = new BufferedReader(
new InputStreamReader(
connection.getInputStream()));
String s;
while ((s = in.readLine()) != null) {
sb.append(s);
// To make it more "human readable"
sb.append("\n");
in.close();
} catch (IOException e) {
e.printStackTrace();
return null;
return sb.toString();
} -
Urgent : Need help in parsing XML from Sharepoint and save it into DB
Hi ,
I am Sharepoint guy and a newbie in Oracle . PL/SQL
I am using UTL_DBWS Package to call a Sharepoint WebService " and was sucessfull , Now the xml has to be parsed and stored into a Table. I am facing the issue as the XML has a different namesoace and normal XPATH query is not working
Below is the XML and need help in parsing it
declare
responsexml sys.XMLTYPE;
testparsexml sys.XMLTYPE;
begin
responsexml := sys.XMLTYPE('<GetListItemsResponse xmlns="http://schemas.microsoft.com/sharepoint/soap/">
<GetListItemsResult>
<listitems xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema">
<rs:data ItemCount="2">
<z:row ows_MetaInfo="1;#" ows__ModerationStatus="0" ows__Level="1" ows_Title="Test Title 1" ows_ID="1" ows_owshiddenversion="1" ows_UniqueId="1;#{9C45D54E-150E-4509-B59A-DB5A1B97E034}" ows_FSObjType="1;#0" ows_Created="2009-09-12 17:13:16" ows_FileRef="1;#Lists/Tasks/1_.000"/>
<z:row ows_MetaInfo="2;#" ows__ModerationStatus="0" ows__Level="1" ows_Title="Testing Tasks" ows_ID="2" ows_owshiddenversion="1" ows_UniqueId="2;#{8942E211-460B-422A-B1AD-1347F062114A}" ows_FSObjType="2;#0" ows_Created="2010-02-14 16:44:40" ows_FileRef="2;#Lists/Tasks/2_.000"/>
</rs:data>
</listitems>
</GetListItemsResult>
</GetListItemsResponse>');
testparsexml := responsexml.extract('/GetListItemsResponse/GetListItemsResult/listitems/rs:data/z:row/@ows_Title');
DBMS_OUTPUT.PUT_LINE(testparsexml.extract('/').getstringval());
end;
The issue is with rs:data , z:row nodes.... please suggest how to handle these kind of namespaces in Oracle
I need the parse the attribute "ows_Title" and save it into a DB
this script would generate "Error occured in XML Parsing"
Help is appriciated, thanks for lookingSQL> SELECT *
FROM XMLTABLE (
xmlnamespaces ('http://schemas.microsoft.com/sharepoint/soap/' as "soap",
'#RowsetSchema' AS "z"
'for $i in //soap:*//z:row return $i'
PASSING xmltype (
'<GetListItemsResponse xmlns="http://schemas.microsoft.com/sharepoint/soap/">
<GetListItemsResult>
<listitems xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema">
<rs:data ItemCount="2">
<z:row ows_MetaInfo="1;#" ows__ModerationStatus="0" ows__Level="1" ows_Title="Test Title 1" ows_ID="1" ows_owshiddenversion="1" ows_UniqueId="1;#{9C45D54E-150E-4509-B59A-DB5A1B97E034}" ows_FSObjType="1;#0" ows_Created="2009-09-12 17:13:16" ows_FileRef="1;#Lists/Tasks/1_.000"/>
<z:row ows_MetaInfo="2;#" ows__ModerationStatus="0" ows__Level="1" ows_Title="Testing Tasks" ows_ID="2" ows_owshiddenversion="1" ows_UniqueId="2;#{8942E211-460B-422A-B1AD-1347F062114A}" ows_FSObjType="2;#0" ows_Created="2010-02-14 16:44:40" ows_FileRef="2;#Lists/Tasks/2_.000"/>
</rs:data>
</listitems>
</GetListItemsResult>
</GetListItemsResponse>')
columns ows_MetaInfo varchar2(20) path '@ows_MetaInfo',
ows_Title varchar2(20) path '@ows_Title',
ows__ModerationStatus varchar2(20) path '@ows__ModerationStatus'
OWS_METAINFO OWS_TITLE OWS__MODERATIONSTATUS
1;# Test Title 1 0
2;# Testing Tasks 0
2 rows selected.
Maybe you are looking for
-
Campaign determination in R/3 based in CRM campaigns
Hi, We have CRM4.0. Can you confirm me if I create a campaign in CRM with planned dates without condition records when I create a sales order in R/3 that campaign is determined automatically? Or the R/3 only works with pricing/condition campaigns? Th
-
I think I have a keylogger virus of some sort
Hi I recently bought somthing from ASOS with my credit card and then the next day that credit card was used for things which I did not authorise, luckily american express sorted it out. I think I have some sort of keylogger virus or osmething becasue
-
Thoughts on GO DADDY and iWeb??
Hi. New to mac. LOVE my MBP very much. (wanna throw my dell at work out the window!) Anyway, I'm thinking of getting a domain name. I saw I can do it @ godaddy.com for 10 bucks a year & for another 7 I can make it private so that "WHOIS" doesn't work
-
I want to login as administrator but I have for got my password how to I fine it
I want to login as administrator on my mac book pro but I have forgot my password how do I fine it'? I want to down load so x Maverick can a anyone help me thank you Kath
-
Elements 10 and RAW files?
Elements 10 and RAW files? Message title was edited by: Brett N