1 2 Previous Next 15 Replies Latest reply on Dec 26, 2018 9:34 AM by 3666091

    Page Refresh in Save Event

    3666091

      Hi Team,

       

      using version 6.2.2.0.

       

      in PMS spec, we rollup the tare weight data in save event, but it wont refresh the screen after the save event(in 6.2.2.0. Tare weight only visible after Base uom loaded), for that we need to go for the search page and load the spec. So do we have any other event we need to raise for UIRefresh after save event for some scenario.

       

      I have assigned AvailableUoms value also still UI refresh not happening.

       

      Thanks.

        • 1. Re: Page Refresh in Save Event
          3666091

          Hi Team,

           

          Do we have any update on this.

           

          Thanks.

          • 2. Re: Page Refresh in Save Event
            Sherry Feng-Oracle

            Hi,

              If possible, could you send us the source code of rolluping the tare weight data in save event? we want to try that.

             

            Thanks,

            Sherry

            • 3. Re: Page Refresh in Save Event
              3666091

              Hi Sherry,

               

              Thanks for your reply. Here I have attached the code. Please find it and let me know what do I need to change for that.

               

              TareWeight_Rollup.PNG

               

              Thanks.

              • 4. Re: Page Refresh in Save Event
                3666091

                Hi Sherry,

                 

                Do we have any update on this.

                 

                Thanks.

                • 5. Re: Page Refresh in Save Event
                  Sherry Feng-Oracle

                  Hi,

                    I tried your codes. That's because tareweight related data change happened later than page render. Originally event Subscriber is not designed to update object internally so it happens later in entire lifecycle.

                    I think you can try to do postback manually by use of our feature UIExtension to refresh that page when saving current spec.

                   

                  Thanks,
                  Sherry

                  • 6. Re: Page Refresh in Save Event
                    3666091

                    HI Sherry,

                     

                    Thanks for your reply. I have tried with post back manually using UIExtension(1009.js for PMS) but it seems freezing my screen. So please find my attached  code and let me know where I did mistake.

                     

                    In 1009.js

                     

                    PostBack.PNG

                     

                     

                    Freeze screen:

                     

                    Freeze.PNG

                    • 7. Re: Page Refresh in Save Event
                      3666091

                      Hi Sherry,

                       

                      Do we have any update on this.

                       

                      Thanks.

                      • 8. Re: Page Refresh in Save Event
                        3666091

                        Hi Sherry,

                         

                        Do we have any update on this.

                         

                        Thanks.

                        • 9. Re: Page Refresh in Save Event
                          Sherry Feng-Oracle

                          Hi,

                            Please try following 1009.js but I don't have time to do full test. If any issue please let me know.

                           

                          function UpdateAvailableUOM()

                          {

                          if (jQuery.data(document.body, "UpdateAvailableUOMFlag") == "true"){

                          }

                              else {

                          jQuery.data(document.body, "UpdateAvailableUOMFlag", "true");

                          if (UI_Ext_isSpecInEditMode && !(typeof ctl00_PageBody_ctl01_CtlAvailableUOM1_ctlCollapsibleContentContainer_ctl00_UpdatePanel1=== 'undefined'))

                          {  

                          __doPostBack('ctl00$PageBody$ctl01$CtlAvailableUOM1$ctlCollapsibleContentContainer$ctl00$UpdatePanel1','');

                          }

                          }

                          }

                           

                           

                            $(window).load(function () { 

                                  UpdateAvailableUOM();

                              });

                             

                            Sys.WebForms.PageRequestManager.getInstance().add_endRequest(UpdateAvailableUOM);

                           

                          Thanks,

                          Sherry

                          • 10. Re: Page Refresh in Save Event
                            3666091

                            Hi Sherry,

                             

                            Thanks for your time and reply. I have tried with your code but it seems still not working. The above code called and availableuom refresh also called but still it is not refreshed and UI not getting updated. Please let me know your comments on that.

                             

                            Thanks.

                            • 11. Re: Page Refresh in Save Event
                              3666091

                              Hi Sherry,

                               

                              Do we have any update on this.

                               

                              Thanks.

                              • 12. Re: Page Refresh in Save Event
                                Sherry Feng-Oracle

                                Hi,

                                  I just tried to update packSpec.TareWeight.TareWt value in a save validator and with the new 1009.js,  packSpec.TareWeight.TareWt is updated.

                                  Are other values not updated except packSpec.TareWeight.TareWt in your environment? Is that your current issue? In your code, you also try to update many fields for packaging spec.

                                  I want to confirm that without 1009.js but manually refresh page, whether you can see all expected change were updated from UI or not?

                                 

                                Thanks,
                                Sherry

                                • 13. Re: Page Refresh in Save Event
                                  3666091

                                  Hi Sherry,

                                   

                                  Thanks for your reply.

                                   

                                  Yes, first I have tried to update packSpec.TareWeight.TareWt only, it updated value to Database. But in UI, Tare weight is not visible until assign the value to Base UOM.

                                   

                                  So then  I tried to update packSpec.TareWeight.TareWt and packSpec.TareWeight.BaseUoM both with 1009.js file also. Still It is not getting refreshed UI.

                                   

                                  Even manually refresh the page it is not refreshing.

                                   

                                  The only way is, go to the search page and then load I could see all the values.

                                   

                                  Did you see the UI refreshed after you updated the TareWt value using save event or save and close  event with the new 1009.js. Is there any difference between those two events. Because I tried with save and close event.

                                   

                                  Thanks.

                                  • 14. Re: Page Refresh in Save Event
                                    Sherry Feng-Oracle

                                    Hi,

                                       If no value is assigned to UOM Category and Base UOM, Tare Weight and Available UOM fields are not visible. That's our design.

                                       You said "go to search page and then load I can see all the values", could you provide screenshots before and after performing search? Could you let me know what you want to achieve from your code?

                                       If manually refresh can't bring expected UI update, I think we should consider your code first but not 1009.js.

                                     

                                    Thanks,
                                    Sherry

                                    1 2 Previous Next