Re: Losing Hightlighted Records in a Listbox

2017-09-04 Thread Sannyasin Siddhanathaswami via 4D_Tech
Copy Set worked! Just add one line of the following at the very end: COPY SET($highlightSet;$highlightSet)` re-highlights records and it works perfectly. That’s a bit obscure, but super easy. Thank you so much! Sannyasin Siddhanathaswami On Sep 3, 2017, 9:20 PM -1000, wrote: you just have to

Re: Losing Hightlighted Records in a Listbox

2017-09-04 Thread Keith Culotta via 4D_Tech
The two additional "COPY SET" lines below have worked for me. $ListBoxName:="CCTransactionsLB" COPY NAMED SELECTION([CC_Transactions];"TempCurrentSet") LISTBOX GET TABLE SOURCE(*;$ListBoxName;$tableNum;$namedSelection;$highlightSet) COPY SET($highlightSet;"$tmpSet") // Store the highlighted set

Re: Losing Hightlighted Records in a Listbox

2017-09-04 Thread Chip Scheide via 4D_Tech
it appears that (based on code posted) he does not change the contents of the highlight set. > you just have to > > COPY SET ("$userset";"$userset") > > on whatever the name of your highlight set. > >> 2017/09/04 12:01、Sannyasin Siddhanathaswami via 4D_Tech >> <4d_tech@lists.4d.com> のメール: >>

Re: Losing Hightlighted Records in a Listbox

2017-09-04 Thread Keisuke Miyako via 4D_Tech
you just have to COPY SET ("$userset";"$userset") on whatever the name of your highlight set. > 2017/09/04 12:01、Sannyasin Siddhanathaswami via 4D_Tech > <4d_tech@lists.4d.com> のメール: > I can understand if changing the selection causes the highlight to be lost, > but then, how do I set the high

Re: Losing Hightlighted Records in a Listbox

2017-09-03 Thread Chip Scheide via 4D_Tech
All of my code here is written in email - so modifying your code: $ListBoxName:="CCTransactionsLB" COPY NAMED SELECTION([CC_Transactions];"TempCurrentSet") LISTBOX GET TABLE SOURCE(*;$ListBoxName;$tableNum;$namedSelection;$highlightSet) copy set($Highlightset;"$TempSet") \\copy the highligh

Losing Hightlighted Records in a Listbox

2017-09-03 Thread Sannyasin Siddhanathaswami via 4D_Tech
Aloha, I don’t quite understand why my highlighted records are lost. 4D Server v15.4 Mac. I’m doing the following in a button on the form that has a listbox. $ListBoxName:="CCTransactionsLB" COPY NAMED SELECTION([CC_Transactions];"TempCurrentSet") LISTBOX GET TABLE SOURCE(*;$ListBoxName;$tableN