cancel
Showing results for 
Search instead for 
Did you mean: 

Trouble with htmlb:inputfield type = "DATE"

Former Member
0 Kudos

Hi,

I'm developing a BSP with a htmlb:inputfield type = "DATE" and I want it to have a default value of 31.12.9999. I paste the code:

<htmlb:inputField id = "VALID"

type = "DATE"

showHelp = "TRUE"

size = "10"

maxlength = "10"

submitOnEnter = "TRUE"

doValidate = "TRUE"

value = "<%= wa_gtconceptes-valid %>" />

On the OnInitialization event I define wa_gtconceptes-valid_fi = '31.12.9999'. wa_gtconceptes-valid_fi is type sydatum.

Thanks in advance

Carles

Accepted Solutions (1)

Accepted Solutions (1)

maximilian_schaufler
Active Contributor
0 Kudos

In addition to the difference in field names, you stated the date in wrong format:

wa_gtconceptes-valid_fi = '31.12.9999'.

Assign date values in internal format (YYYYMMDD), like this:

wa_gtconceptes-valid_fi = '99991231'.

Max

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks Max,

that solved it

Carles

Former Member
0 Kudos

Yeah, sorry. My mistake in pasting the code:

...value = "<%= wa_gtconceptes-valid-fi %>" />

What I want is that the default value that appears is 31.12.9999.

Thanks

Carles

Former Member
0 Kudos

Hi,

in your code, the value you have passed is wa_gtconceptes-valid and what you are initializing is wa_gtconceptes-valid<b>_fi</b>....

Also it ain't clear as to what exactly is your requirement...!

Thanks,

Tatvagna.