How we can update the System Date,in java
Hi guys,
can U pls help me...
How we can update the System Date,in java
I need to get the System Date and time continuosly thruogh threads concept.kindly help me
Thanking u in Advance
System.currentTimeMillis() will give you the current
system date and time as a long value.
~I think the OP wants to change the system time not just get the system time.
Similar Messages
-
How we can update the time profile ?
Hello,
How we can update the time profile daily in PP/DS ?
This time profile we need in the background job scheduling.
Please suggestHi Sunil,
The Time Profile is first to be maintained by going to the current settings (S_AP9_75000087) and creating one Time Profile as per your requirements.Here you define the Display Period and Planning Periods. If you create Relative days/weeks/ months then it is calculated in relation to the current date.So for example if you want to view 10 weeks in past and 20 weeks in future from today, you give the Start Date as -10 and End date as +20.after selecting Relative month/week/day in the Daye column.
Similar method is used for both the Display Period and Planning Period. Preferably ristrict the Display period.
You also have the option of Absolute time where you enter the start date and the finish date as an absolute value in the set period type.This will hard code the dates for you.
This Profile which you have created needs to be attached to Detailed Scheduling Planning Board - View 1/2/3 which ever you want to use by going to the Profile icon on the top and in the pop up click on the More profiles Tab and putting this value in the Time Profile Box.
Thanks,
Harsh -
How i can change the arabic date and time mode to english date and time mode
how i can change the arabic date and time mode to english number mode
Settings app > General > International > Region format.
-
how we can show the following data in a flex tree (without having any
label field) ?
<?xml version="1.0"?>
<rootNode>
<childNode>
< subchildNode >
<valueNode>1000</valueNode >
< valueNode >999-888-777</valueNode >
< valueNode >STORTZ</valueNode >
< valueNode >PAM STORTZ</valueNode >
< valueNode >88 ST. MORTON ROAD</valueNode>
</subchildNode>
</childNode >
</rootNode >as is - no how
wrap those xml chunk with a class having clear public properties like:
public class dataRecord {
protected var xml:XML;
function dataRecord(xml:XML) {
this.xml = xml;
public function get id ():String {
return XML(xml.descendants("valueNode")[0]).toString();
// and so on
simpliest way is to change xml structure to use attributes than wrapping that thing with AS code, it's time consuming and non efficient. -
How we can populate the form data from 2D barcode
Hi All,
Can anyone tell me how we can populate the form data from 2D barcode, will this can be done through script(javascript)?.
Thanks & Regards,
Faisal AfzalI was hoping someone could put me in the right direction here. I am basically doing the same . I am decodeing the information stored in a 2D Bar code and sending this information to an XML file, then I am trying to combine that xml file with a blank PDF template but the process is failing beacuse there are some additional tag fields the XML data from the Decode->Extract XML process.
The XML file from the decode process gives the structure below..notice therer some extra tags (lines 2- 4)
<?xml version="1.0" encoding="UTF-8"?>
<xdp:xdp xmlns:xdp="http://ns.adobe.com/xdp/" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">
<xfa:datasets>
<xfa:data>
<form1>
The XML structure that is expected by the PDF template is as follows
<?xml version="1.0" encoding="UTF-8"?>
<form1>
So the xml output of the Decode barcode + Extract XML process has three extra lines of tag. Is there a way I could use a process within liveCycle to clean out those three lines in real-time before sending the xml to be recombined with the PDF template.
Thanks -
How to regularly update the Master data/Text/ Hierarchy for BW DEV?- Urgent
Hi Experts,
Can anyone help me to understand how to update the Master data/Text/ Hierarchy regularly for BW DEV.
Since all the new query developments are taking place in DEV, users are not finding the latest Masterdata/ Texts /Hierarchy in the DEV system.
I have searched in SDN and got a document "HOW TO DOWNLOAD A HIERARCHY TO A FLAT FILE". However, is there any other way to upload the master data automatically on periodical basis.
Please help urgently.
Advance Thanks,
BW USAIf you want to extract master data from PRD in order to load in DEV, i suggest to do this (its a tricky thing):
For example, you want to download 0EMPLOYEE
1-In PRD, transaction RSD1
2-Enter 0EMPLOYEE
3-Copy the Master table for 0EMPLOYEE (/BI0/MEMPLOYEE)
4-transaction SE16
5-Enter the table name /BI0/MEMPLOYEE
6-in the selection screen, go to "Options" Menu and select "User parameters", and now select "Standard List SE16"
7-Execute
8-Now its show's up the 0employee data, go to "System" menu - List - Save - Local File
9-After you have the flat file, only rest create Infopackae in DEV Env. and load it from the flat file.
Asigns points if useful.
Regards -
How can I set system date from java code?
Hi. I need to set the system date from my application. It must works on Windows7 so the "cmd /C date" must be executed with Administrator privileges.
I tried do it that
Process p = rt.exec("runas /user:" + env.get("COMPUTERNAME") + "\\Administrator \"cmd /C date " + dateYYYYMMDD + "\"");
Then process ask me for password for administrator but it terminates befor i send it. exitCode() returns 1.
Have you some idea how can I do it?
Regards for you.At the very least, you need to read this and follow the advice it gives. That may or may not solve your problem, but it's a bare minimum.
http://www.javaworld.com/jw-12-2000/jw-1229-traps.html -
How to automatically update the Expiry Date's number of days
My web app input form is an event submission form. Users enter the event title, event date and other details, etc. I've figured out how to get the "expiry days" in the form and it be hidden but i can't figure out how to calculate this:
(today's date) - (event date) + 1 day = number of days to expire and then set the expiry days to that value upon submission.
I have tried writing the js but am getting no where, has anyone out there already accomplished this? I've researched and researched and find a million things on calculating the number of days but can't get one of them to work for my situation here... any help would be greatly appreciated!!Hi Murtuza,
You can use function module BAPI_ISUACCOUNT_CHANGE.
Pass dunning lock details in parameter TCTRACLOCKDETAIL. This function module only create and delete locks.
So, you need to pass existing lock details (from table DFKKLOCKS) with PROCESSING_MODE = 04 (delete) and append another value with changed expiry date with PROCESSING_MODE = 01 (Create).
This will also help in maintain lock history too.
Hope this helps.
Regards,
Avinash -
How we can get the deleted data details in sql server?
Can we get the details like how much data was deleted?
Thanks,
AdiHi Adi_SQL_DBA,
According to your description, there is a way that you can recover most of the missing data with the aid of Transaction Logs and LSNs (Log Sequence Numbers). Usually, if you know when your data was deleted then the challenge to recover the deleted data is
not as difficult. But, if you do not know the date and time when the data was deleted, then we will have to find a different way of identifying the data. For more information, there are steps about recovering deleted data in SQL Server, you can review them.
http://sqlbak.com/blog/recover-deleted-data-in-sql-server/
In addition, there are steps about know who and when deleted the data.
http://raresql.com/2012/10/24/sql-server-how-to-find-who-deleted-what-records-at-what-time/
Regards,
Sofiya Li
Sofiya Li
TechNet Community Support -
I imported photo from my iPhone 4 to t iPhoto on my MacBookPro. Then I wanted to export some of those photos as jpeg file, using the export menu of iPhoto, to put them in a folder in Finder. When I did, all the original have been lost.
I tried to copy/paste and I had the same problem.
If someone can help me, it will be great !
Thank youWhy do you think the date has been lost? If you export the photo from iPhoto the date the photo was taken is there in the EXIF data (simple EXIF viewer will let you see it - http://homepage.mac.com/aozer/EV/ )
My best guess is that you are confusing the file date with the photo date - they are totally different - photo programs like iPhoto use the photo date - file programs like the finder use the file date - they have no relationship to each other
LN -
Does anyone know how I can update the Java 1.3.1 Time Zone Definitions?
I have an Application that was packaged with Java Runtime 1.3.1 before the DST Changes and need to update the time zone definitions to correct for the difference in the old DST dates and the new DST dates for Central Time Zone - US.
I don't get it. Why were DST incorporated into the 'Application'? Normally a Java app. would get them from the JRE (AFAIU), and if the '1.3.1 built' app. is run using Java 1.5 or 1.6, it will pick up the updated DST.
-
How i can execute the sql query in java code
I already have sql query in jave plateform i need to execute this code how i can do that. i have unix env and with oracle database. should i just run this query in my sqlplus. this file has extention .java. thanks
you can create a project in JDeveloper add the java file to it, add the Oracle JDBC library to the project properties and then hit the run button.
-
How we can handle the below doubt in Java Script!!
Hi All,
I need to handle the below scenerio in javascript, i am very poor in scripting langauage could any help me out.
Below are the three where we have specail character
words as
1. transfer (…)
2. Shell’s
3. Vitol – as
The above 3 are having some specail characters which we need to
replace as mentioned below
need to use a Function/Method in some scripting language like Java
script to replace the special character with a predefined sequence eg:
single quote with “a1b1” before inserting the data in to the data base
and then while retrieving the record from the database replace “a1b1”
with single quote.
Note#:It is a text area where user can either enter or copy and paste
the content.
Thanks,
Anoo..Hi Anoo,
always remember to put your apex and database versions, it makes it easier to help.
You mentioned stripping out special characters and then putting them back for display. Is there a particular reason why?
If you're having difficulty querying the 'special' characters from SQL, you can create a view to handle that complexity.
The examples you gave don't contain any characters you can't query on. Maybe I'm missing something.
Kofi -
How can I return the current Date in Java?
I am new to Java, and basically I want to know how I can return the current date as a variable, so for example, I have declared the following date variable
private java.util.Date currentDate;How can I return the current date, do I have to write a method? To be more specific, I need to write a setMethod, that simply returns the current Date in Java.
Please point me in the right direction.
Thanks,If all you want is a date for printing or displaying, the easiest way is to use Date as shown below. If you need something more complex, look at the Calendar API.
import java.util.Date;
class DateEx
public static void main(String args[])
Date now = new Date();
System.out.println(now);
} -
Rescheduling of Maint order..(how we can postpone the date of maint order)
Hi friends,
I would like to know that how we can postpone the date of maint order.I am working on preventive maintenance plan.Let consider my maint plan is based on key date so that system is generated orders like for 90 dyas cycle time as below.
10 jan
10 feb
10 mrach
But suppose there is certain req.from sales dept. so production dept want to use the machine. So machine is not available on that day (10 jan) but it will be free after 2 days for maintenance .Then I want to know
1.how i can shift the order date from 10 to 12 jan.
2.What about the planning cycle? It remains constant as per system date or it will change proposed date automatically.
Awaiting for reply..
Thanks and regards,
PravinHi,
If automatic scheduling is active,
In case of backward scheduling (default for preventive maintenance) change the the basic end date
In case of forward scheduling change basic start date.when the order is saved order will be rescheduled automatically.
You can avoid the shift of next mainteannce call by giving proper scheduling parameters in Maintenance plan.
Maybe you are looking for
-
Modify/include parameter to contact header in 200 OK response
Hi ALL, We are using WLSS 2.2.0. In 200 OK response to INVITE request, need to include a parameter "isfocus" to 200 OK response's CONTACT header. While trying to change/include parameter, WLSS 2.2.0 throws an exception that "its a system header value
-
Hi, I've a problem with a JOptionPane. This is my code: public class myFrame extends JInternalFrame { private JInternalFrame parent = null; public myFrame(){ parent = this; jComboBox().addItemListener(new java.awt.event.ItemListener()
-
Show bookmarks by default when opening the pdf file
Hi I made a document with a TOC and bookmerk for pdf which worked great. I have some pdf documents that when I open them, the bookmark panel on Acrobat are opened by default. In my document, that panle is not visible, I need to click the Bookmark ico
-
A message comes up saying that its not working properly and it closes.
-
Images missing from gallery N85
The image gallery on my N85 has suddenly stopped showing all the images in the 'Captured' library (where they are split into months). If I select 'All' from the options I can view all photos taken on the phone, but I'd like them in the months folders