Save last point...

The 1C:Enterprise developers forum

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

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.

Edited: Sarvan Rahimov - Jan 08, 2013 10:43 AM
 
#2
People who like this:0Yes/0No
Active user
Rating: 7
Joined: Sep 26, 2012
Company: individual

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

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

Joined:
Company:

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

 
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.