<div>Okay, this is a continuation of my previous thread where we're limiting access to VIEW accts based on login, etc.</div>
<div>So, for now as you recall I decided to go in a little different direction. I am copying over the data from the "master" file over to a replica file that will only contain the records I need. That part is all a-okay.</div>
<div> </div>
<div>Now, in this "replica" file, I'm bulding multiple browse lookups and have created a special menu, etc.</div>
<div>Everything works fine so far except one thing.</div>
<div>When you initially get to my data, there is a menu that is created from my input processing.</div>
<div>It shows a browse window then will all the accts, etc.</div>
<div>Across the bottom, via a show statemen, there is "V" to view, "N" for notes, "P" for Payments and "X" to Exit</div>
<div>That's fine. So far, I've only put the processing in place to "V" view and N for notes.</div>
<div>The problem is this - at this first browse lookup window, I hit "V" to view and I get the "view" screen from the replica file.</div>
<div>When I hit "N" for notes, it clears the screen, and opens a browse window with all the note records from a completely different file.</div>
<div>On the bottom of this browse, there is "V" to View and "X" to exit.</div>
<div>When I hit "V" to view the VERY FIRST TIME here, it shows me a blank "view" screen from the replica file, NOT the notes file. After hitting enter to clear this screen, every subsequent time I hit "V" it shows the correct "view" screen from the notes file. Still with me?haha</div>
<div> </div>
<div>Below is my input processing table. I'm soooo close to getting this to work, but obviously hit a stumbling block here.</div>
<div>Can anyone see what I'm missing here? Is this a bug in the @bk syntax or what??</div>
<div>Help! (please)</div>
<div> </div>
<div>Thanks</div>
<div>Scott</div>
<div> </div>
<div> </div>
<div>@menu :</div>
<div> :: dim myiua(3)</div>
<div> </div>
<div> :</div>
<div> :: myiua["1"]="Choose Search Option"</div>
<div> </div>
<div> :</div>
<div> :: myiua["2"]="A:Search by PDM Acct Num"</div>
<div> </div>
<div> :</div>
<div> :: myiua["3"]="B:Search by Last Name"</div>
<div> </div>
<div>rptmnu :</div>
<div> :: cls("22")</div>
<div> </div>
<div> :</div>
<div> :: menu myiua dosrch1, dosrch2</div>
<div> </div>
<div> :</div>
<div> :: exit</div>
<div> </div>
<div>dosrch1 :</div>
<div> :: lookup act = PDMace k=3 i=A -nx b="(brw=12 xkey=nx show=pkeep pop=1v prc=actn fill=asc,top) [ PDM Num Name</div>
<div> </div>
<div> :</div>
<div> :: Plcmt Bal Payments Curr Balance] *3 *7 *20 *21 *22"</div>
<div> </div>
<div> :</div>
<div> :: aa(11,allup)=act(3)</div>
<div> </div>
<div> : @bk="N"</div>
<div> :: clearp;goto notes</div>
<div> </div>
<div> : @bk="V"</div>
<div> :: popup act,"1v";show "@";cls; clearp</div>
<div> </div>
<div> : @bk="X"</div>
<div> :: puskey "xx"</div>
<div> </div>
<div> :</div>
<div> :: end</div>
<div>
<div>dosrch2 :</div>
<div> :: lookup act = PDMace k=7 i=B -nx b="(brw=12 xkey=nx show=pkeep pop=1v prc=name fill=asc,top) [ PDM Num Name</div>
<div> </div>
<div> :</div>
<div> :: Plcmt Bal Payments Curr Balance] *3 *7 *20 *21 *22"</div>
<div> </div>
<div>actn :</div>
<div> :: show "\r V \r to View \r N \r for Notes \r P \r for Payments \r X \r to Exit"; end</div>
<div> </div>
<div>
<div>name :</div>
<div> :: show "\r V \r to View \r N \r for Notes \r P \r for Payments \r X \r to Exit"; end</div> </div>
<div>notes :</div>
<div> :: show "\r V \r to View or \r X \r to Quit"</div>
<div> </div>
<div> :</div>
<div> :: lookup phc = notes k=aa i=A -Nxm b="(brw=12 xkey=vx show=pkeep pop=view fill=asc,top) [PDM Num Date Time</div>
<div> </div>
<div> :</div>
<div> :: Comment1] *1 *2 *3 *8"</div>
<div> </div>
<div> : @bk="V"</div>
<div> :: popup phc,"view";show "@";clearp; goto notes</div>
<div> </div>
<div> : @bk="X"</div>
<div> :: cls;clearp; goto dosrch1</div>
<div> </div>
<div> :</div>
<div> :: end</div>
<div> </div>
<div>Keeping in mind, I'm only looking at what happens when "notes" is called. I realize the code isn't finishe for dosrch2, etc as well as "P" for Payments, etc.</div>
<div>After lookup to notes, why doesn't "@bk="V" call the corrrect screen from the notes file when you FIRST hit V? When you first hit "V" at line 22, you get a blank screen from PDMace, not the notes file?? But, after that, the correct "V" works and shows the view screen from the notes file??? I'm confused by this???</div>
<div> </div>
<div>Thanks for any help on this</div>
<div> </div>
<div>Scott</div>
<div> </div></div>