Yes this is possible depending on some other factors
By Thomas Schulte 2 decades ago
You should have some experience with the designer to achieve this.
But basically it is easy:
- Open Database in designer
- Chose Form BugReport
- Goto the field Failuretype
- Copy the selection formula from the field Failuretype
This one:
keydependsfrom := "FailureTypedependandfrom";
dependsfrom := @DbLookup( "" : "NoCache" ; "":"" ; "($LUConfig)" ; keydependsfrom ; 2; [FailSilent]);
key := @If(dependsfrom != "";"failuretype" + dependsfrom + "" + @GetField(dependsfrom);"failuretype");
value := @If(dependsfrom != "";@DbLookup( "" : "NoCache" ; "":"" ; "($LUConfigDependand)" ; key ; 2; [FailSilent]);@DbLookup( "" : "NoCache" ; "":"" ; "($LUConfig)" ; key ; 2; [FailSilent]));
value
- Goto the field Application
Insert the copied selection formula and change these lines
keydependsfrom := "Applicationdependandfrom";
dependsfrom := @DbLookup( "" : "NoCache" ; "":"" ; "($LUConfig)" ; keydependsfrom ; 2; [FailSilent]);
key := @If(dependsfrom != "";"application" + dependsfrom + "" + @GetField(dependsfrom);"application");
- Add a new single keyword in the administration part of the database. This keyword must be "Applicationdependandfrom" and contains the fieldname of the field where the value has to come from.
- add new dependand keywords as described in the "How to configure dependand keywords" document here.
Thats it.