AvailableValues property of TextField ChoiceList

The 1C:Enterprise developers forum

#1
People who like this:0Yes/0No
Interested
Rating: 34
Joined: Oct 27, 2011
Company: Abaco Soluciones S.A.

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

 
#2
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

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

 
#3
People who like this:0Yes/0No
Just came
Rating: 0
Joined: Jul 10, 2019
Company: 1C

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.

 
#4
People who like this:0Yes/0No
Active user
Rating: 2
Joined: Oct 4, 2018
Company:

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.

 
Subscribe