Learn how to set up a counter or sum a total for a repeater, by setting up a variable. Discover how to reset the variable to zero when the first repeater item loads, increment the value in the repeater's OnItemLoad event, and display the final value when the last repeater item loads.
- [Instructor] When were working with repeaters…there will be time when we'll want to add a running total…for one of our columns of data.…Maybe we've got a shopping cart page like this one…where we want to be able to add items to a cart…and then show a total in a shopping cart somewhere.…Or it might be a data table where we need to total up…one of the columns and then display…that somewhere else on our interface.…We can actually make the repeater do that work…of totalling up values for us while it's loading up items.…And what we'll do now is total up the amount…of all of the open invoices in this repeater…and then show that total up at top of the page…where it says, outstanding balance.…
What we'll be doing here is that…when the repeater first starts loading up items…when it's loading up this first item here…we'll set a variable to zero then…for each of the open invoices as the repeater is loading up…that item we'll have the repeater add…that amount to our variable.…Then when we get to the last item,…that's when we'll show the total…
- Using variables in Axure
- String methods in Axure
- Truncating text strings
- Formatting dates and times
- Setting up a looping animation
- Setting up a responsive background image
- Positioning widgets in the browser
- Repeater and item properties
Skill Level Advanced
1. Widget Properties
3. Dates and Times
4. Window Properties
5. Repeater and Item Properties
6. Global Variables
Global variables2m 14s
Using plugins on Axure Share2m 49s
8. When Things Go Wrong
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.