Jump to: navigation, search

Difference between revisions of "HowTo:Add a new file extension"


m
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=== How to add a file extension in UBIK ===
+
{{UBIK}} knows a list of default [[FileTypes|file types]] and its extensions for documents. If you need an addtional extension it can be added by extending the [[SELECTIVELIST|system list]] of file types. The extensions also effects which application is used to open a document on the clients.
  
# Open {{UBIK Studio}} and connect to database.<br/>In the {{Class_Browser}} switch to the ''[[Class_Browser#Content|Content view]]''.<br/>[[File:Add_a_file_extension_01.png|440px|border|alt=Add a file extension|Add a file extension]]<br/>
+
# Open {{UBIK Studio}}, connect to a database and switch to the ''[[Class_Browser#Content|Content view]]'' of the {{Class_Browser}}.<br/>[[File:UI_HowTo_Add_a_file_extension_01.png|440px|border|alt=Content view|Content view]]<br/>
# Add a ''[[HowTo:Create_a_new_Selective_List|SelectiveItem]]'' in Admin mode<br/>Now browse to {System.List} in the Class Browser and open the [[MetaClass]] '''SELECTIVEITEM''' in the {{Bulk_Editor}} (via Drag & Drop).<br/>[[File:Add_a_file_extension_02.png|220 px|border|alt=Add a file extension|Add a file extension]]<br/>[[File:Add_a_file_extension_03.png|660 px|border|alt=Add a file extension|Add a file extension]]<br/>Every row in the Bulk Editor is shown greyed and can´t be edited, because the MetaClass SELECTIVEITEM is a system MetaClass. So we need to enable the ''[[UBIK_Studio_Basics#Admin_mode|Admin mode]]''.<br/>[[File:Add_a_file_extension_04.png|660 px|border|alt=Add a file extension|Add a file extension]]<br/>[[File:Add_a_file_extension_05.png|220 px|border|alt=Add a file extension|Add a file extension]]<br/>After enabling the Admin mode you can add a new row for your file extension.<br/>[[File:Add_a_file_extension_06.png|880 px|border|alt=Add a file extension|Add a file extension]]
+
# Browse to the [[MetaClass]] [[SELECTIVEITEM]] in the ''{System.List}'' namespace and connect it with the {{Bulk Editor}}.<br />[[File:UI_HowTo_Add_a_file_extension_02.png|220 px|border|alt=SELECTIVEITEM MetaClass|SELECTIVEITEM MetaClass]]&nbsp; [[File:UI_HowTo_Add_a_file_extension_03.png|660 px|border|alt=List of Selective Items|List of Selective Items]]
# Add your new file extension to the selective list<br/>Open the SELECTIVELIST MetaClass and connect the objects called FILETYPES with the {{Relation_Editor}} to add your new file extension via drag & drop.<br/>[[File:Add_a_file_extension_07.png|220 px|border|alt=Add a file extension|Add a file extension]]<br/>[[File:Add_a_file_extension_08.png|220 px|border|alt=Add a file extension|Add a file extension]]<br/>[[File:Add_a_file_extension_09.png|220 px|border|alt=Add a file extension|Add a file extension]]<br/>{{Attention|Please do not forget the save button.}}
+
# As this MetaClass is a Built-in object you have to enable ''[[UBIK_Studio_Basics#Admin_mode|Admin mode]]'' to be able to add / modify entries
 
+
# Once the Admin mode is enabled you can add a new file extension by creating a new row and setting a description, name and value<br/>[[File:UI_HowTo_Add_a_file_extension_06.png|880 px|border|alt=Create a new Selective Item for a new file extension|Create a new Selective Item for a new file extension]]<!--
=== Compile and release the ACM ===
+
-->{{Attention|The value of the new item must include the extension in the format *.wmv!}}
 
+
# Now you have to relate the new item to the list of known file types: first, browse to the MetaClass [[SELECTIVELIST]] within the ''{System.List}'' namespace and connect the list named ''FILETYPE'' with the {{Relation Editor}}. Second, relate the new Selective Item to this list.<br />[[File:UI_HowTo_Add_a_file_extension_07.png|220 px|border|alt=Selective List for FILETYPES|Selective List for FILETYPES]]&nbsp;[[File:UI_HowTo_Add_a_file_extension_08.png|220 px|border|alt=Related FILETYPES|Related FILETYPES]]&nbsp;[[File:UI_HowTo_Add_a_file_extension_09.png|220 px|border|alt=Add a new file type|Add a new file type]]
# Open the ''[[Release_data_model|compile window]]'' using F6 key.
+
# Save the changes with {{key press|Ctrl|S}} or the save command
# Release the ACM with the [[ACM_Manager]] using F11 key<br/>Click on the buttons as shown in the picture below and  restart your web service.<br/>[[File:Add_a_file_extension_12.png|660 px|border|alt=Add a file extension|Add a file extension]]<br/>[[File:Add_a_file_extension_13.png|660 px|border|alt=Add a file extension|Add a file extension]]<br/>[[File:Add_a_file_extension_14.png|660 px|border|alt=Add a file extension|Add a file extension]]
+
# [[HowTo:Release_MetaDefinitions|Release the new MetaDefintiions]]
# Restart your web service<br/>Connect to your web server, open the Internet Information Service (IIS) Manager and click on the Restart button on the right side.<br/>[[File:Add_a_file_extension_15.png|660 px|border|alt=Add a file extension|Add a file extension]]
+
# Restart the [[HowTo:Configure_Microsoft_IIS_for_UBIK|web service]]
  
 +
[[Category:Document|Add a new file extension]]
 
[[Category:How-To|Add a new file extension]]
 
[[Category:How-To|Add a new file extension]]

Latest revision as of 12:32, 19 February 2016

UBIK® knows a list of default file types and its extensions for documents. If you need an addtional extension it can be added by extending the system list of file types. The extensions also effects which application is used to open a document on the clients.

  1. Open UBIK® Studio, connect to a database and switch to the Content view of the Class Browser.
    Content view
  2. Browse to the MetaClass SELECTIVEITEM in the {System.List} namespace and connect it with the Bulk Editor.
    SELECTIVEITEM MetaClass  List of Selective Items
  3. As this MetaClass is a Built-in object you have to enable Admin mode to be able to add / modify entries
  4. Once the Admin mode is enabled you can add a new file extension by creating a new row and setting a description, name and value
    Create a new Selective Item for a new file extension
    IC Attention.pngThe value of the new item must include the extension in the format *.wmv!
  5. Now you have to relate the new item to the list of known file types: first, browse to the MetaClass SELECTIVELIST within the {System.List} namespace and connect the list named FILETYPE with the Relation Editor. Second, relate the new Selective Item to this list.
    Selective List for FILETYPES Related FILETYPES Add a new file type
  6. Save the changes with Ctrl+S or the save command
  7. Release the new MetaDefintiions
  8. Restart the web service