Restrict for TextArea Component

hi,
im creating a calculator functionality in As3.0 here i'm
passing the number and also operator as a string to
TextArea by pressing the particular button like 1,2,3..+.../.
but i need to restrict the operator
here i'm using the restrict function for the Text Area
Component . if typed the number and operator in the TextArea
componenet instead of pressing the button it's working fine
Thanks
Sen

The restrict property (at least in as2, I assume its the same
in as3) only works as a typing restriction when the input textfield
(which is what a TextArea uses) has keyboard focus.
If you're assigning values by actionscript to your TextArea,
then the restrict property won't prevent you assigning values that
are 'restricted'. You need to do that with your actionscript so
that you only assign values that are 'permitted'.

Similar Messages

  • Restriction for Material Component deletion after PO creation in PS

    I want to restrict the material component deletion from the Projects once the PO is created for it. I have done the required configuration settings in OPSG (Change Profile Order Change management) where the system must give an error for material component deletion once the PO is created for it. But still it is not working.
    1) Why the configuration in OPSG is not working?
    2) Is it required to use user exit CNEX0009 or CNEX0039?
    3) Where can I locate uset exit CNEX0039 if required?
    Can anyone help on this issue!!!!

    Hi,
    Please check again the settings in OPSG.It is std functionality in SAP so i think it should work.
    Muzamil

  • 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

  • TextArea component & external css

    hello, i have searched but not found an answer...
    i can style the text with an internal style sheet (within the
    flash file), but i wonder if this can be done on a textArea from an
    external CSS?
    thank you.

    I should've seen that it was for textArea component but I've
    got it now.
    Yes it still can be done , a nice tutorial:
    http://www.scottmanning.com/archives/000680.php

  • 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).

  • 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 &#160; 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 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.

  • Single batch for a component in production order goods issue

    Hi,
    We have a requirement where during good issue to a production order
    through CO11 & MIGO, more than one batch of a particular component
    should not be issued i.e. only one batch for a component should be used
    for goods issue for a production order..If the stock for a particular
    batch not full it should not allow the system to issue that batch. We
    want an error message or any other restriction where system will not
    allow more than one batch for a particular componet to a production
    order.
    Please advise how to design such scenario.
    Regards,
    Chandan

    Hi Chandan,
    Try with below steps,
    - Create Batch Search procedure -
    - Create Batch Determination Strategy for that Material (Create it for both COB1 and MBC1)
    - Set NO. of Batch Split as 1 and don't tick Check box for Change Allowed
    - Then go to Order type Dependent Paramter OPL8 - Assign your Batch Search Procedure and also tick Check Batch (This will check the auto check if Batch Determination is done manually and if you have violet the Batch Determination it will throw an error Massage)
    Regards,
    Dhaval

  • 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

    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

  • TextArea component scrollpolicy being ignored

    The scroll policy for the textArea component appears to be "auto", and that works just fine.
    However, I want to be able to turn it off in certain situations, i.e., not have the scroll bar appear.
    I do the following which I thought would turn it off but the scroll bar still shows up.
    Any help would be appreciated.
    Code Snippet:
         myTF = new TextFormat("Arial", 10,  0xFFFFFF,false);
         myText_mc.myTextArea.setStyle("textFormat", myTF);
         myText_mc.myTextArea.verticalScrollPolicy = "OFF";
         myText_mc.myTextArea.horizontalScrollPolicy = "OFF";
    Thanks,
    Vivian

    should be all lower case
      myText_mc.myTextArea.verticalScrollPolicy = "off";

  • TextArea component issue

    I have used a TextArea component, and for unknown reasons the
    space bar
    on the keyboard does not work when entering text once it is
    published.
    There is no additional actionscript being used outside the
    defaults.
    Anyone ever had this happen to them? Thanks.

    Use the performance profiler to see what the bottleneck is.  Are you using
    FP 10.1?

  • ActionScript file using TextArea component

    I have been developing applications in Flash CS5, but I coudn't stand the completely useless code editor any more, so I have installed the Flash Builder instead.
    The problem I'm having now, is that I have an AS3 class that uses the TextArea component. But if I make an ActionScript project, I cannot import the TextArea class as FB doesn't seem to know about it. And I know nothing about Flex, so if I make a Flex project, I have no idea of how to combine my AS3 class with the TextArea component.
    I am amazed - I thought that would be ridiculously simple, but I have been browsing Adobes sites for days now, and I'm not an inch closer to any solution.
    Anyone knows something to help me?

    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.

  • Dynamic linking within TextArea component

    how can i include an MC or button inline within the HTML text
    of a TextArea component -- and also have that object link to an AS
    function? i want to have icons within the text of my TextArea that
    open pop-up windows within the Flash application (MC linkage).
    is this possible?
    is asfunction used? if so how?

    Well if you are still interested in using a text component
    instead of a Button the way you would go about this is using
    textWidth. Here's how I've done it before using a text / label
    whatever you want that shows text.
    // => Set our text we got from database
    myText.text = "This is the text I got from the DB";
    // => Validate it so that way we make sure we get right
    numbers
    myText.validateNow();
    // => Find out how wide our text really is.
    var textWidth:Number = myText.textWidth
    // => Reset the width of our text component and add 20 for
    a little buffer
    myText.width = textWidth + 20;
    Now my suggestion is if your going to be dynamically creating
    these on the fly from a database call you throw it into a method /
    class and have that do all the work for you so all you have to do
    is pass the text to it and it resizes itself based on the example
    above.

Maybe you are looking for

  • IDoc to HTTP: Using acknowledgments

    Hi friends. I know the HTTP Adapter does not support acknowledgments. But we had a scenario in which we send an IDoc from SAP and transformed it in a HTTP Call. We get back to the SAP system a aleaud Ack IDoc from PI. It reports that the communicatio

  • Mountain Lion vs. Time Machine

    I set up two external hard drives for use with Time Machine. Last night it did the first backup to one HD, now it's doing the first backup to the other one. Once this is done, and it starts doing "regular" backups, will it start counting down the tim

  • Data Retrieval from SSRS 2008 R2 to SQL Server 2012 standard

    Hello, We have a virtual machine running SSRS 2008 R2 and a physical server running SQL server 2012 standard.  We are having an issue with a report that is taking almost 10 minutes for the data to be retrieved from the sql 2012 database.  We used the

  • Optimisation, Shapes and paint

    Hi, I was wondering which code saves up the most ram (technically speaking) and which is faster!! This: g2.setColor(Color.red); someShape = new Rectangle2D.Double(0, 0, 50, 50); g2.fill(someShape); someShape2 = new Rectangle2D.Double(75, 75, 50, 50);

  • Error U44M1P7, reinstall also failed.

    I had a message this morning on my computer that Creative Cloud apps needed to be updated. Photoshop and I think InDesign. InDesign was ok, at least no error messages, but PS reported "update failed, error U44M1P7." I tried again and same message app