F
F
foonfyrick2021-12-19 17:12:52
1C
foonfyrick, 2021-12-19 17:12:52

I can not specify the props in the structure?

1) An error occurs:
{Catalog.TestArray.Form.ElementForm.Form(42,49)}: Variable not defined (WarehouseName) MyStructure = New Structure("WarehouseName",<<?>>WarehouseName); (Check: Server)
61bf3c4b2d7c7027475027.png

2) If I set the Price or Quantity attribute, then there is no error, but I receive a selection, but I cannot get the object ...
61bf3d84bb130128375426.png
61bf3d8a47f17445835707.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey Vodakov, 2021-12-19
@WaterSmith

The fact that you have the appropriate props in your document is, of course, good. But, your code is executed, judging by the error, in the form module of the "TestArray" reference element. And in the context of this form, you obviously don't have either a variable or an attribute of the "WarehouseName" form.
And yet, it's better to correct the typo, otherwise you will stumble over it for a long time. Or someday in the future it will come out sideways.

A
Abbba, 2021-12-19
@Abbba

I will assume that you are using object props on the form. Those. you need to write “Object.” before the name of the warehouse, and the price and quantity are worked out because there are such form details. But it's hard to say for sure, there is not enough information.
What exactly do you need to do?

K
Konstantin Nagibovich, 2021-12-19
@nki

n And the title
of Warehouse missed the letter

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question