It's all about the answers!

Ask a question

[closed] Issue in displaying dynamic content in webui popover


Popover User (111) | asked Mar 14 '18, 9:35 a.m.
edited Mar 14 '18, 11:48 a.m. by Ralph Schoon (63.1k33646)

 On a button click , i need to show dynamic content in webuipopover ,based on the input values in the form.

lengthyFunction() is fetching the dynamic data based on the inputs.

On first click it is showing correct data.
When the button is clicked after changing the input values, a different result is expected.
but webuipopover shows the old data.
When the button is clicked again, it is showing correct data in webuipopover.

Please help me to ensure the visibility of popover only after completing a lengthy function call.

 Eg code:
jquery(selector).webuiPopover({          
                        closeable:true,
type:'async',           
cache:false,
               content: function() {  
   lengthyFunction();
    return jquery('.className').html();
                         }
});


Comments
Ralph Schoon commented Mar 14 '18, 11:47 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

This question is not related to any tool in the products list to the top left.
I close it as off topic.

The question has been closed for the following reason: "Question is off-topic or not relevant" by rschoon Mar 14 '18, 11:47 a.m.