cancel
Showing results for 
Search instead for 
Did you mean: 

startLocation for Category picker

bimsimala
Champ in-the-making
Champ in-the-making
Hi,
in share i have a data list of a custom content type. The type has property (defined through an aspect) of type d:category.

In alf Explorer->Category management i defined some categories, i.e.:

Cat A
   Cat A.B
      Cat A.B.1
      Cat A.B.2

I want the user to be able choose from children of Cat A.B

The form options for this field are defined like this:
<field id="pi:itservicecategories" label-id="label.pi_thecategories" description="the category" set="info">
   <control template="/path/to/category.ftl">
      <control-param name="multipleSelectMode">false</control-param>
      <control-param name="startLocation">alfresco://category/root/Cat A/Cat A.B</control-param>
      <control-param name="parentNodeRef">/Cat A/Cat A.B</control-param>
   </control>
</field>

How to define the startLocation and parentNodeRef correctly. I', always getting errors cannot read children of null.
1 REPLY 1

cfox570
Champ in-the-making
Champ in-the-making
I implemented this successfully. Here is the code:



<field id="CoP:topicValues" label="Product Services" set="classify" >
    <control>
        <control-param name="startLocation">/cm:categoryRoot/cm:generalclassifiable/cm:Cat_x0020_A/cm:Cat_x0020_A.B</control-param>
     </control>
</field>


Note that spaces are replaced with x0020 which corresponds to ISO9075 requirement.
I did not use the parameter multipleselectnode false since I want to allow multiple options.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.