Desktop version

Main > Forum > 1C:Enterprise Platform > 1C:Enterprise. Mobile platform > Mobile Platfom AtServer Function does not work

Forum

Search UsersRules
Mobile Platfom AtServer Function does not work
#1
Active user
Points:: 0
Joined:: Mar 29, 2016

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?

Profile
#2
Guest
Points::
Joined::

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

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

Profile
#3
Active user
Points:: 0
Joined:: Mar 29, 2016

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?

Profile
#4
Interested
Points:: 0
Joined:: Apr 5, 2012

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.

Profile
#5
Guest
Points::
Joined::

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.

Profile
#6
Active user
Points:: 0
Joined:: Mar 29, 2016

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.

Profile
#7
Guest
Points::
Joined::

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.

Profile
#8
Guest
Points::
Joined::

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

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

Profile
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.