The 1C:Enterprise developers forum

#1
People who like this: 0 Yes / 0 No
Just came
Rating: 0
Joined: Jul 27, 2015
Company:

Hi all,

I have a document journal and i can filter its "standart" list form by these codes:

Code
   DocumentJournalList.Filter.Onay.ComparisonType = ComparisonType.Equal; 
   DocumentJournalList.Filter.Onay.Value = False; 
   DocumentJournalList.Filter.Onay.use = true;

But i need to apply this filter in "managed" list form. The codes above does not work for managed form. How can i filter "managed" form? Thanks in advance..

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

Joined:
Company:

Hello, Erman BOSTANCI.

Please, see an example in How display filter item of Dynamic List on List Form by coding.

 
#3
People who like this: 0 Yes / 0 No
Just came
Rating: 0
Joined: Jul 27, 2015
Company:

Timofey, thank you for your reply.

I have one more question about document journal. I can add command to the context menu of the "managed" list form of the document journal via the code below:

Code
Procedure OnCreateAtServer(Cancel, StandardProcessing)
   CommandName = "Onaylama";
   
   currentCommand = Commands.Add(CommandName);
   currentCommand.Action = "Onaylama";
   currentCommand.Title = "Onayla";
      
   currentButton = Items.Add("Button1", Type("FormButton"), Items.List.ContextMenu);
   currentButton.CommandName = CommandName;   
EndProcedure


And, i want to add the same command to the context menu of "standart" list form of the same document journal, how can i do this, thanks in advance..

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

Joined:
Company:

Hello, Erman BOSTANCI.

You can create a command for your metadata object, specify it's reference as a parameters. In that case it will appear on standard forms.

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