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

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

World Leaders in all things RevSoft


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

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/6c7a63b8aee2562c85256e21007313a6.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1