{{tag>category:"OpenInsight 32-Bit" author:"Clay" author:"Richard Hunt" author:"Harold King" author:"The Sprezzatura Group"}} [[https://www.revelation.com/the-works|Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community]] ==== Making a row Default on a popup (OpenInsight 32-Bit) ==== === At 20 JAN 2004 03:56:56PM Clay wrote: === Is there any way to programmically make a certain row on a popup the default selection? In other words, to make the popup automatically have a highlighted selection. Clay ---- === At 20 JAN 2004 04:21PM Richard Hunt wrote: === Clay, Yes there is. The POPUP help does explain that column (field) 28 is the initselect. You can put row numbers (multivalued) in field 28 and those rows will be initially selected. ---- === At 20 JAN 2004 04:46PM Clay wrote: === Thank you very much Richard. Clay ---- === At 20 FEB 2004 11:51AM Harold King wrote: === I tried setting attr 28 (below) to the row I want to be initially selected in the popup, but it doesn't seem to work. The debugger correctly shows 3 in field 28 of PopupOverride. Any suggestions? CASE EP=OPT.CUST' Send_Info(' ') PopupID=EntID('SYSPROG', 'POPUP', '', 'CUSTOMER_POP') PopupOverride =' PopupOverride=3 Ans=Repository('EXECUTE', PopupID, @Window, PopupOverride) if Ans ne '' then Tmp=Set_Property(@Window:'.CUST_NO','DEFPROP',Ans) focus=Set_Property('SYSTEM','FOCUS',@Window:'.LNAME') end Send_Info('Press F2 for Popup List... ') Thanks, Harold ---- === At 20 FEB 2004 02:55PM The Sprezzatura Group wrote: === Harold - this MAY be related to the fact that you are using a REPOSITORY EXECUTE instead of calling POPUP directly. Do you want to try this? The Sprezzatura Group [i]World Leaders in all things RevSoft[/i] [img]http://www.sprezzatura.com/zz.gif[/img] ---- === At 20 FEB 2004 04:05PM Harold King wrote: === Bingo! It works great when using the POPUP function. I started using the REPOSITORY EXECUTE method way back when based on an example I saw somewhere. The POPUP function requires less code, too. It was confusing because I could affect some popup characteristics via the PopupOverride variable in the REPOSITORY EXECUTE method. Thanks, Harold [[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=WORKS_READ&SUMMARY=1&KEY=6C7A63B8AEE2562C85256E21007313A6|View this thread on the Works forum...]]