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,
Murtuza

padma,
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

Similar Messages

  • 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 ASAP

    Hi 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

  • Restrict Which Users Can Enter Data In List Form in SharePoint Foundation 2013

    Is there a way to restrict which users can enter data in particular fields in a list item entry form?
    We are using a SharePoint Foundation 2013 list and calendar to manage vacation time. We need to restrict non-supervisor users users from entering a value in a certain field in the vacation request form.
    Here is how the system works now:
    1. Employees complete the vacation request form (which creates a list item)
    2. An email is sent to their supervisor to either approve or decline the request
    3. Approved requests are automatically entered onto the vacation calendar
    We have restricted the list so that only supervisors can edit items (the pending vacation requests). The problem is that all users can mark their own requests as approved when they fill out the request form in the first place. Is there a way to restrict
    which users can enter data in particular fields on a list item entry form?

    Thanks for the suggestion. We ended up 1) hiding the approval column and 2) creating a second list, workflow, etc. The user no longer sees the approval column when filling out the form. Requests are now submitted to list A. Workflow #1 copies the request
    to List B, then deletes the item from List A. Once the request is added to List B, Workflow #2 emails the user that the request has been received and emails the supervisor that a request needs to be approved. Only supervisors have editing permissions on List
    B. Approved requests are automatically added to the vacation calendar (the calendar view of List B).
    We found the following site to be helpful in learning how to hide the list column:
    http://community.bamboosolutions.com/blogs/bambooteamblog/archive/2013/06/03/how-to-hide-a-sharepoint-list-column-from-a-list-form.aspx

  • To restrict End user to enter EAN code manually

    In Premargin check when we go for Bar code scanning, the EAN code field appears in editable mode. After scanning an article that field gets the EAN code automatically from database table for that particular article. But one can modify that ean code as it appears in editable mode. I want to make that field to appear in grey mode so that end user can not enter ean code manually and if i scan an article this field gets the ean code from master data.
    How can i restrict end user to enter the EAN code manually in the EAN code field.

    Dear Sri,
    Thanks for your reply but i have tried this option also. Let me explain you about the scenario.
    In UI screen there is a field EAN code. It can be filled either by scanner or an end user can feed the data on his own without scanning the article.
    What i want is to make this happen only by scanning not by manual entry.
    Whenever an article is scanned its EAN code automatically should come in that field.
    I have made the field in grey mode but while scanning it is not picking the EAN code of that article and throwing an error message as "EAN code field can not be left blank". When I am making that field in editable mode then it is able to pick the EAN code after scanning.

  • 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
    Srinivas

    Hi 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

  • How to restrict a user to eneter limited characters(Urgent)

    Hi friends,
    Im creating a text area in jsp, now i need to keep a restriction to the user to enter only 1000 chararacters
    Where shall i modify the code, so that the user can enter upto 1000 characters.
    Please help me out.
    <TD>
    <html:textarea
    styleId = "spclTxt" name="wiForm" property="spclTxt"
    cols="125" rows="7" onblur="autoValidate(this)"
    onkeydown="SomethingMightHaveChanged();"/>
    </TD>
    Thanks

    hi , check this
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD>
    <TITLE> New Document </TITLE>
    <script language="javascript" type="text/javascript">
    function limitText(limitField, limitCount, limitNum) {
         if (limitField.value.length > limitNum) {
              limitField.value = limitField.value.substring(0, limitNum);
         } else {
              limitCount.value = limitNum - limitField.value.length;
    </script>
    </HEAD>
    <BODY>
    <form name="myform">
    <textarea name="limitedtextarea" onKeyDown="limitText(this.form.limitedtextarea,this.form.countdown,100);"
    onKeyUp="limitText(this.form.limitedtextarea,this.form.countdown,100);">
    </textarea><br>
    <font size="1">(Maximum characters: 100)<br>
    You have <input readonly type="text" name="countdown" size="3" value="100"> characters left.</font>
    </form>
    </BODY>
    </HTML>

  • How to restrict the user to enter the item in purchase order?

    I want to restrict user to enter the item in purchase order.
    How can i do this?
    Please help
    Abhishek

    Hi,
       You may create a transaction variant for ME21N in SHD0 transaction. Make the item field as output only as shown below:
    Result:
       You may check the doc: Learning SHD0 with Example
    Regards,
    AKPT

  • How to restrict a user typing a custom value in the dDocAccount field.

    I have dDocAccount field drop down pre-populated with 2 values - Dept1, Dept2. However, user can able to type any other values (say Dept3) in the account text box and checkin a doc from WCC UI. How to restrict user from entering custom values?
    As an alternate solution - for time being i have the above account field is set as hidden using rule. I am trying to derive the account value from another one field's value (say Departments field with values Dept1, Dept2). I tried below code and found working:
    Department is a custom field created as option list with values Dept1, Dept2
    Under the Rules, for the field dDocAccount, is derived field checked and added below code
    <$dprDerivedValue=#active.xDepartment, getValue("#local","dOption")$>

    Hi,
    If Department is a custom metadata then you should access it like xDepartment(as any other custom metadata), not dDepartment.
    I know it is also possible to change the HTML that is generated for the dDocAccount field, to add javascript validation and so on, maybe this approach plus some additional JS and HTML twists and you should get it working(via component development).
    Hope it helps,
    Vlad

  • Limitation on the number of characters in an input field

    Hi All,
    We are on EP 7.0 SP12.
    When I select an input field/text editor and map it to a field in a BAPI it truncates the value to 80 characters and thus I get the truncated value in the result.
    When I pass a value larger than 80 characters in length while doing test data service, it works fine and I face this issue only while passing the data from the screen. Is this a bug in VC? Or if any one has a solution to this?
    Regards,
    Murtuza

    Hi Ganesh,
    Following are the Answers regaring your queries:
    Query : 1
    There is no limitation on the number of components (objects, classes, tables, joins, hierarchies, lov's, etc) in a universe. But of course as the number of components increases, you could run into problems  related to performance.
    This depends on available RAM and the processing speed.
    Query 2:
    There is NO such option to select the number of table to be automatically inserted in to the universe because Suppose if you have 22000 tables in DB and you want only 1000 table ,you entered 1000 tables as the value to insert tables in Universe then How Designer will come to know which tables you want to take in Schema to build the Universe?
    It all depends on the DBA and Universe Designer which tables are important for organizations reporting needs.
    When you  create connection to the DB then Connection will fetch all table from the database and we canu2019t limit  DB data retrieval.
    I hope this Helps...
    Thanks...
    Pratik

  • How to control numbers of characters in a input field?

    Hi all
    I need to limit the maximum of input characters to 255 in the field: vendortxt at the Shopping Cart. Do anyone know how to do this.
    Regards, Bjarne

    Hi,
      You can use the BBP_DOC_CHECK_BADI to read the number of characters entered in the text field VENDOR_TEXT and accordingly throw the error message if it exceeds 125 characters.
      In the BADI,use the FM BBP_PD_SC_GETDETAIL to read the details of the SC.In the table E_LONGTEXT,you wil get the value for Vendor text.
    BR,
    Disha.
    Pls reward points for useful answers.

  • Enter key in an input field

    Hi!
    How can I do that when the user press "enter" key click inside an input field (for example an inputText), that key press fires the action of a commandButton diferent than the fisrt i have placed in my form???
    Can anybody help me? =)

    Define your form with a on key press event:
    <h:form id="yourForm" onkeypress="if (event.keyCode == 13) {javascript:submitForm(); return false;}; return true;">The javascript function is:
    function submitForm(){
         if (event.keyCode == 13){
              document.getElementById('yourForm:submitButtonId').click();
              return false;
         return true;
    }submitButtonId is the id of the button that needs to be triggered when you press enter key. Hope this should solve your problem.
    SirG

  • JAVA CODE Restricting users from entering Fractional numbers in Data forms

    Hi,
    is there anyone who can help me with the Java Script code of ValidateData.js file?? I am very novice in scripting and find it very difficult to write a proper javascript code to restrict the users from entering fractional numbers to HEADCOUNT cell. I would very much appreciate if i get some help from anyone out there.
    Users should be able to only enter whole numbers to the cells for Headcount entry.
    Kindly give me the layout of the script to be used. Has anyone out there ever done anything like this??
    Looking forward for a help.
    Thanks.

    Hi,
    I think customCellEnterPre and customCellValidatePre is the function you'd be using
    http://download.oracle.com/docs/cd/E17236_01/epm.1112/hp_admin/apas02s01.html
    http://download.oracle.com/docs/cd/E17236_01/epm.1112/hp_admin/apas02s03.html
    http://download.oracle.com/docs/cd/E17236_01/epm.1112/hp_admin/apa.html
    You can refer to SampleValidateData.js that's within Planning deployment custom js folder for further reference and sample usage.
    Cheers,
    Alp

  • Restrict user to enter % sign in Text Item

    Dear All:
    I want to restrict the user to enter Percentage '%' and Under Score sign '_' in the Text Item.
    How is it possible?
    I am using Oracle Forms 10g.
    Thanks
    Hassan

    Here is a javabean solution..
    http://fdegrelle.over-blog.com/55-categorie-265996.html

  • How to Restrict user to enter the data in CAPS ONLY

    Hi,
    I have textinput in my page,i have to restrict the user to enter the data caps only.
    can any one help me on this.
    Karthik

    Hi,
    h1.
    I have textinput in my page,i have to restrict the user to enter the data caps only.
    -------u need to set the CSS class for this item
    Regards
    Meher Irk
    Edited by: Meher Irk on Oct 24, 2010 11:16 AM

  • How to avoid user from entering new price condition in return order

    Dear Expert
    We are facing a scenario where we make return order; the Price is copied from the invoice. And it is working perfectly. The system does not allow us to change the price.
    The issue we are facing here is that user can input new condition like discount /premium and change the net value for the return order pricing, and this will reflect in the credit note for returns.
    Is there a way to restrict the user from entering any pricing condition in the header or item conditions tab.
    although we cannot change the original price coming from invoice referenced for return order, but the user can input new price conditions as below. This must not be allowed.
    The price must come according to the Qty being referenced.
    While making the credit for returns, the user has a chance of further making changes to the net value by adding new conditions. Hence this must also be restricted for any changes.
    Thanks
    Edited by: Lakshmipathi on Jan 31, 2012 6:55 PM
    Thread Locked - Reason Cross Post

    okie .... i will tell briefly what is the problem ....
    Take a scenario wherein a user has logged into my application and he is performing a task which will put his user id and his employee id into the session. Then he opens another window by using either ctrl+n or through files->new window.
    So now a new browser will open but the session will be same ..... in this newly opened browser, user performs some operation which will remove the user id and employee id from the session .... Now if he again comes back to the first window and tries to do some operation, then a null pointer exception will be thrown saying that the employee id is null .... because he has deleted that in the newly created browser ..... to avoid this situation what can we do ???? can you please help me in this regard ??? you got my problem right !!!

Maybe you are looking for

  • Two comboBox in a datagrid

    Hi All, When I create a new line in my grid I want to include two comboBox, the second comboBox related to the first one. I got it work partial, I can create the second combo on the fly but how can I insert the combo into the grid for specific row an

  • Profile parameter for passwords - conflicting documentations.

    Greetings! I've encountered an issue with profile parameter login/password_max_idle_productive Integrated help in SU01 says: You can use the profile parameter login/password_max_idle_productive to define the point as of which the validity of the prod

  • N95 Outlook synchronization problem

    I have My Nokia N95 successfully connected to Outlook 2003 on my Windows XP SP2 PC. I am able to synch my calendar items and contacts. I am using Nokia PC Suite version 6.85.14.1. BUT ... My contact in Outlook do not all appear in my phone menu when

  • NetWeaver Administrator always restart the AS

    I have had a problem always that I try to access de follow URL:  http://localhost:50000/nwa The Web AS J2EE instance have restarted imediatily after I click on this URL Could someone help-me please ?

  • BW Production Planning Implementation Routines?

    hi all, We are going for PRODUCTION PLANNING with BI7.0 Implem. any related docs info?. the best practices and the routines used to enhance the data sources? later we are planning to implement PP with APO. PL provide me any related docs for the same?