How to set parameters in web mashup from non pega context
We are trying to set parameters from html input fields to webmashup and want to use this parameters in case. I used pyDefault datatransform to get the param values, but am getting blank values. Could some one guide me on this please?
I want to set some parameters in mashup and access/read them in case.
If you want to pass the param value to the mashup, then you need to follow the below syntax:
Where page and id are keywords and elementID is the name of the DOM element.
[page/function/token]: Where page and function are keywords and token is a string that has meaning to the function. You specify the name of the function to use to retrieve the value with the data-pega-event-onpagedata event attribute.
@PraveenMankala Thank you for reply. We did the same way you have shown above. But unable to get the parameters in the case. In Html, I have static values for inputs and i tried with button and without button. Below is new code with button and data-pega-isdeferloaded ='true'. I have attached case related pyDefault DT and activity as well which is used to capture values in log. Could you please let me If am missing anything? Please let me know if you are ok for a call?
I have reviewed the information shared via INC, as you have enabled the use encryption at the mashup level, then you need to re-generate the mashup code from the channels and landing page in the dev studio with customer attributes. i.e. if you have added the custom attributes after the mashup code generation from the Dev studio, then it will not the params as expected.
Can you please generate the mashup code again from the dev studio like the below and verify the behavior.
@PraveenMankala , Earlier, I have generated mashup with the customParameters but with out setting values to it. Now i regenerated after updating mashup as you mentioned and now we are able to see values to parameter as [page/id/fname] and [page/id/lname] not the values given in the form. I can see the actual values when i keep alert in runCase() function. I am trying to check if some thing wrong with the non pega generated code. I have attached the mashup code, Please let me know if you can see any issue.
@PraveenMankala , It is working without encryption. But our requirement is to have encryption enabled and parameters we will use will have customer data. Could you please let us know how to enable encryption and make it work.
I also observed the unencrypted url does not have parameters and some encryption is happening internally.
What is the additional encryption will happen if we enable encryption ?
Could you please confirm if it is safe to implement without encryption?
@PraveenMankala , Please ignore my previous comments "unencrypted url does not have parameters ". We observed all the traffic using fiddler and one of the GET URL has the parameters. Could you please suggest how to make this work with encryption.