AgilizTech’s customization for bpm’online – Look up filtration based on flag in mobile app

In this fourth post of the series we will be discussing how to list only active products in the product selection page of the bpm’online sales enterprise edition mobile app.

The product section in mobile app has provision to activate or inactivate the products. In the desktop version if a product is inactivated, it will not list in any product selection page. In mobile page, however by default the product will be listed.

Business use case:

To display active products only in the production selection while booking orders through bpm’online mobile app.

Product:  bpm’online sales enterprise edition

Applicable for Version: 7.13 & above

Below is the desktop version of bpm’online sales enterprise wherein you can see that the Product Inactivated does not appear in the product selection page.

Fig 1: Product Inactivated

Whereas in the product selection page of the bpm’online mobile app the inactive product will be listed. This can be corrected by applying a certain code.

Fig 2: Before applying code change, product will be listed in mobile product lookup

Fig 3: After applying the code change, product will not be listed in lookup

Filtration of lookup columns based on the flag or a column is demonstrated below.

You should be knowing in which Workplace the changes need to be done. Select the workplace first to apply the changes.

In Custom package > MobileApplicationManifestDefaultWorkplace

For Example:

UsrMobileFilterModelConfig – If this is the business rule created for filtering the columns based on other columns, then you will have to mention this name in Model > Object’s Page Extension section.

Refer below code:

“Models”: {
“Order”: { {
“RequiredModels”: [
“Order”,
“Account”,
“OrderStatus”,
“OrderPaymentStatus”,
“OrderDeliveryStatus”,
“Currency”,
“DeliveryType”,
“PaymentType”,
“LeadType”,
“SocialMessage”,
“OrderProduct”,
“Product”,
“Unit”,
“Pricelist”,
“OrderVisa”,
“VisaStatus”
],
“ModelExtensions”: [],
“PagesExtensions”: [
” UsrMobileFilterModelConfig “, // Module Name
“UsrMobileOrderGridPageSettingsDefaultWorkplace”,
“UsrMobileOrderRecordPageSettingsDefaultWorkplace”
]
},
}

Create a module with the specified name. In this example it is UsrMobileFilterModelConfig.

In UsrMobileFilterModelConfig. module write the business event for Accessibility.

Find the code below.

Terrasoft.sdk.Model.addBusinessRule(“OrderProduct”,{
ruleType:Terrasoft.RuleTypes.Filtration,
events:[
Terrasoft.BusinessRuleEvents.Load,
Terrasoft.BusinessRuleEvents.Insert,
Terrasoft.BusinessRuleEvents.ValueChanged
],
triggeredByColumns:[“Product”],
filters:Ext.create(“Terrasoft.Filter”,{
modelName:”Product”,
property:”IsArchive”,
value:false
})
});

Here we are filtering “Product” lookup column in Order Products, based on Is Archive field in the product object. If the value is false, product will be listed; if value is correct i.e. if product is inactive, it won’t be listed. This Filtration should work while inserting new order, i.e. selecting a product for new order and while editing order product list for an existing order.

The event handling is explained below:
Find the code below.

events:[
Terrasoft.BusinessRuleEvents.Load, //On Data Load
Terrasoft.BusinessRuleEvents.Insert, //upon inserting new
Terrasoft.BusinessRuleEvents.ValueChanged //While Editing
]

Hence, if the above code is applied the inactive products will not be listed in the mobile product look up.

Click here to navigate to the main blog post which contains the complete list of bpm’online customization use cases.

AgilizTech’s Customization for bpm’online – Conditionally Enable / Disable Field in bpm’online mobile app

In this blog we will be discussing on how to conditionally enable or disable a field in bpm’online mobile app.

In this third use case, the user can enter the product details, price and quantity needed, and can edit the total amount field in the order page of the mobile app. The total amount field should be an auto computed one based on the price and quantity given at order product level. To restrict this we have created a code which completely disables the ‘order total amount’ field.

bpm'online

Figure:1 By default if you add the “total order amount” in mobile page, it will be editable.

bpm'online

Figure:2 After applying the below code, the field will not be editable.

How to make changes in the page?

To apply these changes and set the corrections, you should be aware of the workplace in which the changes have to be done.

In the Custom package > MobileApplicationManifestDefaultWorkplace select the mobile app workplace where the changes need to be done.

As a business rule, the module UsrMobileDisableModelConfig must be created and you need to write the business event for accessibility.

Below is the code for this customization:

Terrasoft.sdk.Model.addBusinessRule(“Order”,{
ruleType : Terrasoft.RuleTypes.Activation,
events:[Terrasoft.BusinessRuleEvents.Load,Terrasoft.BusinessRuleEvents.ValueChanged],
triggeredByColumns : [“Id”],
conditionalColumns :[ {name :”Id”,value : “Disable All the time”} ],
dependentColumnNames : [“Amount”]

The above code will disable ‘amount’ field which stores the ‘total order value’only if the order ID field is having a value other than the value mentioned in the condition line (i.e. value of ‘Disable All the time’). In this code we have chosen ‘ID’ field as the conditional field, but you can choose a field of your choice as per the business need.

Once UsrMobileDisableModelConfig module is created, we need to place this in the
custom package >  MobileApplicationManifestDefaultWorkplace

For Example:
UsrMobileDisableModelConfig – if this Business rule is created for accessing the columns, then you will have to mention this name in Model > Object’s Page Extension section.

Below is the code:

“Models”: {
“Order”: {
“RequiredModels”: [
“Order”,
“Account”,
“OrderStatus”,
“OrderPaymentStatus”,
“OrderDeliveryStatus”,
“Currency”,
“DeliveryType”,
“PaymentType”,
“LeadType”,
“SocialMessage”,
“OrderProduct”,
“Product”,
“Unit”,
“Pricelist”,
“OrderVisa”,
“VisaStatus”
],
“ModelExtensions”: [],
“PagesExtensions”: [
” UsrMobileDisableModelConfig “, // Module Name
“UsrMobileOrderGridPageSettingsDefaultWorkplace”,
“UsrMobileOrderRecordPageSettingsDefaultWorkplace”
]
},
}

Once the above codes are implemented, the user cannot change the order amount because the field will be disabled.
Click here to navigate to the main blog post which contains the complete list of bpm’online customization use cases.

AgilizTech celebrates 4th anniversary – Journeying with the spirit to celebrate a centenary

Congratulations to AgilizTech for having completed 4 successful years. It was a bright and happy Monday morning of 10th June 2019 with AgilizTech completing 4th anniversary. Though it was a busy day, the celebrations started off with lot of excitement and energy by decorating the office premises, distributing sweets and sharing the experiences of employees. This was just the beginning of celebration with the main celebration held on 15th June 2019.

Pre-Preparations for the Event

The spirits of celebrating had made the team enthusiastic and all were on their toes preparing for the event. Practicing for the dance and song performances, running around for shooting of videos, selecting the venue, organizing the event was fun and showed complete team effort.

The Gala Evening

The anniversary celebration was held at Hotel La Marvella on 15th June 2019. The event was presided by our Honourable Chief Guest Mr. Biswanath Bhattacharya (CEO and Founder of Venerate Solutions Pvt. Ltd.) and his family. It was a mesmerising evening wherein not only the AgilizTech team, but also their families were present which added to the splendour of the celebrations.

The celebrations started at 5:30pm with Gayathri, Shailey and Gaurav hosting it. Lamp lighting by the Chief Guest Mr. Biswanath Bhattacharya and his wife, Ganesh Babu (CEO and MD of AgilizTech), Sujeeth Shetty (VP – Sales and Marketing at AgilizTech) and family, Anand Gangoor (Senior Technical Delivery Manager) and family, Karan Singh (Senior Project Manager) and family marked the beginning of the celebrations.

Then Ganesh Babu spoke about the company roadmap enlightening on the achievements by each team, sales forecast and upcoming projects. It was an exciting moment for the team as Ganesh Babu addressed each one of them and spoke about his/her contribution. His words have motivated the team in delivering better work with complete dedication.

Subsequent to that we had our Chief Guest Mr. Biswanath Bhattacharya addressing the young and energetic team about startup being the best learning institution to shape a career. He emphasized that passion and focus are the important qualities which shows the path of success in a start-up environment , and AgilizTech is offering the right platform to learn and explore new dimensions.

A Proud Moment for Agillians!! The Award Ceremony

At AgilizTech we respect the contribution of every employee. Team members are recognized and awarded for their achievements and contribution. It was a stupendous award ceremony where the recipients collected the award along with their family members.

The Most Awaited One

Yes, no celebration is complete without some fun, performances and surprises. It was a gripping moment for all our participants who left no stone unturned in giving their best. We at AgilizTech believe that every person has a hidden talent which needs to be recognized and applauded.

First, we had a smash hit video presentation where the team wished AgilizTech in their own way. We also had tik tok videos by our team members which sparked the moods of the crowd with laughter.

We also had the families actively participating in the events and showcasing their talent. We had a combination star performance by Lopamudra, wife of Sai Prasad Das singing, with Master Arnav, son of Anand Gangoor synchronizing for the song by playing the tabla.

Next, we had AR Rehman’s mash up song sequence by Meghana M and Pawan. It’s not easy to sync with the karaoke and sing simultaneously with different songs and music. But our performers were simply amazing.

Coming up next was a dance performance by the Gulab Gang (only ladies) of AgilizTech. We also had the Lazy and Crazy Dance by the men. Our team lit up the stage with the crowd cheering for them.

The show was not over, we had few more surprises for the families and the kids. We had games for couple and kids which was entertaining and fun.

We also celebrated by having a cake cutting ceremony, photo sessions and a sumptuous dinner. Families enjoyed and shared great moments by being a part of this celebration and interacting with the other family members.

Final Words

With the entire AgilizTech family coming together and putting in their efforts the celebration was a grand success. It was a day which motivated us to show our dedication and involvement in our work, to contribute for the success and continue to celebrate more.

Our celebrations and achievements would not have been possible without the support of our clients, partners and vendors. We thank each one of them for the support.