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 Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (1,706)