Restricting TEXTAREA component to lines.

Hi All,
I wanna restrict user entry to certain no of lines in my
textarea component. Ho can i do this? I havent seen any relevant
API's for this in the help. Should i do this totally programatic
way?? Can anyone give me a hint?...
I can restrict characters and the requirement spec needs to
restrict lines too, say 16 lines.
Regards
Roshan

quote:
Originally posted by:
kglad
how many lines fit in your textarea? or, what's the maximum
number of lines of scrolling that you want to allow?
Hi Kglad,
I have to restrict my textArea component to 16 lines. Even if
a single char is represented per line, it sould take only 16 lines
whatsoever.
I have restricted the no of chars to 572, which was there in
the requirement. Now i'm left with this probs.
Hope I can get it done..
Reagards
Roshan Kolar

Similar Messages

  • A few questions about using an XML file to add text into a TextArea component set as html

    I'm using AS2 in Flash CS3.
    I have a TextArea component in the stage that's loading its text from an XML and I've been able to use the ul and li tags to create lists. However, when I try to include a nested list it just inserts a line break between the nested list and the main list rather than indent it further. Is there a solution for this issue?
    Failing that, how would I be able to add non-breaking spaces into the XML so they will render inside the TextArea component? I've tried   and   without success. I scoured the net for some help with this and found some information about modifying the font embedding xml file with a new entry for the non-breaking space and that didn't work either, so that leaves me somewhat stumped.

    flash doesn't handle nested lists (as you now know).  you can work-around that limitation using css and creating your own indent styles.  css have a marginLeft property you can use.

  • TextArea component wont word wrap.. help!

    I cant seem to get the TextArea component in Flash 8 to word
    wrap. I've set the word wrap parameter to "true" but it will not
    word wrap. It just puts all the text in one line. How do you fix
    this? Also, is there a way to control the font size in the TextArea
    component?
    Thanks!

    ad 1. sorry but in my instance true is set by default to word
    wrap option and it works.
    ad 2 instanceName.setStyle("fontSize",24)
    u can learn more about TextArea by lookin to the script below
    ( its just an example):
    function setStyles(instance) {
    instance.setStyle("themeColor", "blue");
    instance.setStyle("color", "blue");
    instance.setStyle("fontFamily", "Courier New");
    instance.setStyle("fontSize", 12);
    instance.setStyle("fontWeight", "bold");
    instance.setStyle("backgroundColor", 0xDDE0FF);
    instance.setStyle("borderStyle", "alert");
    setStyles(myTextArea);

  • Modify the textArea component

    i need some help on how to modify the textArea component so
    that the scrollbar, sidebar and up/down arrow hit states are black.
    is there any script that i can write to change to these colors
    unstead of using the default component (silver) color that
    macromedia has.

    By defining them in the class and using the class name under component definition:
    [Inspectable(name="Text", type=String, defaultValue="")]
    public function set text(setText:String)
         textArea.text = setText;
    public function get text():String
         return textArea.text;
    A problem I run into is that the compiler errors prevent the parameters from being defined so I comment out every line that has to do with textArea, define the component, then uncomment them so that it'll work when it runs.

  • Flex textarea component

    Hi,
    In textarea component contains 5 lines text. And now, I click at starting of any line except first line (for example let say third line) and press spacebar then I can't see the space at the starting of the line in textarea.
    Can any one explain and guide me ?
    Thanks in advance
    Bharat Patel

    Hi,
    Ya, I agree with that, but I want to put a space at starting of line and its not visualise in MX TextArea.
    Thanks
    Bharat Patel

  • Restriction on number of line items in an automatically generated document

    Hi all,
    As per my info, an accounting document must have a minimum of 2 line items to complete the document. At the same time an accounting document can have a maximum of 999 line items.
    My observation:-
    When I am posting depreciation using t-code AFAB, system is posting depreciation document (document type AF). While checking, I found that the system has posted around 16 document for a period.
    On further checking, I observed that the each document contains a max 100 line items.
    I am using SAP 4.7
    My Query:-
    a> Is there any way / place wherein we can restrict the maximum number of line items possible for a given docuemnt type or for all document types in the client?
    b> In case it is not possible to restrict the number of line items per document, what could be possible reason for the system behaviour wherein it is posting about 100 line items per document & thereafter starts a new document.
    Thanking you in advance
    Santosh K Agarwal

    Hi,
    I have been reading CIN. There I came across with a statement i.e. "There is restriction on no of line items to be in an Excise Invoice".
    where you read this i dont know
    but yes for outgoing excise invoice we can put limitation in sap cin
    as per incoming excise invoice i think no  limitation
    in path SPRO-tax on goods movemnet-India-basic setting-maintain excise registration here you can maintain this
    and yes this for india only for other country they may have different
    Regards
    Kailas ugale

  • How can i display image in mx:TextArea Component?

    I found display img tag in htmlText of mx:TextArea component
    is very difficult in Flex Air
    I new a simple air project in flex builder, put the code
    below in it, i put a glad.png file in the src folder, every thing
    is OK, when i run it, image cannot be displayed. why this happend,
    I search the google for the solution, it seems there is a bug in
    air, and told me to use mx:HTML coponent, but that component still
    can not display img tag.
    could any one help me with this?
    <mx:TextArea width="100%" height="100%">
    <mx:htmlText>
    <![CDATA[
    <a href='
    http://www.adobe.com'><img
    src='glad.png'/></a>Click the image to go to the Adobe
    home page.
    ]]>
    </mx:htmlText>
    </mx:TextArea>

    I ran into a similar problem and wasn't able to find a way to have regular Flex components (like Text and TextArea) display <img> tags in their htmlText.  Everything works find in a web-based Flex application, but once the same code was used in AIR, the images just wouldn't display.
    I changed my display to use the mx:HTML component and everything worked fine (I was using only external images).

  • How can I access the content of a textarea component?

    I'm trying to use a javascript form editor in my jsf project.
    The form editor writes to an html <textarea> component.
    The jsp page looks like this:
    <div style="height: 336px; left: 0px; top: 0px; position: absolute; width: 672px">
    <script language="javascript" type="text/javascript">
    tinyMCE.init({
    mode : "textareas",
    theme : "advanced",
    </script>
    <textarea cols="50" name="content" rows="15">This is some content that will be editable with TinyMCE.</textarea>
    </div>
    The content of the <textarea> component is changed with the editor.
    What I need to do is capture that content after it has been edited.
    How can I do that??
    Thanks

    I have a similar problem. When I try to watch the rented movie a pop up says "Cannot Open: The content is not authorized"     What exactly is the problem. I'm not in the US at the current moment. I'm in France. But that shouldn't be a problem right?

  • My Client wants to restrict appearing used PO Line items in MIRO

    Hi Gurus
    My client wants to restrict appearing blank line items agaisnt already used Purchase Order Items (Full Qty GR / IR happened, GR Based IV) in MIRO so that user can not book another invoice against the same PO with diffrent ref. no. and in date.
    Is there any way (User Exit / Screen Variant) we can make it?
    Please reply.
    Thanks
    Sanjib

    Hi
    Even if I set Final Invoice Indicator in MIRO and booked invoice against the PO systems is showing blank line items (Amt & Qty are blank) in MIRO agaisnt the PO.
    Can you please run the scenario and tell me is there any way that we can restrict system showing blank line items against already processed PO items in MIRO. I have tried booking invoice agaisnt individual del note but blank line items are there.
    Thanks
    Sanjib

  • Restriction in Material Document Line item

    Dear SAP Gurus,
    I am new to SAP. Please let me know is there any way by which i able to restrict no of line item in Purchase order (for specific Purchase order type) document? Your help will be appreciated.

    Hi Soumen,
    You can only control the screen elements till "HDRO" (Hide, Display, Required, Optional) from Standard configurations, where as you cannot control /restrict the number of line items. You have to use a user exit for this. Check this Exit. "MM06E004  Control import data screens in purchase order".
    From a Standard Practice, it is always better to educate the user not create too many line items in a purchase order. A Manual and process oriented control is always better in this case than direct control from the system.
    Moreover, if you can also define the exact problem you are facing, SAP guru's can give you a better solution.
    Thanks & regards
    Hameed Parvez

  • TextArea component AS3

    I'm having trouble both working out or finding out how to
    apply an imported css file to the CS3 TextArea component. I've
    frequently done this in AS2 using Flash 8, but that code no longer
    works. If anyone knows could you please let me know. Here's the AS2
    code I've used previously:
    private function loadCss(){
    var myStyle = new TextField.StyleSheet();
    myStyle.load(this.CssPath+".css"); // the CssPath variable
    here was supplied within an object passed through to the
    constructor
    textArea.styleSheet = myStyle;
    loadXml();
    }

    Thank you Anirudh,
    I have been using the TextArea component because it has code to handle scrollbars, and in Flash this component is a wrapper for a TextField object. As far as I can see this is not the case in Flex, and my AS3 code sets almost all of the TextField attributes, so I probably can't use Flex and the Flash Builder anyway. At least not without throwing all my code away.
    Besides, the .swf file generated seems to be much bigger than in Flash.

  • Max number of char in textArea component

    Hi gurus!
    The thtmlb textArea component does not have the property maxlegth. How can I limit the maximum amount of caracters for this component?
    Thanks!!!

    check this blog.
    /people/sap.user72/blog/2005/02/07/bsp-howto-show-a-progress-bar-for-limiting-text-input

  • Formatting Tags appearing in TextArea Component

    I'm having an issue with TextFormat tags that are appearing
    in textfields. Here's an overview of what I'm doing:
    Basically, I'm trying to grab the text from a textArea
    component: (myText = myTextArea.text")
    Because I want to retain formatting, I have the textArea set
    to be html.
    Thus, myText becomes the text you see below
    So the myText data is then stored in XML, but later when I
    try to access it, it fills that same textArea component with the
    literal code rather than the formatted text. How do I take that
    TextFormat string and convert it back to it's original form? I've
    tried myTextArea.htmlText but I guess that isn't it. Thanks for the
    help!
    Thanks!

    Let me make my question easier to understand: ;-)
    I've got the text formatting (below) in a string. Using that
    string, how do I display the text it contains correctly?
    Thanks!

  • TextArea Component - a href will not work locally (on CDROM)

    Hi,
    I have many products out there that use a TextArea Component
    with an <a> tag that calls another url as in:
    <a href="anotherPage.html">Click Here</a>
    This functionality stop working on Flash Player 9. My old
    products are useless until Adobe fixes the bug, but now I have to
    figure out how a way to get around this.
    Any ideas?
    Thanks!!

    Thanks! That helps although the simptoms are new.
    This was working on Flash Player 8, the version in which they
    decided to bring about this sandboxes ordeal.
    And now in Flash Player 9 it still works if I tell the getURL
    to target a "_blank" page. It only breaks when I target "_self".
    Now, that's not very secure to me.
    But I wish they come up with a better solution. With the
    sandbox issue the power of Flash has been rendered useless in local
    devices. I'm think of developing in a different language just
    because of this.

  • TextArea Component

    How do I change the font of a textArea component?
    How do I put unicode text (Japanese) into a textArea
    component via Lingo?
    Thanks
    Eldon

    Thank you Krys for your tip, but as you can see thrue this link www.pccruzadas.com when you type a message I don't want you to go for the top of the page, I want you to remain in the tesArea and see the message I put there after you click the button. Sory for my English.
    Regards
    Manuel Braz Perdig�o

Maybe you are looking for