Desktop version

Main > Forum > 1C:Enterprise Platform > Bugs and functionality requests to 1C:Enterprise platform > Unwanted server call

Forum

Search UsersRules
Unwanted server call
#1
Interested
Points:: 15
Joined:: Oct 27, 2011

Code
&AtClient
Procedure ListOnActivateRow(Item)
   Line = Items.List.CurrentData;
   If ValueIsFilled(Line.ComprobanteRecibido) Then
      Items.Lable.Title =  "Text1"; 
   Else
      Items.Lable.Title = "Text2";   
   EndIf;      
EndProcedure


Every time it changes from Text1 to Text2 and vise versa it provokes a server call. How could I disable List update? I can't add this logic to the Query because the real code is 200 lines and this is just an illustration of the problem.
All functions are client-side functions. items.Lable does not belong to List. Just some info field on the screen.

Profile
#2
Guest
Points::
Joined::

Try changing visibility of labels.

Profile
#3
Interested
Points:: 15
Joined:: Oct 27, 2011

There is not just 2 options. Really the Title could be almost everything (string up to 100 characters). There are a lot of combinations to hide and show.

Profile
#4
Guest
Points::
Joined::

I could not reproduce your problem see my example in attached files. Please provide the reproduceable sample.

Profile
#5
Interested
Points:: 15
Joined:: Oct 27, 2011

Instead of form attribute I have created Decoration item for form. I was expecting to use it as a hyperlink but with changing Title and resolve the link location at the moment the hyperlink pressed.

Please just change attribute to decoration item.

Code
&AtClient
Procedure ListOnActivateRow(Item)
   If Items.List.CurrentData <> Undefined 
      And ValueIsFilled(Items.List.CurrentData.Description) Then
      Items.Decoration1.Title = Items.List.CurrentData.Description;
   EndIf;
EndProcedure

Profile
#6
Guest
Points::
Joined::

This is a documented feature: the form to match control size requests a server for some information.

Profile
#7
Interested
Points:: 15
Joined:: Oct 27, 2011

Could it be fixed size? It is really annoying that I can't make URL with dynamic name.

Profile
#8
Guest
Points::
Joined::

Unfortunately this behavior can't be changed as for now.

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.