Error reference not defined?

I get error referenceerror:usd is not defined. CURRDEF=USD, what is suppose to do is
user chooses sales center from dropdown and it will change the currency depending on
what it is. i would think here is not passing it. not sure what im doing wrong.
on firebug it shows
var v_data_sales ={pvCurrCd:USD,
pnSalesCenterID: $(this).find("#pnSalesCenterID").val()
below is my code
the first part is where you select a sales center
HTP.P('<td class="reqlabel1">Sales Center:</td>');
        HTP.P('<td class="tablelabel">');
         HTP.P(Get_Sc_Dd(PVNAME=>'pnSalesCenterID', PVORAID=> VUSERNAME, PVDEFVAL => NSALESCENTERID, PVEVENT=>'class="reqinput1"  onChange="makeRequest();"   style="width:260px"'));
CURRDEF := get_criteria_rec('PROP_CURR_DEF',dml_p_oracle_user.get_rec(VUSERNAME).global_region).include_list;
      HTP.P( '<script>
function makeRequest(){
var v_data_sales ={pvCurrCd:'||CURRDEF||',
          pnSalesCenterID: $(this).find("#pnSalesCenterID").val()
     $.ajax({
          url:contr_entry_pkg.select_sales_center,
          data:v_data_sales,
          async:false,
          success: function(vRetVal){
                   var jsonObj =  eval("("+vRetVal+")");
     HTP.P( '</script>');       
         HTP.P('<td class="reqlabel1">Currency:</td>');
        HTP.P('<td class="tablelabel">');
         HTP.P(Get_Currency_Dd(PVNAME=>'pvCurrCd', PVDEFVAL => NULL, PVEVENT=>'class="reqinput1" onblur="makeRequest();"  style="width:200px"'));
       HTP.P('</td>');

I've done no work with ajax and HTP.P, but it looks like that error would be coming out of contr_entry_pkg.select_sales_center being called with pvCurrCd => 'usd' and pnSalesCenterID => some appropriate centre ID.
I'd
a) Test contr_entry_pkg.select_sales_center to see if it returns that sort of an error
b) see if it works with pvCurrCd => 'USD' - perhaps something is turning it to lowercase.
Message was edited by: davidp2
contr_entry_pkg.select_sales_center is presumably a stored procedure in a PL/SQL package, so you could test it from SQLPlus.

Similar Messages

  • Dbx forward reference not defined (for templated variable)

    I get the 'forward reference not defined' message very frequently when working with the Forte 6.1 C++ compiler and workshop. On the one occasion the variable wasn't an instance of a templated class, doing module <file>.cc fixed the problem. But what do I do for templated variables? Issuing the module command on the header file where they are defined doesn't work. It's very annoying, because it means that most of the time I can't inspect templated variables in the debugger.
    Regards,
    Martin.

    Haven't seen this myself but I saw this after some searching.
    http://forum.brightcove.com/t5/Player-APIs/new-error-on-ContextMenuClipboardItems/td-p/228 6
    Someone mentioned in the thread that compiling for FP10 as a workaround, can you try that.

  • HWC Problems Android Device ERROR : Resources not defined

    Hello, I got some problems with the Hybrid apps on android device.
    I'm using an android emulator and in an android device.
    My apps on the emulators are ok, but when i open my app in android devices i get the error "Resources not defined" in a popup.
    If when generate the app's check  Optimize java script, the error not appears but it's like the Jquery framework it's not working.
    The app version is the same but the android version it's different.
    Are any problems with the HWC and Android 4.4.2 version?
    Android version on emulator 4.2.2
    Android version on device 4.4.2
    Thanks
    Some info maybe helps
    SMP server 2.3 SP3
    Relay Server 16

    Hi Viru p, The version of HWC is 2.3.3.6954, it's the same in the emulator and in the device.
    The emulator it's the apk came with the SMP SDK 2.3, and the device it's installed from the play store.
    Maybe the problem it's in the SDK
    SAP Mobile WorkSpace Product
    Version: 2.3 SP03
    Build id: 201309221318
    SAP Mobile WorkSpace - Mobile Business Object Development Documentation
    Version: 2.3.3.20130922001053
    Build id: 20130922001053
    SAP Mobile WorkSpace - Hybrid App Package Development Documentation
    Version: 2.3.3.20130922001053
    Build id: 20130922001053
    SAP Mobile WorkSpace - Eclipse edition
    Version: 2.3.3
    Build id: 201309221318

  • What does "Ref Error: AGI_FB not defined" mean please?. It comes up every time on one of my favourite websites.

    When I log in to this website I get this message box "Ref Error: AGI_FB not defined" I have no idea what it means, or how to address it.

    Error 2000-2009 (2001, 2002, 2005, 2006, 2009, and so on): If you experience this issue on a Mac, disconnect third-party devices, hubs, spare cables, displays, reset the SMC, and then try to restore. If you are using a Windows computer, remove all USB devices and spare cables other than your keyboard, mouse, and the device, restart the computer, and try to restore. If that does not resolve the issue, try the USB issue-resolution steps and articles listed for Error 1604 above. If the issue persists, it may be related to conflicting security software.
    Above from:
    http://support.apple.com/kb/TS3694
    Are you talking about restoring?  A reset is:
    Reset iPod touch:  Press and hold the On/Off Sleep/Wake button and the Home
    button at the same time for at least ten seconds, until the Apple logo appears.

  • Goods Issue error - batches not defined for delivery item

    Hi,
    We are getting a Goods Issue error  u201CThe batches are not defined for delivery item 000010u201D.   We are only getting this error for a material that is being shipped against a particular third party sales scheduling agreement.  We went live in 2007 and we had no issues, but when we had to create a new Sched Agreement this year, for third party sales, we started to get this error.  However, if we re-activate the old scheduling agreement we do not get the error.  We have a batch job that executes the following steps:
    1.     VL06IG (collective goods receipt)
    2.     VL10 (collective delivery)
    3.     VL06O (collective GI)
    We have compared the 2 scheduling agreements and see no difference.  We are assuming it has something to do with how the scheduling agreement was setup, but are not sure.  Any suggestions on how to correct this problem would be much appreciated.
    Thanks in advance,
    Helen

    Dear Murali,
    The material has not changed at all.  I'm not sure what you mean by maintaining batches while receipt of the material.
    If I re-open the old scheduling agreement, we do not get the error message.  However, as soon as we use the new SD scheduling agreement, we get the error.  We are using the same material master on both scheduling agreements.
    Thanks,
    Helen

  • Error Bookmark not defined?

    Hi, How do I remove "ERROR! Bookmark not defined" from the Table of Contents after converting a Word document to PDF? Also the page number are being corrected with updates.
    Thanks 

    This can only be done in Acrobat, not Reader.

  • Inforecord Rounding Profile error- RP not defined eventhough it is maintain

    Dear Gurus,
    I have maintained the Rounding Profile in the transaction OWD1. Yet, the inforecord does not display it in the dropdown list and I am getting the error 'Rounding Profile not defined in Plant'.
    Request your help in solving this.
    Regards,
    Sathish Kumar

    hi
    check out this spro path
    Materials Management --> Consumption-Based Planning --> Planning --> Lot-Size Calculation -->> Maintain Rounding Profile
    also check whether you entered any plant in that field.
    Edited by: AP on Mar 7, 2012 11:16 AM

  • Error do_default not defined

    After upgrading from 3.x, I cannot open links within CA Service Desk. Firefox Error Console shows error msg do_default is not defined.

    When do you get that error?
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Error:Measures not defined.

    <p>Hi All-</p><p> </p><p>I am using EIS to build the Outline,but when I try to save theMetaoutline I get an Error message as</p><p><b>MEASURES NOT DEFINED.(I also get a message as you can stillsave the Outline but cannot do a member or a data load)</b></p><p> </p><p>I have these dimensions in my Metaoutline:</p><p>Measure : Accounts - Dense</p><p>Period:Time - Dense</p><p>Scenario - Dense</p><p>Company - Sparse</p><p>Type - Sparse</p><p> </p><p>Please help to overcome this error.</p><p> </p><p>thanks in advance.</p><p> </p><p>Jeeva</p>

    <p>Thanks for the reply,but if I go back to my OLAP model to changethe Measure dimension as Accont dimension,when I go to theProperties of Measure Dimension the Dimension Type field where wedefine the dimension as Account is GRAYED out and has GENERAL init.I cant modify it.What do I do.......?Please help.</p><p> </p><p>thanks,</p><p>jeeva</p>

  • Variable not defined: '_MR' error when using sub template

    Hi,
    I am creating a check print report. When I had the check layout and the invoice layout on the same template it worked fine. But when I moved the check layout to a sub template then I started getting the error Variable not defined: '_MR' but I dont have any variable '_MR' can some please help me on this.
    Thanks a ton in advance
    Lakshmanan a.

    Hi Lakshmanan
    Its probably worth running the XML Publisher template regenerator program. somehow, I think your templates are out of sync
    Regards
    Tim
    http://blogs.oracle.com/xmlpublisher

  • Idoc Status 51 - Vendor not defined in company code

    Hi All
    I'm having an error when performing intercompany stock transfer. The system creates an idoc but unable to post the subsequent document due to the error " VENDOR NOT DEFINED IN COMPANY CODE XXXX"- Status 51.  I have checked over and over ahain but everything looks ok. Could sme1 let me know what I could be missing please
    Thanks a lot
    Edited by: Joe Ujoh on Jul 22, 2008 5:27 PM

    Hi Joe,
    You said you checked everything again and again and is OK; to start with, does the vendor exist in CoCd - pl. check using T code XK03 and see if you have anything in Company Code data.

  • Variable not defined: '_XDOXSLTCTX'

    Hi,
    This is Rama krishna. I have implemented a prototype for barcode generation service using BI Publisher API. I am using Jdeveloper 11g. I have created a small ADF Fusion application to consume the webservice.
    My application is working fine when I run it in Jdeveloper 11g.
    When I run it after deploying to standalone Weblogic server 10.3, I am getting the following error while generating the XSL. I found that RTFProcessor did not generate xsl:params and xsl:variables.
    020609_111410132http://oracle.apps.xdo.common.xml.XSLTWrapperEXCEPTION XSL error:
    <Line 11, Column 170>: XML-22031: (Error) Variable not defined: '_XDOXSLTCTX'.
    Any idea why RTFProcessor is not generating XSL properly when deployed to Oracle WLS 10.3?
    Thanks in advance.
    Thanks & Regards,
    Rama Krishna. P

    Are you trying to use _XDOCTX?
    Use the following syntax to declare/set a variable value:
    <?xdoxslt:set_variable($_XDOCTX, 'variable name', value)?>
    Use the following syntax to retrieve a variable value:
    <?xdoxslt:get_variable($_XDOCTX, 'variable name')?>

  • Variable not defined

    Hi All,
    we are currently upgrading the addon that created using VB6 from B1 2004A to 2007A. When compiling or make project dll file, there is an error message : "Compile Error : variable not defined"
    then the system shows or highlight
    Private Sub Form_Load()
    CRViewer.Top = 0
    CRViewer.Left = 0
    etc
    How to resolve this problem ? Pls give advice.
    Rgd,
    Steve

    Hi,
    Thx for your answer. yes, you are correct. It is CRViewer91in the properties of the CRViewer form meanwhile in the source code CRViewer.
    Rgd,
    Steve

  • XSQL variable not defined

    Hallo,
    with the new XSQL-Version 9.2.0.4.0 I get this error:
    XSL-1031: (Error) Variable not defined: 'colspan'.
    transforming a XML File like:
    <ingroup >
    <INPUT />
    </ingroup>
    with an XSL-File like:
    <xsl:template match="ingroup">
    <xsl:variable name="colspan">something</xsl:variable>
    <xsl:apply-templates/>
    </xsl:template>
    <xsl:template match="INPUT" >
    <xsl:value-of select="$colspan"/>
    </xsl:template>
    In the former versions it happens correct:
    A variable defined in one scope is usable in all templates called in this scope.
    What do You do? And what shall I do?
    Greetings from Roland Minde

    You can't share XSL variable across templates. It likes a local variable.

  • Msgservername not defined

    Hi Experts,
    when i try to create JCO Destinations i am getting this error MSGSERVERNAME NOT DEFINED
    so could any one tell me why i am getting this error.
    Thanks
    Shikore
    Edited by: kishore shikore on Jan 21, 2010 11:49 AM

    Hi Surekha,
    Thanks for your reply, i am able to create the destinations but when i test it i am getting following error.
    com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM  TYPE=B MSHOST=HDV saphrdv1 GROUP=HRUSERS R3NAME=HDV MSSERV=sapmsHDV PCS=1 LOCATION    CPIC (TCP/IP) on local host with Unicode ERROR       hostname 'HDV saphrdv1' unknown TIME        Thu Jan 21 03:15:23 2010 RELEASE     701 COMPONENT   NI (network interface) VERSION     38 RC          -2 MODULE      niuxi.c LINE        1536 DETAIL      NiPGetHostByName2: hostname 'HDV saphrdv1' not found SYSTEM CALL gethostbyname_r COUNTER     3 
    Thanks,
    shikore

Maybe you are looking for