Need help in JAXP - saving and loading of XML
i am new to JAXP so dunno how to write the codes to save and load a hub project to and from an XML stream ...so can any one help by posting some codes to guide me alonr... will be grateful to u...this is wat i have done ,can anyone help to complete it ..thank...urgently
import java.util.*;
public class Testvector
private Vector m_vProcess;
String strProjectName;
public static void main(String[] args)
TestVector pThis = new TestVector();
pThis->WriteToXML(m_vProcess);
public TestVector
strProjectName ="Project1";
m_vProcess = new Vector();
m_vProcess.add("Process1");
m_vProcess.add("Process2");
public void WriteToXML(Vector vProcess)
//JAXP
//write project element with attribute name
//iterate through all the elements in vector m_vProcess
//write process elements with name.
<?xml version='1.0' encoding='utf-8'?>
<!-- project -->
<project>
<!-- process -->
<process type="all">
<name>1st</name>
</process>
</project>
can any one help?
Choose Xerces2.4 to serialize the DOM object is an option.
javac XercesTest.java -classpath xmlParserAPIs.jar;xercesImpl.jar;.
java -classpath xmlParserAPIs.jar;xercesImpl.jar;. XercesTest test.xml
below is the source file: XercesTest.java
//JAXP
import javax.xml.parsers.*;
import org.w3c.dom.*;
//APACHE SERIALIZE FUNCTION
import org.apache.xml.serialize.*;
class XercesTest
public static void main(String[] args) throws Exception
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
Document doc = builder.parse( new File( args[0] ) );
File f = new File( "copy_of_"+ args[0] );
OutputFormat format = new OutputFormat("xml","UTF-8",true ) ;
FileOutputStream fout = new FileOutputStream( f );
XMLSerializer ser = new XMLSerializer(fout, format );
ser.serialize( doc );
maybe it's helpful
land
Similar Messages
-
Need Help with Scheduling, Saving, and Emailing a Report From Apex
My ultimate goal is to schedule a report to be created in apex, save it to the database (in pdf), and then email it.
I can schedule the proc which underlies the report. I can send an email from the databse. But I don;t know how to do all three of these in an automated fashion via apex. Any help would be greatly appreciated.Good afternoon,
I run this type of process in a complete Windows environment - the client was Windows XP and the Database & Application Server were both Windows Server 2003.
Typically, I would build a .BAT file within a Page Procedure that included a line to run the report, saving to a .PDF file and then generate a sql statement that would send an email to the user. In your case, you would want to email the .PDF as an attachment. My email was a notification that the report was ready for them to download and they would access their FTP folder.
You can then schedule the .BAT file to run using the Oracle Scheduler to have that process run as an executable. The scheduler allows you set the date/time the process should run. To do this, your user must have CREATE JOB and CREATE EXTERNAL JOB privileges to run external jobs. (see the Oracle DB Admin manual for further details).
Good luck,
Don.
You can reward this reply by marking it as either Helpful or Correct :) -
I need help, yesterday I installed and reinstalled the Yosemite system and take long to turn on my laptop, the bar takes to fill, and I'm worried.
Can you help? thankrevert back to Maverick that is what I had to finally do. This was the worst upgrade I have ever seen. Hopefully you have Time Machine backup and can revert back. It was pretty painless except for a few issues. I will wait until Apple gets their stuff together on this upgrade or may never will.
-
Need help with Blog, Wiki and Gallery
Hi Team,
Need help with Blog, Wiki and Gallery startup. I have newly started visiting forums and quite interested to contribute towards these areas also.
Please help.
Thanks,
Santosh Singh
Santosh SinghHello Santhosh,
Blog is for Microsoft employees only. However, you can contribute towards WIKI and GALLERY using the below links.
http://social.technet.microsoft.com/wiki/
http://gallery.technet.microsoft.com/ -
Need help FLASH not launching and not uninstalling "licensing for this product has stopped working" and " you can only install one adobe product at a time please complete the other installation" Flash was working absolutely fine before, I have no idea why this happened.
I am having similar problem. Can't open any of CS3 programs after trying to download Dreamweaver Trial, which wouldn't work because "couldn't remove DLM extention" error message. So now I can not run Illustrator, Photoshop, or even Adobe Reader. These are properly licensed for about a year. I get "License for product has stopped working". Have 2 pending cases open with Adobe support (one for Dreamweaver trial, one for license problem) since 8/3 with NO ANSWERS - It says answers within 1-3 business days. Was on phone support hold today for over 3 hours before line went dead with no help. What is up with adobe support? Can anyone help?
-
Saving and Loading specific properties of an Image
Hey everyone. I'm currently in the process of developing a game which allows you to customize the color (hue) of your character via a slider. What I would like to happen is: Upon clicking either Accept or Play, it will save the current hue of the image, navigating back to that page will load what was previously saved (hue), as well as when starting the game, it will replace the standard graphic with the previously saved image.
Below is the code I have right now that pertains to the image with a basic non-functioning properly saving and loading code:
import flash.events.KeyboardEvent;
// open a local shared object called "myStuff", if there is no such object - create a new one
var savedstuff:SharedObject = SharedObject.getLocal("myStuff");
Accept.addEventListener(MouseEvent.CLICK, SaveData);
PlayBTN.addEventListener(MouseEvent.CLICK, LoadData);
function SaveData(MouseEvent){
savedstuff.data.username = Sliders.Dino.MovieClip // changes var username in sharedobject
savedstuff.flush(); // saves data on hard drive
function LoadData(event: MouseEvent)
if(savedstuff.size>0){ // checks if there is something saved
Sliders.Dino.MovieClip = savedstuff.data.username} // change field text to username variable
// if something was saved before, show it on start
if(savedstuff.size>0){
Sliders.Dino.MovieClip = savedstuff.data.username}
What I have above is only saving the actual image, which is inside a movie clip names Sliders.
Below is the Class I am using that associates with the slider that changes the hue of "Dino".
package
import flash.display.Sprite;
import fl.motion.AdjustColor;
import flash.filters.ColorMatrixFilter;
import fl.events.SliderEvent;
public class Main extends Sprite
private var color:AdjustColor = new AdjustColor();
private var filter:ColorMatrixFilter;
public function Main():void
/* Required to create initial Matrix */
color.brightness = 0;
color.contrast = 0;
color.hue = 0;
color.saturation = 0;
/* Add Listeners function */
addListeners();
private final function addListeners():void
colorPanel.hueSL.addEventListener(SliderEvent.CHANGE, adjustHue);
private final function adjustHue(e:SliderEvent):void
color.hue = e.target.value;
update();
private final function update():void
filter = new ColorMatrixFilter(color.CalculateFinalFlatArray());
Dino.filters = [filter];
Overall what I'm asking for is: How do I get it to save the current hue of an image by clicking a button, and then having that previously saved image be loaded upon reloading or clicking a button? To me, it doesn't seem like it should be too hard, but for some reason I can not grasp it.
Thanks in advance for reading this and for any assistance you have to offer!This is the Class that you told me to use:
package
import flash.display.Sprite;
import fl.motion.AdjustColor;
import flash.filters.ColorMatrixFilter;
import fl.events.SliderEvent;
import flash.net.SharedObject;
public class Main extends Sprite
private var color:AdjustColor = new AdjustColor();
private var filter:ColorMatrixFilter;
private var so:SharedObject;
public function Main():void
color.brightness = 0;
color.contrast = 0;
color.saturation = 0;
so = SharedObject.getLocal("myStuff");
if (so.data.hue)
color.hue = so.data.hue;
else
color.hue = 0;
update();
addListeners();
private final function addListeners():void
colorPanel.hueSL.addEventListener(SliderEvent.CHANGE, adjustHue);
private final function adjustHue(e:SliderEvent):void
color.hue = e.target.value;
so.data.hue = color.hue;
so.flush();
update();
private final function update():void
filter = new ColorMatrixFilter(color.CalculateFinalFlatArray());
Dino.filters = [filter];
And this is the FLA Code:
import flash.events.KeyboardEvent;
// open a local shared object called "myStuff", if there is no such object - create a new one
var savedstuff:SharedObject = SharedObject.getLocal("myStuff");
Accept.addEventListener(MouseEvent.CLICK, SaveData);
PlayBTN.addEventListener(MouseEvent.CLICK, LoadData);
function SaveData(MouseEvent)
savedstuff.data.username = Sliders.Dino.MovieClip;// changes var username in sharedobject
savedstuff.flush();
// saves data on hard drive;
function LoadData(event: MouseEvent)
if (savedstuff.size > 0)
{// checks if there is something saved
Sliders.Dino.MovieClip = savedstuff.data.username;
}// change field text to username variable
// if something was saved before, show it on start
if (savedstuff.size > 0)
Sliders.Dino.MovieClip = savedstuff.data.username; -
I need help importing navigation bars and rollover buttons from fireworks?
I need help importing navigation bars and rollover buttons from fireworks, drop down menus and rollover states won't work!
ThanksIn my experience, the code created by graphics apps is less than satisfactory. And image based menus are very awkward for several reasons.
#1 If you decide to change your menu later, you must go back to your graphics app and re-craft the whole thing. After 2-3 times of this, it gets old in a hurry.
#2 Image based menus cannot be "seen" by search engines, screen readers and language translators.
#3 CSS styled text menus are better for your site's visibility, accessibility and they are a snap to edit in Dreamweaver.
That said, if you're still married to image based menus, use Fireworks to create images only. Use Dreamweaver's Image Rollover Behaviors to create your rollover scripts.
Nancy O. -
Need help with Boot Camp and Win 7
I have iMac 27" (iMac11,1) 2.8 GHz, quad core, 8MB of L3, 8GB of Memory, Boot ROM Version IM111.0034.B02 and SMC Version 1.54f36 and can't get this machine to run Windows 7 using Boot Camp. I have successfully loaded Win 7 but when it claims to be starting I only get a black screen after initial start up.
I have checked and rechecked my software updates and have read and reread the instructions, however, I can't update my Boot Camp to 3.1 (my machine says i'm running 3.0.4) and I need 3.1 but can't load 3.1 because it is an exe file that has to be loaded into Windows after I load Windows but can't open Windows because I can't load Boot Camp 3.1. That's my excuse anyway, so I'm missing something I just can't figure out what it is....this is where you come in!
Thanks.
MikeMike,
I'm not going to be much help with Boot Camp however I can direct you to the Boot Camp forum where there are more people that know how to troubleshoot it and Windoze 7. You can find it at:
https://discussions.apple.com/community/windows_software/boot_camp
Roger -
How to speed up my saving and loading of a psd. file?
Hi.
My laptop's 1 TB hdd recently crashed and I replaced it with a 500 GB ssd and Photoshop loads now from 10-12 sec since i re installed Photoshop cc.
Unfortunately, the time it takes to save and load psd files has increased dramatically (I'm comparing it to how it was with my normal hdd). It also, sometimes freezes a bit and then after about 10 sec it unfreezes.
I have looked online for help, but have been unable to find anything that could really help me (or it just went over my head, as I am not very tech savvy).
Any help would be greatly appreciated.
If this has been discussed before, can someone please post the link for me.The rule of thumb I follow to figure out scratch space says to figure on 50 to 100 times the size of your largest file ever multiplied by the number of files you have open. I have seen the scratch file exceed 800 GB once, an admittedly rare occurrence, but it often exceeds 200 GB when stitching large panoramas and the like.
As an example—and stressing that I'm aware that others have even more scratch space than I do—I keep two dedicated, physically separate hard drives as my primary and secondary Photoshop scratch disks and a lot of GB free on my boot drive for the OS. I also have 16 GB of RAM installed.
Additionally, if you only have a single HD, i.e. your boot drive, you'd need it to be large enough to accommodate both the swap files of the OS as well as Photoshop's scratch. -
Saving and Loading variables in a .txt file (Offline)
I'm working a software we've done with Flash, but we'd want
people to be able to save the variables they selected. We need them
to be able to save the value of about 10 variables in a file on
their desktop, and then be able to load that file again.
Is it possible to do that without having to use php or stuff
like that (that's why we want to make it an offline applications so
we don't have to use php to be able to save files).
I know Actionscript looks a lot like Javascript and with
Javascript it's really easy to do, but all the saving functions are
blocked in Flash for security reasons.
If anyone knows how to do that, to simply save and load a
.txt file, please let me know. If it would be possible also to
change the .txt to whatever else it would be even better. The file
can still be opened in Notepad but at least it looks a bit more
professionnal to have our own extension. Again in Javascript or
with a .bat file it's really easy to save variables to whatever
type of file, even to non existing types, it simply creates a text
file with an unknown ending.
Thanks!I found a page that explains in a really easy way how to
communicate with Javascript if the flash object is contained in an
html page, but I couldn't find any page explaining how it works if
it's not in an html page. On our side, before using the software
we're creating we'll convert it to a .exe. How can we call a
Javascript from that .exe since we can't incorporate the Javascript
in the container since there isn't really a container... Is there a
way to link to a Javascript (.js) that would be in the same folder
as the .exe? Or would there be a way to incorporate the Javascript
right into the .exe?
Let me know if any of you have a solution for that.
Thanks!
http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Liv eDocs_Parts&file=00000342.html#wp126566 -
Saving and loading images (png) on the iPhone / iPad locally
Hi,
you might find this helpful..
Just tested how to save and load images, png in this case, locally on the i-Devices.
In addition with a SharedObject it could be used as an image cache.
Make sure you have the adobe.images.PNG encoder
https://github.com/mikechambers/as3corelib/blob/master/src/com/adobe/images/PNGEncoder.as
Not really tested, no error handling, just as a start.
Let me know, what you think...
Aaaaah and if somebody has any clue about this:
http://forums.adobe.com/thread/793584?tstart=0
would be great
Cheers Peter
import flash.display.Bitmap
import flash.display.BitmapData
import flash.display.Loader
import flash.display.LoaderInfo
import flash.events.*
import flash.filesystem.File
import flash.filesystem.FileMode
import flash.filesystem.FileStream
import flash.utils.ByteArray;
import com.adobe.images.PNGEncoder;
private function savePic(){
var bmp = // Your Bitmap to save
savePicToFile(bmp, "test.png")
private function loadPic(){
readPicFromFile("test.png")
private function savePicToFile(bmp:Bitmap, fname:String){
var ba:ByteArray = PNGEncoder.encode(bmp.bitmapData);
var imagefile:File = File.applicationStorageDirectory;
imagefile = imagefile.resolvePath(fname);
var fileStream = new FileStream();
fileStream.open(imagefile, FileMode.WRITE);
fileStream.writeBytes(ba);
trace("saved imagefile:"+imagefile.url)
private function readPicFromFile(fname:String){
var imagefile:File = File.applicationStorageDirectory;
imagefile = imagefile.resolvePath(fname);
trace("read imagefile:"+imagefile.url)
var ba:ByteArray = new ByteArray();
var fileStream = new FileStream();
fileStream.open(imagefile, FileMode.READ);
fileStream.readBytes(ba);
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onPicRead)
loader.loadBytes(ba);
private function onPicRead(e:Event){
trace("onPicRead")
var bmp:Bitmap = Bitmap(e.target.content)
// Do something with itAre the movies transferred to your iPhone via the iTunes sync/transfer process but don't play on your iPhone?
Copied from this link.
http://www.apple.com/iphone/specs.html
Video formats supported: H.264 video, up to 1.5 Mbps, 640 by 480 pixels, 30 frames per second, Low-Complexity version of the H.264 Baseline Profile with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats; H.264 video, up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Baseline Profile up to Level 3.0 with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats; MPEG-4 video, up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Simple Profile with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats.
What are you using for the conversion? Does whatever you are using for the conversion include an iPod or iPhone compatible setting for the conversion?
iTunes includes a create iPod or iPhone version for a video in your iTunes library. Select the video and at the menu bar, go to Advanced and select Create iPod or iPhone version. This will duplicate the video in your iTunes library. Select this version for transfer to your iPhone to see if this makes any difference. -
Need help in getting 'RoleApprover' and 'Manager of RoleApprover'
We are developing a Custom Role Approval Process using SOA composite.
A manager or a delegated admin will be raising a Role Approval request for a beneficiary. We need to assign the Approval task to beneficiaries' manager or Role Approver.
If the RoleApprover does not Approve the task in stipulated time, the task needs to get escalated to RoleApprover's manager.
I'm new to OIM APIs, i was folllowing the tutorial "developing_oim_custom_approval_process_for_role_request.pdf". This needs an user defined field 'RoleApprover' created in the Role request form. We cannot create user defined field in the role request form.
I need help in getting the 'RoleApprover' and the 'Manager of RoleApprover' programmatically.
Payload from the OIM Approval request follows:
<ns2:process>
<RequestID>176</RequestID>
<RequestModel>Assign Roles</RequestModel>
<RequestTarget>Onhand Quantity</RequestTarget>
<RequesterDetails>
<FirstName>Steve</FirstName>
<LastName>Waugh</LastName>
<Login>STEVEWAUGH</Login>
<DisplayName>Steve Waugh</DisplayName>
<ManagerLogin>XELSYSADM</ManagerLogin>
<OrganizationName>Test</OrganizationName>
<Email>[email protected]</Email>
<Status>Active</Status>
<XellerateType>End-User</XellerateType>
<UserType>Full-Time</UserType>
<Role>ALL USERS</Role>
<Role>Primavera P6 - Global</Role>
<Role>iProcurement Catalog Administrator</Role>
<Role>Onhand Quantity</Role>
<Role>Test Purchasing Super User</Role>
<Role>Test Delegated Administrator</Role>
<Role>HELPDESK ADMINISTRATORS</Role>
<Role>Test e-Commerce Gateway Super User</Role>
<Role>eBusiness Finance</Role>
<Role>Test Line Manager</Role>
<Role>Test_ApplicationApprover</Role>
</RequesterDetails>
<BeneficiaryDetails>
<FirstName>David</FirstName>
<LastName>Boon</LastName>
<Login>DAVIDBOON</Login>
<DisplayName>David Boon</DisplayName>
<ManagerLogin>STEVEWAUGH</ManagerLogin>
<OrganizationName>TestCO</OrganizationName>
<Email>[email protected]</Email>
<Status>Active</Status>
<XellerateType>End-User</XellerateType>
<UserType>Full-Time</UserType>
<Role>ALL USERS</Role>
<Role>Hyperion</Role>
<Role>Test Purchasing Administrator</Role>
<Role>Test Internet Expenses Audit Manager</Role>
<Role>Test Internet Expenses Auditor</Role>
</BeneficiaryDetails>
<ObjectDetails>
<name>Test Onhand Quantity</name>
<attributes/>
</ObjectDetails>
<url>
http://host:port/workflowservice/CallbackService
</url>
<OtherDetails/>
</ns2:process>
Edited by: rajesh on Feb 13, 2011 9:00 AMChoose Xerces2.4 to serialize the DOM object is an option.
javac XercesTest.java -classpath xmlParserAPIs.jar;xercesImpl.jar;.
java -classpath xmlParserAPIs.jar;xercesImpl.jar;. XercesTest test.xml
below is the source file: XercesTest.java
//JAXP
import javax.xml.parsers.*;
import org.w3c.dom.*;
//APACHE SERIALIZE FUNCTION
import org.apache.xml.serialize.*;
class XercesTest
public static void main(String[] args) throws Exception
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
Document doc = builder.parse( new File( args[0] ) );
File f = new File( "copy_of_"+ args[0] );
OutputFormat format = new OutputFormat("xml","UTF-8",true ) ;
FileOutputStream fout = new FileOutputStream( f );
XMLSerializer ser = new XMLSerializer(fout, format );
ser.serialize( doc );
maybe it's helpful
land -
Need help with Airport Express and so on.
Ok so my main problem before getting into what I need help with here is that our MacBooks and now my iPhone 6 plus isn't staying online. Keep getting booted off and then I either have to select the network again or it will eventually go back on. If anyone has a solution or so please feel free to answer that as well. I'm running on Roadrunner with a Netgear 600 wireless router and a motorola modem. Both of which I'll leave the link to below for a better look.
My Main Question: So I'm looking at a new wireless router mainly and possibly a new modem. I know Apple products are trustworthy but how good is the Airport Express and other Airport products. Also what is the Maximum speed and Maximum data speed for the cheapest express station and if anyone knows the speeds of the other devices it would be greatly appreciated.DSL Router to Netgear 5-port Switch and I used the switch to connect to Airport Extreme, TV, Blue-Ray DVD player and DirecTV Receiver.
The AirPort Extreme base station (AEBS) is a router so it will do what you need.
You need to reconfigure your setup. Connect the WAN port of the AEBS to the DSL router. Then connect the Netgear switch to one of the LAN ports on the AEBS. The AEBS will properly share the connection. -
FCP Novice needs help with video quality and FCP 5!!
Hi,
I have a real problme that I cannot seem to fix. I think its because I am doing something really wrong!
I have a Sony HC42E MiniDV Camcorder which by default records video in full widescreen. I recorded several tapes this way and have now begun trying to edit them in FCP 5.04 (Tiger 10.4.6). Whenever I log and capture my clips they appear to be fuzzzy and unclear on the Mac monitor whilst being totally crisp and sharp on the camcorder viewfinder. I tried capturing using the DV PAL 48Khz Anamorphic Preset which keeps everything the right size (the final output needs to be true widescreen and not with black bars added) but the resulting video on screen is blurry and bitty. I then tried capturing using the DV PAL 720 x 576 normal preset and the video is a little clearer on the screen (for both presets I have chosen lower field dominance) but when I play back it plays back in widescreen on the mac canvas window but at 4:3 on the camera's viewfinder.
I then assumed that maybe this is just becuase the mac screen (CRT by the way) doesn't use fields. So I exported the sequence as a QT movie using DV PAL 16:9 and used quicktime (OS9 Classic - my compressor has never worked because of the dreaded "unable to connect to baackground process" problem which I've never managed to correct) to convert it to MPEG2. When I import this as an asset into DVD Studio pro 4 and set the track size to 16:9 it comes through at the right aspect ratio. However it looks blurry on screen. Thinking that this will be fine on a TV I burned the disc - inserted it into my DVD player (a good one!) and watched it on my new 32" widescreen TV (a good one!) and the picture qualitty is poor. Its so much blurrier and bittier than the original footage looks when played through the camcorder's viewfinder!
The final footaage looks like an old VHS recording that's a year or two old!
Does anyone know how I can capture my footage in FCP with the maximum quality, edit it without quality loss and the export it for DVD again without such significant quality loss whilst all the time keeping it at proper 16:9 widescreen?
Is there some presets I should be working to?
I'm tearing my hair out! Help!Hi Guys,
thanx for your replies.
here's the latest:
Brian, I followed your instructions and the DVD burned successfully. However the video quality of the dvd when viewed on my TV ('ve tried on all 3 of my tvs now) is still a lot poorer than the quicktime movie that was imported into DVDSP4. When I play the original QT Movie on my Mac CRT monitor it looks a little blurry and grainy because I guess its non interlaced however when viewed on an external Video monitor it looks great - very sharp.
When I view the burned DVD on my television the picture quality looks like the non interlaced version of the original QT Movie that appeared on my Mac CRT and not the sharp interlaced (lower field) version that appeared on my external video monitor.
Its almost like taking a sharp jpeg into Photoshop and applying a gaussian blur of about 0.3 followed by jepg compression compressing it down to 5% quality!
I'm totally mystified. Can the conversion to Mpeg2 be removing all interlacing so that you get the less sharp computer monitor look? I just want the video on my final DVDs to be as good as the original source footage! I appreciate that along the way there might be loss of some quality but surely not that much?
Does this make sense to you guys or am I still doing something very wrong?
Robert: I have tried setting all manner of drives including a fresh external firewire HD with nothing on it (clean out of the box) but it doesn't seem to help.
Brian: I tried the no network suggestion a few months back but I'm not sure if I got it right. At the moment I have broadband through an external speedtouch usb modem and am also connected (occasionally although not for the last 3 months) via a crossover cable to my PCs ethernet card. When I last tried the No Network solution I had immense trouble getting my internet to work again! Can you please help me by directing me to the best ay to do this while protecting my internet settings?
any more help guys would be greatfully appreciated. -
Need Help with complex query and computing values
I have an issue trying to combine data from several tables. I need help trying to compute the "Total Hours", "Max Pressure" ,"Average Pressure" while displaying the "Manufacturer",
"Part Type" , "Serial Number", "District", "Status","Truck Type",and "truck number" for a certain Part on all Trucks. I need to be able check and see if the serial number was on
a particular job and calculate the hours of that serial number if it was on that job and the jobdate falls between the install date and removal date. Ive tried but keep getting either
repeating rows, total hrs of the truck instead of the serial number. Ive considered doing a pivot to display it but have been having trouble putting it together.
table 1
(*records of parts*)
Contains serial number,truck number, part type, part number, install date, removal date, status
table 2
(*records of Jobs*)
contains Jobnumber, JobStartdate, Max pressure, average pressure, and Totalhrs
table 3
(records related to jobs and trucks)
contains jobnumber, district , and truck numbers
Table 4
(records of manufacturers and part numbers)
contains partnumber, manufacturer name, and truck type
I would like to get it to show like below
SerialNo PrtType
MFG TruckNo
TrkType TtlHrs
MaxPr AvgPr
Status
Dst
AB345 1200series
NGK 2G34
Boss X 400 10,000
9500 NonOp
NE
Thanks in advanceHope this helps
Note: (Date of Mar 1 2014 was just extended to a further date so the system would know that its still operating when calculating current hours)
Table 1
SerialNo TruckNo InstallDate RemovalDate Status PartNo PartType
BJ1002 F917 2013-09-17 2014-03-01 Oper L871235 BJ 3000 GL
CWS1002 F104 2012-11-21 2013-03-29 NonOper L76088-450 CWS 2000
CWS1003 F104 2013-04-24 2013-08-01 NonOper L76088-450 CWS 2000
CWS1005 F187 2012-11-21 2013-04-04 NonOper L76088-450 CWS 2000
CWS1006 F187 2013-04-24 2013-06-30 NonOper L76088-450 CWS 2000
CWS1007 F187 2013-06-30 2013-03-01 Oper L76088-450 CWS 2000
CWS1009 2F60 2013-05-05 2013-03-01 Oper L76088-450 CWS 2000
CWS1011 F809 2013-05-28 2013-08-28 NonOper L76088-400 CWS 2000
CWS1013 F990 2013-06-11 2013-10-29 NonOper L76088-450 CWS 2000
CWS1015 F783 2013-06-28 2013-03-01 Oper L76088-450 CWS 2000
Table 2
JobNumber Date District PrAvTreat PrMaxTr TotalHrs
553811287 2012-01-19 Fairmount 7337 8319 1.53
652110088 2012-08-20 San Antonio 6340 7075 0.47
652110090 2012-08-21 San Antonio 6134 7131 0.62
652110091 2012-08-22 San Antonio 6180 2950 0.58
652110092 2012-08-23 San Antonio 5959 6789 0.64
652110093 2012-08-23 San Antonio 6165 7466 0.62
Table 3
TruckNo District JobNumber
1F01 Odessa 10011012329
1F01 Odessa 10011012333
1F01 Odessa 10011014831
1F01 Odessa 10011014834
1F01 Odessa 10011012332
1F01 Odessa 10011012328
1F01 Odessa 10011014829
Table 4
PartNumber Manufacturer TruckType
L322020-2 Jimmy Dean Ford T
L322738-2 Lucas Ford T
L47869-1 Jimmy Dean Ford T
L76070-650 NGK Ford T
Sam Howard
Maybe you are looking for
-
Hi, we have implemened Financial Analytics 7.9.5 on EBS system. We have successfully loaded all the Data except Budget information. Recently I came to know that there is no Budget ETL in ORAR12..and need to use Universal Adapator for populating the b
-
Authenticating Host SPN using Kerberos Login module
Hi, I have written an application that needs to support Java GSS based context establishment using Java's Kerberos Login module with the clients.This application is hosted in Tomcat and I have a limitation that tomcat is running as "LocalSystem" acco
-
How come that chkdsk cannot detect errors found by HDTune?
I keep getting the message "Windows detected a hard disk problem". I thought a tool of the OS should tell me the details of the problem. I ran chkdsk twice, but could not find any problem? However, HDTune find three damaged blocks(screen capture wi
-
Need to uncompress a hash partitioned table
I am working on oracle 11.1.0.7 database on solaris. We had issues loading data into compressed tables, so we are trying to uncompress the tables and their partitions. When I tried uncompressing a hash partitioned table, I am getting this error SQL>
-
Hello, I would like to clearly understand if when i use P2P webcam or Audio publishing, that is when i use the recipientIDs array, if the App swith from 2P2 to hub-spoke protocol, for any reason, what exactly changes for the user? Does the stream wil