• Gianni Greggio
    August 1, 2017 at 1:07 am #4512

    Hi guys.

    I’m trying the toolkit using the example “Discover SPARK (DSPARK)”, in particular the HS named “Test Tables”.

    When I delete a row, then I can’t edit anymore my rows because something is broken.

    After a delete, the code:

    me.ui.getSibling(“Modal_for_Table_Row”).showModal()

    doesn’t show me my modal with the data.

    How can I fix it?

    thanks a lot

    SPARK Support
    August 4, 2017 at 2:32 pm #4513

    Hi Gianni,

    There appears to be two issues here:

    1) The underlying coach view has not been initialized as a SPARK container.  2) The Deferred Section seems to be disjointed with the Table lists current item.

    • Open the coach view Modal for Table Row.
    • In the Event Handlers, add to load –  bpmext.ui.loadView(this);
    • In the Event Handlers, add to unload –  bpmext.ui.unloadView(this);
    • Change the Inline JavaScript to:
      • this.showModal = function(){ this.ui.get(“Modal_Section”).show(); }
    • On the Layout tab, select the Invisible Items
    • Set the Modal Section’s Visibility to Same As Parent
    • Drag the Modal Section outside the Deferred Section
    • Set the Modal Section’s Visibility back to None
    • Save the coach view

    Test running the Tables Example again.  You should find that clicking the edit icon opens the correct record and deleting a row will not affect the underlying data within the Modal.

    Regards,

    Stephen P.

     

    Gianni Greggio
    August 24, 2017 at 5:35 am #4529

    Thanks Stephan …

    Now it works but I had to keep it this code:

    var view = this;
    this.showModal = function(){

    var ds = this.ui.get(“Deferred_Section”);
    if( ds.isLoaded()){

    this.ui.get(“Modal_Section”).show();
    } else {
    ds.lazyLoad();
    }
    }

    SPARK Support
    August 24, 2017 at 7:25 am #4530

    Hi Gianni,

    If the Deferred Section is removed, the code should be changed to just show the Modal Section. I am happy to hear you have it working.

    Regards,

    Stephen P.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

Start typing and press Enter to search