publish
plugins.it2be_word.LinqDataSource info


Servoy Methods Summary
void addRelatedDataSource( String, String )
void addRelatedDataSource( FoundSet )
void addRelatedDataSource( String )
void addRelatedDataSource( FoundSet, String )


Servoy Methods Details


addRelatedDataSource
void  addRelatedDataSource( String, String )
Adds a related foundset to the LINQ datasource using the relation name and an alias.
Parameters
String  relationName  Name of the relationship to add to the LINQ datasource
String  relationAlias  Alias name to be used in the template

Returns
void  

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Grab a foundset
var myFoundSet = datasources.db.example_data.getFoundSet();
myFoundSet.loadAllRecords();

// Convert it to a LINQ datasource
var linqDataSource = plugins.it2be_word.createLinqDataSource(myFoundSet);

// Add the related foundset, with an alias
linqDataSource.addRelatedDataSource("table1_to_table2", "orders");


addRelatedDataSource
void  addRelatedDataSource( FoundSet )
Adds a related foundset to the LINQ datasource to be used in the template.
Parameters
FoundSet  fs  Related foundset to add to the LINQ datasource

Returns
void  

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Grab a foundset
var myFoundSet = datasources.db.example_data.getFoundSet();
myFoundSet.loadAllRecords();

// Convert it to a LINQ datasource
var linqDataSource = plugins.it2be_word.createLinqDataSource(myFoundSet);

// Add the related foundset
linqDataSource.addRelatedDataSource(myFoundSet.table1_to_table2);


addRelatedDataSource
void  addRelatedDataSource( String )
Adds a related foundset to the LINQ datasource using the relation name.
Parameters
String  relationName  Name of the relationship to add to the LINQ datasource

Returns
void  

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Grab a foundset
var myFoundSet = datasources.db.example_data.getFoundSet();
myFoundSet.loadAllRecords();

// Convert it to a LINQ datasource
var linqDataSource = plugins.it2be_word.createLinqDataSource(myFoundSet);

// Add the related foundset, with an alias
linqDataSource.addRelatedDataSource("table1_to_table2");


addRelatedDataSource
void  addRelatedDataSource( FoundSet, String )
Adds a related foundset to the LINQ datasource to be used in the template, along with an alias.
Parameters
FoundSet  fs  Related foundset to add to the LINQ datasource
String  tableName  Alias name to be used in the template

Returns
void  

Supported Clients
SmartClient, WebClient, NGClient

Sample
// Grab a foundset
var myFoundSet = datasources.db.example_data.getFoundSet();
myFoundSet.loadAllRecords();

// Convert it to a LINQ datasource
var linqDataSource = plugins.it2be_word.createLinqDataSource(myFoundSet);

// Add the related foundset, with an alias
linqDataSource.addRelatedDataSource(myFoundSet.table1_to_table2, "orders");