Restrict ,.(comma) for multiple numericstepper in a page

Hi.
i am trying to restrict ,.(comma) in numericstepper , i am bale to achieve it by using
<s:NumericStepper id="datastoreCountInput" fontWeight="normal" creationComplete="validateTxtInput()" ..............  />
my validate function is
private function validateTxtInput():void {
  datastoreCountInput.textDisplay.restrict ='0-9';
my question is i have multiple NumericStepper in my page i wanted to use the same function for all of them . so i wanted to pass the current NumericStepper  object/id to the function.
so that i can use the object in place of datastoreCountInput and restrict teh input value. As i am new to flex . looking for help here.
Thanks in advance

ok i figured it out , below is the code if anyone else is looking for it (but you need to have default value set if user left blank )
In my case it will be always default value will be 1 if it is blank , so it works
<?xml version="1.0"?>
<!-- validators\ReusableValsSpecifySource.mxml -->
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:s="library://ns.adobe.com/flex/spark"
    xmlns:mx="library://ns.adobe.com/flex/mx">
  <s:layout>
  <s:VerticalLayout/>
  </s:layout>
  <fx:Script>
  <![CDATA[
  import flash.events.Event;
  private static const DEFAULT_SNAP_WARNING_PERCENT:String = '0-9';
  private function validateTxtInput(eventObj:Event):void {
  eventObj.currentTarget.textDisplay.restrict = DEFAULT_SNAP_WARNING_PERCENT;
  private function numericStepperParserMin1(value:String):Number {
  return !value ? 1 : Number(value);  
  ]]>
  </fx:Script>
  <s:HGroup verticalAlign="middle" fontWeight="normal">
  <s:NumericStepper id="snapReserveInput" width="68" creationComplete="validateTxtInput(event)"
   minimum="0" maximum="9999" snapInterval="1" maxChars="4" />
  <s:Label text="testing"/>
  </s:HGroup>
  <s:HGroup verticalAlign="middle" fontWeight="normal">
  <s:NumericStepper id="snapReserveInput1" width="68" creationComplete="validateTxtInput(event)"
   valueParseFunction="numericStepperParserMin1"
   minimum="0" maximum="9999" snapInterval="1" maxChars="4" />
  <s:Label text="testing1"/>
  </s:HGroup>
</s:Application>

Similar Messages

  • One instance of FCKeditor for multiple fields in a page

    How to implement only one instance of FCKeditor (one set of buttons) for multiple textareas in a page?

    Hello,
    Is that possible with the normal FCK Editor?
    I've never seen something like that on any website, but if you find such an example, I can have a look how it's done. If you see it somewhere working, we should be able to make it work in APEX as well.
    Regards,
    Dimitri
    -- http://dgielis.blogspot.com/
    -- http://www.apex-evangelists.com/
    -- http://www.apexblogs.info/

  • How to restrict login for multiple users having same Role

    Our Web Application is deployed on Tomcat 5.5
    The requirement is ?
    There are roles in application like "operator", "admin"?
    There are multiple users created for each of the above role.
    When one user of "operator" role is logged in, then
    It should not allow to login for another user of "operator" role.
    Also, if user did not log out & application gets close, then
    It should not allow to login for another user of "operator" role.
    Also, it should not allow to login for multiple requests of same user
    (using another browser instance...)
    Is it possible using session object?
    But, using session object, it will create separate objects for different users,
    So here I will not be able to restrict session object creation rolewise.
    Also, how to retrieve these multiple session objects created for different users on server?
    If anyone is having the solution please reply as soon as possible,
    Thank you.

    To tell you the truth, this is a stupid requirement. It must be an extremely fragile application.
    In any case, you will have to write your stuff for that. Probably a filter that on login, logout, and session expiration checks, makes, or removes entries in a DB (using a synchronized resource to prevent race conditions) or possibly even simply in an application context object.

  • Can we use the built-in Row fetch for Multiple reports in a page?

    I need to create a page with multiple report regions. Each of it is based on a table. Those tables are different. I somewhat remembered that we can NOT use the built in automatic row fetch process if there are multiple report regions, neither the built in DML process. You have to make your own fetch and insert/update/delete process if you intend to.
    Also if I write my own row fetch and update processes, do I have to consider lock mechnism? or just simply write select and insert/update?
    Any input is appreciated.

    I think I found the answer. Would Scott or other gurus take a look at the thread and confirm it, in case the limitation is not in 2.0?
    Re: automatic row fetch
    What I am concered about is that the locking mechanism. If I have to write my own process to fetch and insert/update, other than the regular select and insert/update statements, do I have to put commit by myself, or htmldb can handle it automatically? Is there an example for this?
    Thanks in advance.

  • One save for multiple portlets in a page.

    Hi,
    I have 3 portlets in 1 page. All the portlets are having individual "Save" button to save some information in individual portlets. I need to create a new "Save" button which does the work of all these 3 Save buttons in one shot. Basically my new "Save" button should be able to save the information of all the 3 different portlets at once!Can we do this? If yes then how ?Need it urgently!
    Thanks in advance,
    Adi...

    If you are still looking for the solution....
    I think this can be done by declaring same named action in all three pageflows. And write code individually as to do the logic for each portlet respectively in their pageflows. The most important and third step is making portlet2 and portlet3 listen to portlet1. (This can be done by double-clicking portlet and entering the instance label of portlet1 in listenTo field. This has to be done for both portlet2 and portlet3.) This will make the control to execute the action in portlet1, portlet2 and portlet3 in that order whenever any of the save buttons is invoked.
    --SJ.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How To Restrict Number Of Rows For Multiple Group In Report Output

    Hi ,
    I have a requirement to restrict number of rows in report output.I have three different group , if i use same no of rows to restrict then output is as expected but if i want Deduction group should have 7 rows , earning should have 5 rows and Tax group have 3 rows in report output then XML tag is not working.
    Below is the XML tag i am using -
    First i have declare the variable to restrict the rows -
    <xsl:variable name="lpp" select="number(7)"/>
    <xsl:variable name="lpp1" select="number(5)"/>
    <xsl:variable name="lpp2" select="number(3)"/>
    For Each -
    <?for-each:PAYSLIP?>
    <xsl:variable xdofo:ctx="incontext" name="DedLines" select=".//AC_DEDUCTIONS"/>
    <xsl:variable xdofo:ctx="incontext" name="EarLines" select=".//AC_EARNINGS[ELEMENT_CLASSIFICATION!='Taxable Benefits']"/>
    <xsl:variable xdofo:ctx="incontext" name="EarTaxLines" select=".//AC_EARNINGS[ELEMENT_CLASSIFICATION='Taxable Benefits']>
    <?for-each:$DedLines?><?if:(position()-1) mod $lpp=0?> <xsl:variable name="start" xdofo:ctx="incontext" select="position()"/>
    <?if:(position()-1) mod $lpp1=0?><xsl:variable name="start1" xdofo:ctx="incontext" select="position()"/
    <?if:(position()-1) mod $lpp2=0?><xsl:variable name="start2" xdofo:ctx="incontext" select="position()"/>
    Report output is tabular form (one page has two column - Earning and Deduction ) . Tax group comes below earning group.
    Deduction Group -
    <?for-each-group:$DedLines;./REPORTING_NAME?><?if:position()>=$start and position()<$start+$lpp?>
    <?REPORTING_NAME?>
    <?end if?><?end for-each-group?>
    Earning Group -
    <?for-each-group:$EarLines;./REPORTING_NAME?><?if:position()>=$start1 and position()<$start1+$lpp1?>
    <?REPORTING_NAME?>
    <?end if?><?end for-each-group?>
    Tax Group -
    <?for-each-group:$EarTaxLines;./REPORTING_NAME?><?if:position()>=$start2 and position()<$start2+$lpp2?>
    <?REPORTING_NAME?>
    <?end if?><?end for-each-group?>
    Please let me know in case additional detail is require.
    Thanks in Advance.
    Thanks,
    Harsh
    Edited by: Harsh.rkg on Jan 14, 2013 9:43 PM

    variable lpp2 is declare to restrict EarTaxLines -
    <xsl:variable name="lpp2" select="number(2)"/>
    This will help to restrict the no of rows on one page , if we have more then two tax benefits line then layout will roll over to continuation page.
    As part of report output my expectation is if i restrict Earning , Deduction and Tax benefits to same no of line for example - variable lpp ,lpp1 and lpp2 have same value "number(2)" , we can see the layout is continue on next page (restrict every group can have max two lines) .This is the reason we have 4 header grid , deduction and Tax Benefit lines are rolled over to continuation page .But if we restrict different value for each variable then continuation page layout is missing .
    When we tried for <xsl:variable name="lpp2" select="number(3)"/> value continuation page layout is not getting generate for both employee number .

  • How to make Adobe acrobat feature to convert SAP  Pages to PDF available for multiple users connected to the same Citrix server

    Hi,
    In my previous endeavours to solve this business requirement where multiple users will be able to use the Adobe acrobat feature to convert SAP pages inside SAP to PDF, I was told that it is not possible to do this for multiple users at the same time. However I have found an article according to which it says it is possible. Could you check it once and let me know if this article can be used for implementing the requirement stated above as this link clearly indicates that Adobe Acrobat is supported on Citrix.
    Please find the link below where it states it is adobe acrobat is supported in Citrix for multiple users.
    http://www.adobe.com/devnet-docs/acrobatetk/tools/AdminGuide/citrix.html.

    1. What is the Acrobat feature that you mean? There's nothing specific to SAP included with Acrobat.
    2. Yes, some Terminal Server configurations appear supported (check carefully). All users of the terminal server will need a license, so far as I know - total licenses = total individual people using.

  • Restrict PO creation for multiple plants for same company code

    Hi Gurus,
    We want to restrict PO creation for multiple plants in the same company code. Based on Standard SAP settings for Purchasing organization assignment with multiple Plant and multiple Plant assignment with single company code, this is happening. Is there a way that we can restrict by doing some customization change.
    Any thoughts or ideas will be highly appreciating.
    Thanks and Best regards,
    Karun Kumar

    Hi,
    Said functionality is not available in SAP standard.
    To avoid the same ,i can suggest implement release strategy for PO,and then higher authority / commercial team can check created PO,if multiple plants available in single po then they have the option of rejection for the same.
    Or else check BADI-ME_PROCESS_PO_CUST,take the help from abapor and apply the restriction to select multiple plant in PO.
    Hope this will resolve your query,
    Thanks & Regards,
    Sandesh Sawant

  • Javascript code to enable an ADD button to create duplicate tables and pages for multiple entries

    I am using Adobe XI Pro. I have created a multi-page fillable pdf questionnaire that I want to make interactive to the user. Within each page, I have multiple tables that can have ADD buttons to duplicate the table if the client wants more than one test. I would like this table to insert directly below the previous table and they may be able to add upto 5 of these table.
    I also have a couple pages in the questionnaire that require duplication for multiple samples. Eg. One page per sample, and I may have upto 10 samples. I would like the javascript to have an ADD button and then add each page behind the previous related sheet (Original and duplicates together)
    I am not a javascript coder so I would need some examples and a walk through. I did take some developer courses in engineering but it has been almost two decades
    I have search on several forums and cannot find a good resource so I appreciate the help.
    Sincerely
    Tara

    Some of what you want to do can be done using template features and a bit of JavaScript, but if your users will be using Reader, version 11 will be required. You can dynamically add new pages, but adding new tables to existing pages with reflow of content that comes after is not possible with a form created in Acrobat. If you have access to Adobe's LiveCycle Designer form creation software, you can create what's known as a dynamic XFA form that can do all of what you want. You can ask in the LiveCycle Designer forum for more information: http://forums.adobe.com/community/livecycle/livecycle_modules_and_development_tools/livecy cle_designer_es?view=discussions

  • SAPscript print program for multiple pages

    Hello friends,
    How to write SAPscript print program for multiple pages? please help me.
    Thanks and regards,
    Shivanand.

    I believe you have posted this question in the wrong forum.  There is an ABAP Forms Printing Forum.

  • Page wise total for multiple pages in xml template

    Hi all,
    I need to display page wise total for multiple pages in xml layout.I have tried with add-page-total and show-page-total tags but it is not working in my case.Anyone please provide me a solution to this. Thanks in Advance..It is urgent issue..
    Thanks
    Swapna

    This issue has been resolved.
    We had a call to the method "makeOutputFlat(true)" before the call to "FormProcessor.process()" that was corrupting the PDF template file.Once we took that off , the PDF is now printing multiple pages.

  • For multiple spry accordion in a single html page

    I have created a single spry  accordion in html page .But  i want multiple accordion of similar size and color on that page.I have tried to create a multiple  accordion on that page but only one is working and others doesn't work.
        Thanks in advanced.

    I just tried doing the same thing without any problems. Not sure what you are doing wrong, heres the code:
    <script src="SpryAssets/SpryAccordion.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryAccordion.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="Accordion1" class="Accordion" tabindex="0">
      <div class="AccordionPanel">
        <div class="AccordionPanelTab">Label 1</div>
        <div class="AccordionPanelContent">Content 1</div>
      </div>
      <div class="AccordionPanel">
        <div class="AccordionPanelTab">Label 2</div>
        <div class="AccordionPanelContent">Content 2</div>
      </div>
    </div>
    <div id="Accordion2" class="Accordion" tabindex="0">
      <div class="AccordionPanel">
        <div class="AccordionPanelTab">Label 1</div>
        <div class="AccordionPanelContent">Content 1</div>
      </div>
      <div class="AccordionPanel">
        <div class="AccordionPanelTab">Label 2</div>
        <div class="AccordionPanelContent">Content 2</div>
      </div>
    </div>
    <script type="text/javascript">
    <!--
    var Accordion1 = new Spry.Widget.Accordion("Accordion1");
    var Accordion2 = new Spry.Widget.Accordion("Accordion2");
    //-->
    </script>
    </body>

  • Single-signon for multiple sites or sub sites

    Does anyone know of some good articles/publications or suggestions for
    implementing a single signon for multiple very secure internet sites in
    weblogic type environments.
    For example, bank1 has a internet site and bank 2 has an internet site.
    Bank 2 has some cool features they want to offer bank1's customers. They
    agree but, bank1 wants to present bank2 as a tab or part of bank1 site.
    IN order to do this there are lots of fun things, but the things Im
    interested in are how to authenticate between them and handle timeouts.
    timeouts seem particularly tricky in that if I dont hit a page on bank2
    for a while, it could time out its session for the guy on bank1. Also if
    im in the bank2 section of the site, then bank1 could time me out as
    well.
    any ideas let me know.
    thanks
    Joel

    I've been informed ;-) that a pure Java solution is also available from
    Entegrity. So here are a couple of URLs for you to research
    anagrammatically:
    http://www.netegrity.com
    http://www.entegrity.com
    Cameron Purdy
    Tangosol, Inc.
    http://www.tangosol.com
    Tangosol: How Weblogic applications are customized
    "Cameron Purdy" <[email protected]> wrote in message
    news:[email protected]...
    Netegrity?
    Cameron Purdy
    Tangosol, Inc.
    http://www.tangosol.com
    Tangosol: How Weblogic applications are customized
    "Tim Funk" <[email protected]> wrote in message
    news:[email protected]...
    This is long winded and I tried to have this make sense, if it doesn't
    just mark this as read ...
    I am running into the same issue. Out of need, different applications
    need to be hosted on different boxes/JVM's/web applications. I am
    experimenting with a customer single sign on process which is
    independent of Java but lends itself nicely to it. Here is my thoughts:
    1) All applications need to run under the same domain. For example:
    foo.redrose.net, www.redrose.net, bar.redrose.net, app1.redrose.net
    all reside under redose.net.
    2) You have a database table (secure) that contains the following:
    user id, password, session id, last access time.
    3) This database table contains all of the valid sessions across the
    domain (in this exmaple .redrose.net)
    4) There is a daemon running which runs every ?? seconds that deletes
    any records older than ?? seconds/(or minutes/hours) in the
    database.
    5) There exist a cookie which is set to the domain level that contains
    the session id.
    6) The session id provides a way to obtain the id and password for the
    user to authenticate to the container. For example in WL5.1SP8 there
    exists: weblogic.servlet.security.ServletAuthentication.weak(...) to
    authenticate to your container. By using this you will get the
    capability of setting up your roles and ACLS etc in you web.xml and
    weblogic.xml to handle authorization.
    7) All requests to any applications participating in this philosophy
    must do the following for EVERY request (or appropriate):
    Even if you are logged authenticated to the container and authorized,
    you may have timed out or logged out of another application. So the
    database table must be checked to see if the session id exists. At the
    same time, you must also update the last access time to prevent timeout.
    8) If the user tries to access a different application which he has not
    authenticated to yet - the user will be forwarded to a servlet whichwill:
    a) Look for the cookie at the domain level
    b) If the cookie is found - get the UID and PWD from database
    b2) Present login form if cookie is invalid/not exists
    c) Authenticate to container
    d) Forward back to original page and let the container handle
    authorization since you have already authenticated.
    I use have encapsulated the database activity into 3 stored functions:
    1) isValidSession(session_id) - Returns null or the user id and pwd
    concatentated which will need split apart if needed
    2) makeSession(user_id, password) - Returns a new unique session id and
    creates the appropriate record
    3) cleanUpSessions() - Arguements not yet determined. This will delete
    any records older than a certain time. I would like to have the proc
    know what to delete without being given a parameter but time to the
    second level can be tricky for some DBMS's.
    There is a concern of storing the user id and password in the database
    but this can be eliminated with a good design to restrict access to the
    database table and using encrypted connections.
    Hope this helps. Hopefully - a similar philosphy will be adopted by an
    application container so I may not have to worry about this and I can go
    back programming business functionality.
    -Tim
    Joel Nylund wrote:
    Does anyone know of some good articles/publications or suggestions for
    implementing a single signon for multiple very secure internet sites
    in
    weblogic type environments.
    For example, bank1 has a internet site and bank 2 has an internetsite.
    Bank 2 has some cool features they want to offer bank1's customers.They
    agree but, bank1 wants to present bank2 as a tab or part of bank1site.
    IN order to do this there are lots of fun things, but the things Im
    interested in are how to authenticate between them and handletimeouts.
    >>>
    timeouts seem particularly tricky in that if I dont hit a page onbank2
    for a while, it could time out its session for the guy on bank1. Alsoif
    im in the bank2 section of the site, then bank1 could time me out as
    well.
    any ideas let me know.
    thanks
    Joel

  • Changing status for multiple assets

    Hi,
    After a quick search I cant find anything that relates to my question.
    I want to be able to quickly assign a status to multiple assets while in list view.
    Is this possible ?
    The only way I can see to do it at the moment is to individually open each asset and then navigate to the 'review and approve' tab and then change the stauts ---much too slow and tedious.
    Thanks,
    Dan

    It's not possible with any single built-in command.
    But one way to do it is set up a Response that is triggered by a Subscription:
    + Create a Response to Set Asset Metadata to the status you want.
    + Then create a Subscription to an Asset, triggered on Analyzed and Modified, calling your Response--but don't create any Asset Filter.
    Now you can select a group of assets, Analyze them, and they will get their metadata reset to what you have configured in the Response.
    Some considerations:
    + Make sure other people aren't analyzing assets at the same time, since you didn't put in any restrictions. For the same reason, you will probably want to disable the Subscription after you are done, or else in the future some people might get confused why their status is changing unexpectedly when they analyze an asset.
    + If you have multiple pages of assets you want to change, you may have to do it several times or enter a search term to make it easier to find them. If you're talking about changing hundreds or thousands of assets, you might want to consider doing it with an external script instead.
    + You could add an extra measure of safety by adding an Asset Filter if you know in advance what some of the metadata will have to be. (But don't set Trigger if changed.)
    + Don't analyze assets in the List view--it will lock up your FCSvr session.

  • How to use the same POWL query for multiple users

    Hello,
    I have defined a POWL query which executes properly. But if I map the same POWL query to 2 portal users and the 2 portal users try to access the same page simultaneously then it gives an error message to one of the users that
    "Query 'ABC' is already open in another session."
    where 'ABC' is the query name.
    Can you please tell me how to use the same POWL query for multiple users ?
    A fast reply would be highly appreciated.
    Thanks and Regards,
    Sandhya

    Batch processing usually involves using actions you have recorded.  In Action you can insert Path that can be used during processing documents.  Path have some size so you may want to only process document that have the same size.  Look in the Actions Palette fly-out menu for insert path.  It inserts|records the current document work path into the action being worked on and when the action is played it inserts the path into the document as the current work path..

Maybe you are looking for

  • Connection E62 to internet via Bluetooth

    Since I was dumb enough to get the non-WLAN version of this phone, I was hoping to use the Bluetooth connection with my laptop to access the Internet or company LAN. I have setup the Bluetooth device as COM 9 port but I am unable to assign that port

  • JCO RFC Server - defining a repository

    Hi, We're creating an RFC listener through JCO, and I'm not entirely sure where definitions for the RFCs go.  Originally, we had the RFC definitions defined as stubbed out shell Functions, and in the Java code as a JCO.MetaData repository definition

  • Use iPhoto library from a external hard drive

    Hey folks, I've just bought a brand new external harddrive only to help me out freeing my available space which was pretty much all consumed by my photos and videos stored in iPhoto. So my problem is: All my stuff on iPhoto is stored on the 'Macintos

  • Upgrading to new Hard Drives on XW4400 Workstation

    Trying to upgrade to higher capacity hard drives (Seagate/300Gb & 500Gb) on my XW4400 workstation is NO-GO.  Took original drives out, put in new drives - System (Windows7/64) cannot find my new drives when install is attempted.  F10 Setup (I believe

  • Adjustments infotype 0221 sub-types yana/yawa doubt

    Hi All, Worked and adjustments before and as far as I now we use: 1) YAWA/YANA subtypes of infotype 0221 for prior year adjustments with a check date of 12/31/last-year or the last years most recent payroll check date for terminated employees. 2) TWE