cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

how can I pass variables to the patch without problems

hi

 

 
i have problems to patch variables in my table

if I do this with a string this is not a problem

this is how i set my variables:

Set (product_beamer; ThisItem.'product ') ;; Set (nmbcode_beamer; ThisItem.'nmbs code') ;; Set (brand_beamer; ThisItem.brand) ;; Set (size_beamer; ThisItem.size)

picture

Knipsel.PNG

 
but if I execute the patch on a button, for example
this does not work with the variables but with string like this:

Patch (beamer; Defaults (loan beamer); {product: "string"}; {'nmbs code': "string"}; {brand: "string"}; {size: "string"})
it works
 
1 ACCEPTED SOLUTION

Accepted Solutions

Remove the many Curry brackets {} as I did in my last reply.

Also ensure you select the variable formula first before you select the patch button.

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

View solution in original post

5 REPLIES 5
eka24
Super User
Super User

Try

Patch (beamer; Defaults (loan beamer); {product: "string"; 'nmbs code': "string"; brand: "string"; size: "string"})

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Anonymous
Not applicable

 
this i have done but my question is how can i do that with the variables i set like this:

Set (product_beamer; ThisItem.'product ') ;; Set (nmbcode_beamer; ThisItem.'nmbs code') ;; Set (brand_beamer; ThisItem.brand) ;; Set (size_beamer; ThisItem.size)

then I pass those variables to my patch like this:
Patch (lending beamer; Defaults (lending beamer); {product: product_beamer}; {'nmbs code': nmbcode_beamer}; {brand: brand_beamer}; {size: size_beamer})


with the variables this does not work why and how do I solve this ??

Remove the many Curry brackets {} as I did in my last reply.

Also ensure you select the variable formula first before you select the patch button.

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Anonymous
Not applicable

like this it works

:

Patch (uitleenbeamer; Defaults (uitleenbeamer); {product: "string"; 'nmbs code': "string"; merk:"string"; groote: "string"})

 

but lik this not :

 

Patch (uitleenbeamer; Defaults (uitleenbeamer); {product: product_beamer; 'nmbs code': nmbscode_beamer; merk:merk_beamer; groote: groote_beamer})

 

 

the error =

 
the requested operation is not a valid server response
uitleenbeamer
failed
a value must be specified for this item.
Anonymous
Not applicable

 
i had not selected the formula before i did the patch thank you for the help

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (1,915)