Desktop version

Main > Forum > 1C:Enterprise Platform > 1C:Enterprise – Business applications platform > AvailableValues property of TextField ChoiceList

Forum

Search UsersRules
AvailableValues property of TextField ChoiceList
#1
Interested
Points:: 15
Joined:: Oct 27, 2011

Shouldn't this work?

Code
   Items.TextField.ChoiceList.AvailableValues = BancosList.Copy();
   
      ShowedValues = Items.TextField.ChoiceList.AvailableValues;
      ToDelete = ShowedValues.FindByValue("89");
      ShowedValues.Delete(ToDelete);
      ToDelete = ShowedValues.FindByValue("16");
      ShowedValues.Delete(ToDelete);


The code actually modifies the property of AvailableFields of ChoiseList of TextField but it does not affect appearance. 8.3.4

Profile
#2
Guest
Points::
Joined::

Could you please provide a configuration where the problem can be reproduced?

Profile
#3
Just came
Points:: 0
Joined:: Jul 10, 2019

Hi Tim, I met the problem. I need your helping. "I have a choicelist in the properties of Data processor. I want to set Source data for ChoiceList. How I do it work? ". Thank you a lot of. Nice too meet you.

Profile
#4
Active user
Points:: 0
Joined:: Oct 4, 2018

phat tran, hello!
In 1C:Enterprise setting data source of choice list isn't like in, for example, MS Access or VBA userforms.
When you set reference data type (catalog, document) of attribute in your data processor, the control linked with this attribute will automatically get functionality of choice fr om list or object list form. No need to manually set data source.
If you want to lim it choice list, you may use the "Choice parameters" and "Choice parameters links" properties of form control.
Also you may fill the choice list programmatically.

Profile
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.