I know i'm the CSProuser who request you more
![Wink ;)](./images/smilies/icon_e_wink.gif)
![Smile :)](./images/smilies/icon_e_smile.gif)
As already mentioned in previous posts and mails, one of my ultimate dream for CSPro is to write standard "ready to use" packages and shared some of them on the forum... In a way similar to any packages management system. This would facilitate CSPro users a lot. Right now, it miss three features for a such realization:
1.- User defined CSPro Object;
However, if we can have support of Javascript Libraries as external logic files and call them in logic (as the missing part of the CSPro-JS API: calling any JS function inside CSPro Logic)*, even if we don't have user defined object in CSPro logic, we can bypass this using JS object such as
Code: Select all
CSProAuth = {};
CSProAuth.UserAuth = function userAuthen(user) {
var UserAccess=CSPro.runLogic(`ListUser(${user});`);
return UserAccess;
}
The most important and, a years ago request...
3.- Export/Import mechanism for CSPro Logic user defined functions or objects;
Can be bypassed with JS object...
If we have this, we'll have a more open and powerful CSPro and request far less from you.
Thanks in advance,
* Thanks to Alex for the workaround he taught us months ago for this. But, we need a more direct way in the JS-CSPro API.
** Right now, you give a way to define alias in dictionary items, records, but not in logic.