on 11-15-2004 12:40 PM
Hi,
I have an input field on the view and i have mapped the length property to the context attribute. In the doModifyView i set the length from the string length that i need to display in the field.
However i have found that even after i set the length there is still quite a lot of space remaining between the last character and the border of the field. How can i eliminate this space. i need to do this for formatting my output.
Regards
Sidharth
Hello Sidharth,
the space between the last character and the end of the field differs because Web Dynpro uses a proportional font to display the text.
kind regards
Marco
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Good point. I would see this as a feature request to our Java data dictionary. The DDIC is the "component" that takes care of parsing and formatting data. You could then create a data type and declare its fixed length and that leading zeroes are used for padding...
I'm not a DDIC expert. But I know that they support a format pattern. Maybe one can (mis)use it for this fixed length purpose.
Best regards,
Thomas
hi,
i've got a similar question:
i want to limit the length of an inputfield to 10 characters. in html this woul be the maxlength attribute. I assigned a contextVariable type <i>com.sap.ide...InputFieldSize</i>. How do I tell the context to accept only 10 chars?
I also set 10 in the properties length-field. Does not work. How do I fix that?
thanx, matthias
Message was edited by: matthias kasig
Message was edited by: matthias kasig
10 as property "length" of IWDInputField serves different purpose -- it is approximate visual size of control in charactres (same as with HTML <input type="text").
To restrict max length of value you have to declare string-based data type in dictionary and set MaxLength or FixedLength constarint to 10.
VS
hi valery,
there is noly length and size as property declared for an inputfield-no MaxLength or FixedLength. I don't know what you mean by declaring a stringbased data type in the dictionary. I can create a simple type in the local dict. but what's the use of it?
I can only assign length and size, but none of those properties seem to deliver the effect I want...
matthias
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.