Are there any planned updates to the system.db.runNamedQuery() function?
The fact that the code is required to be different in the Client/Designer context vs. the Gateway context is super frustrating as we commonly code in shared or project scripts and these are debugged in the designer, but later executed in the gateway. I understand the need to specify the Project in the gateway context, but can the function be a bit more intelligent and first check the project the script is executing from?
data = system.db.runNamedQuery(system.util.getProjectName(), 'getItemData')
Or, can this function accepted keyword parameters and when called in the Client or Designer context, just ignore the project parameter? Just trying to find ways to make this easier without writing more lines of code for every query just to detect what context I am in.