cancel
Showing results for 
Search instead for 
Did you mean: 

Mime type

fararjeh
Champ in-the-making
Champ in-the-making
Hi


In workdesk , There is an option to add new mime type for custom type to open specific plugin when click it . I created new mime type for employee type to open employee plugin (eFile plugin) so when search for employee in search result we can open eFile for specific employee when click it , In previous version the eFile opened for employee selected only  But in new version the eFile opened but the tree shown parent space for employee and all children for parent employee … so how I can resolve it ?

[img=600x480]https://forums.alfresco.com/sites/forums/files/error%202.png[/img]
7 REPLIES 7

fararjeh
Champ in-the-making
Champ in-the-making
Is there any update on this issue?

d_evil
Champ in-the-making
Champ in-the-making
As I remember there is a parameter in MIME configuration,

  <mime optionid="" type="ow_default/OBJECT_TYPE_FOLDER">
    <icon>folder.png</icon>
    <openicon>folder_open.png</openicon>
    <!– <eventhandler type="id">com.wewebu.ow.Record.Doc</eventhandler> –>
    <eventhandler type="class" openrecord="true">com.wewebu.ow.server.plug.owrecord.OwRecordDocument</eventhandler>
  </mime>


it is working together with a definition in bootstrap.xml,

<bootstrap>
  <ECMAdapter>
   ….
  </ECMAdpater>

  <RecordClasses optionid="">
    <RecordClassName>cmis:folder</RecordClassName>
    <RecordClassName>F:my:specialFolder</RecordClassName>
  </RecordClasses>



Give it a try and see if that works for you.

fararjeh
Champ in-the-making
Champ in-the-making
Thank you for replaying, As I see your configuration you use class type for event handler but I'm using Id type for event handler.
below is my configuration please look it if contains any error.


<mime type="ow_folder/F:kaad:employee">
    <eventhandler type="id" openrecord="true">com.wewebu.ow.emplyeeProfile.Doc</eventhandler>
    <openicon>employee1.png</openicon>
    <icon>employee.png</icon>
  </mime>


  <RecordClasses optionid="">
   <RecordClassName>cmis:folder</RecordClassName>
   <RecordClassName>F:kaad:employee</RecordClassName>
  </RecordClasses>

deko
Star Contributor
Star Contributor
Hi farajeh,

What you are trying to achieve is done with the openrecord parameter, which is currently set to true in your given example. If you set it to false, only the currently selected folder will be opened. Setting it to true as in your case will cause the effect, to open the selected folder in it´s complete parent structure.

Best regards,
deko

fararjeh
Champ in-the-making
Champ in-the-making
Big thanks
But It is different from old workdesk version , It must write it in release note PDF .
In old workdesk version (4.1.0.0) I set openrecord true and It worked properly But in new workdesk version (4.1.1.1) not worked else it set false .

deko
Star Contributor
Star Contributor
Hi farajeh,

The code for this parameter was not touched between the two versions. Either you used different settings or the handling of this parameter was not correct for the old CMIS adapter which was delivered with 4.1.0.0. I guess you switched from Sun Metro CMIS adapter to the new OpenCMIS adapter when upgrading from 4.1.0.0. to 4.1.1.1, right?

Best regards,
deko

fararjeh
Champ in-the-making
Champ in-the-making
And I'm not touch my configuration when upgrade workdesk and I sure it was working in old version . About adapter yes I switched it from cmis to OpenCMIS  .