You need to sign in to do that
Don't have an account?

Master-Detail Relation ship
I create 2 objects ,
one is "A" this is master object
second is "B" this is detail object
problem is standardcontroller="A" (master) , in visualforce i have to read the "B" (detail) field ?
is it possible ? if possible how? ,not possible how do this ?
You have to use controller extension.....your query might look like
select id,(select id from b__r)from a__c;
testres97, you can't query from a parent to a child or master to detail that way. Check here for more detail: http://blogs.developerforce.com/developer-relations/2013/05/basic-soql-relationship-queries.html
Am I missing something?
yes you can
SELECT Account.Name,(SELECT Contact.Name FROM contacts) FROM Account
Account parent, contact child
In this case
select id,(select id from b__r)from a__c;
b is child, a is parent....only thing is you have to use the plular of b object ...may be something like bs
select id,(select id from bs__r)from a__c;
can write quey in visual force ?
Don't think its possible. You can go from child to parent without soql but not vice versa