1

I get error

[Error] PLS-00103 (805: 6): PLS-00103: Encountered the symbol "HTP" when expecting one of the following: := . ( % ;
The symbol ":=" was substituted for "HTP" to continue.

Which is the last line, I don't see anything that I'm missing, but obviously there is a comma or something. Can anyone help?

      HTP.P( '<script> 
 function currencychange(){

     $.ajax({
          url:contr_entry_pkg.select_sales_center,
          data: { pvCurrCd:'||CURRDEF||',
          pnSalesCenterID: $(this).find("#pnSalesCenterID").val()

                }
          async:false,
          success: function(vRetVal){
                 var jsonObj =  eval("("+vRetVal+")");
               }

               });
           };' )   
     HTP.P( '</script>');  
1
  • 1
    The syntax highlighting in this question should make it pretty obvious that you've forgotten to escape some quotes. Commented Nov 5, 2013 at 19:43

2 Answers 2

1

Maybe there should be ; before last line

'...
       };' );   
 HTP.P( '</script>');  
Sign up to request clarification or add additional context in comments.

1 Comment

thanks that solve that ,but now i get missing } after property list async:false,
0

As you can see with syntax hightlighting...

HTP.P('<script> 
    function currencychange(){
    $.ajax({
      url:contr_entry_pkg.select_sales_center,
      data: { 
        pvCurrCd:"||CURRDEF||",
        pnSalesCenterID: $(this).find("#pnSalesCenterID").val()
      },
      async:false,
      success: function(vRetVal) {
        var jsonObj =  eval("("+vRetVal+")");
      }

    });
};');   

HTP.P('</script>');  

1 Comment

Actually, it looks like a function which outputs a generated javascript string - so the highlighting seems reasonable

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.