Workdesk Search Template question

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2015 06:25 PM
I am trying to build a document search which should use one input field from the form but match it to 2 separate properties.
Example- the user enters ID = 123456, I want to return all documents where property 'CaseNumber' = 123456 and 'CaseAspect.CaseNumber' is also equal to 123456 but I don't want the user to enter ID twice on the screen
This is the where clause for 2 separate fields-
<where>
<or>
<eq>
<whereprop editproperty="editable" symname="P:CaseNUmber" />
</eq>
<eq>
<whereprop editproperty="editable" symname="P:CaseAspect.caseNumber" /> </eq>
</or>
</where>
I would like to somehow use the first value for the second condition as well. Can we hide the second field and use literals or pass copy paste the first value into the second?
Thanks.
Example- the user enters ID = 123456, I want to return all documents where property 'CaseNumber' = 123456 and 'CaseAspect.CaseNumber' is also equal to 123456 but I don't want the user to enter ID twice on the screen
This is the where clause for 2 separate fields-
<where>
<or>
<eq>
<whereprop editproperty="editable" symname="P:CaseNUmber" />
</eq>
<eq>
<whereprop editproperty="editable" symname="P:CaseAspect.caseNumber" /> </eq>
</or>
</where>
I would like to somehow use the first value for the second condition as well. Can we hide the second field and use literals or pass copy paste the first value into the second?
Thanks.
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2015 03:34 AM
Hi mtiwari,
This functionality is not possible with an OOTB Workdesk. Normally you would either use two search templates (one for each property) or your users would have to enter the value twice if being used in one search template. Literals in a standard search template cannot be filled during runtime, but are there to be filled with a predefined value in the template itself.
As solution for your request, you could try to code a custom field control for the second property field, which is active only in the search context and copies over the value from the first field after every character entered in the first field.
Best regards,
Dennis
This functionality is not possible with an OOTB Workdesk. Normally you would either use two search templates (one for each property) or your users would have to enter the value twice if being used in one search template. Literals in a standard search template cannot be filled during runtime, but are there to be filled with a predefined value in the template itself.
As solution for your request, you could try to code a custom field control for the second property field, which is active only in the search context and copies over the value from the first field after every character entered in the first field.
Best regards,
Dennis

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2015 09:49 AM
Thanks.
I ended up writing a custom search form which copies over the contents from the first field to the other on focus.
I ended up writing a custom search form which copies over the contents from the first field to the other on focus.
