List out more than 1 column value into Enum

Dear Sir,

Good day.

I would like to seek the  help for the solution. Appreciate and many thanks.

I tried to create a app to calcuate the  Cost of material.

flow as below :
1) choose a  [size]
2) based on the choosen [size],  a list  of value shown in [addon] in enum-button
3) the [amount] depend on the choose [addon]

ex 1 :
1) choose "8"
2) addon enum -button show  :  SE2   SE3    ( show only if greate than  0 )
3) select SE2 , amount = 8000

ex2:
1) choose "12"
2) addon enum-btton show : SE1  SE2   SE3   SE4 
3) select, SE1 , amount = 120

 

input-table

Size (enum-dropdown)Addon (enum-button)Amount
6SE36000
8SE2800
8SE38000
10SE1100


addon-table

SIZESE1SE2SE3
6006000
808008000
101001001000
12120120012000


input-form

SIZE (enum-dropdown)
addon (emum-button)
amount

thanks ~

 

 

Solved Solved
0 6 140
2 ACCEPTED SOLUTIONS

Hi , I found the guidance in forum

https://www.googlecloudcommunity.com/gc/AppSheet-Q-A/How-do-i-auto-populate-a-field-value-based-on-t...

set the column [amount] initial  value to = LOOKUP([_THISROW].[ADDON],"ADDON","ADDON","AMOUNT")

and remove the  addon.[amount] in valid if ( previously use for dropdown)

 

It's work ..thanks again 

 

View solution in original post

6 REPLIES 6

Hi Marc,

thanks for the hint, will give a try. 

 

Hi Matt,

Its works !! i modified the table structure, and follow the tutorials.

 

Samng_0-1676102009304.png

 

 

Samng_0-1676108658900.png

i create a virtual column to calculate the "total“ after user select the "addon" type.
but i can only get the "total" after clicking the "amount".  

any idea if i can get the "total" once i select SE2 ? 
note:   each "addon" have only 1 price for each size. 

Samng_1-1676108830489.png

thanks again. 

 

 

Hi , I found the guidance in forum

https://www.googlecloudcommunity.com/gc/AppSheet-Q-A/How-do-i-auto-populate-a-field-value-based-on-t...

set the column [amount] initial  value to = LOOKUP([_THISROW].[ADDON],"ADDON","ADDON","AMOUNT")

and remove the  addon.[amount] in valid if ( previously use for dropdown)

 

It's work ..thanks again 

 

correction :

previous code  : lookup doesn't work well. 

i  update the code as below ,   thanks  @Steve 

ANY(
SELECT(
ADDON[AMOUNT],
AND(
([_THISROW].[SIZE] = [SIZE]),
([_THISROW].[ADDON] = [ADDON])

),
TRUE
)
)

 valid if = Addon[amount]

Top Labels in this Space