This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Send email with objekt value
#4
Hi
Then create additional object Apply(bit) set it on visu to send fixed value 1 and create event based script under it.
Something like that should do

Code:
coffeNo = grp.getvalue('7/7/7')
milk = grp.getvalue('7/7/8')
sugar = grp.getvalue('7/7/8')

milktext= ''
sugartext=''

apply =  event.getvalue()

if (apply) then
 
 if (milk) then
   milktext = ' with milk'
   if (sugar) then
     sugartext = ' and sugar'
   end  
   
    else
   milktext = ' '  
     if (sugar) then
     sugartext = ' and with sugar'
     end
    end
end


-- make sure mail settings are set in user function library before using this function
subject = 'E-mail test'
message = tostring(coffeNo)..milktext..sugartext..' Please'
mail('user@example.com', subject, message)
------------------------------
Ctrl+F5
Reply


Messages In This Thread
Send email with objekt value - by Mariolatrie - 14.01.2019, 14:51
RE: Send email with objekt value - by Daniel - 14.01.2019, 15:03
RE: Send email with objekt value - by Daniel - 14.01.2019, 15:56

Forum Jump: