Forum Discussion
6 Replies
- christopher_gillisCommunity Manager
Hello,
Could you let us know what you're trying to change about this functionality? The functionality for that button is contained within the codetree and would require modifying source files which is typically not recommended. If we know what you're trying to do, we may be able to recommend a change that will only affect the database.
Chris
Christopher Gillis
Aras Labs Software Engineer
- Former_MemberAccelerator III
Hi christopher,
Thank you for replying in short time.
I want to add one field on that page, which will be required/mandatory. Also i need to validate that field on click of that button and if validation result successful fhan it will move to project form.
- christopher_gillisCommunity Manager
There's two ways to achieve that.
The first would be to simply flag your new property as Required on the Project ItemType. This won't prevent users from closing that initial dialog, but it will prevent users from saving and actually creating the new Project from the main form. The Project isn't actually saved to the database when you click the green check mark on the dialog. The fields required there undergo additional validation for the purposes of calculating the schedule of the Project.
If you have good reason to require the field specifically on that dialog, you can find the file in your installation directory (By default C:\Program Files (x86)\Aras\Innovator\) under \Innovator\Client\Solutions\Project\scripts\addProjectDialog.html. You can edit the function sendData in this file to perform a validation check. The beginning of this function already performs validation checks for other properties, so you can base your own check on those.
Chris