The CreatorCon Call for Content is officially open! Get started here.

UI Page - Processing Script will not run ...

Still Learning
Kilo Sage

Hello Experts,

I have a UI page that is designed to mass update records from a list view, that will engaged will not run it's processing script.  I added a few log statements to see how far it is getting, but it seems that it is getting no where. Additionally, the dialog page should close and redirect to the list view the user is on, but it only redirects to a full screen of the UI page.  Can anyone please assist me with this? My code is attached below.

 

Edited to remove code

1 ACCEPTED SOLUTION

Allen Andreas
Administrator
Administrator

Hi,

You have your processing script locked behind two functions and neither are called in your script?

Out of curiosity, what was your intention as to when the processing script would execute and from where?

I'd recommend revaluating your script and how you're capturing what action needs to happen, then use that as appropriate to determine what in the processing script is executed. As of now, it's not going to go anywhere because you have it locked behind two different function that aren't called.


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

View solution in original post

3 REPLIES 3

-O-
Kilo Patron

I don't think submitting UI Pages from dialogs works - not sure why.

I mean your UI Page displayed on its own will submit as expected.

As a workaround I'd try moving the processing script into an Ajax handler, would make the button on the dialog call the Ajax handler (via GlideAjax).

Allen Andreas
Administrator
Administrator

Hi,

You have your processing script locked behind two functions and neither are called in your script?

Out of curiosity, what was your intention as to when the processing script would execute and from where?

I'd recommend revaluating your script and how you're capturing what action needs to happen, then use that as appropriate to determine what in the processing script is executed. As of now, it's not going to go anywhere because you have it locked behind two different function that aren't called.


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Hi @Allen Andreas 

You were correct, the issue was with my function calls in the script. I updated it as needed and it's working now.  Thank you so much for your assistance, I really appreciate it!!