wireshop Posted January 12, 2009 Posted January 12, 2009 On My "Sales Order" layout I decided to put the number of orders that had not been printed so that the people who were taking orders remembered to print them. I did this by creating a new TO based on the "Sales Orders" Table called "Pending Orders" joined by a universal (X) Relationship. I then have two fields PrintStatus = If ( IsEmpty ( SalesOrders PrintLog::Sales Order ID); "Not Printed"; "") // sets the print status to "Not Printed" if there are no entries for that order in the print log and CountNotPrinted = Count(Pending Orders::Print Status) This works fine except the database performance has taken a big hit. I tried to make CountNotPrinted a global field. That improved the database performance but it only recalculates each time the file is reopened which in our case is only once per day. Is there a way to leave the field as a global but force it to be recalculated more often? Thanks in advance
Ocean West Posted January 12, 2009 Posted January 12, 2009 Your on the right track to create a separate table with records for tasks you want to accomplish, a global is only available to each user and the globals of the last user in are the only one stored. when you create a task you simply create a record in another table with a time stamp and a status, and also the part its assigned to. You can display this data in a portal on in your solution where it makes sense and once items are complete you could via a multi predicate relationship have them disappear from the portal, instead of a "X" or Cartesian relationship, then its just a matter of counting the items in the portal.
wireshop Posted January 13, 2009 Author Posted January 13, 2009 once items are complete you could via a multi predicate relationship have them disappear from the portal, Could you explain this a little more? namely how do I get FM to display in my portal only those records which have a certain "Status"
Recommended Posts
This topic is 5888 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now