this is a separate view
here my concern is once the pop up is appear the back active page need to be block(the user no need to access it).
any suggestion's to archive it
Thanks in advance.
It's not clear what is triggering the popup but, assuming it is a Save button or similar I can think of two solutions.
Make the popup modal. That prevents access to the background.
Don't enable the Save button until all the required fields have been filled out. Add an indicator beside each field (an icon would do nicely) to show that the field isn't ready and add a tooltip to explain what is required.
# to check
if (self.parent.getChild("cnt_Process").getChild("FlexRepeater").props.instances[0].param1 == ''):
logger = system.util.getLogger("myLogger")
logger.info("project Data Not Saving ")
system.perspective.openPopup("project_new","POP_UP/pop_up", position = {'left':460,'top':309})
else:
logger = system.util.getLogger("myLogger")
logger.info("project Data Saving Okay")
The project library of scripts aren't themselves "global" or "local" or "session" or "client" scope. They are just libraries. Their scope is the scope of whatever calls them. Simply pass any scope-specific variables from the origin to the library function via arguments.
Sure create a session message handler, in any view where you need to call your "global" script, you can use system.util.sendMessage() or if you need to return something from the script system.util.sendRequest()