How to update [status] in parent table when form is saved in child table?

THE QUESTION 

How do i automate a Status in the parent table to change when a form is saved that uses a child table?

THE PROCESS

  • So in the AssignmentLOG (parent table /form ),  when an assignment form is created and saved, my app will
  • set the [status] to "Assigned"

add the [JobID](generated from data points from the answers in the initial form) to the [AssignLABEL] column in the parent tablejdtylerdev_4-1689689738868.png

  • add the [JobID] to the ServiceLOG (child table / Form / Is part of  / Service Logging) In a column labeled [AssignLABEL] as a line item.  also used in a separate Quickbooks automation that generates invoices.jdtylerdev_2-1689689601616.png
  • In the Child Table it also sets the [AssignID] (Parent Reference column) to the ID of the line in the parent column and is set to is part of (solution for adding multiple services to one assignment)
  • Also in this process it will add the service line item ID to the Service list column in the Parent Table so that it ensures it is the first line item in the List
  • jdtylerdev_7-1689690145309.png
  • Once the assignment form is completed the tech would use the [Related Services] sub-table that is in the detail view of the Parent table to add services which navigates them to a form used to select from a list of services to add to the assignment in addition to the service configurations.
  • jdtylerdev_5-1689689832357.png 
  • Once the service form is saved it then populates in the parent table a generated ID that concatenates the individual service ids using _ as a delimiter and allows to use a single value reference that can be split in other expressions to itemize services without leaving the parent table.
  • jdtylerdev_6-1689689964444.png

THE SETUP

TABLE EXPRESSIONS

[Status] in Parent Table

jdtylerdev_8-1689690739842.pngjdtylerdev_9-1689690792475.png

[ServiceLogLIST] in parent table

jdtylerdev_10-1689691058511.pngjdtylerdev_11-1689691075547.png

[AssignID] in Child Table

jdtylerdev_12-1689691159418.png

jdtylerdev_14-1689691241619.png

jdtylerdev_13-1689691206664.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ACTIONS

Services added to ticket works off of Parent table

jdtylerdev_16-1689691692921.png

BOTS

FOR WHEN  PARENT FORM IS SAVED

jdtylerdev_17-1689691817217.png

FOR WHEN SERVICES ARE ADDED TO ASSIGNMENT

jdtylerdev_15-1689691674368.png

jdtylerdev_18-1689691898374.png

I hope this isn't too lengthy i just prefer to use images to project the complete configuration and provide all the info to best help with an answer. Thank you for any help with this. It is greatly appreciated.

 

 

 

 

 

Solved Solved
0 2 154
2 ACCEPTED SOLUTIONS

Mein Szenario für Ihre Frage "Wie aktualisiere ich [Status] in der übergeordneten Tabelle, wenn das Formular in der untergeordneten Tabelle gespeichert wird?" sind folgende 2 Aktionen: 

Daten: Führen Sie eine Aktion für eine Reihe von Zeilen aus                                                 Action 1

Aktionsname

Action 1

Für eine Aufzeichnung dieser Tabelle

Eingabetabelle

Mach das

Daten: Führen Sie eine Aktion für eine Reihe von Zeilen aus

Referenzierte Tabelle

Ausgabetabelle

Referenzierte Zeilen

FILTER(

"TABELLENNAME",[Spalte]= [_THISROW].[Spalte)

Referenzierte Aktion

Nach Eingabe der Action 2 diese Action 2  auswählen!!!

Verhalten

Nur wenn diese Bedingung wahr ist

Könnte sein! [Statusspalte] = "Komplett" 



Wirkung: Daten: Legen Sie die Werte einiger Spalten in dieser Zeile fest                             Action 2 

Aktionsname

Action 2

Für eine Aufzeichnung dieser Tabelle

Ausgabetabelle

Mach das

Daten: Legen Sie die Werte einiger Spalten in dieser Zeile fest

Legen Sie diese Spalten fest

Zu den definierten Konstanten- oder Ausdruckswerten

Könnte sein!

Erledigt?="Ja"

Verhalten

Nur wenn diese Bedingung wahr ist

True

 

Vergessen Sie nicht, im Editor unter Ansichten Ihrer ”Eingabetabelle” das Verhalten festzulegen!!! 

Ereignisaktionen Zu ergreifende Maßnahmen, wenn Ereignisse auftreten.

Formular gespeichert

Action 1

 

View solution in original post

So what I did was create an action in the parent table

jdtylerdev_1-1689717125500.png

then built a bot using using this data change event

jdtylerdev_2-1689717310893.png

firing on updates only that runs an action on rows referencing the column that the child table updates and dereferencing to the child table to count how many line items were linked to the assignment and if there was 2 or more it performed the data change action.

jdtylerdev_4-1689717554718.png

jdtylerdev_3-1689717526474.png

 

 

View solution in original post

2 REPLIES 2

Mein Szenario für Ihre Frage "Wie aktualisiere ich [Status] in der übergeordneten Tabelle, wenn das Formular in der untergeordneten Tabelle gespeichert wird?" sind folgende 2 Aktionen: 

Daten: Führen Sie eine Aktion für eine Reihe von Zeilen aus                                                 Action 1

Aktionsname

Action 1

Für eine Aufzeichnung dieser Tabelle

Eingabetabelle

Mach das

Daten: Führen Sie eine Aktion für eine Reihe von Zeilen aus

Referenzierte Tabelle

Ausgabetabelle

Referenzierte Zeilen

FILTER(

"TABELLENNAME",[Spalte]= [_THISROW].[Spalte)

Referenzierte Aktion

Nach Eingabe der Action 2 diese Action 2  auswählen!!!

Verhalten

Nur wenn diese Bedingung wahr ist

Könnte sein! [Statusspalte] = "Komplett" 



Wirkung: Daten: Legen Sie die Werte einiger Spalten in dieser Zeile fest                             Action 2 

Aktionsname

Action 2

Für eine Aufzeichnung dieser Tabelle

Ausgabetabelle

Mach das

Daten: Legen Sie die Werte einiger Spalten in dieser Zeile fest

Legen Sie diese Spalten fest

Zu den definierten Konstanten- oder Ausdruckswerten

Könnte sein!

Erledigt?="Ja"

Verhalten

Nur wenn diese Bedingung wahr ist

True

 

Vergessen Sie nicht, im Editor unter Ansichten Ihrer ”Eingabetabelle” das Verhalten festzulegen!!! 

Ereignisaktionen Zu ergreifende Maßnahmen, wenn Ereignisse auftreten.

Formular gespeichert

Action 1

 

So what I did was create an action in the parent table

jdtylerdev_1-1689717125500.png

then built a bot using using this data change event

jdtylerdev_2-1689717310893.png

firing on updates only that runs an action on rows referencing the column that the child table updates and dereferencing to the child table to count how many line items were linked to the assignment and if there was 2 or more it performed the data change action.

jdtylerdev_4-1689717554718.png

jdtylerdev_3-1689717526474.png

 

 

Top Labels in this Space