The situation which I have is as follows:
These are the documents which I have in Lotus:
-Order
-Orderlines
In the document Orderlines I store the document ID of the Order document so that I can relate the orderlines with the order.
The orderlines in one order can have different suppliers. For example
Order A
# item Supplier
1. Hamer - HamersSupplier
2. Pool - PoolSupplier
3. Pool pump - PoolSupplier
The goal is to create a order for every supplier and send these orderlines to them. The format in which the order need to be sent is XML. Thus in the example of above I need to create two XML (orders) which then need to be sent to the suppliers. One order for HamersSupplier and order one for PoolSupplier. As you already guess both suppliers have their own XML structure. So I need to create these XML orders according to their structure. Next to this we have quite a few suppliers and they all have their own structure, and sometimes they use the same structure (if they are connected to a certain type of portal).
I found two ways to create these XML documents:
- Creating a Scriptlibrary in which I have a class for HamersSuplier and PoolSupplier (and for every supplier a specific class) in which I have both XML structures in a string. There I fill the XML values by Order+orderline field values (for example : content = " +Order.OrderNumber(0) + "
- Create different Lotus forms in which I put fields which I will convert to a XML
2.a. If I create this form is it also possible to connect this form dynamically with the order and orderlines documents as to get the data from it?
When sending the order in the same connection we will also receive a XML (orderconfirmation) back, this also is different per supplier. How to also handle this one?
I do not know if b is possible and which way is the right way to choose or could there be much easier ways to handle this?