Trouble getting Alert message to show
Posted: May 12th, 2022, 10:47 am
I have a button on an order history page that takes the items from the order and adds to the cart.
this has nested methods like so:
Button -> Reorder method -> UniversalCartChange method
The universalcartchage method returns a message about which items were successfully added and which were not. The Reorder method needs to put this in its output so the button can user an Alert service to show it to the user.
When I set it up to do this, the page shows the progress animation while the button is clicked, but then it goes away with no message shown.
I thought the contents of the message were the problem (single quotes, colon character, \n, other whitespace) because I could see the message in the logs but the pop up wouldnt show. But then I copied the message from the logs and put it in a hard coded CreateServiceNode instead of the dynamic value-of xsl reference and THAT worked. I'm not sure what the issue is.
I put this diagram together to illustrate it
this has nested methods like so:
Button -> Reorder method -> UniversalCartChange method
The universalcartchage method returns a message about which items were successfully added and which were not. The Reorder method needs to put this in its output so the button can user an Alert service to show it to the user.
When I set it up to do this, the page shows the progress animation while the button is clicked, but then it goes away with no message shown.
I thought the contents of the message were the problem (single quotes, colon character, \n, other whitespace) because I could see the message in the logs but the pop up wouldnt show. But then I copied the message from the logs and put it in a hard coded CreateServiceNode instead of the dynamic value-of xsl reference and THAT worked. I'm not sure what the issue is.
I put this diagram together to illustrate it