Mobile Platfom AtServer Function does not work

Discussions regarding 1C:Enterprise for mobile devices with Android, iOS, or Windows Phone.

#1
People who like this:0Yes/0No
Active user
Rating: 5
Joined: Mar 29, 2016
Company: DND YAZILIM LTD.

Hi,

I working for 1c mobile platform v8.3.9.74. In DocumentForm My function is working on my pc but does not work on mobile platform on Android.

My Function:

Code
&AtServer
Procedure SetRowUnit(pID)
   mActiveRow = Object.Rows.FindByID(pID);
   If mActiveRow.Metarial <> Undefined Then
      If mActiveRow.Metarial <> Catalogs.Metarials.EmptyRef() Then
         mActiveRow.Unit =  mActiveRow.Metarial.Units.Find(Enums.TypeOfUnit.MainUnit,"TypeOfUnit").Unit;
      EndIf;
   EndIf;
EndProcedure


Calling from:
Code
&AtClient
Procedure RowsMetarialOnChange(Item)
   mActiveRow = Items.Rows.CurrentData;
   SetRowUnit(mActiveRow.GetID());
EndProcedure


What should I do to fix the problem?

Edited: Hüseyin Çağrı Bayraktar - Nov 28, 2016 12:54 AM
 
#2
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

Hello, Hüseyin Çağrı Bayraktar.

Which error do you receive when calling this procedure on the mobile device?

 
#3
People who like this:0Yes/0No
Active user
Rating: 5
Joined: Mar 29, 2016
Company: DND YAZILIM LTD.

Hello Timofey Bugaevsky,

I don't get any error. My procedure working. My procedure at server updated object attribute but not refresh form on client. So, i can't see updated object attribute. Why?

Edited: Hüseyin Çağrı Bayraktar - Nov 30, 2016 11:47 AM
 
#4
People who like this:0Yes/0No
Interested
Rating: 27
Joined: Apr 5, 2012
Company: 1TÇ Şirketi - Merv Bilgi İşlem Otomasyonu Yazılım Ltd. Şti.

Hüseyin Çağrı Bayraktar,

Whitch exactly error do you get?

May be your code does not find out "Enums.TypeOfUnit.MainUnit". So you may get an error on "Unit" row.

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

Joined:
Company:

Hello, Hüseyin Çağrı Bayraktar.

Could you please provide a sample configuration where I could reproduce this issue and steps for that? If you would like to keep it private, you can send it to int@1c.com.

 
#6
People who like this:0Yes/0No
Active user
Rating: 5
Joined: Mar 29, 2016
Company: DND YAZILIM LTD.

Dear Murat,

I don't get any error. Working very well on PC but not working on Mobile Platform.

Dear Timofey,

I will send e-mail.

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

Joined:
Company:

Hello, Hüseyin Çağrı Bayraktar.

I was able to reproduce this issue. The OnChange event fired only after the row edit finished, not right after selecting the material.

But after finishing with row edit, Amount displayed correctly.

I have sent this issue to the developer team. When there will be additional information, I will let you know.

Thank you.

Download 1.png (29.97 KB)
Download 2.png (53.15 KB)
 
#8
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

Hello, Hüseyin Çağrı Bayraktar.

This issue will be fixed in 1C:Enterprise mobile platform starting from version 8.3.9.80.

 
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.