|
Blogs
Take a look at the example screenshot given on the left. The Alloy sidebar contains the common My Approvals section and below some customized Budget section. The data shown there comes from the SAP Backend via the common Alloy mechanisms and get visualized at the Alloy sidebar.
Let's work this out.
What do we have here?
Basically there're three kind of items here:
Select Form from the Type field. In the example we've entered PurchApproval which is the alias name for one of our custom generic decision workflow forms. Every time a PurchApproval Notes form is opened, this Form item is called to fill the Alloy sidebar.
Press Save & Close Button at the top and create another item by pressing New Panel Data again.
Now we're going to specify the HTML item, to which we already referred to earlier. Press Save & Close Button at the top and create another item by pressing New Panel Data again.
The last item we need to create is the Fragment. So we set the Type field to Fragment and set the Type ID to the Fragment name which we specified at the HTML item. The value of the field Property Value will later be used for the sidebar section name, as seen in our example screenshot below.
The Property HTML field can now be filled with HTML tags in order to display the data in the sidebar. But this data would be static as it wouldn't have access to the current documents' data. In order to display document data in the sidebar, we've to dig a bit deeper.
The Alloy Sidebar allows us the display any HTML data contained in the current document, as long as the documents' fieldname equals a valid Fragment item name.
Knowing that, we can now use the full power of Lotus Domino Designer (Lotus Script, Java, ...) to enhance the Alloy sidebar with some additional data.
Here we add some coding in the e.g. Queryopen section that will grab some data from the current document which was send out by SAP and create some nice HTML around it.
The result will look like this:
Data taken from the opened document (Net Order Value) is used not only to be displayed in a table on the document, but also in conjunction with budget data (send along from SAP side, but not displayed in any field on the Notes form) in the Alloy sidebar.
Dirk Lehmann is currently working as a Regional Group Specialist for Alloy (formerly known as project "Atlantic") in the Information Worker Division. He began his SAP career in 2001 as an SAP NetWeaver developer for Java. Prior to this career at SAP, Dirk worked for IBM Germany. |