Hi @Anonymous
The Patch function expects 3 arguments: a data source, the record to update, and the data values to patch. The default edit form displays the record that's currently selected in the Browse Gallery on the initial screen (BrowseGallery1)
Therefore, the formula for your plus button would look something like this:
Patch(SharePointListName,
BrowseGallery1.Selected,
{InStockAmount: InStockAmount +1}
)
And the formula for your minus button would look something like this:
Patch(SharePointListName,
BrowseGallery1.Selected,
{InStockAmount: InStockAmount -1}
)
With PowerApps, we often refer to field names that look different to the underlying SharePoint field names, hence the Item_x0020__x0028_CIMs_x0029_x0 example that you cite. For example, x0028 and x0029 are the escape characters for open and close brackets. Therefore, we use x0028 in a field name instead of a bracket, so that we can still use parenthesis to enclose the arguments that we pass to a function in the formula bar.
As a sidenote, the CDS data source now provides the ability to use the 'friendly' field names in formulas.
https://powerapps.microsoft.com/en-us/blog/display-names-enters-preview-for-canvas-apps/
Hope that's of some help to you.