Questions tagged [custom-code]

73 questions
0
votes
1 answer

Custom policy does not maintain previous values on properties array

I am creating a custom policy following this documentation. I created one, and it is working. The JSON schema for the policy is shown below: { "title": "ACME Custom Basic Auth Policy", "description": "Basic Authentication policy which…
mhery
  • 2,097
  • 4
  • 26
  • 35
0
votes
1 answer

How to add a button to all posts in wordpress?

I have created a button using wordpress block editor. I have linked this button to a section. I need this button to be present in the beginning of all my posts.How can I automate it rather than having to make it again and again? I am currently using…
0
votes
0 answers

How to block downloadable pdf at checkout wordpress/woocommerce?

I have made a bookshop with wordpress and woocommerce. On each product page I have embedded a pdf sample of the book using this code. [pdf-embedder url=""]
Which…
Joker 1977
  • 21
  • 3
0
votes
0 answers

Adding colours to WooCommerce Stock Status

I followed this Post(How to add custom stock status to products in WooCommerce 4+)--- and I was able to add New WooCommerce Stock Status. What remains is to add different colours to the stock status. How can I do that?
Gamicord
  • 307
  • 1
  • 2
  • 6
0
votes
1 answer

How to pass user parameter into string within function power query

I have the following function, which splits text into sentences using regex. Upon testing, however, these are instances where the regex doesn't quite work, and the text is wrongly split. For example, if the text contains St. bernard, I do not want…
Nick
  • 789
  • 5
  • 22
0
votes
0 answers

Extract data from 1 column in txt with Power Query

I have some files from SAP system. They are exported in .txt. They have the same structure. The idea is to arrange the data into a more user friendly way using Power Query, especially since there are many such files weekly, and we are unable to…
0
votes
2 answers

Power Query - duplicate multiple columns Mcode

I need to duplicate multiple columns with PQ, and yes I can do it manually having either 10 steps or 1 entangled step with 10 duplicate column commands. while I had similar problem with adding columns I used: #"Added Custom" = …
0
votes
0 answers

When I export the PDF the custom code is not recognized

I have a written some custom code ( a simple function to maintain a sum) in SSRS Report properties (in report builder). Everything works fine when I render the report in Report Viewer or export the report on an Excel or Word. But the custom code is…
0
votes
1 answer

Bot Framework .dialog file and CodeAction

Is it possible to add a CodeAction to the declarative .dialog file somehow? Or what is the current way of calling custom code from a trigger action?
Zoltan Hernyak
  • 989
  • 1
  • 14
  • 35
0
votes
1 answer

Accessing Parameter Collection in SSRS Custom Code to get Parameter Name/Value Pairs

I have an SSRS report requirement to generate json string through custom code by concatenating all the report Parameter name and value pairs. To achieve this I can explicitly access each report parameters and concatenate to generate the expected…
rosh
  • 35
  • 5
0
votes
0 answers

change image on press with javascript not working in webflow

I've so tried so many different ways of writing this out and getting my new image url different ways but nothing has seemed to work. I just want to be able to change an image when you click a different image. When the page loads, I have the initial…
0
votes
1 answer

Color Swatches in Launch theme

I need help in creating color swatches for my store which uses the Launch theme. I am able to replace the dropdown list with radio buttons for each product variant. However the page does not update the product sku, id, etc according to the button…
Brian
  • 1
0
votes
0 answers

The (custom module's) custom multi product tabs not showing on the product page in magento2 backend admin

I have created a custom module to display the custom product tabs on the product page in magento2. These tabs are managed by attribute set in magento2 back-end. I want 4 tabs to display on the product page, but there is a problem that magento2 will…
0
votes
1 answer

Symfony - where to store custom Form logic?

I'd like to know where to store some custom code which is related to form. I'm writing the Symfony app in which user can add his own category (using form of course). When user add his category the form code inside the controller check if this form…
BartTux
  • 29
  • 6
0
votes
0 answers

How to concatenate django countries with primary key to create custom code

Below is my Participant class. I want to create a custom code that concatenates the country field with the auto-generated primary key. Whatever I've tried till now has failed, can anyone help me, please. The structure of the code is supposed to be…