Interactive pricing module issue

what is going on here? there seems to be an issue in AS2 and
I'm not sure what's at the root of it.
except for the values 1.1, 2.2, 4.4 and 8.8 I can get all
other digit combinations to display in a monetary/currency type
format of two decimal places (including *.00 and *.*0). I'm using a
TextInput component together with a listener for trial purposes.
code follows below.
any thoughts please? thank you :)
here's the code:-
function currency(amount:Number):String {
amount = 100 * amount;
trace("amount x 100 = " + amount);
if (amount%100 == 0) {
trace("hundreds amount = " + amount);
conclusion = amount/100 + ".00";
trace("conclusion = " + conclusion);
return conclusion;
} else {
if (amount%10 == 0) {
conclusion = ((amount/100) + "0");
trace("tens amount = " + amount);
trace("conclusion = " + conclusion);
return conclusion;
} else {
conclusion = amount /100;
trace("zeros amount = " + amount);
trace("conclusion = " + conclusion);
return conclusion;
here's the listener:-
fieldupdater.change = function(evtObj) {
trace("evtObj.target.text = " + evtObj.target.text);
var inputdigits:Number = evtObj.target.text;
trace("testdigits = " + currency(Number(inputdigits)));
trace("");
here's the register:-
ctiTestField.addEventListener("change", fieldupdater);
just add a textinput component (called ctiTestField) to the
stage and give it a try and you may experience the same trace
output; if not please let me know.

The problem appears to lie in the following computation in
the conditional:
amount%10
The problem is probably related to Flash's less than precise
math capabilities (even for simple math). If you trace it you'll
see what I mean. What I did was change it to be:
Math.round(amount%10)
and it managed to produce the desired result for a #.# value.
I didn't chase it beyond that..

Similar Messages

  • PI 7.1 adapter module issue

    I deoplyed my module and worked fine. now i changed some code by adding parameter to module
    strModuleKey = moduleContext.getContextData("module.key");
    I changed the related things in my communication channel(gave parameters)
    Now, i get below error while executing...
    java.lang.ClassCastException: class com.sap.aii.af.sdk.xi.mo.MessageContext:library:com.sap.aii.af.sdk.libcom.sap.engine.boot.loader.ResourceMultiParentClassLoader428c6e04alive incompatible with interface com.sap.engine.interfaces.messaging.api.Message:interface:com.sap.aii.af.ms.ifccom.sap.engine.boot.loader.ResourceMultiParentClassLoader2dd7e4d6alive
    Followed the below url but in vain..
    PI JAVA ADAPTER MODULE PROBLEM
    Incompatible with interface - Exception in Adapter Module
    Issue on developing Adapter Module
    Also if you are using PI 7.1 refer to the blog:
    /people/stefan.grube/blog/2008/12/11/adjust-your-pi-70-adapter-modules-for-pi-71-in-15-minutes
    Please let me know if u have any other suggestions other than this...
    Thanks
    Prabhakar

    Hi Venkat,
    Yes, you cannot add custom modules to soap adapter.
    Please refer below documentation for the same..!!
    http://help.sap.com/saphelp_nwpi71/helpdata/EN/44/8c4756224a6fb5e10000000a155369/content.htm
    http://help.sap.com/saphelp_nwpi71/helpdata/EN/69/a6fb3fea9df028e10000000a1550b0/frameset.htm
    Regards,
    Swetha.

  • Flex Module issue with Panel

    Hello everyone. I have the following problem.
    In my application I have several modules and each of them have components CollapsableTitleWindow (extends Panel). After opening the window it is added to the container which is in the main application (CollapsableTitleWindowContainer). In these windows you can open another window (and so on).
    Now, what is the problem. When I change (reload) any module and I want to open a new window (sub window) with the already loaded window I get this error:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at mx.containers::Panel/layoutChrome()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\containers\Panel.as:1405]
    at com::CollapsableTitleWindow/layoutChrome()[D:\Flex 3 Workspace\WesobCrm\src\com\CollapsableTitleWindow.as:216]
    at mx.core::Container/updateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\Container.as:2867] (...)
    Indicates that the main applications have object Panel
    Please help.
    P.S. I found a similar problem on http://www.nabble.com/Flex-Module-issue-with-Panel-td20168053.html
    ADDED: I extendes the Panel class and do something like that:
    override protected function layoutChrome(unscaledWidth:Number, unscaledHeight:Number):void
                    use namespace mx_internal;
                    if(!(mx_internal::titleBarBackground is TitleBackground)) {
                            mx_internal::titleBarBackground = new TitleBackground();
                    super.layoutChrome(unscaledWidth, unscaledHeight);                     
    But now i had something like that: Before After
    You can see that it loos style declaration.H

    Thanks for the anserw.
    I don't exacly understand all but i found a solution for my problem and it works.
    Could you tell me if this is ok ?
    I Add in my main app
    public function getProductWindow():ProductWindow {
        return new ProductWindow();
    And in the module i change
    From var productWindow:ProductWindow = new ProductWindow();
    To var productWindow:ProductWindow = Application.application.getProductWindow();

  • Application Module Issue

    We are experiencing an issue when using multiple Java Restful web services on our development Oracle Weblogic. Each of these services uses ADF BC for DB interaction. The test case scenario is Web service A does some database work via ADF BC and then calls Web service B which also interacts with the DB. Both of these services are hosted on the same managed server instance within Weblogic,  The error we are experiencing is as follows (I can post full stack trace if requested):
    java.lang.ClassCastException: oracle.jbo.common.DefLocaleContext cannot be cast to oracle.jbo.common.DefLocaleContext                at oracle.jbo.common.DefLocaleContext.getInstance(DefLocaleContext.java:84)
    Debugging our code we can see that the following line of code (highlighted in bold) is where the error is thrown.
                String amDef = "package.AppMod";
                String config = " AppModLocal";
                ApplicationModule am = null;
                am  = Configuration.createRootApplicationModule(amDef, config); //Error Here
    The bizarre thing is that it seems almost random in which of the service the error will be thrown. It never occurs on the first run after a deploy to the server, but will occur on subsequent runs. We correctly use the following line in each of our service to release the application module:
               Configuration.releaseRootApplicationModule(am, true);
    We have tried including adfBinding filters in our web.xml but still with no success.
    Details of our setup follow:
    Application Server: Oracle Weblogic Server 10.3.6, JDK 1.7.0.21, JSF 2.0, ADF Runtime 11.1.2.4
    Database: 11 R2 - 11.2.0.3
    JDeveloper: 11.1.2.4
    Any assistance would be greatly appreciated.

    Hi User,
    out of sheer curiosity. Are you really using ADF 11.1.1.6 and JDeveloper 11.1.2.4 together? How does that work?
    Regards,
    Linda

  • Print module issues

    Hi,
    for me there are three issues that are missing / should be improved with the print module:
    The  sharpening quality and setting options are still behind i.e. Qimage.  Having  in mind what Qimage is costing, it should be fairly ease for  Adobe to  reach the better Qimage output sharpening quality.
    Soft proofing is still missing and should be added in the next major release at the latest.
    There  should be something like a loop view for the print layout screen. When  using large format printer formats the rulers become extremely small that an  exact positioning is almost impossible.
    Looking forward to these, in the given priority.
    Thomas

    G_Lat wrote:
    The print resolution is no longer displayed making it difficult to decide if I need to modify the resolution prior to printing.
    Why would you modify the resolution? One of the huge advantages of Lightroom is that you don't have to do things like this anymore.  You simply choose the output resolution in the Print Job panel and Lightroom takes care of the rest.  How (and why) exactly are modifying resolution?
    As to your second question, I am getting a print preview when I turn it on in the printer driver. Although I would never use it, it is working here.
    It might help to submit some system info and some printer info:

  • Regarding Vendor Balance Confirmation Report(FI Module Issue)

    Hi Experts
    I have a small issue in FI Module while using standard Programe(SAPF130K).
    If you execute the above program and pass the parameters vendor no and posting date then only get the data.
    But my client requirment is Get the data based on ProfitCenter(PRCTR) and they want only Open Items.In Select-Options Profit Center is not there.I need to add PRCTR(Profit Center) in select-options.
    In standard program used BSIK and BSAK.
    These two tables in Profit Center data is not available.How can i get data based on Profit Center.
    My variant
    Select-Options is
    given below.
    "--Select Options"
    Vendor 1010000001
    CompanyCode 1000
    Reconciliation Key Date -- current date
    adding this select-option---Profit Center  10200120
    Futhter Selections Check Individual Vendors
    Total Balance
    Check zero Balances
    Keydate For Master Records
    Form Set
    selected for Empty One in F4Help
    Sort Var.for Correspondence K3
    Line item sorting P3
    Date of issue current date
    Check No Reply(because not assaigned to Company Code)
    Printer for Form Set LP01
    Printer for Reconcil. List LP01
    Printer for results table LP01
    Printer for selections LP01
    Regards
    Hari

    HI,
    Kindly use table FAGLFLEXA and FAGLFLEXT for getting profit center data .Assign points if useful.
    Regards,
    Shradha.

  • SOAP Web Service +  Custom Login Module issue

    Hi Guys,
    We faced an authentication issue in our project. Could you please give any advice how the issue could be resolved.
    Environment: A simple SOAP Web Service on top of POJO class created in a Web Application. The web application deployed to the SAP NetWeaver 7.10 Application Server in the Enterprise Application Archive.
    Configuration:
          Single Service Administration Application(NetWeaver Administration -> SOA Management -> Application and Scenario Communication -> Single Service Administration)
           The web service endpoint has authentication configured to use User ID/Password HTTP Authentication.
        Authentication Application(NetWeaver Administration-> Configuration Management->Security->Authentication)
          The application(<vendorName>/<earName>*<vendor>~<webAppName>) has Authentication Stack configured to use our custom login module.
    Issue:  BasicPasswordLoginModule used by the J2EE when we are trying to execute the web service using Web Service Navigator(checked in debug mode). It seems that we missed something in configuration.
    Idea: The main Idea is to use our custom login module when we are executing a web service.
    Could you help me to resolve the issue.
    Thanks,
    Dmitry
    Edited by: Dmitry Eidin on Jul 17, 2009 3:46 PM

    > The web service endpoint has authentication configured to use User ID/Password HTTP Authentication.
    That's the point.

  • Interactive form generation issue

    Hi All,
    We created an application which generates an Adobe Interactive PDF forms. This was working fine previously, but now while generating the PDF it is taking a very long time ....10-15 minutes and after that it is giving the session timeout error. The system becomes idle during this time with no backend activities also.
    What could be the possible reasons for this? Does it have something to do with the ADS configuration?
    Please reply....really urgent
    Thanks,
    Sujit

    Hi,
    To resolve the timed out problem,
    1. Stop J2EE engine
    2. Check if XMLForm.exe or PDFManipulation.exe are running. If these processes are running, stop them.
    3. Rename folder /usr/sap/<SID> /JCxx/j2ee/os_libs/adssap -> adssap.old
    4. Start J2EE engine.
    If the issue is fixed, you can delete backup folder adssap.old.
    Regards
    Srinivasan T

  • PDF interactivity : page control issue (pdf file considered as a form)

    Hello there,
    I've got a slight but quite annoying issue when exporting a PDF from my InDesign CS3 file. Let me explain.
    The file is some sort of glossary with interactive content (such as a table of content, images with over effects and text with tooltips) and two buttons on the master page which allow the user to browse the document forward or backwards (basic next/previous page controls). Those two buttons work as expected, but their presence causes something strange when exporting the document.
    What happens is that the exported PDF document is considered as a form when those buttons are present.
    I'd like to keep those controls, but without having Acrobat Reader reminding me that I'm browsing through a form that I won't be able to save (bla bla bla). Which means that I just would like the file to behave as a standard document instead of a form document.
    If any of you ever experienced that issue, I'd like to know how you solved it.
    Thanks a lot.

    Thanks for the answer, but I found out the cause of the issue.
    What happens is quite weird.
    Using inDesign, once your file exceeds 100 buttons it exports itself as a PDF form instead of a standard PDF document. No straight solution seems to exist, but I found a way to bypass this problem.
    Instead of creating my controls in the master page, I created them (only once) in the first page they appear in. Then, in Acrobat Pro, I just selected them and used the "duplicate" command.
    There are two benefits when using this solution:
    your PDF document won't turn into a form (which can be a real problem if you don't want to confuse the document users)
    your PDF file will be lighter. Indeed, when creating a button in inDesign (even if you create it on the master page) the exported PDF document won't contain X occurences of the same button, but X different buttons (which can incread the size of your document dramaticaly when it reaches a large amount of pages).
    It took me hours to find out a solution to this problem, I hope it will help someone else than me.

  • GS1 barcode decode Function module issue

    We are facing an issue with LE_EAN128_DECODE standard Function module .
    standard gs1 barcode uses modulo 13 calculation method to decode check digit where as standard sap uses modulo 10 .
    standard function module LE_EAN128_DECODE uses modulo 10 method to calculate check digit .
    Is there a way to decode gs1 barccode in standard sap .
    Is there a standard function module in sap which uses modulo 13 method to decode gs1 barcodes in sap.
    Is there something we need to do in the SPRO configuration settings to enable this.

    Hi
    In FM check on which fields you have written delta logic, data will populate if we have changes to that field.
    we have some good documents on step by step of creating FM based generic extractors. check if you miss any steps
    http://explore-sapbw.blogspot.in/p/sdn-articles-extraction.html
    Regards,
    Venkatesh

  • Bridge CC Output Module Issues

    Is anyone else having issues with Bridge CC Output module? In every other version of Bridge I have used, I have been able to make PDFs or HTML slideshows from selected images without any problems or need to download any components. However, in Bridge CC, the "Output" link in the Bridge CC interface did nothing. Then I downloaded AOM components, including an Output workspace, put them where they needed to go in the Library, quit Bridge and restarted my computer (iMac 27" running OS10.9.1). This time, when I clicked the Output link, it did change the interface (from "Essentials") to what looked like the Output arrangement but the right-hand panel, where I normally have my PDF or HTML options, is blank. Appreciate any help.

    There are several long threads about this subject.
    Be sure to follow the instructions exactly (using the correct libraries and folders, be aware that by default the user library in Mac is hidden per OSX7) and also look at these threads:
    http://forums.adobe.com/message/5907610#5907610
    http://forums.adobe.com/thread/1256027?start=0&tstart=0

  • Major print module issue in LR3

    I've hit a wall in trying to figure out an extremely frustrating issue with the print module in Lightroom 3: every time I attempt to print a contact sheet to PDF, the entire system locks up immediately upon "rendering images," system usage seems at 100% across the board, and I have to forcibly shut down the application via the task manager. After Lightroom has finally closed, I see an error dump txt on my desktop from Adobe Distiller which reads as follows:
    %%[ ProductName: Distiller ]%%
    %%[ Error: syntaxerror; OffendingCommand: --nostringval-- ]%%
    Stack:
    /build_pattern
    %%[ Flushing: rest of job (to end-of-file) will be ignored ]%%
    %%[ Warning: PostScript error. No PDF file produced. ] %%
    I don't know if this Distiller error is in fact initiating the crash or if it's just the result of having forcibly shut down LR-- thus, I guess question #1 is whether this is an Acrobat or LR issue. I have uninstalled/reinstalled Lightroom at least three times; deleted and recreated the catalog; and updated to the latest version 3.2, and the error persists. I've also tried the print procedure with different batches/folders of images residing both on my local and external drives with the same behavior.
    My system info is as follows: ThinkStation E20 w/ X3450 Xeon and 4GB RAM, nVidia FX580 video card, running 64-bit Windows7 and 64-bit LR 3.2; also running latest updated version of Acrobat Pro, i.e .9.3.4.
    Only other thing I can think of that I haven't already tried is to uninstall and reinstall Acrobat Pro, which I've kept from the CS3 suite, although I'd rather avoid doing so if possible. I'll also add that this is a brand new system with fresh installs of *all* software including the CS5 suite.
    Printing contact sheets is one of my most common tasks in LR, so any help is *greatly* appreciated.

    well, interesting development here-- I have to humbly rescind my particular criticism of LR3 with respect to this issue, as much to my surprise after downgrading to 2.7, I experienced the exact same problem-- i.e. upon printing a contact sheet, the program locks up at "rendering images" and brings the whole system to a halt.
    in light of this development, it occurred to me to uninstall (64-bit) 2.7, and reinstall 32-bit LR3-- and lo and behold the print issue seems to be no more. so now the question is why would this be? an issue between LR3 64-bit and the OS (Windows 7 64) ? or perhaps a conflict between LR and Acrobat? maybe a driver conflict?
    any ideas/insights are welcome.

  • Pricing date issue

    Hello All,
    We have an issue with the Line item pricing date.
    In our project we are using the supersession functionality; we have one sales order with header pricing date ex: 25.12.2008 with some line items, for line item 10 we have created superesession material on 01.01.2009 with other material and maintained the pricing condition records validity date same as 01.01.2009.
    We maintained in a way that if the material is not available and superseded material is available one job will run and creates the new line item with superseded material and copies the all information from the old line item. Here the problem is it copied the old material pricing date as 25.12.2008 due to this the new line item price is not calculated because the condition record is available from 01.01.2009 and it is disable mode.
    Can any one give an idea how to solve the above issue.
    Thanks and Regards
    Srinivas Kapuganti

    Hi Srinivas,
          reading the answer above, there are 2 ways to solve your problem:
    1) Modify the logic that determines the pricing date
    2) Use the pricing reference material field (i.e. workaround)
    Unfortunately in the landscape currenly i'm working, I haven't installed APO... So I cannot make any tests in a similar landscape.. however I can try to suggest to you something...
    Concerning the "idea" N. 2 you have:
    A) To check (from a "business point of view") if superseeded material and the new material have the same price.. I think so.. In the past I've worked as consultant in an A&D company and we have implemented supersession.. Usually, from a "commercial point of view" no impact on pricing must be "charged" to the customer because "supersession". So, usually, the superseeded material and the new one has the same pricelist...
    B) From a "technical" point of view, try change manually the sales order updated by APO BOP and fill (manually) the field VBAP-PAMTN (item detail, tabstrip "Sales  B") and, please, check if SAP determines the correct price condition record.
    C) If test in point B is "ok".. I think that when BOP try to change the sales order, the userexit move_field_to_vbap will be called (include MV45AFZZ).. If you are able to understand to which "old" SO item is referred the new one, you can use this exit to fill VBAP-PMATN field of the new item with the superseeded material code (the old one)....
    Advantage:
    1) You don't have to change the program called by RFC from APO (maybe it requires an out of standard solution? I don't know..). You have "only" to implement an userexit..
    2) SD pricing date will be, also for the new item, the 25.12.2008; but, in this case, SD will be able to find (via PMATN field) the pricing condition record linked to the superseeded material. This solution is Ok if hypotesis in point A) is correct. Otherwise it make no sense.
    Sorry for quite long answer. Hope this help.
    Have a nice day - Massimo

  • SOAP adapter Module Issue

    Hi,
    i had configured a JDBC to SOAP scenario and the SOAP adapter has the Module (localejbs/ReplaceXMLTag)
    now the issue is while execute teh scenario, it works fine at DEV but shows error at QA as given below
    "Delivery exception: Object not found in Lookup of Replace XML tag"
    please let me know how to resolve this issue.
    Thanks in advance....

    > i had configured a JDBC to SOAP scenario and the SOAP adapter has the Module (localejbs/ReplaceXMLTag)
    > "Delivery exception: Object not found in Lookup of Replace XML tag"
    Have you spelled this correct? The name in the error message seems to be different from th module name.

  • HR module issue

    hi
    i am using BAPI_HELPVALUES_GET function module, through this i get employee group and employee subgroups separately,
    therefore my issue is how to find employee subgroup is of which employee group in bapi function module itself????
    i am executing bapi from se37 and giving input.
    thanx in adv
    manoj

    close the issue

Maybe you are looking for