cancel
Showing results for 
Search instead for 
Did you mean: 

Setting the date to 31/12/9999 in webdynpro for java

Former Member
0 Kudos

Hi ;

I want to set the date to a fix date as 31/12/9999 and then update it in backend.please specify the code for the same .Its urgent.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

To set the date to 31/12/9999,

lets say context attribute name is Date


 Calendar cal = Calendar.getInstance();
		  cal.set(9999, 11, 31);
		  Date date = new Date(cal.getTimeInMillis()); 
wdContext.currentContextElement().setDate(date);

Regards

Ayyapparaj

Former Member
0 Kudos

Thanks Ayyapparaj;

It worked.Now I am facing another problem that I have an overview page and detailview page.On overview there is a table which contains tha person name and occupation .On Detail we display entire details of the person selected on overview and allow the details to be modified. So changes in the name reflect on overview .

But I want the name to reflect in overview on insert as well how to do that .

I have to refresh overview after inserting new record to see it.

Is it possible without refreshing overview

Former Member
0 Kudos

Hi,

Are they mapped to the same context attributes?

If so the changes will be reflected immediately.

Regards

Ayyapparaj

Former Member
0 Kudos

Yes they are. But on insert how will the changes be reflected as a new element will have to be added

Former Member
0 Kudos

Hi,

While typing it will not reflect (any round trip is triggered it will reflect)

Regards

Ayyapparaj