Page 1 of 1

Lock down some fields

Posted: 2015-12-11 14:37
by eagle
1. In the Northwind demo I create a new order.

2. I then click "Order items" to add items to this new order

Please consider the following questions:

A) Is is possible to "lock" the order ID field?

When adding order items it is now possible to select other order ids. Can this be locked down, so that I can only add items to the order in #1 above?

B) Also, could we see the order details ( customer name etc ) on screen when adding order items?

Thanks for all help.

Re: Lock down some fields

Posted: 2015-12-14 04:31
by a.gneady
You can set the order ID field as read-only in order details. That would effectively lock it.

To show the customer name in order details, you could add a lookup field in the order details table, with parent table set to orders, parent caption field set to customer name, and 'Auto fill' checked. You can add other customer info in the same way.

Re: Lock down some fields

Posted: 2015-12-14 10:29
by eagle
Hi Ahmad,

Thanks for answering.

>You can set the order ID field as read-only in order details. That would effectively lock it.

I tried that, but then the field does not save. When adding a new item the order ID shows correct as read only field, but in database it is stored as NULL?

Re: Lock down some fields

Posted: 2015-12-15 10:20
by a.gneady
This issue was fixed in AppGini 5.50, released today :)

Re: Lock down some fields

Posted: 2015-12-15 12:15
by eagle
Thanks, Ahmad.

That worked much better :)