We are about to start developing our applications with xaf framework (XPO) and we want to give to the end (advanced) user the ability to customize several things. Xaf has the way to add at run time new fields, forms and reports. What we are looking to implement is a "scripting" engine for the end user/supporter, that will enable him to customize or introduce new procedures. For example creating a new action to calculate some totals, or create a new Task in a CRM module. Maybe customizing a "Xafari Business Operation" but at run-time. Is this possible with Xafari?
Thank you
Replies
User
Description
Posted On
MariyaVoytovichAgent
Hello keradinides!
You are welcome.
I do not quite understand what you want to do.
Can you describe some example of use and describe how it should work?
Feel free to contact us if you need further assistance or have additional questions.
Regards, Mariya On behalf of Xafari Client Services Team
keradinidesClient
Hello Mariya
I think one of the simplest examples, but also common is the following.
Lets say we have a typical Customer, Product, Order, OrderLine scenario. Typically we implement at design, an action to calculate the summary of OrderLine.Quantity * OrderLine.Price and place it to the Order.Amount
We ship the application and one customer (who doesn't have the source code) would like to include a Customer.DiscountPercentage property, and modify/override our default action and set the Order.Amount equal to Sum(OrderLine.Quantity * OrderLine.Price) * (1-Customer.DiscountPercentage).
MariyaVoytovichAgent
Hello keradinides!
I apologize for the delayed response. Thanks for your patience. We have investigated the issue and have prepared an example where the user can specify how to calculate some totals.
See attached documents.
We hope that this solution will suit you.
Feel free to contact us if you need further assistance or have additional questions.
Regards, Mariya On behalf of Xafari Client Services Team
No worries, for the response. Thank you for the detailed answer. The video is quite explanatory. In order to test with more scenarios, could the code run with trial xafari? Is it possible for example to "save" the expression build from the administrator of the customer, and the end-user just use it?
Regards George
MariyaVoytovichAgent
Hello keradinides!
You can test different scenarios during the trial Xafari period. The trial period is 30 days.
Xafari has a business component an Application Setting. (See Application Setting topic.) By implementing this component in your application, you can manage various settings. You can also configure a separate setting for the business operation.
We expand the previous example settings. In these settings, the administrator can specify which expression should be used when performing the operation. See attachments.
Regards, Mariya On behalf of Xafari Client Services Team