On UI, two fields are placed in the same header view, such as Product ID and Product Description (same level), but the fields in Genil mode tied by them are not of the same level, but have parent-child relationship. Connect_nodes is required in this case. The purpose is to refresh the Child node automatically when the parent node changes to ensure that the values of the two fields displayed on the UI are correct.
In short, if fields at the same level on the UI come from different UI Component context nodes, there are parent-child relationships between these context nodes bound to Genil Mode. All child Context nodes in the UI Component Context node should implement on_new_focus.
This is a typical example: [outside chain picture archiving failure (img – xvMzujnA – 1563690433633) (user-images.githubusercontent.com/5669954/327…)” Your question, I assume you are calling the Event handler directly in this example, instead of using the Raise Event in the code to trigger it, right?
You can set a breakpoint in connect_Nodes and create_produom methods. When you create a new product on the UI, the latter will be triggered first. The former has not yet been executed, so the new Focus event has not yet been registered. The latter is triggered by the manual Call Event handler in this code: Outside the chain picture archiving failure (img – w01hawKi – 1563690433633) (user-images.githubusercontent.com/5669954/327…)” Why add 21 lines? This is the difference between a Model node and a Value node. In the Product Creation Scenario, it is expected that only after the user’s input on the UI does not have any error, can the user really complete the four levels and finally create the product in the DB. All UI input is stored in the Value node until validation is done, and then converted from the Value node to the Model node when validation is done. Outside the chain picture archiving failure (img – HLd7V5gq – 1563690433634) (user-images.githubusercontent.com/5669954/327…)” 2743 to register 2818 new focus events outside the chain picture archiving failure (img – Tai1vGM0-1563690433634) (user-images.githubusercontent.com/5669954/327…)” 2818 behind the new focus of the event here, outside the chain picture archiving failure (img – rE089dpL – 1563690433635) (user-images.githubusercontent.com/5669954/327…)” 2743 received event processing: [outside chain picture archiving failure (img – SPNIReDv – 1563690433635) (user-images.githubusercontent.com/5669954/327…)”