• Lokendra
  • NEWBIE
  • 25 Points
  • Member since 2013

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 3
    Replies

Hi,

  I have a requirement that is explained below:

 

I have one input field on visualforce page. Along with this there is a button "Get Sum". Now I want that when user enters a number and clicks the button , an outpu field should show the sum of all numbers entered earlier and the present number. for eg:

 

Input     Output

1            0+1=1

2            1+2=3

3            3+3=6

4            4+6=10

5            5+10=15

6            15+6=21

7             21+7=28

8             28+8=36

.

.

.

.

.

N numbers

 

Please suggest a suitable approach.

 

Hello,

          I have a requirement to write a trigger to update the checkbox on the relatedlist of an object.

 

Scenario

 

There are 2 objects here

 

1.master__c

2. child__c

 

There is a custom field on the child__c called "check__c". so if there are two child__c records on a master__c record. only one child__c record can be updated with the check__c as "true" at any given point of time, so, if we try to update the other child record as true, the check box on the first record should get unchecked.

 

Any help will be appreciated.

 

Thanks,

vamshi

Hi,

  I have a requirement that is explained below:

 

I have one input field on visualforce page. Along with this there is a button "Get Sum". Now I want that when user enters a number and clicks the button , an outpu field should show the sum of all numbers entered earlier and the present number. for eg:

 

Input     Output

1            0+1=1

2            1+2=3

3            3+3=6

4            4+6=10

5            5+10=15

6            15+6=21

7             21+7=28

8             28+8=36

.

.

.

.

.

N numbers

 

Please suggest a suitable approach.