In mobile we need to add validation in delete event. In the business rule only "Terrasoft.BusinessRuleEvents.ValueChanged" and "Terrasoft.BusinessRuleEvents.Save" is available. Any idea how we can set validation on record delete event?
There you can find the description of the Terrasoft.Core.Entities.Events.BaseEntityEventListener class that provides the handler methods of various entity events.
To find some examples, you can run the following script in the database:
SELECT * FROM "SysSchemaSource" WHERE "Source" LIKE '%OnDeleting%'
It will show you schemas that use the OnDeleting handler method.
Is there any easy way to transfer changes from section Pages the (Full User) to Portal Pages. I have created three pages as a Full User, and i want to transfer these modifications to Portal also. I want to create the same pages in Portal. Is there an easy way to do this automatically ?
Or i would have to repeat dhe same process to Portal by hand ?
That shouldn't cause any problems as the Application Form Edit Page that you are setting as the parent inherits it's properties from the base section page.
In order to achieve this you can go to the Advanced settings and find the page that you would like to transfer, the data type will be "Client module". Then you can copy all the content that is inside of the "Diff" array of objects and paste it into the page that you have in the portal. If there are any business rules or other differences you should copy them as well. In the portal page you should leave as it is the entitySchemaName and the details of the page, the rest should look as it looks in the page that you are transfering.
That shouldn't cause any problems as the Application Form Edit Page that you are setting as the parent inherits it's properties from the base section page.
I want to use Wait Timer element in multiple business processes. I want it to wait upto 28 days. Will there be any issue if I specify 28 days (24,19,200 seconds) ? or is there any recommendation what is the maximum wait duration can be given?
Please be informed that the [WAIT FOR TIMER] element will not work correctly with such a big value, it will definitely drift off the needed amount of time at some point. Could you please elaborate on what business logic you're trying to implement, so we could try to find a possible alternative for you?
I'm sorry for the confusion, we have double-checked this functionality with our R&D team and they confirmed, that Wait Timer will work correctly even with such a big value specified. Please feel free to try it out and in case you do face any issues, make sure to register a case for our support team.
using Terrasoft.Web.Common;using Terrasoft.Web.Common.ServiceRouting;[ServiceContract][DefaultServiceRoute][SspServiceRoute][AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Required)]publicclass Service1 : BaseService
{//Code}
For system users the service works fine but when I try to access the service from postman authenticated as a portal user I get the following message : "IS 10.0 Detailed Error - 403.0 - Access to non-SSP API is denied for portal users" with 403 status code. Is something that I am missing in the service implementation or in web.config?
I need to allow only some authorized users to add new email accounts.
I didn't find any feature or operation permission that could allow mailbox creation only to certain users or groups. I only found something regarding managing shared mailboxes.
I tried giving object permissions only to system administrators but my test user is still able to add a mailbox: the UI reports a javascript error and the mailbox creation doesn't complete (see image below), but it's not what I expected.
Is there something I'm missing or that object permission doesn't work as expected?
This is the correct behaviour. There will be no notification about missing access rights, only the loading screen, but the user will not be able to add the mailbox. There is already a request created for our R&D team to add a meaningful notification for users, it will be implemented in future releases. I have assigned your request to the project in order to increase its priority. As for now, the solution described by Anastasiia is the only option.
You can create a data binding for the SysLocalizableValue object and add all the records regarding the image to this data and it will be transferred when the package is moved between the environments.
I want to change the text that appears in this pop-up, "Detail Product Terms is not filled". This pop-up appears when i click save and one of the product terms is not filled.
I have also seen in the SysTranslation table and i havent found it.
Unfortunately, It is not possible to change the text in the error message. The problem here is that the schema that defines it is very hardcoded in the application core. It is not possible to replace and modify it.
Assuming the field is a text field, you can try the following custom approach in client page schema.
1. Make the field not required in the section wizard.
2. In the client page schema, add the following code in the methods:
methods:{// Redefining the base method initiating custom validators.
setValidationConfig: function(){this.callParent(arguments);this.addColumnValidator("UsrProductTerms", this.ProductTermsValidator);},
ProductTermsValidator: function(){
var invalidMessage ="";
var ProductTerms =this.get("UsrProductTerms");if(ProductTerms.length!=0){
invalidMessage ="";}else{
invalidMessage ="Product Term is required in order to proceed";//Put your custom message}return{
invalidMessage : invalidMessage
};},
},
Now you can see your custom validation message. Similar approach can also be used for fields of type Lookup, Date, Integer etc.
You need to create a custom item view module based on the Contact object and add it to the Leads section. Please use this article as a reference where the same task is described using a custom "Books" section added as timeline item to the "Accounts" section.
I have a printable which is no longer needed. What option do I have to prevent displaying this printable in the object list of Print button? How can this printable be disabled?
I have made some fields read-only when I am creating the fields on the edit page. When I use the Open Edit Page element and try to add some values to other fields, the read-only fields also change as editable fields. I wanted to keep my read-only fields always not editable. How to resolve this issue.
Normally, Section wizard reflects the content from all the schemas up to the package indicated in the "Current package" setting.
However, UI reflects the content and logic from all the schemas of all the packages.
"Custom" package is dependent on all packages of the application (and should be the last one in the hierarchy), all columns are the same and are visible both on UI and in Section wizard once it's set as the current package.
I would suggest you check the "Current package" setting and parameters of column "Currency" on the pages in each package in the hierarchy.