Add Blank to Select on Form with Connector


I’m following this viewtopic.php?f=6&t=18910

I’d like to know if it is possible to have options from array (not from SQL) using connector.

Actually, I have an XML Form like :

<?xml version="1.0"?>
	<item type="select" name="myId" connector="load_data/connectors/foo.php"  bind="myId" label="Foo"/>		
	<item type="button" command="send" value="Save"/>

My first PHP connector was :

 * @author : xxxx
 * ... 

mysql_query("set names 'utf8'");
$options = new SelectOptionsConnector($res);
$sql = "select  myId,label from foo";

This works fine, but I can’t choose a blank value for “Foo” in my Form.

So, i would like to put a blank value in my select but I really don’t know how to do that. All the samples i’ve been studying seems out of my scope.

Such functionality is not supported by current version of connectors.

In case of SelectOptionsConnector - it will be more simple just to create and output an xml string, with necessary data.