KKbes
2023-08-07 890eafcf31f5f8d519bb9e6f9c15303be5328e2d
force-app/main/default/lwc/lexProductRepairQuoteProduct/lexProductRepairQuoteProduct.js
@@ -13,10 +13,8 @@
    getStateParameters(currentPageReference) {
        if (currentPageReference) {
          const urlValue = currentPageReference.state.recordId;
          console.log(currentPageReference);
          if (urlValue) {
            let str = `${urlValue}`;
            console.log(str);
            this.recordId = str;
          }
@@ -25,20 +23,18 @@
    connectedCallback(){
        this.productRepairQuoteProduct().then(res=>{
         this.IsLoading=false;
         this.dispatchEvent(new CloseActionScreenEvent());
      this.productRepairQuoteProduct().then(res=>{
           this.IsLoading=false;
           this.dispatchEvent(new CloseActionScreenEvent());
      });
    }
    async productRepairQuoteProduct(){
    async productRepairQuoteProduct(){
       window.open ('/apex/ProductRepairQuote?productid=' + this.recordId +
          '&flag=productsearch', '', 'height=500, width=1200, top=300, left=350,location=no');
          '&flag=productsearch', '', 'height=500, width=1200, top=300, left=350,location=no');
    }