Exclude user without email from a form search

cancel
Showing results for 
Search instead for 
Did you mean: 
Latence132
Member II

Exclude user without email from a form search

Hello Everyone

I work on Alfresco 5.2.6, SDK4 with Activiti.

When I start a workflow:

1 - Click on 1 to open a user form search.

2 - Write LEGRAND

3 - Click on search.

There are 2 users found. One user does not have email, I want to exclude him from the research

2020-04-15_09h45_13_80.png

 

The form is defined in META-INF/share-config-custom.xml:

<alfresco-config>
    
    <!-- Wokflow -->
	<config evaluator="string-compare" condition="activiti$partagerEnLecture">
		<forms>
			<form>
				<field-visibility>
					<show id="bpm:workflowDescription" />
					<show id="girpelwf:collaborateurLecteur" />
					<show id="packageItems" />
				</field-visibility>
				<appearance>
					<set id="" appearance="title" label-id="workflow.set.general" />
					<set id="personne" appearance="title" label="Personne assignée" />
					<set id="items" appearance="title" label-id="workflow.set.items" />
					<field id="bpm:workflowDescription" label-id="workflow.field.message">
						<control template="/org/alfresco/components/form/controls/textarea.ftl">
							<control-param name="style">width: 95%</control-param>
						</control>
					</field>
					<field id="girpelwf:collaborateurLecteur" set="personne" label-id="workflow.partagerEnLecture.collaborateurLecteur" />
					<field id="packageItems" set="items">
						<control template="partagerEnLecture/components/form/controls/packageitemsPELstartTask.ftl">
							<control-param name="startLocation">/app:company_home/st:sites</control-param>
						</control>
					</field>
				</appearance>
			</form>
		</forms>
	</config>

The user form search is defined with : <set id="personne" appearance="title" label="Personne assignée" />

What to do to exclude user without email from the search ?

Thank's you

Best regards

 

1 Reply
sanjaybandhniya
Intermediate

Re: Exclude user without email from a form search

Without Email , How you have created user?

You need to override webscript get all user where email is there.