IBM®
Skip to main content
    Country/region [select]      Terms of use
 
 
    
     Home      Products      Services & solutions      Support & downloads      My account     
 
developerworks > My developerWorks >  Dashboard > ETTK Community > ETTK > AdieuCardRepository
developerWorks
Log In   View a printable version of the current page.
Overview Connect Spaces Forums Wikis
AdieuCardRepository
Added by jgerken, last edited by ssadams on Aug 09, 2005  (view change)
Labels: 
(None)

Adieu Card Repository

Use this space to share your Adieu cards with others. If you want to share a whole sheet, see AdieuSheetRepository.
To share a card:

  1. Edit this page, making a copy of the template (Next Card Goes Here) below
  2. In ADIEU copy the card to share using the context (right button) menu
  3. Select "XML goes here" in your copy of the template and paste the ADIEU card XML there
  4. Be sure to modify the heading of the section with your own title

A simple string parsing card shared by ssadams  ssadams_ibm

Copy the XML below and paste into your ADIEU sheet

ADIEU Card XML
<AdieuCard folder="ssadams" id="B" name="A simple string parsing card"
    sheet="temp" type="Variable Card">
    <properties cardHeight="313" cardWidth="385" error=""
        firstShowing="false" image="icons/cards/info.gif"
        label="A simple string parsing card" minx="" userResized="true"
        x="552" y="32" z="0"/>
    <AdieuFieldSet name="Fields">
        <properties add="*"/>
        <AdieuField name="source" type="string">
            <data>'The stock price is &lt;b&gt;78.123&lt;/b&gt; dollars</data>
            <value>The stock price is &lt;b&gt;78.123&lt;/b&gt; dollars</value>
            <properties removeable="true"/>
            <lastUpdated>1122567899888</lastUpdated>
        </AdieuField>
        <AdieuField name="start" type="string">
            <data>=StringIndexOf(this.source,"&gt;")+1</data>
            <value>23.0</value>
            <properties removeable="true"/>
            <lastUpdated>1122567899898</lastUpdated>
        </AdieuField>
        <AdieuField name="end" type="string">
            <data>=StringIndexOf(this.source,"&lt;/")-1</data>
            <value>28.0</value>
            <properties removeable="true"/>
            <lastUpdated>1122567899888</lastUpdated>
        </AdieuField>
        <AdieuField name="result" type="string">
            <data>=StringSubstring(this.source,this.start,this.end)</data>
            <value>78.123</value>
            <properties removeable="true"/>
            <lastUpdated>1122567899898</lastUpdated>
        </AdieuField>
    </AdieuFieldSet>
</AdieuCard>

Simple Web page Scrapper for all IMG tags shared by ssadams  ssadams_ibm

Copy the XML below and paste into your ADIEU sheet

ADIEU Card XML
<AdieuCard folder="ssadams" id="C"
    name="Extract all IMG tags from a web page and display them"
    sheet="temp" type="Variable Card">
    <properties cardHeight="510" cardWidth="503" error=""
        firstShowing="false" image="icons/cards/info.gif"
        label="Extract all IMG tags from a web page and display them"
        minx="" userResized="true" x="478" y="91" z="2"/>
    <AdieuFieldSet name="Fields">
        <properties add="*"/>
        <AdieuField name="IMGTags" type="string">
            <data>=XPathEvaluateForURL("http://cnn.com","//img")</data>
            <value></value>
            <properties removeable="true"/>
            <lastUpdated>1122568600475</lastUpdated>
        </AdieuField>
    </AdieuFieldSet>
</AdieuCard>

Next Card Goes Here (use this section as a template when adding your own cards)

Copy the XML below and paste into your ADIEU sheet

ADIEU Card XML
XML goes here
Docs AdieuSheetRepository (ETTK Community)


 
    About IBM Privacy Contact