Restrict multiline input field to 2 lines?
Is there a way to restrict the amount of lines that a
multiline input field will allow?
Double post
Similar Messages
-
How to make a Input Field with multiple lines?
hey folks,
i need to make a popup window or a dynpro with 2 input fields, where the user can write on multiple lines. why isnt there such an input field in the screen painter? how can i make this? if i can do this with a dynpro it would be nice but a popup with that feature would be better. didnt found any infos anywhere except for that thread, but its answer didnt work with my dynpro:
How to make a input/output field with multiple lines
thx for any helping answeri made it just like in that thread but there is an error message telling that gv_custom_container is not declared.
* MODULE status_0110 OUTPUT
MODULE status_0110 OUTPUT.
CREATE OBJECT custom_container
EXPORTING
container_name = 'TEXT_CONTROL'
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5.
CREATE OBJECT text_editor
EXPORTING
parent = gv_custom_container
wordwrap_mode = cl_gui_textedit=>wordwrap_at_windowborder
wordwrap_to_linebreak_mode = cl_gui_textedit=>false
EXCEPTIONS
error_cntl_create = 1
error_cntl_init = 2
error_cntl_link = 3
error_dp_create = 4
gui_type_not_supported = 5.
SET PF-STATUS 'STATUS_0110'.
SET TITLEBAR 'TITLE'.
ENDMODULE. "status_0110 OUTPUT
Edited by: rafe b. on Oct 26, 2009 2:56 PM -
Restricting max lenfth in Input field
Hi,
I have use BW standard Object and this is binded to my Input field. Since BW Object is of length 60, Input field in Web Dynpro is allowing me to enter 60 Character. I want to restrict the input field to 40 so that user can not enter more than 40 character.
Is there any possiblity to restrict input field without changing binding elemnt.
Thanks
AbhishekOther option is restrict the no of characters entered by user by binding it with context attribute of char40.
OR
you could even avoid the OnEnter event of Input field if you have some more UI fields in your layout i.e.
If you have a dropdown or a button to naviagate to other screen, then you could check there also.
If there is no other UI, Try writing the code in wddomodify, but please be aware that wddomodify is called on evry event.
So if you are writing code to restrict no of characters to 40 in wddomodify, write it with a conditon like :
if lv_input is not initial.
< check the no of char and throw erro.>
endif.
lv_input has the value of input field which you could read by code wizard i.e control + F7. -
Restrict Input Field For Fix Length
I want to restrict the input field to 10 chars.
Both JTextField + PlaintDocument or JFormattedTexTField + MaskFormatter can do that.
So, I want to know which one is much better.
Thank you!I, personally, prefer the approach via PlainDocument. The thing about JFormattedTextField is that it's giving a pretty bad user feedback as it allows entering the text and then rejects it when losing focus. With subclassing PlainDocument you ensure the user won't enter more than 10 characters in the first place.
-
How do you restrict new line in input field or delete last char. in as3?
Sorry, Noobie here!
I have a text input box. If the enter key is pressed, a new line begins; thus making the previous line invisible unless the backspace key is pressed.
So, if i type "1" into the input box, then hit eneter the number "1" becomes invisible, unless I hit back.
Now, I still need the enter key because i have an event listener that calls a function once it is pressed, but i still need that "1" to be visible.
So, I need one of either:
To be able to restrict the input text field from creating a new line (making max line allowed= 1)
or
To delete the last character entered in the input text if the enter key is pressed.
Both of these should have the same result, however I don't know how to do both.
If anyone can help, i'd be very grateful!This worked! Thanks so much!
-
Hi All,
I am using the tab phtmlb:formLayoutInputField to define an input field. I need to restrict the end user from entering a maximum of 70 characters(can be any character/number) in the textbox.
I'll explain in another sentence:::: the end user should be able to enter only 70 characters in the textbox and 71st character should not be allowed to enter. Could anyone please suggest as to how I can achieve this?
Thanks a lot in advance,
Best Regards,
VarunHi,
We can limit the length of an inputfield by mentioning the maxlength properties of an inputfield.
<htmlb:inputField id= "get"
maxlength="6" />
This restricts the
Hope this helps you.
Regards,
Rajani -
Transaction F110 - Possible to restrict the input of Identification-field?
Hello all,
is it possible to restrict the input of the "Identification"-field in transaction F110 (Automatic Payment Transactions: Status)?
e.g.: User X with company code XX is only allowed to enter XX01 in the identification field.
User Y with company code YY is only allowed to enter YY01...
Is that possible?
Thanks in advance for any reply!
Steffen
Message was edited by:
Steffen PoetschHi
You can control the "identification" with the help of the BASIS guy.
They will define the authorization object to field level.
Create seperate roles for that and assign accordingly
VVR -
How to restrict the user to enter only numeric values in a input field
How to restrict the user to enter only numeric values in a input field.
For example,
i have an input field in that i would like to enter
only numeric values. no special characters,alphabets .
reply ASAPHi Venuthurupalli,
As valery has said once you select the value to be of type integer,once you perform an action it will be validated and error message that non numeric characters are there will be shown. If you want to set additional constraints like max value, min value etc you can use simple types for it.
On the project structure on left hand side under local dictionary ->datatypes->simple types create a simple type of type integer
The attribute which you are binding to value property ;make its type as simple type which you made
Hope this helps you
Regards
Rohit -
Setting input field restrictions.
without using a text box component, is it possible to add
restrictions to a basic input field?
Basically I have this input field and I would like to
restrict the value to be >= 1000. So when a user enters a
number, it must be between 1000-100,000.
Also how do I set a minimum and maximum number of characters
for the field?
Any help would be greatly appreciated.
Thanks in advance.Any suggestions?
-
Weird line in input fields & buttons...
Input fields & buttons on several sites look like this in Safari (notice the line):
Disabled all plugins, but the problem remains. Anyone know what causes this?i use a trim function that removes white space at the end of
strings: -
Is it possible to restrict the "paste" functionality on a wd input field?
The requirement I have is not allow to copy and paste a value on a given webdynpro input field. Does anyone know if this is possible? If so, how?
Thanks in advance,
DiegoHi Yuval,
not sure about your answer. Does the attribute "readonly" will prevent or will not prevent pasting values? I am not sure about your reply since after your sentence you say "there is not way to restrict user from copying the value....." and that for me reads like "there is no way to prevent from pasting the value ......".
Please advice and thanks in advance,
Diego. -
How to restrict the length of input field
Hi,
How to restrict the length of input field. That is we should not be able to enter more thatn 10 charecters.
Regards,
H.V.SwathiHi swathi,
For this you have to create a simple data type. No need of writing a code.
Go to Dictionaries -> Local Dictionary -> Data Type - > Simple Type - > Right click and "Create Simple Type".
Here you should create a Simple type with String as built-in Type. Here you will also see the Length Constraints option.
Set the value of maximum length and minimum length. In your case set the value of maximum length to 10. At runtime this will not allow the user to enter more than 10 characters.
Now create an attribute and bind it to this newly created simple type. Bind the value of the input field with this particular attribute.
Regards
Manohar -
How to restrict number of characters for an input field
Hi All,
I have an input field.
The max number of characters for this input field is 10.
when a user enter more then 10 characters. it should prompt for an error or the input field should not allow to accpet the 11 character.
how we do this in VC.
need your helpful answers
Rgds
SrinivasHi Srinu
You could achieve this by configuring error messages under the formula:-
Select the control properties and in the Input field at the Display tab write the formula
"IF((@<LEN(text)>10),'appropriate message','Records available')"
Note :- there is a LEN(text) under text functions in formula tab.
Regards
Navneet
Message was edited by:
Navneet Giria -
Restricting a user to enter fixed characters in an input field (mobile)
Hi All,
I have created a simple type and set its length to some fixed characters. I have mapped this simple type to an input field. When I run this application on desktop it doesn't allow the user to enter characters more than the fixed length of the simple type. But this functionality is not available on the mobile ie. when I try to enter some text in the input field on the mobile device it allows me to enter as many characters as I want and the fixed length property of the simple type doesn't work here. Can anyone suggest me a solution for this. Reply ASAP.
Thanks in advance,
Murtuzapadma,
You have to set it in the wdDoModifyView()
if ( firstTime ) {
IWDInputfield inp_field = (IWDInputfield) view.getElement("<inputField_ID>");
inp_field.requestFocus();
regards,
nikhil
xxxxxxxxxxxxxxx
Edited by: Armin Reichert on Feb 23, 2008 6:29 PM -
Text Input field return char problem
I have a multiline text input field used as a message area on a form (sending mail through a PHP doc). When I hit return to start new paragraph in that field and the form content is send and received at other end everything after that return is lost? Any ideas would be fantastic...
Marccopy the code between the dotted lines and attach it to the same timeline that contains your submit button:
var sendLV:LoadVars=new LoadVars();
var receiveLV:LoadVars=new LoadVars();
receiveLV.onData=function(src){
trace("received");
trace(src); // or use a textfield to see the return if you're not able to see trace output when testing
// and you should attach code to objects. assign an instance name to your submit button (say submitBtn) and use:
submitBtn.onRelease=function(){
sendLV.name = form.nameTF.text; // assign properties to sendLV that your php is expecting. assign values to those properties using the form data
sendLV.email=...
sendLV.message=...
sendLV.sendAndLoad("email.php",receiveLV,"POST");
trace("sent\n"+sendLV.message)
and change your email.php file to:
<?php
echo $_POST['message'];
?>
Maybe you are looking for
-
Is it possible to use USB webcam + USB mic simultaneously?
I would like to use a USB mic (Blue Snowball USB) and USB webcam (Ligoitch Quickcam) together simultaneously, because I understand the one is good sound and the other is good video for live internet broadcasting of music. can anyone tell me if this s
-
Can't Add Album Artwork in iTunes 9.2.1 (5) ?
Hello, I downloaded the latest iTunes update and now I am unable to add artwork to my iTunes library? BEFORE the update, I noticed that iTunes had dropped some of the Album ARtwork that I previously added, so I figured I would add the art after insta
-
Can i use the airport express with a desktop computer not wifi- I want wifi for my iphone
-
VPN pptp give users their own IP address
Hello, I have an Cisco router 891. On this router there are to different networks. When user1 is logs in with the vpn I wou like that he gets an addres like 192.168.0.200. When user2 logs in, I would like for him to get the address 10.0.0.200. I don'
-
How do you print the same address on a sheet of Avery labels using Pages? If not, why not?