on 07-04-2007 9:08 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Max,
that solved it
Carles
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.