This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static final FormMeta SecsDefinitionFile = | |
| new StringField(META, "SecsDefinitionFile",SFieldFlags.SMANDATORY).setDefault("").getFormMeta(). | |
| setCategory(Main).setEditorSource(FileUploadEditorSource.getSharedInstance()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static final StringField SecsDefinitionFile = | |
| new StringField(META, "SecsDefinitionFile",SFieldFlags.SMANDATORY).setDefault(""); | |
| static { | |
| SecsDefinitionFile.getFormMeta(). | |
| setCategory(Main).setEditorSource(FileUploadEditorSource.getSharedInstance()); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.inductiveautomation.gemsecs.webpages; | |
| import java.util.List; | |
| import org.apache.log4j.LogManager; | |
| import org.apache.log4j.Logger; | |
| import org.apache.wicket.Component; | |
| import org.apache.wicket.markup.html.form.upload.FileUploadField; | |
| import org.apache.wicket.model.IModel; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.inductiveautomation.gemsecs.webpages; | |
| import java.util.List; | |
| import org.apache.wicket.Component; | |
| import org.apache.wicket.markup.html.form.upload.FileUploadField; | |
| import org.apache.wicket.model.IModel; | |
| import simpleorm.dataset.SRecordInstance; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.inductiveautomation.gemsecs; | |
| import simpleorm.dataset.SFieldFlags; | |
| //import com.inductiveautomation.gemsecs.EquipmentRecord.ConnectionMode; | |
| import com.inductiveautomation.ignition.gateway.localdb.persistence.BooleanField; | |
| import com.inductiveautomation.ignition.gateway.localdb.persistence.Category; | |
| import com.inductiveautomation.ignition.gateway.localdb.persistence.EnumField; | |
| import com.inductiveautomation.ignition.gateway.localdb.persistence.FormMeta; | |
| import com.inductiveautomation.ignition.gateway.localdb.persistence.IdentityField; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.inductiveautomation.gemsecs.webpages; | |
| import org.apache.wicket.markup.html.WebMarkupContainer; | |
| import org.apache.wicket.model.IModel; | |
| import org.apache.wicket.model.Model; | |
| import com.inductiveautomation.gemsecs.EquipmentRecord; | |
| import com.inductiveautomation.ignition.gateway.localdb.persistence.RecordMeta; | |
| import com.inductiveautomation.ignition.gateway.web.components.ConfigPanel; | |
| import com.inductiveautomation.ignition.gateway.web.components.RecordActionTable; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "header": { | |
| "doc": "Initialize Trace", | |
| "stream": 2, | |
| "function": 23, | |
| "reply": true | |
| }, | |
| "body": [ | |
| { | |
| "doc": "Trace ID", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from com.inductiveautomation.factorypmi.application.components.util import FPMILayout | |
| layout = component.getClientProperty(FPMILayout.LAYOUT_CONSTRAINTS) | |
| layout.setFlags(FPMILayout.ANCHOR_N | FPMILayout.ANCHOR_E | FPMILayout.ANCHOR_W | FPMILayout.ANCHOR_S) | |
| #Here is how to get the designer bounds from the client. Works for any container. Maybe it works for components. Does not work for windows so use the rootContainer. | |
| r = FPMILayout.getPreferredBounds(system.gui.getParentWindow(event).rootContainer) | |
| width, height = int(r.width), int(r.height) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| container = event.source.parent | |
| componentZeroWidth = -(container.width - container.designerWidth) | |
| componentX = component.x - (container.width - container.designerWidth) | |
| componentWidth = component.width - (container.width - container.designerWidth) | |
| componentHeight = component.height - (container.height - container.designerHeight) |