Selected table reference makes changes in other fields. How to do this?
The following script works well where the 'II. Kedvezmény' is a Dynamic Choice Field that brings values from Kedvezmények Table, and selecting a value affect other fields. However I find pop-up windows (Table reference) easier to use (beacause I can search and edit records easier), so I would like to modify this script where selected record from Kedvezmények Table will affect the other fields.
I am not very good at programming and beginner with Ninox. Thanks for the help!
let keresendo := text('II. Kedvezmény');
if first(select 'Kedvezmények' where 'Név' = keresendo).'Szemüveglencsére' != null then
if first(select 'Kedvezmények' where 'Név' = keresendo).'Szemüveglencse %-os kedvezmény' != null then
(100 - first(select 'Kedvezmények' where 'Név' = keresendo).'Szemüveglencse %-os kedvezmény') * 'II. Jobb lencse ár' / 100
else
if first(select 'Kedvezmények' where 'Név' = keresendo).'Szemüveglencse árkedvezmény' != null then
'II. Jobb lencse ár' - first(select 'Kedvezmények' where 'Név' = keresendo).'Szemüveglencse árkedvezmény'
else
if first(select 'Kedvezmények' where 'Név' = keresendo).'Szemüveglencse egyedi ár' != null then
first(select 'Kedvezmények' where 'Név' = keresendo).'Szemüveglencse egyedi ár'
end
end
end
else
'II. Jobb lencse ár'
end
Reply
Content aside
- 3 yrs agoSun, January 16, 2022 at 3:00 PM UTCLast active
- 105Views