Terry Bottorff (10/11/2011)
Thanks for the info.
I pretty much have it working showing the different data but now I was trying to use a browsedialog to search for the correct person but what I want to search on is a custom field but they don't seem to work in a browsedialog
Well I don't think I ever used a Custom Field Property in a browse dialog, even though that field would be kind of virtual to the table, but the browse dialog have several events you can handle and manipulate its query object to get what you want.
Does a listview allow custom fields?
Yes. Custom Field Properties (CFP) are great concept and works pretty well, but you should also be very careful about constructing them. For example, in a listview you may have a ProductID foreing key field and you want to show ProductName instead, you can create a CFP to go search the product tables and return the product name, but if you have several hundred/thousand records, it could slow down the listview record loading.
What I do is that I create my CFP like cfp_ProductName, then I use a stored procedure with a well constructed JOIN condition to bring a column with name cfp_ProductName that matches the name of the CFP in the BO, this way, the data will be there. Of course you have to look at the CFP as read only virtual fields.
Bottom line is that CFP are excellent helpers and today I cannot program an SF application without them. Oh by the way, I am using DevExpress reports and above technique works great for getting the data for the report and been able to see and use the CFP in the type editors of the report is just great!