- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have some code that I have generated to prompt users to fill in blank iProperties on save. I would like to implement this in our standard template files for .ipt. iam. etc. but have run into some chicken and egg difficulty.
Basically the code is triggered to run on a Save and checks to see if the relevant iProperties are null or whitespaced and if so displays a form until all fields are completed.
However some will already see where I am going with this. If I wish to populate the new template files with this code I would prefer the iProperties to be blank but I cannot save said template if I have the trigger enabled as it will flag up that the iProperties fields are blank
I may just not be seeing the wood for the trees here. 🙂
'''_________________________________________________________________________________________________ '''AUTHOR: AG ''' DATE: 22022018 ''' REV: 0 '''_________________________________________________________________________________________________ ''' Purpose: If iProperties Project, Title, Descrption or Author are blank (or null) ''' then prompt user with pop-up form To populate these requried fields. '''_________________________________________________________________________________________________ ''' Main code begin ''' ''' Repeat each Do loop until iProperties Project is populated in pop-up form "Required Fields Form" ''' Do Until String.IsNullOrWhiteSpace(Project) = False '''Call pop-up form "Required Fields Form" iLogicForm.Show(“Required Fields Form”, FormMode.Modal) '''Write Project string contents to respective iProperties Project = iProperties.Value(“Project”, “Project”) Loop ''' Title = iProperties.Value(“Summary”, “Title”) Do Until String.IsNullOrWhiteSpace(Title) = False ''' '''Call pop-up form "Required Fields Form" iLogicForm.Show(“Required Fields Form”, FormMode.Modal) '''Write Title string contents to respective iProperties Title = iProperties.Value(“Summary”, “Title”) Loop ''' Desc = iProperties.Value(“Project”, “Description”) Do Until String.IsNullOrWhiteSpace(Desc) = False '''Call pop-up form "Required Fields Form" iLogicForm.Show(“Required Fields Form”, FormMode.Modal) '''Write Description string contents to respective iProperties Description = iProperties.Value(“Project”, “Description”) Loop ''' Do Until String.IsNullOrWhiteSpace(Desc) = False '''Call pop-up form "Required Fields Form" iLogicForm.Show(“Required Fields Form”, FormMode.Modal) '''Write Author string contents to respective iProperties Author = iProperties.Value(“Project”, “Description”) Loop '''
Solved! Go to Solution.