cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ruben-dw
Helper I
Helper I

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.

 
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.

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.

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

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (2,572)