MIS 3200 – Unit 5.3 Manipulating ListItem controls – Moving ListItems between ListItem controls – Removing ListItems from ListItem controls.

Slides:



Advertisements
Similar presentations
ProgressBook User Start-Up
Advertisements

Excel 2007 ® Business and Personal Finances How can Excel 2007 help you create data and content in a worksheet?
Programming with Microsoft Visual Basic th Edition
E-Portfolio July2014 Managing Multi-source Feedback.
Using Excel to Prepare Trial Balance Worksheets. What are Trial Balance Worksheets? Trial Balance Worksheets are prepared by accountants at the end of.
GSA eBuy Seller’s Tutorial
This basic tutorial will take vendors step by step through the RFQ process. The tutorial will also point out many of the exciting new.
MIS 3200 – Unit 4 Complex Conditional Statements – else if – switch.
Managing Grades with Excel Viewing Help To view Help 1.Open Excel on your computer. 2.In the top right hand corner of the Excel Screen type in the.
Early Registration System Version 1.1 Student’s Manual Developed by Ovais Khan.
Kabel Nathan Stanwicks, Head Circulation and Media Services Department Electronic Reserves Introductory Tutorial for Faculty.
Title Description Graphic. Choice A A B C Question Choice B Choice C Graphic.
List-based Controls. Slide 2 Introduction There are several controls that work with lists ComboBox ListBox CheckedListBox.
There is a certain way that an HTML file should be set up. The HTML section declares a beginning and an ending. Within the HTML, there should be a HEAD.
Chapter 2 Querying a Database
Notes to Teachers: 1.Make sure each student has his/her file open from the previous class “(student name).xlsx”. 2.A vocabulary list is included on last.
MIS 3200 – Unit 6.2 Learning Objectives How to move data between pages – Using Query Strings How to control errors on web pages – Using Try-catch.
JQuery Page Slider. Our goal is to get to the functionality of the Panic Coda web site.Panic Coda web site.
MBAC 611.  Within your private mbac611 folder create a lab5 folder.  Copy the Moodle file lab3_vars to your lab5 folder.  Start Mathematica  Enter.
Unit 8.2 Learning Objectives How data can be used – The Money Ball Example The Money Ball Example Data Warehouses – The Role of Data Warehouses The Role.
SharePoint You must use Internet Explorer Single click only on links and buttons There are two handouts 1.Importing a Web Part into SharePoint 2.Adding.
AESuniversity User Tips & Tricks. Session Outline  Working with your Caseload Customers  Recording Services  Snapshot Tips  Searching Tips  Working.
A Power Point Presentation For... A Power Point Presentation ( click to advance slides )
Using the TI-83+ Creating Graphs with Data. Preparing to Graph  Once the calculator is on and you have entered data into your lists, press the “Y=“ button.
Systems Module Slide 2 – Overview and Navigation
MIS 3200 – C# (C Sharp)
MIS 3200 – Unit 4.2 ListItem controls – CheckBoxList – ListBox.
Adobe InDesign CS5 – Illustrated Unit E: Using Master Pages Adobe InDesign CS5 – Illustrated Unit E: Using Master Pages.
JavaScript, Fourth Edition Chapter 5 Validating Form Data with JavaScript.
May 2, 2013 An introduction to DSpace. Module 9 – Item submission workflows By the end of this module, you will … Understand the purpose of workflows.
CSC350: Learning Management Systems COMSATS Institute of Information Technology (Virtual Campus)
How to set up a TWEN page By Alissa Black-Dorward
MIS 3200 – Unit 3 What can computers do – Follow a sequence of instructions – Follow different paths of instructions based on decisions – Do things over.
Collecting Things Together - Lists 1. We’ve seen that Python can store things in memory and retrieve, using names. Sometime we want to store a bunch of.
Forms and Server Side Includes. What are Forms? Forms are used to get user input We’ve all used them before. For example, ever had to sign up for courses.
Introduction to Excel Editing Your Workbook.
Basic Editing Lesson 2.
Microsoft ® Office Excel 2003 Training Using XML in Excel SynAppSys Educational Services presents:
Microsoft ® Office SharePoint ® Training Sharjah Higher Colleges of Technology presents:
Guide for Mahara My Views PY1 team 3 - Yihong Huo, Jian Ren, Poonam Kala 1Guide of My Views - Team 3.
Welcome to State of Michigan Time & Expense Processing Employee Expense Modification (No Advance) Tutorial Brought to you by the Office of Financial Management.
Lesson 7 – Microsoft Excel 2010 Working with Tables, PivotTables, and PivotCharts.
Links take you to…  Different slides in your presentation  A different PowerPoint presentation  Any program - (Word can be used for example to complete.
Event Handling. Objectives Using event handlers Simulating events Using event-related methods.
MIS 3200 – Unit 5.1 Iteration (looping) – while loops – for loops Working with List Items.
Creating a Form. Accessing Docs Log into your USD 465 Google Account Click on the “Documents” link at the top of.
Unit 8.2 Learning Objectives Data Warehouses – The Role of Data Warehouses The Role of Data Warehouses – Group Exercise Accessing Data in Views – Accessing.
MyCLSS v.2 Critical Issues and Amend Checklist. Critical Issue After receiving final returns, SGB staff will perform a review according to a list of critical.
Let’s say you wanted to delete this page from the newsletter template.
Introduction to Blogs Dr. Nazli Hardy Millersville University EDW 647 Thursday: Part 1 Blogging Important: read the entire presentation before attempting.
MIS 3200 – C# (C Sharp)
Chapter 5 Validating Form Data with JavaScript
Final Data Review and Invalidation
Unit 8.2 How data can be used Accessing Data in Views
Guided By: WpglobalsupportWpglobalsupport WordPress: Adding the WordPress Logout Link to Navigation Menu Guided by: wpglobalsupportwpglobalsupport.
MIS 3200 – Unit 3 What can computers do
MIS 3200 – Unit 4 Complex Conditional Statements else if switch.
Your Goals and Objectives
A Power Point Presentation
Unit 9.3 Learning Objectives Review database access in code
MIS 3200 – Unit 5.2 ListItem controls and accumulation
Lecture Set 10 Windows Controls and Forms
EFF Factor Training Program
Adding , Editing, and Assigning Full Text Finder Links
Animated PowerPoint Template
MIS 3200 – Unit 5.1 Iteration (looping) Working with List Items
MIS 3200 – Unit 6.1 Moving between pages by redirecting
GSA eBuy Seller’s Tutorial
Navigating NEIU Blackboard 417 – 418a
Presentation transcript:

MIS 3200 – Unit 5.3 Manipulating ListItem controls – Moving ListItems between ListItem controls – Removing ListItems from ListItem controls

Moving ListItems between Listboxes Assume we have created a ListBox called lbMenu which looks like this: And the source view of lbMenu might look like this:

Moving ListItems #2 With a 2 nd listbox and a couple of buttons we easily move ListItems from one ListBox to another: in the picture above, the 2 nd ListBox source looks like this

Moving ListItems #3 Using a for loop to help us identify which items are selected, we can Add ListItems to our 2 nd ListBox: This says to ADD a ListItem to the Items collection of lbSelected. ListItems are added to the end of the collection.

Removing ListItems from a ListBox If we want to remove items that have been selected, we will use a 2 nd for loop to Remove selected ListItems from to our 1 st ListBox: This says to remove a specific ListItem from the Items collection of lbMenu. In this case the item is the one referenced in lbSelected.

Un-selecting ListItems Notice how the items we added on the previous slide remained selected? If we want to un-select the newly added items, we need to set the SelectedIndex of our 2 nd Listbox to -1 at the end of the method

Moving ListItems to Select into a new Box

Reversing the process What if we would like to allow the customer to change their mind?

Reversing the process #2 Remember – this approach only works when a list item can be in only one list box at a time

Accumulating all items If we want to show a total, (just like what we did in Unit 5.2) we can use a for loop to identify ALL items in the “Selected Items” ListBox:

Accumulating all items #2 Notice how we removed the if statement from 5.2 – we do not care if the item is selected or not, we already know they want it so we must add up everything in the “Selected Items” ListBox

Time to try it out – Unit 5 L2.2 Moving and deleting ListBox items 1.Copy your U5L2 assignment and paste it in the Unit 5 as lastnameU5L22.aspx 2.Add two buttons which will emulate the example from the beginning of this Unit 1.One button will perform the Select functionality 2.One button will perform the Remove functionality 3.Add a 2 nd ListBox which will hold the selected fees 1.Set the SelectionMode to Multiple 2.Set the Rows to 5

L2.2 #2 4.The user should be able to select fees and remove fees just like the previous example (see slides 7 & 9) 5.Modify the Calculate button method so that the fees are added up based on any fee in the 2 nd listbox (it does not matter if they are selected or not, the fact that they are in the “Selected Items” ListBox means it should be reflected in the total) 6.After the Calculate button is pressed, reset the selected fees (the fees do not have to be in any particular order, but all fees must be removed from the selected fees ListBox and moved back into the 1 st ListBox)

L2.2 #3 7.Modify your heading to reflect this is Unit 5 L2.2 (instead of L2) 8.Add appropriate comments to explain what the methods are doing 9.Create a link to your U5L2.2 page from your MIS3200 page and copy everything to ASPNET and submit your MIS Portfolio URL to the drop box.

Think About It! With 2 ListBoxes, adding and removing selected items from one to another can really improve the usability of our page. Using the “select” and “remove” buttons gets us closer to expected checkout functionality.