Desktop version

Main > Forum > 1C:Enterprise Platform > 1C:Enterprise – Business applications platform > Save last point...

Forum

Search UsersRules
Save last point...
#1
Just came
Points:: 0
Joined:: Dec 20, 2012

I have Tabular section Productlist, it has Product Name column.
Product Name datapath is Products catalog.

I need to choose Product Name = Printer and Mouse items and they are in Computer folder of Products catalog. Let say I have chosen Printer item already.

I want when Selection Form of Products catalog is opening second time for choosing Mouse item Computer folder be opened automatically.

Profile
#2
Active user
Points:: 0
Joined:: Sep 26, 2012

If you start choise Product Name in cell where value is Printer (or another), then Selection Form will be opening with focus on value Printer.
So you can add new line to Tabular section Productlist by command Copy (F9). And so when Selection Form of Products catalog is opening second time, the focus will be on value of copied line. I think, it can resolve your task.

But what was written above is also really to do by script. After first selection save value of selection and then fill Parameter CurrentRow at ChoiseForm of Products catalog

Code
&AtServer
Procedure OnCreateAtServer(Cancel, StandardProcessing)
   LastValue = GetLastValue();
   
   if ValueIsFilled (LastValue) then
      Parameters.CurrentRow = LastValue;
   endif;
EndProcedure

Profile
#3
Guest
Points::
Joined::

You can also save the Parent of last item in a form attribute and pass it as a parameter to the choice form.

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.