Oliver,
of course you can change the presentation. Add the following procedures to the object manager module:
- PresentationFieldsGetProcessing (for getting the fields that form the presentation)
- PresentationGetProcessing (for generating the presentation based on these fields)
Example:
Code |
---|
Procedure PresentationFieldsGetProcessing(Fields, StandardProcessing)
// Use custom fields for building presentation.
StandardProcessing = False;
// Add presentation field names.
Fields.Add("Number");
Fields.Add("Date");
EndProcedure
Procedure PresentationGetProcessing(Data, Presentation, StandardProcessing)
// Define custom document name presentation.
Data.Insert("Name", "PO");
// Generate standard presentation.
Presentation = GetDocumentPresentation(Data, StandardProcessing);
EndProcedure
Function GetDocumentPresentation(Data, StdProcessing) Export
// Create custom document description.
StdProcessing = False;
// Define document name template.
Presentation = "{Name} #{Number} {Date}";
// Fill the template by document data.
For Each Item In Data Do
Presentation = StrReplace(Presentation, "{" + Item.Key + "}",
GetDocumentDataPresentation(Item.Key, Item.Value));
EndDo;
// Return filled presentation.
Return Presentation;
EndFunction |
As for command bar icons, what exactly do you mean? Just pictures or buttons that do something? Adding "just pictures" is not supported.