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
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.
Thank you very much Richard.
Clay
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=3Ans=Repository('EXECUTE', PopupID, @Window, PopupOverride)if Ans ne '' thenTmp=Set_Property(@Window:'.CUST_NO','DEFPROP',Ans)focus=Set_Property('SYSTEM','FOCUS',@Window:'.LNAME')endSend_Info('Press F2 for Popup List... ')Thanks,
Harold
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
World Leaders in all things RevSoft
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