-
1. Re: Page Refresh in Save Event
3666091 Dec 6, 2018 6:22 PM (in response to 3666091)Hi Team,
Do we have any update on this.
Thanks.
-
2. Re: Page Refresh in Save Event
Sherry Feng-Oracle Dec 7, 2018 2:20 AM (in response to 3666091)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
-
-
4. Re: Page Refresh in Save Event
3666091 Dec 9, 2018 11:52 AM (in response to 3666091)Hi Sherry,
Do we have any update on this.
Thanks.
-
5. Re: Page Refresh in Save Event
Sherry Feng-Oracle Dec 10, 2018 8:44 AM (in response to 3666091)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 -
-
7. Re: Page Refresh in Save Event
3666091 Dec 11, 2018 9:08 AM (in response to 3666091)Hi Sherry,
Do we have any update on this.
Thanks.
-
8. Re: Page Refresh in Save Event
3666091 Dec 17, 2018 5:15 AM (in response to 3666091)Hi Sherry,
Do we have any update on this.
Thanks.
-
9. Re: Page Refresh in Save Event
Sherry Feng-Oracle Dec 18, 2018 3:59 AM (in response to 3666091)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 Dec 18, 2018 5:19 AM (in response to 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 Dec 19, 2018 8:02 AM (in response to 3666091)Hi Sherry,
Do we have any update on this.
Thanks.
-
12. Re: Page Refresh in Save Event
Sherry Feng-Oracle Dec 19, 2018 8:56 AM (in response to 3666091)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 Dec 19, 2018 9:27 AM (in response to 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 Dec 20, 2018 5:24 AM (in response to 3666091)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