Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi i want to select multiple values in a field from my Button, i try to explain:
i have those button:
When i click 01 it will select the value 01 from my field "mesefineforn"
"Mese01" is my variable for select and deselect my value in the field "mesefineforn"
My problem is: When i click in '02' i want in my field "mesefineforn" it will set 01,02
not only 02.
when i will click in 03 the same it must be set : 01,02,03 and so on...
how can i do that with my buttons actions?
Thanks
Daniele - Sorry, I was travelling so sorry for the delay. Have a look at the attached file.
Hi Daniele,
You can try search string like (01|02|03) for multiple value search.
ok but i need to put at runtime clicking to my buttons those values to set..... like you see in example, how can i do that?
Daniele Caprelli wrote:
i want to select multiple values in a field from my Button, i try to explain:
i have those button:
You have to hard code those values in each button action.
Button 01 => 01
Button 02 => (01|02)
Button 03 => (01|02|03)
and so on.
Daniele Caprelli wrote:
ok but i need to put at runtime clicking to my buttons those values to set..... like you see in example, how can i do that?
I think both the questions looks similar.
I think my question is little bit different
my problem is:
in my Button 01: when i choose it i need to do the thing like you see in the picture i sent before, and i write there:
field: MESEFINEFORN set =if($(MESE01)=1,null,01)
when i click in Button 02 (or 03...12) i need to set in field MESEFINEFORN : if($(MESE02)=1,null,02)
i need in these scripts put something for concatenate the values if i had set value in field with another of others 12 buttons
example: =if($(MESE01)=1,null,<THERE I NEED TO PUT THE EXPRESSION FOR CONCATENATE POSSIBLE VALUES IF I HAD CLICK IN OTHERS BUTTONS BEFORE>)
sorry if i wrote in uppercase, is only for show you where i don't know what i need to write
Thanks
If I understood you below one should work.
Button1:
=if($(MESE01)=1,Null(), '(' & GetFieldSelections(MESEFINEFORN, '|') & '|01)'
Button2:
=if($(MESE01)=1,Null(), '(' & GetFieldSelections(MESEFINEFORN, '|') & '|02)'
Yes, you understood, but it not work 😞
=if($(MESE01)=1,Null(), '(' & GetFieldSelections(MESEFINEFORN) & '|' & '01)'
'01' is a string to set.... perhaps is that the error in condition?
and... i think... looking the script if i choose this button for first (all buttons can be choose for first) ... it will set |01 so... i think it will not set the correct walue
btw... this script not work
sorry
Daniele - Sorry, I was travelling so sorry for the delay. Have a look at the attached file.
Thanks, is ok....
but only a thing is missing, when i Click for example in BU 01 the second time it must REMOVE the value from the field