• moritz.dev1.3947933254307776E12
  • NEWBIE
  • 5 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 2
    Replies
Hey,

I am trying to integrate Angular in my VF pages.
For testing reasons, I started with the very first example of the page https://angularjs.org.

<apex:page sidebar="false" showHeader="false" >
    <html ng-app="">
   <head>
        <apex:includeScript value="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.js"/>
   </head>
   <body>
        <div>
          <label>Name:</label>
            <input type="text" ng-model="yourName" placeholder="Enter a name here"/>
            <hr/>
          <h1>Hello {{yourName}}!</h1>
        </div>
   </body>
</html>
   
</apex:page>


But It won't work. I really cannot see where the problem is.
Best regards
Hey guys,
I am fairly new to Remoting. I tried it on a small class to test it out and it works.
Now I am programming a Contact Creator (Just for the fun of it and learning).
But I can not get my Remoting zu work.
The called method worked fine whenever I used apex:action elements.
What I noticed is, that the page reloads everytime I hit the "create Dummie" button.

Any idea what I am doing wrong?

<script type="text/javascript">
    function createDummiesRemote() {
        var integer = document.getElementById('input').value;
        Visualforce.remoting.Manager.invokeAction(
           
            '{!$RemoteAction.MoesController.createDummies}',
            integer,
            function(result, event){
                if (event.status) {
                    alert("Dummies created");
                } else if (event.type === 'exception') {
                    alert("exception: "+event.message);
                } else {
                    alert(event.message);
                }
            },
            {escape: true}
        );
        alert(integer);
    }
    </script>
  
It does reach the alert part and gives me the correct integer, so it is triggered correctly. Just the function does not seem to work.
Hey,

I am trying to integrate Angular in my VF pages.
For testing reasons, I started with the very first example of the page https://angularjs.org.

<apex:page sidebar="false" showHeader="false" >
    <html ng-app="">
   <head>
        <apex:includeScript value="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.js"/>
   </head>
   <body>
        <div>
          <label>Name:</label>
            <input type="text" ng-model="yourName" placeholder="Enter a name here"/>
            <hr/>
          <h1>Hello {{yourName}}!</h1>
        </div>
   </body>
</html>
   
</apex:page>


But It won't work. I really cannot see where the problem is.
Best regards
Hey guys,
I am fairly new to Remoting. I tried it on a small class to test it out and it works.
Now I am programming a Contact Creator (Just for the fun of it and learning).
But I can not get my Remoting zu work.
The called method worked fine whenever I used apex:action elements.
What I noticed is, that the page reloads everytime I hit the "create Dummie" button.

Any idea what I am doing wrong?

<script type="text/javascript">
    function createDummiesRemote() {
        var integer = document.getElementById('input').value;
        Visualforce.remoting.Manager.invokeAction(
           
            '{!$RemoteAction.MoesController.createDummies}',
            integer,
            function(result, event){
                if (event.status) {
                    alert("Dummies created");
                } else if (event.type === 'exception') {
                    alert("exception: "+event.message);
                } else {
                    alert(event.message);
                }
            },
            {escape: true}
        );
        alert(integer);
    }
    </script>
  
It does reach the alert part and gives me the correct integer, so it is triggered correctly. Just the function does not seem to work.

Hi,

 

I have the following data in Long textarea field:

 

***Customer's Financial Summary as of 10/08/2012 ***

--Total Balances--
Net Balance:____ GBP 323,183
Total Credit Balances:____ GBP 76,627
Total Debit Balances:____ GBP 246,556

--Product Balances--
Credit Balance:____ GBP 312
Term Loans:____ GBP 12,321

--Interest and Charges(12 Month)--
Charge Income:____ GBP 312
Debit Interest:____ GBP 123
FX Income:____ GBP 234
Credit Interest:____ GBP 432

 

But when i reference this data in my visualforce PDF, the format changes to this:

 

***Customer's Financial Summary as of 10/08/2012 *** --Total Balances-- Net Balance:____ GBP 323,183 Total Credit Balances:____ GBP 76,627 Total

Debit Balances:____ GBP 246,556 --Product Balances-- Credit Balance:____ GBP 312 Term Loans:____ GBP 12,321 --Interest and Charges(12 Month)--

Charge Income:____ GBP 312 Debit Interest:____ GBP 123 FX Income:____ GBP 234 Credit Interest:____ GBP 432

 

It loses all the carriage return. How do i fix this formating issue?

 

Thanks in-advance

 

 

  • August 10, 2012
  • Like
  • 0