apex code - Compare two views in salesforce -



apex code - Compare two views in salesforce -

i looking way compare 2 views in salesforce. want create visual forcefulness page lets user select 2 views associated business relationship object , show accounts appear on both views.

i struggling pretty hard here, can't figure out how results views, hoping there way accounts match filters each view.

here soql query:

select id, name, owner.name business relationship id in ( select accountid chance recordtypeid = :recordtype1id , stagename in :stageonelist ) , id in ( select accountid chance recordtypeid = :recordtype2id , stagename in :stagetwolist )

this basis of vf page have made far. possible filter business relationship account owner , drop downwards list province. thought is, many people in organization have created views accounts filtered need it. instead of including every possible business relationship field filter, drop downwards list of active users views associated account, , can select chance 1 , chance 2 , have list of accounts matching.

i assume mean views in available views in dropdown box on standard tab object? if don't believe can query results them straight although can query business relationship object using soql statement provide filter.

my suggestion either create set vf page has 2 drop downs switch soql query used homecoming list of accounts beingness displayed (would mean have set of predetermined views , updates them require code updates) or give more details of utilize case , may able provide other suggestions.

salesforce apex-code visualforce

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -