Normal Topic @PopulateListElement() (Read 974 times)
actiontech
Full Member
***
Offline



Posts: 173
Joined: Apr 10th, 2016
@PopulateListElement()
Mar 23rd, 2018 at 10:08pm
Print Post Print Post  
Hello, I'm having a problem where I can't seem to "unpopulate" the list element when I go back to search mode. I've tried Clear() on Form Exit, on Retrieve Spec Open, and If @Mode() = 2. I've tried FormFieldValue(@Layout, Pictures_List, 0 , " ") on Form Exist, on Retrieve Spec Open, and If @Mode() = 2. All to no avail.

Not sure what the problem is, I didn't have this problem before. I got some other things to work, now this isn't working. Not sure why.
  
Back to top
 
IP Logged
 
actiontech
Full Member
***
Offline



Posts: 173
Joined: Apr 10th, 2016
Re: @PopulateListElement()
Reply #1 - Mar 25th, 2018 at 4:54pm
Print Post Print Post  
I've come to the conclusion that the layout element, for all intensive purposes, is cleared when I return to search mode, but I still have no explanation as to why the data still displays in the box, and/or how to clear it.
  
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: @PopulateListElement()
Reply #2 - Mar 26th, 2018 at 1:37pm
Print Post Print Post  
PopulateListElement() sets the options available on the dropdown of a Combo Box or the options available to be selected in a List Box. It does not SET the value of that element to be anything so unless you have set the value elsewhere, there is no value to Clear().

If you do not want the options that you set to display anymore, you need to set the options list to blank.

Code
Select All
PopulateListElement(YourElementName, "") 



-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
actiontech
Full Member
***
Offline



Posts: 173
Joined: Apr 10th, 2016
Re: @PopulateListElement()
Reply #3 - Mar 26th, 2018 at 6:43pm
Print Post Print Post  
Had to run it On Retrieve Spec Open and now it works, thanks.
  
Back to top
 
IP Logged