Question

onPriceListChange

Hi ,
In my bpm'online application the priceList section not working the properly.To fixed the issue I try to create Replacing Client Module and changes in "onPriceListChange" code section but not able to get information of PriceList selected field value .

Like 0

Like

3 comments

Try to debug the code of the module on the client end and find similar functionality.  

https://academy.bpmonline.com/documents/technic-sdk/7-13/client-code-debugging

Usually, it's like this.get("PriceList")

Thanks Eugene.
I am using below code on pricelist change section :
onPriceListChange: function(item,value) {
                  if (this.isEmpty(value)) {
                        const basePriceList = this.get("BasePriceList");
                        const productPrices = item.get("PriceListList");
                    value = productPrices.get(basePriceList.value);
                  }
                    window.console.log("PriceList: ", value);
                    const priceListPrice = value.Price;
                    item.set("Price", priceListPrice);
                },

but value section not containing the Price & PriceDisplayValue
it's displaying only information like 

  1. customHtml: "Franchisee"
  2. displayValue: "Franchisee"
  3. markerValue: "Franchisee"
  4. primaryImageVisible: false

Is there is any function which I can used to get pricelist value of any specific product based on value: "5ebfccd7-77e2-4b4d-8417-fc33c90a76f0".

jitendra,

value.value

Show all comments