
I'm trying to build a relatively simple tool, but in order to make things easier for my end user, I want to deviate slightly from the 'standard' nuBuilder structure. The project I'm working on involves a system for managing 'cases' that each have a number of 'issues' associated with them. The issues in turn have 'actions' and 'outcomes' associated with them. So, I've created three tables in my database. There's one for cases that each have a unique ID and some summary fields. There's an issues table that holds the issues. They each have a 'parentcase' field which links to the case_id for the case they are associated with. Likewise, there's an actions table which links actions to the parent-issue etc, and contains the outcome for that action in the table.
The structure I want for my Nubuilder tool, is to have a browse screen for cases (no problems there). I've added a button to the edit screen for a specific case which takes me to second browse screen which lists the issues for that case. This is done by filtering all issues based on whether the parentcase matches the case-id for the case that was selected in the edit screen. I do not want to use a sub-form for this (as appears to be standard), as the amount of information that needs to be entered is rather large, and a subform doesn't (appear to) give me that flexibility. I will also want to create a third browse screen that will list the actions for an issue. I don't think I can do that from a sub-form. Anyway, the secondary browse screen works as well. What I want to do next, is to allow the user to create new issues for the selected case. This is where I run into difficulty. I want to prepopulate the parentcase for the new issue with the case-id that the issue-list was filtered on (this needs to be automatic so the end-user can't mess it up), and I'm stuck on how to retrieve the case-id. I can retrieve the case-id in the edit screen for that case, but not in the subsequent browse screen for the issues associated with the case. Presumably there is a way to do this (either through a default SQL value, or by passing it through a variable, but I can't figure out how to do this. I will be wanting to repeat this procedure for the actions associated with the issues. So, when I select an issue, I go to a browse screen for actions. Here I want to add new actions and prepopulate the parent-issue. I'm assuming this will work the same way, as the new browse screen will be filtered on the basis of the ID of the parent-issue.
I'm sure this is an extremely basic question, but I'm kinda stuck, so any help would be appreciated.
I hope this makes sense, but in case it doesn't: In terms of an order system, I want to select a customer, and link to a browse screen (rather than subform) that lists all orders for that customer. There, I want to be able to edit orders, as well as add new orders. New orders need to be prepopulated with the customers name/ID that was selected in the browse screen.
Cheers,
Dan