ÍøÂçѧԺ w3popÉçÇø ÍøÂç×ÊÔ´ ITÐÂÎÅ

w3pop.com :: ÍøÂçѧԺ :: APPML :: Name ÊôÐÔ

»áÔ±µÇ½

ÕʺÅ

ÃÜÂë

»Ø´ð

¼ÇסÃÜÂë

Íü¼ÇÃÜÂë? ×¢²á

Name ÊôÐÔ


×÷Õß:w3pop.com ·­Òë/ÕûÀí:w3pop.com ·¢²¼:2007-04-28 ä¯ÀÀ:979 :: ::

The name attribute specifies a unique name for the <htmlreport> element.
nameÊôÐÔΪ<htmlreport>ÔªËØÖ¸¶¨ÁËÒ»¸ö¶ÀÁ¢µÄÃû³Æ¡£

This enables the AppML Report Service to run a number of different reports based on the same AppML description.
Ëü¿ÉÒÔʹAppML±¨¸æ·þÎñÔËÐлùÓÚÏàͬAppMLÃèÊöµÄ²»Í¬±¨¸æ¡£

Example
°¸Àý

<?xml version="1.0" ?>
<appml>
<database>
<connection>northwind</connection>
</database>

<htmlreport name="ten_most_expensive">
<title>10 MOST EXPENSIVE PRODUCTS</title>
<sql>
SELECT TenMostExpensiveProducts AS [Product Name],
UnitPrice AS [Price per Unit]
FROM [Ten Most Expensive Products]
ORDER BY TenMostExpensiveProducts
</sql>
</htmlreport>
<htmlreport name="category_sales_1997">
<title>CATEGORY SALES FOR 1997</title>
<sql>
SELECT CategoryName,CategorySales
FROM [Category Sales for 1997]
ORDER BY CategoryName
</sql>
</htmlreport>
</appml>

View the "Ten most expensive" report produced by the AppML HTML Report Service
²é¿´ÓÉAppML HTML ±¨¸æ·þÎñÊä³öµÄ“Ten most expensive [×î°º¹óµÄÊ®¸ö]”±¨¸æ

View the "Category sales 1997" report produced by the AppML HTML Report Service
²é¿´ÓÉAppML HTML ±¨¸æ·þÎñÊä³öµÄ“Category sales 1997 [1997ÄêÏúÊÛĿ¼]”±¨¸æ

View the XML source file
²é¿´XML Ô´Îļþ


ÆÀÂÛ (0) All