in black and white
Main menu
Share a book About us Home
Biology Business Chemistry Computers Culture Economics Fiction Games Guide History Management Mathematical Medicine Mental Fitnes Physics Psychology Scince Sport Technics

Powering office 2003 with xml - Aitken P.

Aitken P. Powering office 2003 with xml - Wiley & sons , 2003. - 459 p.
ISBN: 0-7645-4122-6
Download (direct link): poweringoffice2003.pdf
Previous << 1 .. 93 94 95 96 97 98 < 99 > 100 101 102 103 104 105 .. 145 >> Next

Adding the In-Stock Data View
Follow these steps to add the Data View that will list in-stock items:
1. Place the cursor at the location for the Data View that will display in stock items.
2. Select Data ^ Insert Data View. FrontPage displays the Data Source Catalog task pane.
3. If you saved the InfoPath XML file to the Web site, it should already be listed in the XML Files section of the task pane. If not, use the Add to Catalog command on the task pane to locate the file and import it into the Web site.
294 Part IV: Case Studies
- Mkt ott OfHc# ItonfP-q. *05 http pq %hr.point appb. Pioducti ! HI* Ldit VU |m*rt ItniMt Io.k DU F|iMH Window *>
. ? A r :? ' : - ' *
4Dd . >(1> || t * ? A is is J
W61M hodulihlm'
<bO0r> |^>|
Eats On Line Product List
Items stock Chit of stock items
You may oc-ie* the it *xi w<* wi thtn too they
ї** Cob* |
+ ? X* <.**
Figure 14-4: The page before adding the Data Views.
4. Click the XML filename and select Insert Data View from the pop-up menu. FrontPage inserts a Data View into the page, as shown in Figure 14-5.
When you insert the Data View in Step 4,FrontPage may display a dialog box informing you that the page's extension must be change to .aspx.This is so because plain HTML pages, which is what FrontPage creates by default when you start a new blank page, do not support Data Views.To change the extension, choose File ^ Save As and change the filename extension from .htm to .aspx.
The Data Views default appearance is clearly not acceptable. The following is the minimum you need to do. First, edit the names at the top of the first three columns. Then, delete the right two columns, since the user does not need to see this information. Heres how:
1. Put the cursor in the column to be deleted.
2. Choose Table ^ Select ^ Column.
3. Choose Table ^ Delete Columns.
Chapter 14: Connecting FrontPage and InfoPath
Wl> froAiltaiiM M
<.**'*> <.|>) *<*?> *.il <***#'> > *>

Eats On Line Product List
Itein.< ui Mock
mv j Mv ptV* I4 Bt'iU'k MV fell
c-kve <4 8 5 59 me
Dned ponn nujtrooms H 0 1500 id* me
̫1 (K( Mo t 299 iviie me
Ttrmttm cbeet* * 1599 fo* QW
black, otaret m bnrxr lb 45 ۻ fifee
Abtio l*Kf ?litt b\9 foie me
jrttckofce beau 8i 499 w
$<t m muturd uucv ?2$ \ iw me
?c~jrlfc Oc*
Figure 14-5: After inserting the first Data View.
Add a dollar sign to the Price column:
1. Click any individual cell in the Price column.
2. Use the arrow keys to move the cursor to the left edge of the cell.
3. Type in a dollar sign. The symbol is displayed in all cells in the column.
Delete the title of the Data View (FoodltemsData.xml in the figure).
1. Double-click the title in the Data View. FrontPage opens a dialog box whose title is the name of the XML file.
2. In the dialog box, click the + symbol next to Appearance.
3. Delete the text in the Title field.
4. Click OK to close the dialog box.
In the prerelease version of FrontPage being used in the writing of this book, you cannot delete the title of the Data View in design mode. If you erase the title as described in the preceding steps, FrontPage displays "Untitled." However, when the page is published and viewed in Internet Explorer, the title is not shown.
296 Part IV: Case Studies
Finally, you need to filter the data in this Data View so that the list displays only those items for which both the inStock and the List elements are true:
1. Right-click the table and select Data View Properties from the pop-up menu. FrontPage displays the Data View Details task pane.
2. Click the Filter command o the task pane. FrontPage displays the Filter Criteria dialog box.
3. For this Data View, inStock must be true and list must be true. Enter these required criteria in the dialog box, as shown in Figure 14-6.
4. Click OK to close the dialog box.
b>isj <>>> And.
? Qb>& W
? mm tn* W
CM Mr* to 4 <amw

1 * 41 ]
Figure 14-6: The criteria for the Data View.
When entering the criteria, be sure to match the case used. Enter true as shown in the figure and not True.This sort of comparison is case-sensitive.
At this point the in-stock Data View is complete. Your page will look more or less like Figure 14-7 (this is shown in FrontPages Preview mode).
Adding the Out-of-Stock Data View
The out-of-stock Data View is essentially identical to the in-stock Data View, and you can follow the procedures described in the preceding section to add it to the page. The only difference is in the filter criteria that you must define. For this Data View, inStock must be false and list must be true, as shown in Figure 14-8.
Chapter 14: Connecting FrontPage and InfoPath
* r*oAjctMn*
Eats On Line Product List
Items in stock
Item Uiui Pti<
Tune okw od 8 oc 15 59
Mjnura im 24 os *299
V cktw lb 115 W
Previous << 1 .. 93 94 95 96 97 98 < 99 > 100 101 102 103 104 105 .. 145 >> Next