Could Somebody Please Explain....
Could somebody please explain what this section of code is doing with the StopTime? There is plenty more code where that came from, but as I can see it, it is being put into a vector in another section of code as endTime, the vector pdmlist, which I think is where or hows its stored in the vector is being set to null? Then pdmlist is using EndTime value? The StopTime is then being set to a string.
StopTime is then set to blank, then the DateDataFormat is being used. The pdmlist comes back into play, then the df (date format) comes back and it gets converted to uppercase and finally outputted using the outStream.write method to the log file that is created (earlier).
So my quest, as per the other mail, why wont the DB query and order by, order it for the output to the log file. What is the vector doing to it to unsort it? How can I order it?
Vector pdmList = null;
this.setCursor( Cursor.WAIT );
if ( radioAllTime.getChecked() )
pdmList = pdmHelper.buildPDMList( ctx, null, null );
else
pdmList = pdmHelper.buildPDMList( ctx, dateBeginTime.getValue(), dateEndTime.getValue() );
this.setCursor( Cursor.DEFAULT );
//If nothing was found, then display a message,
//and return.
if ( pdmList == null )
MessageBox.show( "No parametric data found. Log file not generated." , this.getText() );
return;
if ( pdmList.size() == 0 )
MessageBox.show( "No parametric data found. Log file not generated." , this.getText() );
return;
String Temp;
String Board; // Prodid
String StartTime;
String StopTime;
String Part;
String BoardStatus;
String Actual;
String LoLim;
String HiLim;
String MeasStatus;
String PartType;
String PartNumber;
boolean BoardStatusContext = false;
boolean OneMeasureFailed = false;
java.util.Hashtable htFiles = new Hashtable(10,10);
FileWriter outStream = null;
try
for ( int idx = 0; idx < pdmList.size(); idx++ )
//Reset the flags
BoardStatusContext = false;
OneMeasureFailed = false;
Board = ""; StartTime = ""; StopTime = ""; Part = ""; BoardStatus = ""; Actual = "";
LoLim = ""; HiLim = ""; MeasStatus = ""; PartType = ""; PartNumber = "";
com.ms.wfc.data.DateDataFormat df = new com.ms.wfc.data.DateDataFormat( com.ms.wfc.data.DateFormat.CUSTOM,
"dd-MMM-yy hh:mm:ss" );
// get root context
PDMContext context = ((PDM)pdmList.elementAt(idx)).getContext();
//Make the filename
String fileName = context.getProductName();
if ( fileName == null || fileName.length() == 0 )
fileName = "UNKNOWN";
// Eliminate not allowed characters from the file name
fileName = fileName.replace('\\','_');
fileName = fileName.replace('/','_');
fileName = fileName.replace(':','_');
fileName = fileName.replace('*','_');
fileName = fileName.replace('?','_');
fileName = fileName.replace('\"','_');
fileName = fileName.replace('<','_');
fileName = fileName.replace('>','_');
fileName = fileName.replace('|','_');
fileName += ".log";
if ( htFiles.containsKey( fileName ) )
outStream = (FileWriter)htFiles.get( fileName );
else
File theFile = new File( fileName );
statusBar.getPanels()[0].setText( "File: " + theFile.getAbsolutePath() );
/* if ( ! theFile.canWrite() )
statusBar.getPanels()[0].setText( "Failed: " + theFile.getAbsolutePath() );
MessageBox.show( theFile.getAbsolutePath() + " can not be writen!",
this.getText() );
outStream = new FileWriter( theFile.getAbsolutePath(), false );
htFiles.put( fileName, outStream );
// start writing the log file...
outStream.write( "./" );
StartTime = ((String)df.format( null, context.getStartTime() )).toUpperCase();
StopTime = ((String)df.format( null, context.getStopTime() )).toUpperCase();
Board = context.getProductName();
if ( Board.length() == 0 )
Board = "UNKNOWN";
outStream.write( Board + ".obc[" + StartTime + "\r\n\r\n" );
Sorry the mail is so long. I tried books, but vectors were hard to come by? I've searched through the database on this site too, there are plenty of stuff about sorting and vectors but its hard to use somebody elsed situation for my own circumstances as a guide.
Hope somebody could just shed a bit of light.
Thanks in advance.
Mark.
PS. I will give duke points (when I work out how to add them, but I only have 5....sorry)
Does anybody have any ideas as to what is happening.
Mark.
Similar Messages
-
All photos VS Photos view - somebody please explain
I'm still getting to grips with the new photos app, could somebody please explain to me how the 'all photos' view works as the photos seem to appear in a weird order. What is the logic to how they are displayed? the Photos view seems to make sense as its all chronological
thanks guys!From my experimentation, it seems that "All Photos" is ordered by the date and time the photos were added to Photos. This is somewhat confirmed by the fact that the View menu (when in the All Photos album) displays a checked and unchangeable "Keep Sorted By Date Added" option (versus "Keep Sorted By Date" when in the main "Photos" view). It is further confirmed by adding some older photos that had not been in iPhotos before conversion and seeing them appear at the bottom of "All Photos" but in shooting order in the "Photos" view; later photos coming in from my iPhone dropped in after them in the "All Photos" album.
In this analysis, I consider the photos that were added as a result of the initial conversion of the iPhoto library as a lump so far as "date added" is concerned. There's no telling how the conversion process works its way through the old library. -
Could you please explain when we connect R/3 system to BW
Hi,
could you please explain when we connect R/3 system to BW
1. Procedure
2. SAP BW need to do anything
3. Effort required by SAP BW
Regards,
kranthiHello Kranthi,
When we need to make a conncetion between R/3 & BW , First logon to R/3 system , Go to T/code - SM59 .
There u find connections . Select on ABAP and click on New
Then Provide the description
Go to technical settings tab :
Provide load balancing : No
if you know the server name : give it in the target host name
or give the IP Address ;
Then after that go to logon & Security Tab :
provide the RFC user ID , Client & Password .
And now check the connection by clicking on the connection test
If it shows some 2mins ,like that then it is ok ...
Otherwise then it is a problem ...
repeat the same thing by giving the target as R/3 here .
now go the RSA1 , select the source systems , create source systems
Select BW source systems
give the target system details , such as system no . System ID ,server name ..
And also background user id & password for both the target systemm & source system .
Now Select the created source system , context menu & Check the connection .
This job is performed with the help of basis people , not only by BW team .
This is maintaince is done for every system ( Dev , Qaulity & production seperately )
Thanks
PT
Edited by: PT on Dec 9, 2008 11:17 AM -
I recently upgraded to IOS 10.9.5 and now I can't export anything from final cut Pro X. Could somebody please help me with this?
SSign in to the App Store using the Apple ID that was used to purchase the software.
-
Could someone please explain what P to P and Order to Cash cycle?
Could someone please explain what Procurement to Pay and Order to Cash cycles mean? Thanks.
Hi,
Pl.visit following links for P2P cycle.
http://erpschools.com/articles/procure-to-pay-cycle#13480480234441&79412::resize_frame
http://oracleapplicationsfunctional.blogspot.in/2011/08/procure-to-pay-p2p-cycle-in-purchasing.html
http://www.shareoracleapps.com/2010/05/procure-to-pay-cycle-in-oracle-apps-r12.html
and visit following links for O2C cycle.
http://erpschools.com/articles/order-to-cash-cycle#13480481951911&21367::resize_frame
http://www.youtube.com/watch?v=2GhAbWGz7iA
http://knoworacle.wordpress.com/2008/12/08/data-flow-for-11i-order-to-cash-cycle/
http://oracleapps88.blogspot.in/2012/08/order-to-cash-cycle.html
http://www.slideshare.net/anand5538/order-to-cash-cycle-9647606
HTH
Sanjay -
Could anyone please explain why the director has been removed from spotlight as it had much importance in LYNC 2010 and now being an optional role in LYNC server 2013.[any call flows regarding director servers would be much useful]
Hi SJ Praveen,
A Director is a server running Lync Server 2013 that authenticates user requests, but does not home any user accounts. Lync 2013 Front End servers have the same registrar service and functionality
as the Director.
The Director isn't providing any special functionality. If the Director goes down, all pools would become inaccessible when the clients queried DNS for the SRV record until an administrator
makes a manual internal DNS change that points users to a Front End pool to handle the sign-in request from Lync clients. Microsoft has made the Director functionality relevant for organizations that have specific security requirements, such as allowing all
external users to register to a specific internal server instead of the Front End servers. This server role is merely optional and not needed for most Lync Server 2013 deployments.
Best regards,
Eric -
I lost my iPhone 5S battery percentage after I upgrade the system to the newest one. I do turn on the percentage in battery usage, but it doesn't work. I also tried to restart my phone but nothing changed. Could somebody please help me? Thank you!
You did turned in Settings > General > Usage > Battery Percentage: ON?
Try a
Reset: Hold down the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears. Note: You will not lose any data -
How to call the screen in methods could u please explain
hi,
how to call the screen in methods could u please explain clearly with exampleHI ,
CALL SCREEN - Call a screen
Basic form
CALL SCREEN scr.
Addition:
... STARTING AT x1 y1 ... ENDING AT x2 y2
Effect
Calls the screen scr; scr is the number of a screen of the main program. You use SET SCREEN 0. or LEAVE SCREEN. to define the return from the CALL screen.
Note
Please consult Data Area and Modularization Unit Organization documentation as well.
Addition
... STARTING AT x1 y1 ENDING AT x2 y2
Effect
The coordinates x1, y1 (start column and start line in the window) and x2, y2 (end column and end line in the window) define the size and position of the CALL screen ("top left - bottom right"). Besides these coordinates, you can also see the contents of the primary window, but cannot perform any action there.
Note
If "ENDING AT ..." is not specified, suitable values are substituted for x2 and y2, taking into account the size of the called screen.
Exceptions
Non-Catchable Exceptions
Cause: No further screen level (call screen); the maximum number of nested screen levels is restricted to 50 at present.
Runtime Error: DYNP_TOO_MANY_CALL_SCREENS
THX -
Could you please explain about the chain and end chain and module
hi experts
could you please explain about the chain and end chain and module keywords?Hi Naresh,
Conditions for Multiple Screen Fields
To ensure that one or more PAI modules are only called when several screen fields meet a particular condition, you must combine the calls in the flow logic to form a processing chain. You define processing chains as follows:
CHAIN.
ENDCHAIN.
All flow logic statements between CHAIN and ENDCHAIN belong to a processing chain. The fields in the various FIELD statements are combined, and can be used in shared conditions.
CHAIN.
FIELD: <f1>, <f 2>,...
MODULE <mod1> ON CHAIN-INPUT|CHAIN-REQUEST.
FIELD: <g1>, <g 2>,...
MODULE <mod2> ON CHAIN-INPUT|CHAIN-REQUEST.
ENDCHAIN.
The additions ON CHAIN-INPUT and ON CHAIN-REQUEST work like the additions ON INPUT and ON REQUEST that you use for individual fields. The exception is that the module is called whenever at least one of the fields listed in a preceding FIELD statement within the chain meets the condition. So <mod1> is called when one of the fields <fi> meets the condition. <mod2> is called when one of the fields <f i> or <g i> meets the condition.
Within a processing chain, you can combine individual FIELD statements with a MODULE statement to set a condition for a single field within the chain:
CHAIN.
FIELD: <f1>, <f 2>,...
FIELD <f> MODULE <mod1> ON INPUT|REQUEST|*-INPUT
|CHAIN-INPUT|CHAIN-REQUEST.
MODULE <mod2> ON CHAIN-INPUT|CHAIN-REQUEST.
ENDCHAIN.
The module <mod1> is called when screen field <f> meets the specified condition for individual fields. <mod2> is called when one of the fields <fi> or <f> meets the condition. If you use the addition ON CHAIN-INPUT or ON CHAIN-REQUEST with FIELD <f>, the condition also applies to the entire chain and module <mod1> and <mod2> are both called.
In cases where you apply conditions to various combinations of screen fields, it is worth setting up a separate processing chain for each combination and calling different modules from within it.
The functions of the FIELD statement for controlling data transport also apply when you use processing chains. Within a processing chain, screen fields are not transported until the FIELD statement. Processing chains also have another function for the FIELDS statements that they contain. This is described in the section on validity checks.
Ex:
PROCESS AFTER INPUT.
MODULE CANCEL AT EXIT-COMMAND.
CHAIN.
FIELD: INPUT1, INPUT2.
MODULE MODULE_1 ON CHAIN-INPUT.
FIELD INPUT3 MODULE MODULE_* ON *-INPUT.
MODULE MODULE_2 ON CHAIN-REQUEST.
ENDCHAIN.
FIELD INPUT1 MODULE C1 AT CURSOR-SELECTION.
CHAIN.
FIELD: INPUT2, INPUT3.
MODULE C2 AT CURSOR-SELECTION.
ENDCHAIN.
MODULE CURSOR AT CURSOR-SELECTION.
Regards,
Sunil -
Can somebody please explain how to format and then reinstall Mac lion10.7 without cd
can somebody please explain how to format and then reinstall Mac lion10.7 without cd
You will need either an Ethernet or Wifi Connection to the Internet - USB Mobile device is not supported.
If you already have Lion installed you can boot to Recovery with Command R and use the Disk Utility to erase the Macintosh HD and then reinstall the OS from the Mac OS X Utilities.
You will need the Apple Id used for purchase if the Mac did not ship with Lion installed originally.
If you want to repartition the HDD you can use the Recovery Disk Assistant to make a recovery USB drive
http://support.apple.com/kb/DL1433
http://support.apple.com/kb/HT4848
As Always - Back up the Mac before erasing unless you are confident there is absolutely nothing on the mac that you might possibly need later.
If the machine is a 2011 build or later you might be able to boot to Internet Recovery with Command Option R -
Could somebody please confirm this for me...
Ok, could somebody please confirm that Invisible Shield is not the same as seran wrap? My mom keeps telling me that its not worth it because seran wrap has the same protection as the Invisible Shield. Can somebody who has invisible shield installed on their ipod please respond?
It is not seran wrap
it is a heavy film protector
http://www.rainydaymagazine.com/RDM2005/GearNGadgets/October2005/RDMGG_Invisible ShieldCutOut.htm
http://www.theinvisibleshield.com -
Could somebody, please, tell me why iTunes in Brazil does not accept PayPall payment? Is it being intended by Apple?
No one here could know such a thing. Discussing Apple policies and decisions is not allowed here.
From the terms of use this forum:
do not add Submissions about nontechnical topics, including:
Speculations or rumors about unannounced products.
Discussions of Apple policies or procedures or speculation on Apple decisions." -
HT5457 So can somebody please explain to me why the first gen iPad missed out on ios 6?
So can somebody please explain to me why the first gen iPad missed out on ios 6?
safrones wrote:
Is that what you really believe?
I don't know cause Apple decided for me.
As does Microsoft anytime that they release a new update that is no longer compatible with the old PC hardware.
I would hope that Microsoft and Apple would both know what operating systems will run on the hardware that is produced for them.
I would also hope that Microsoft and Apple know better than you do as to what would work on their devices, tablets, computers, phones .... How much time and money have you put into research and development on the iPad? -
could somebody please advice how to stop the pages dropping ,when l go on ebay ,utube etc
could somebody please advice how to stop the pages dropping ,when l go on ebay ,utube etc
-
Could you please explain how to work with Outlier Correction
could you please explain how to work with Outlier Correction
Hi sr,
Actually an outlier correction is an historical value that lies the tolerance lane.
the apo sys calculate this tolerance lane on the basis of the sigma factor.
It then correct any historical value that lies outside the upper or lower band of this tolerance lane.
So, that it corresponds to the calculated ex- post value for that point in time.
this option is available in Master forecast profile /sapapo/mc96b in Univariate profile( control parameters) tab.
If you have set the outlier correction indicator, then the sys first calculate an ex-post forecast with the selected forecasting techniques.
In the next step, the sys calculates a tolerance threshold T.
where T is calculated as T = sigma * MAD (Mean Absolute Deviation)
Here the Sigma factor defines the width of the tolerance rangefor automatic outlier correction.
it defines the permissible number of standard deviations.
A small sigma factor means a low tolerance, and a large number of outliers that are detected and corrected.
The default Sigma factor is 1.25.
If you set the Sigma factor, SAP recommends that you set it betw 0.6 and 2.
I hope this is helpful for you.
Regards,
Pullaiah
Maybe you are looking for
-
¿Why I can not update the components of my Creative Suite 5 Web Premium?
Hello, good morning: I have this version on CD from a few years ago both my old computer and the new system that has a 64-bit Windows 7 Professional. He settled smoothly and became the first updates. The updater Adobe tells me every few minutes I hav
-
Hi I can't crop and image in photoshop. I keep getting the message "Cannot complete your request because of a program error". I tried resizing the canvas and received the same error. I uninstalled (removing preferences and reinstalled the photoshop
-
I'm in the market for a new digital video camera. In addition to the normal chores of recording new video, I'd like this to be able to do the double-duty of assisting me in importing to digital format my VHS collection. I've often read that many digi
-
Just bought an ipad2 but cannot find the face time application after activating the ipad2
Just bought an ipad2 but cannot find the face time application after activating the ipad2
-
Created Vector Smart Object layer from Ad Illust. to PS, can't see it, why?
I am creating a postcard for mail out and I am new to the CS5 group of products. I followed tutorial to drag an Adobe Illustrator file into Photoshop creating a vector smart object layer of my logo and saved it. I closed the file and re-opened it t