Macro101 wrote:
Hi Macro,
How did you implemented this using the RunJavaScript Action?
Thank you and kind regards,
Christopher
Hi Christopher,
Change your button's "Method" property to "Ajax Submit" and, on its click action, call the "RunJavaScript" action as pictured below:
Add the RunJavaScript extension as a dependency to your module and then add the following javascript to the action (closing button/link) in the screen you're want to close:
window.close();
Looks like this:
Hope this helps ;)
Regards,
Jasper
Thanks guys for the quick response.
I plan to invoke it in the preparation just in case I detect a duplicate of the URL being used.
Will it still work?
Currently, I'm testing it but it seems not working.
Can it be used in the Preparation stage?
Thank and regards,
Ah,
that's a different requirement all together.
Hi J,
Do you have a suggestion?
Or have read a previous post similar to it?
Thanks and regards,
I don't think this will work because this is typically a frontend feature.......preparation is data/backend related and therefor not a logical place to do these kind of things.
Hi,
I don't think you can catch it in the preparation,
Using Javascript assign a unique id like a guid to the browser window / tab by assigning the guid value to the window.name property. window.name property is unique to each browser window/tab and won't be shared across the windows.
from there you will need to keep track of the guid and session and your activeId...
tbh, it's rather much work and you better solve it by chekcing it when inserting/updating it to the database with versioning for example.
I'm with J... this is sounding worse and worse. This is a bad approach to the issue.
J.Ja
Thanks for the advise guys.
What I did instead is redirection to a Web Screen, informing the user that reusing the same URL is not allowed.
I want to display a modal widget on a screen and than modal should get closed when i click enewhere on screen .
How can i implement it.please help
Thanks and Regards!
Hello Shivani
I propose you open a new discussion with your question.
Usually we didn't follow very old discussions.
Regards