Question : FM Portal Help

I have a table workorders which has a field vehicle.  The layout based on workorders shows the current workorder and associated vehicle information.  I have a portal based on a self join of table workorders and a additional occurance of workorders, related by the vehicle field.  I would like the portal to display all previous workorders for the vehicle that is associated with the current record I am viewing on the layout.  The portal currently shows only the currently viewed record twice.

Answer : FM Portal Help

Do you have a field in your WorkOrder table that indicates the status of an order (i.e., that it is active or complete)?  If so, you also need a global field that contains the word you use in that field to show that the WorkOrder is complete - let's say for this example that the word is 'Complete'.

The self-join relationship should be based on:

WorkOrder::vehicle field <--> WorkOrder 2::vehicle field      
and
WorkOrder::global field <--> WorkOrder 2::status field

Now make sure the portal on your layout, and the fields it contains, is based on the WorkOrder 2 table occurrence.  You should bow see a list of 'complete' WorkOrders for the currently displayed record's vehicle type.

Random Solutions  
 
programming4us programming4us