Maximo Open Forum

 View Only
  • 1.  how to update custom control on "Next record" discussion

    Posted 02-10-2022 12:10
    I asked a question with the same subject, minus "discussion". Unfortunately, there's no way to comment or reply to questions raised in proposed answers. So, this thread is intended to fill that gap.

    @Steven Shull: The way I get the value seems irrelevant. I have tried the way you suggested as well as the two I posted in my question, among others. The problem seems to be that the component never gets re-rendered. Instead, it seems like the generated HTML gets cached and reused.

    @Jade Warren: The label presented in my question is a simplified test case. As in my comment above, I feel like I need to trigger a re-render, or to set a flag that says to re-render. I'll see if setting a property, as you do in the code sample you provided, causes a re-render.
    #Customizations

    ------------------------------
    Jason Uppenborn
    Ontracks Cohesive
    ------------------------------


  • 2.  RE: how to update custom control on "Next record" discussion

    Posted 02-10-2022 18:55
    @Jade Warren I added a "myref" attribute to mycontrol and mylabelcomponent, and I created ​the script below to be called on PRECAUTION.INIT. The value passed to myref by the script makes it into the first rendering, but the control / component is still not re-rendering on Next / Previous. Good try, and interesting learning.

    ------------------------------
    Jason Uppenborn
    Cohesive
    ------------------------------