Obtain table name instead of relationship name

Find out how to get things done with Servoy. Post how YOU get things done with Servoy

Obtain table name instead of relationship name

Postby ylockson » Fri Nov 16, 2012 5:39 pm

For a field that is from a relationship and that currently has focus,
event.getSource().getDataProviderID()
returns a value in the following format:
relationship_name.field_name

Is it possible to programatically get the table name instead of the relationship name?
ylockson
 
Posts: 59
Joined: Thu Mar 01, 2012 8:40 am

Re: Obtain table name instead of relationship name

Postby rgansevles » Mon Nov 19, 2012 10:55 am

ylockson,

You could use the solution model:

Code: Select all
solutionModel.getRelation('relationship_name').foreignDataSource


Rob
Rob Gansevles
Servoy
User avatar
rgansevles
 
Posts: 1838
Joined: Wed Nov 15, 2006 6:17 pm
Location: Amersfoort, NL

Re: Obtain table name instead of relationship name

Postby ylockson » Tue Nov 20, 2012 4:48 pm

Thanks Rob.
ylockson
 
Posts: 59
Joined: Thu Mar 01, 2012 8:40 am


Return to How To

Who is online

Users browsing this forum: No registered users and 3 guests