Can not take data from catalog attribute.

Understanding basics of 1C:Enterprise platform. To start working with 1C:Enterprise platform visit Getting started page

#1
People who like this:0Yes/0No
Just came
Rating: 0
Joined: Dec 20, 2012
Company:

Good day!

I have document Coming, with table Productlist - with tabular section Product, Quantity.
I added new tabular section in ComingDocumentForm by name LoadingPrecent.
I want Items.Productlist.CurrentData.LoadingPrecent = Items.Productlist.CurrentData.Quantity / Items.Productlist.CurrentData.ProductLoading;

It is not working, say have no property ProductLoading
Note: Loading is property of Product.

 
#2
People who like this:0Yes/0No
Active user
Rating: 7
Joined: Sep 26, 2012
Company: individual

if Loading is property of Product may be you need write

Code
Items.Productlist.CurrentData.Product.Loading


in you example you write
Code
Items.Productlist.CurrentData.ProductLoading;

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

Joined:
Company:

Or maybe the ProductLoading column is hidden. In that case you need to mark Use always check box in the form attribute tree.

 
#4
People who like this:0Yes/0No
Just came
Rating: 0
Joined: Dec 20, 2012
Company:

dear Ivan I have tried it also.

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

Joined:
Company:

Let us see your configuration. Attach it to the message as .cf file, please. And describe where to see the place you are having a problem with.

 
#6
People who like this:0Yes/0No
Just came
Rating: 0
Joined: Dec 20, 2012
Company:

Dear Admin, front of Loading have not a square box to change USE Always.
Product has checked box use always. But his property Loading has no even empty box.

(the properties is in other language so, I can not send you)

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

Joined:
Company:

You can access this data at server. Not at client.

 
#8
People who like this:0Yes/0No
Just came
Rating: 0
Joined: Dec 20, 2012
Company:

Thanks dear Timofey. Solved.

&AtClient
Procedure BeforeWrite(Cancel, WriteParameters)
If Items.Firm <> Items.InvoiceNumber.Owner then
  Cancel = True;
Endif;
EndProcedure

This say Owner is not found.
Note: Firms is Owner of InvoiceNumbers catalogues.

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

Joined:
Company:

Same mistake: you are trying to follow a reference at client. To get this data 1C:Enterprise platform requires a server call and you should perform this operation at server.

 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.