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

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

»áÔ±µÇ½

ÕʺÅ

ÃÜÂë

»Ø´ð

¼ÇסÃÜÂë

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

New ÊôÐÔ


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

For HTML list:
¶ÔÓÚHTMLÁÐ±í£º

The new attribute removes the "New" button from the HTML list.
newÊôÐÔɾ³ýÁËHTMLÁбíÖеēNew”°´Å¥¡£

Note: The "New" button will not work in an editable HTML list if not the newlines attribute is specified OR the AppML description has an <htmlform> element.
×¢Ò⣺Èç¹ûûÓÐÖ¸¶¨newlinesÊôÐÔ»òÕßAppMLÃèÊö°üº¬ÁËÒ»¸ö<htmlform>ÔªËØ£¬ÄÇô£¬“New”°´Å¥½«²»ÄÜÔÚÒ»¸ö¿É±à¼­µÄHTMLÁбíÖÐÔËÐС£

For HTML form:
¶ÔÓÚHTML±íµ¥£º

The new attribute disables the "New" button in the HTML input form
newÊôÐÔÈ¡ÏûÁËHTMLÊäÈë±íµ¥ÖеēNew”°´Å¥µÄʹÓá£

For both:
¶ÔÓÚ¶þÕß¶øÑÔ£º

Note: The new="false" attribute is available in an editable HTML list AND in a regular HTML list IF an <htmlform> element also is presented.
×¢Ò⣺Èç¹ûÒ»¸ö<htmlform>ÔªËØÍ¬Ñù´æÔÚ£¬ÄÇô£¬new="false"ÊôÐÔÖ»ÄÜÔÚÒ»¸ö¿É±à¼­µÄHTMLÁбíºÍÆÕͨµÄHTMLÁбíÖÐʹÓá£


Examples
°¸Àý

Remove the "New" button from the HTML list:
´ÓHTMLÁбíÖÐɾ³ý“New”°´Å¥£º

<?xml version="1.0" ?>
<appml>
<database>
<connection>northwind</connection>
<keyfield type="text">customerid</keyfield>
<maintable>customers</maintable>
<sql>SELECT CompanyName,ContactName,City FROM Customers</sql>
</database>
<htmllist edit="true" new="false" />
</appml>

View the output produced by the AppML HTML List Service
²é¿´ÓÉAppML HTML ±¨¸æ·þÎñÊä³öµÄ½á¹û

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

Disable the "New" button in the HTML list and form :
È¡ÏûHTMLÁбíºÍ±êµ¥ÖГNew”°´Å¥µÄʹÓãº

<?xml version="1.0" ?>
<appml>
<database>
<connection>northwind</connection>
<keyfield type="text">customerid</keyfield>
<maintable>customers</maintable>
<sql>SELECT CompanyName,ContactName,City FROM Customers</sql>
</database>
<htmllist new="false" />
<htmlform new="false" />
</appml>

View the output produced by the AppML List and Form Service
²é¿´ÓÉAppML HTML ±¨¸æ·þÎñÊä³öµÄ½á¹û

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


ÆÀÂÛ (0) All