Forum Replies Created
-
AuthorPosts
-
ipqiusheng
ParticipantHi
Mikhail and other guys, do you know what’s parsedData define?, it has property of ViewStamp and SchemeDoc object?
scada.scheme.Scheme.prototype._obtainSchemeDoc = function (parsedData) {
try {
if (typeof parsedData.ViewStamp === “undefined”) {
throw { message: “ViewStamp property is missing.” };
}if (typeof parsedData.SchemeDoc === “undefined”) {
throw { message: “SchemeDoc property is missing.” };
}if (this._viewStampsMatched(this.viewStamp, parsedData.ViewStamp)) {
this.type = “”;
this.props = parsedData.SchemeDoc;
this.viewStamp = parsedData.ViewStamp;
return true;
} else {
return false;
}
}
catch (ex) {
console.error(scada.utils.getCurTime() + ” Error obtaining scheme properties:”, ex.message);
return false;
}
};ipqiusheng
Participantthanks for your reply
Mikhail, I have used github to find this popup.js in webshell project, so I can’t find that in plscheme files. just mark here for other guys if someone have interesting in your codeipqiusheng
Participanthi
Mikhail
I put the link below my commentsipqiusheng
Participantalso, in basiccomprender.js, it also existed
ipqiusheng
ParticipantHi
Mikhail
sorry, I haven’t use version 6.0, I still look at your version 5.0 code, your code is very elegant,I still look at that, this is version 5.0 code, the popupLocator existed in schemerender.js. not sure where it is defined, but it looks like define in viewhub.js, but I can’t find that.
https://github.com/RapidScada/scada/blob/master/ScadaWeb/ScadaScheme/PlgScheme/plugins/Scheme/js/schemerender.jsipqiusheng
Participantscada.scheme.SchemeRenderer.prototype._setTitle = function (title, renderContext) {
if (title && renderContext.schemeEnv.viewHub) {
document.title = title + ” – ” + renderContext.schemeEnv.viewHub.getEnv().productName;// set title of a popup in case the scheme is in the popup
var popup = scada.popupLocator.getPopup();
if (popup) {
popup.setModalTitle(window, document.title);
}// send notification about title change
renderContext.schemeEnv.viewHub.notify(scada.EventTypes.VIEW_TITLE_CHANGED, window, document.title);
}
};Hi
Mikhail, thank you for your kind comment, how about this popupLocator, it is under scada namespace, but I can’t find that defineipqiusheng
Participanthi
All Guys
I meet some issues in schemerender.js file, it seems curCnlDataMap/imageMap are Map object, but I can’t find the inilization seems like imageMap=new map;
scada.scheme.RenderContext = function () {
this.curCnlDataMap = null;
this.editMode = false;
this.schemeEnv = null;
this.viewID = 0;
this.imageMap = null;
this.controlRight = true;
};ipqiusheng
Participantscada.scheme.UnknownComponentRenderer = function () {
scada.scheme.Renderer.call(this);
};scada.scheme.UnknownComponentRenderer.prototype = Object.create(scada.scheme.Renderer.prototype);
scada.scheme.UnknownComponentRenderer.constructor = scada.scheme.UnknownComponentRenderer;/********** Render Context **********/
// Render context type
scada.scheme.RenderContext = function () {
this.curCnlDataMap = null;
this.editMode = false;
this.schemeEnv = null;
this.viewID = 0;
this.imageMap = null;
this.controlRight = true;
};have find the defination in schemerender, mark here
ipqiusheng
ParticipantHi
Mikhail
will you prepare new models for Version 6? does that have some introduction about new versions? will that get some new interesting functions?ipqiusheng
Participanthttps://ibb.co/XLbhzSM
https://ibb.co/x8y0g0k
provide more image aboveipqiusheng
ParticipantHi
Mikhail
do you mean we install distributive on computer, then we can run the source code and debug our project?ipqiusheng
ParticipantHi
Mikhail
I re-build wincontrol in my computer, that can fix most of issues about wincontrol. it seems the dll from Nu-get repository has some issues which will cause install locally failed, not sure other guys if meet same issues.
https://ibb.co/6RL98q9ipqiusheng
ParticipantHi
Mikhail
just mark this for other learner, this because the wincontrol dll contain system.windows.forms v6.0.0, when project use this as a reference, it will show compile errors. I re-compile the whole wincontrol project, then use this as a reference, the conflicts of system.windows.forms v6.0.0 between v4.0.0 disappeared. thank you for your kind remind.ipqiusheng
Participantthis is the image
ipqiusheng
Participanthttps://ibb.co/LkLXjqq this is image
-
AuthorPosts