Scheda - Add Services
Basic Knowledge
Before you begin
Before undertaking this tutorial, it is essential to have completed the Micro Executor tutorial.
This foundational step ensures that you have the necessary backend environment and services in place to effectively follow and implement the concepts covered in this tutorial.
What to Expect
In the following part of the tutorial, we will focus on integrating the Input Panel (INP
) component that allows us to effortlessly add new activities to our planner.
Input Panel
The Input Panel component features a simple front-end syntax, as all of its behavior is encapsulated within its micro-executor.
::G.SEZ Pos(1)
::G.SUB.INP Tit="*NONE"
::D.FUN.STD F(<service-fun>)
Dynamic Update Calendar on Submit
In this section, we demonstrate how to configure a dynamic action that updates the Matrix component immediately after a new activity is submitted via the Input Panel.
-
Set Matrix sub-scheda
::I.SCH Nam(MAT)
::G.SEZ Pos(1)
::G.SUB.MAT Tit="*NONE"
::G.SET.MAT DftGroup="X1DATE,H" Columns="X1DATE|X1CTGR|X1DESC|X1STIM|X1ETIM|X1HOUR"
::D.FUN.STD F(EXB;X1_X01_01;GET)
::I.SCH.END -
Call the sub-scheda where is the Matrix
::G.SEZ Pos(1)
::G.SEZ Pos(1A)
::G.SUB.INP Tit="*NONE"
::D.FUN.STD F(EXB;X1_X01_02;*INIT)
::G.SEZ Pos(1B)
::G.SUB.SCH Tit="*NONE" Id="Matrix"
::D.SCH Nam(MAT)
::G.SEZ Pos(2)
::G.SUB.CAL Tit="*NONE" Id="Calendar"
::G.SET.CAL Ketchup="Yes" ShowAsWeek="Yes" StyCol="X1STCT" IniCol="X1STIM" FinCol="X1ETIM"
::D.FUN.STD F(EXB;X1_X01_01;GET)
::I.SCH Nam(MAT)
::G.SEZ Pos(1)
::G.SUB.MAT Tit="*NONE"
::G.SET.MAT DftGroup="X1DATE,H" Columns="X1DATE|X1CTGR|X1DESC|X1STIM|X1ETIM|X1HOUR"
::D.FUN.STD F(EXB;X1_X01_01;GET)
::I.SCH.END -
By setting the Matrix as the target of this dynamic action, it will automatically update its data.
G.DIN When="Update" Where="Matrix"
::G.SEZ Pos(1)
::G.SEZ Pos(1A)
::G.SUB.INP Tit="*NONE"
::G.DIN When="Update" Where="Matrix"
::D.FUN.STD F(EXB;X1_X01_02;*INIT)
Final Scheda Summary Step 2
::G.SEZ Pos(1)
::G.SEZ Pos(1A)
::G.SUB.INP Tit="*NONE"
::G.DIN When="Update" Where="Matrix"
::D.FUN.STD F(EXB;X1_X01_02;*INIT)
::G.SEZ Pos(1B)
::G.SUB.SCH Tit="*NONE" Id="Matrix"
::D.SCH Nam(MAT)
::G.SEZ Pos(2)
::G.SUB.CAL Tit="*NONE" Id="Calendar"
::G.SET.CAL Ketchup="Yes" ShowAsWeek="Yes" StyCol="X1STCT" IniCol="X1STIM" FinCol="X1ETIM"
::D.FUN.STD F(EXB;X1_X01_01;GET)
::I.SCH Nam(MAT)
::G.SEZ Pos(1)
::G.SUB.MAT Tit="*NONE"
::G.SET.MAT DftGroup="X1DATE,H" Columns="X1DATE|X1CTGR|X1DESC|X1STIM|X1ETIM|X1HOUR"
::D.FUN.STD F(EXB;X1_X01_01;GET)
::I.SCH.END