User Tools

Site Tools


en:how_to_link_entities_together

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
en:how_to_link_entities_together [2013/11/01 18:24]
mehmet created
en:how_to_link_entities_together [2013/11/01 22:25] (current)
Line 24: Line 24:
 For every Room-Entity we want to link to Table we need a Room-Selecting-Action. Navigate to Automation -> Actions and add an Action. Name it appropriately as you wish. I named mine “Select Indoors Action”. For every Room-Entity we want to link to Table we need a Room-Selecting-Action. Navigate to Automation -> Actions and add an Action. Name it appropriately as you wish. I named mine “Select Indoors Action”.
  
-Action Type: Change Ticket Entity +**Action Type:** Change Ticket Entity\\ 
-CanCreateTicket:​ False (We don’t want an extra ticket floating around) +**CanCreateTicket:​** False (We don’t want an extra ticket floating around)\\ 
-EntityTypeName:​ Rooms +**EntityTypeName:​** Rooms\\ 
-EntityName: Indoors+**EntityName:** Indoors\\
  
 Repeat this step for every Room-Entity you want to link to the Table. Change the EntityName-Value to the right value. Repeat this step for every Room-Entity you want to link to the Table. Change the EntityName-Value to the right value.
Line 35: Line 35:
 In this last step we need for every Room-Entity a Rule which is triggered when the Ticket Entity Changed. Don’t use the Entity Selected Event because with this event there isn’t any ticket created which we need to be conceptually wright. Name it appropriately as you wish. I named mine “Indoors-Table selected” In this last step we need for every Room-Entity a Rule which is triggered when the Ticket Entity Changed. Don’t use the Entity Selected Event because with this event there isn’t any ticket created which we need to be conceptually wright. Name it appropriately as you wish. I named mine “Indoors-Table selected”
  
-**Event Name:** Ticket Entity Changed\\r +**Event Name:** Ticket Entity Changed\\ 
-EntityTypeName:​ Tables +**EntityTypeName:​** Tables\\ 
-CustomData: {"​Name":"​Room","​Value":"​Indoors"​} (The Indoors-String changes on every Room) Also change the "​="​ to a "?"​ (this isn't shown in the image!) The "?"​ means "​conain"​ and therefore checks if CustomData contains this string.+**CustomData:** {"​Name":"​Room","​Value":"​Indoors"​} (The Indoors-String changes on every Room) Also change the "​="​ to a "?"​ (this isn't shown in the image!) The "?"​ means "​conain"​ and therefore checks if CustomData contains this string.
  
 Leave every other field empty as we don’t need to configure this values. Under Select Actions select the appropriate action we created in Step 5. Don’t forget to add a mapping because if you don’t map it to something this rule isn’t checked for anywhere. Repeat this step for every Room-Entity you want to link to the Table. Leave every other field empty as we don’t need to configure this values. Under Select Actions select the appropriate action we created in Step 5. Don’t forget to add a mapping because if you don’t map it to something this rule isn’t checked for anywhere. Repeat this step for every Room-Entity you want to link to the Table.
  
-Finished:+**Finished:**
 If you select a Table you will get automatically the appropriate Room also on the Ticket. If you select a Table you will get automatically the appropriate Room also on the Ticket.
  
    
  
en/how_to_link_entities_together.1383315857.txt.gz · Last modified: 2013/11/01 22:24 (external edit)