cancel
Showing results for 
Search instead for 
Did you mean: 

strange problem with Date Picker

Former Member
0 Kudos

Hi

I have very strange problem with Date Picker and with the time field also when i pick the selected date of the date picker i get one day previous date and same with the time i get one hour previous hour when i use getter method to get the value from the attribute of date type and of time type which is conected to 2 different input field

what could be the problem here

Thanks

Ninad

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member182374
Active Contributor
0 Kudos

Hi Ninad,

I had the same problem in my system.

Are you using Oracle DB for the J2EE/Portal?

If yes, you should update your JDBC thin file to a newer version.

Please provide more details.

Omri

Former Member
0 Kudos

Hi Omri,

I am new new Web dynpro i am not getting what you are saying I am using a web service to get the values from R3 syatem but that is no where releted to this issue as this is totaly web dynpro problem

so please tell me what you want to know and from where will i get that?

Thanks

Ninad

Former Member
0 Kudos

Hi

Can you post the code how you receive the Date from the View.

Kind Regards

Mukesh

Former Member
0 Kudos

Hi Mukesh

bellow is the line from which i am fetching the date from the vlaue attribute which is mapped to a input field

String frmdate = wdContext.currentContextElement().getFrmDateValue().toString();

Thanks

Ninad

Former Member
0 Kudos

Hi

Try this

java.sql.Date frmdate =wdContext.currentContextElement().getFrmDateValue();

String frmdatevalue=String.valueOf(frmdate);

there is no difference between the code as your code.But try this

Kind Regards

Mukesh

Former Member
0 Kudos

Hi Mukesh

no its giving me the same result do you know what we have to change in JDBC thin file what omri was saying in above posts.

Thanks

Ninad

former_member182374
Active Contributor
0 Kudos

Hi Ninad,

When you're working with Web Dynpro, you are deploying your projects to Web Application Server.

This Web Application Server is using a Database (could be MySql, Oracle, SQL Server etc).

Can you check on which database your Web Application Server is working? Is it Oracle?

Omri

Former Member
0 Kudos

yes i am using oracle

can you tell me what am i suppose to do now

former_member182374
Active Contributor
0 Kudos

Hi Ninad,

please go to

/usr/sap/<SID>/JC<XX>/j2ee/configtool

and open file config.properties using a simple editor. Then, search for property rdbms.driverLocation.

This will tell you the location of the classes12.jar.

You need to replace this file with classes12.jar version <b>10.2.0.1</b> (tell it to your system administrator).

Also, refer to note 867976 (the note will tell you to where copy the file).

Restart server and problem should be solved.

Omri