Have a navigator that has a hotspot with the following code. This is not working. What it needs to do is capture the users name and then find their document if listed and open it up. It uses and @contains and @dblookup and a openview at the bottom. It just bypasses all and goes to the manual. Does Anyone have any ideas?
FIELD TempLookup := @Name([Abbreviate];@UserName);
FIELD Start :=@Left(TempLookup;1);
FIELD Look1 := @If(
@Contains(Start;“A”:“B”:“C”:“D”);@DbLookup(“Notes”: “NoCache” ; “”; “(Names A-D)”;TempLookup;1);
@Contains(Start;“E”:“F”:“G”:“H”) ;@DbLookup(“Notes”:“NoCache”;“”;“(Names E-H)”;TempLookup;1);
@Contains(Start;“I”:“J”:“K”:“L”); @DbLookup(“Notes”:“NoCache”;“”;“(Names I-L)”;TempLookup;1);
@Contains(Start;“M”:“N”:“O”:“P”);@DbLookup(“Notes”:“NoCache”;“”;“(Names M-P)”;TempLookup;1);
@Contains(Start;“Q”:“R”:“S”:“T”);@DbLookup(“Notes”:“NoCache”;“”;“(Names Q-T)”;TempLookup;1);
@Contains(Start;“U”:“V”:“W”:“X”:“Y”:“Z”);@DbLookup(“Notes”:“NoCache”;“”;“(Names U-Z)”;TempLookup;1);@Prompt([Ok];“Entry Not Found”;“You have already created the necessary documents. Thank you! If you need to make modifications to any of the information you have provided please contact Doug Tignor. You may however reference the manual…”));
@If(@IsError(Look1);@Do(@Command( [OpenFrameset] ; “WebFrame” );@Return(@Prompt([Ok];“Entry Not Found”;“You have already created the necessary documents. Thank you! If you need to make modifications to any of the information you have provided please contact Doug Tignor. You may however reference the manual.”)));“”);
@Contains(Start;“A”:“B”:“C”:“D”) & @Matches(@DbColumn(“Notes”:“NoCache”;“”;“(Names A-D)”;1);@Trim(@ProperCase(TempLookup)));
view1 :=@If(@Contains(Start;“A”:“B”:“C”:“D”); “(Names A-D)”;@Contains(Start;“E”:“F”:“G”:“H”) ;“(Names E-H)”;
@Contains(Start;“I”:“J”:“K”:“L”);“(Names I-L)”;@Contains(Start;“M”:“N”:“O”:“P”);“(Names M-P)”;
@Contains(Start;“Q”:“R”:“S”:“T”);“(Names Q-T)”; @Contains(Start;“U”:“V”:“W”:“X”:“Y”:“Z”);“(Names U-Z)”;“”);
@Command([OpenView]; view1;@GetField(TempLookup));
@Command([OpenDocument]);
@Command([OpenView]; view1;@GetField(TempLookup));
@Command([FileCloseWindow])
Thanks so much for your help!