Mashups in MashZone NextGen Wires : Customizing Wires : Configure Strings, Numbers, Dates or Boolean Properties in Custom Blocks : URLs
URLs
You can provide some validation for user entries in custom block properties that should be URLs with the macro metadata element <type> in <parameter> and a datatype of url. For example:
<macros xmlns="http://www.open-mashup.org/schemas/v1.0/EMML"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.openmashup.org/schemas/v1.0/EMML/..
/schemas/EMMLPrestoSpec.xsd"
domain="myBlocks">

<macro name="helloWorld"
xmlns:presto="http://www.jackbe.com/v1.0/EMMLPrestoExtensions"
xmlns:macro="http://www.openmashup.org/schemas/v1.0/EMMLMacro">
<presto:macro-meta>
<block usage="Wires">
...
</block>
<parameters>
<parameter name="aString">
<label>A URL</label>
<type datatype="url"/>
</parameter>
...
</parameters>
</presto:macro-meta>
....
</macro>
...
</macros>
With a url datatype in the macro metadata, Wires will validate that user entries begin with a valid protocol for a URL, such as http://.
Copyright © 2013-2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback