I have recently been using the Flexibility add-on for Macola and have nothing but good things to say about it. It really has opened things up to make Macola do what *we* do. However, I'm seeing some strange stuff. This problem is not limited to application development only, but it also relates to anything report related, i.e., Crystal Reports, Excel, etc.
Generally speaking, in relational database systems, records in separate tables can have relationships based on some kind of identifier or key, which may be one or more fields from each table. For example, The order number and order type fields in the order header file are related to the order line file by the order number and order type fields. Hence a link is created. Additionally, the order line file has another key field, the Line Sequence Number, which is used to enumerate the line items for an order, and it used to relate the table to other tables, such as the Blanket Order Release file and the Order Build file.
Here's the rub. I was creating a small app that checks the order line items and the order build file. The tables, like I said, are related by the line sequence number. I tested the code and it was working properly. I went back to the order in Macola to reset one of the fields my code manipulates. I ran another test and got a different result? Here's why.
When I reset the field in the order, the quantity to ship field, apparently Macola resequenced the line sequence number field. The values in the field were '2' and '3'. I did this on purpose to I could examine the related tables. Now the fields values are '1' and '2'. What is baffling the related tables linked field's values did not change. And yet Macola can properly display the order.
The line sequence number cannot be changed once it has been entered. Since it is a key field, an error 10 will occur if attempted (Pervasive P.SQL). Macola must be deleting the whole line and adding it back or perhaps accessing the data directly, somehow skirting around referential integrity.
In any event, this is troubling not only for developing supplemental applications for Macola, but like I mentioned before, it makes report writing a daunting task as well. Also, in my opinion, this is a wrong-headed relational database management approach.
Can any shed some light on this? Is this how things work with Macola's new MS SQL product?
Thanks in advance.
Generally speaking, in relational database systems, records in separate tables can have relationships based on some kind of identifier or key, which may be one or more fields from each table. For example, The order number and order type fields in the order header file are related to the order line file by the order number and order type fields. Hence a link is created. Additionally, the order line file has another key field, the Line Sequence Number, which is used to enumerate the line items for an order, and it used to relate the table to other tables, such as the Blanket Order Release file and the Order Build file.
Here's the rub. I was creating a small app that checks the order line items and the order build file. The tables, like I said, are related by the line sequence number. I tested the code and it was working properly. I went back to the order in Macola to reset one of the fields my code manipulates. I ran another test and got a different result? Here's why.
When I reset the field in the order, the quantity to ship field, apparently Macola resequenced the line sequence number field. The values in the field were '2' and '3'. I did this on purpose to I could examine the related tables. Now the fields values are '1' and '2'. What is baffling the related tables linked field's values did not change. And yet Macola can properly display the order.
The line sequence number cannot be changed once it has been entered. Since it is a key field, an error 10 will occur if attempted (Pervasive P.SQL). Macola must be deleting the whole line and adding it back or perhaps accessing the data directly, somehow skirting around referential integrity.
In any event, this is troubling not only for developing supplemental applications for Macola, but like I mentioned before, it makes report writing a daunting task as well. Also, in my opinion, this is a wrong-headed relational database management approach.
Can any shed some light on this? Is this how things work with Macola's new MS SQL product?
Thanks in advance.