cancel
Showing results for 
Search instead for 
Did you mean: 

WD Date/String Input Field

Former Member
0 Kudos

Hi all,

My question is:

Is it possible to create String input field, which contains simple date navigator (like input field of "date" type)?

I want use it for user comfort - he/she can pick-up date from date navigator, but he/she can type another strings {>, <=, ... } before or after selected date.

Or, in another way, is it possible to get String value of Date Input Field?

Regards,

Michal

Accepted Solutions (1)

Accepted Solutions (1)

monalisa_biswal
Contributor
0 Kudos

1.Add one button adjacent to input field.

2.Add a DateNavigator element to the view.

3.Map it visible property to one context value attribute.

4.On click of button set above value attribute to visible.

5.On click of date navigator set value of input field and

set visible value attibute to none.

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks for answers..

But I have to use this format - JUST ONE input field ( that's GUI specification by another company - I cannot change it ). My application only send user input as a string value to backend system (3rd party system parses that string)... So I want to use Date Input Field with no validation and get string value of that field - but I don't know how.

Best Regards,

Michal

Former Member
0 Kudos

Hi Michal,

The backend system requirements had nothing to do with it.

You can use seperate input fields as mentioned before.

After Submit you can add this 2 fields in your code together and submit that to the backend system.

Field 1: The datenavigater >

Date d = wdContext.currentDate();

Field 2: The inputfield.

String dataToSubmit = d.toString() + valueFromTheInputField.

Former Member
0 Kudos

Hi,

but I get GUI specification from them. I can't change it ( they have the same GUI in 2 systems - Java standalone application and in native GUI of that backend system ). My task is only create 1:1 copy of GUI in Web Dynpro for SAP Enterprise Portal.

Best Regards,

Michal

luciano_leitedasilva
Contributor
0 Kudos

Michal,

You can't use Date Input Field with no validation, because doesn't work! So, to solve a issue like that, the better way that I've found, create a String Input Field, I create a image link like calendar help and when the user pick-up this calendar link, my application open a new window, like a calendar help, but this window is a my component, not a standard sap component. When the user select a date at my calendar, this date is sent to my String input field.

This is a dirty solution, but I've found just it!

Regards,

Luciano

Former Member
0 Kudos

Hi,

Have you looked at non-validating actions? Go through <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/df/5893426f257073e10000000a155106/frameset.htm">this</a>.

Regards,

Satyajit.

luciano_leitedasilva
Contributor
0 Kudos

Hi Michal,

There isn't possible to create a String input field with a date navigator.

The better option is separate this information in two fields!

Regards,

Luciano

former_member182294
Active Contributor
0 Kudos

Hi Michal,

Why dont you use a drop down(with all possible values like >,>=.< etc)

before or after the date navigator input field. This gives users flexibility and also we can avoid possible errors.

Regards

Abhilash