A
A
Askfortrue2021-10-28 11:17:31
1C-Bitrix
Askfortrue, 2021-10-28 11:17:31

Is it possible to give a value to a property directly in the component's template?

Good afternoon!

Tell me, in my component a value is calculated by which I would like to filter in the future, but since this is just a number, I don’t know how to filter by it.
I think, is it possible to create a property in IB (what type should it be?) to assign a value to it directly in the component template? by type "PROPERTY_N="54" , "54" - in this case, this is the result of calculations and then filter by this property (by property N)
For example, I create a string, it is of course empty, and somehow I assign values ​​to it in the future I make a selection based on them.
Is it possible so? And what should be the code, and the type of property with such a decision?

Or maybe there is some other solution?

Thank you

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Askfortrue, 2021-10-28
@Askfortrue

Solution
If anyone needs it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question