Modal windows lookup filed value update depending on a value set in the DV

Discussions related to customizing hooks. Hooks are documented at http://bigprof.com/appgini/help/advanced-topics/hooks/
Post Reply
Vasil Vasilev
Posts:7
Joined: 2017-08-26 15:39

Modal windows lookup filed value update depending on a value set in the DV

Post by Vasil Vasilev » 2025-06-16 19:20

Hi,
I have a table called "warehouse" with fields called "type" and "manufacturer". In the DB there is a table called "warehouse_type" with a filed "type". There is another table called "manufacturer" with a filed "name" and another "type".
- "warehouse"."type" is a lookup filed in "warehouse_type"."type"
- "warehouse"."manufacturer" is a lookup filed in "manufacturer"."name"
- "manufacturer"."type" is a lookup filed in "warehouse_type"."type"

In the .AXP file I have checked "filter by type" for the "warehouse"."manufacturer". The idea is when you choose the type or create a new one when you click on the manufacturer filed in the warehouse table to filter the result only for that manufacturer.
I would like to create a javascript that can take the selected value from the "warehouse"."type" and auto select it when I create a new manufacturer ("manufacturer"."type"). This filed has the new value and I want to select it automatically, because it is confusing to pick two time in a two different windows the same value.
Can someone help me with this one?
Thanks in advance!

Post Reply