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
| // Prompt the user for the baseline date | |
| var dateFormat = "yyyy-MM-dd HH:mm:ss"; | |
| var baseDate = new Date().format(dateFormat); | |
| params = { | |
| aras: top.aras, | |
| format: dateFormat, | |
| type: "Date", | |
| date: baseDate | |
| }; |
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
| var itm = document.thisItem; | |
| var inn = itm.getInnovator(); | |
| // if is_current property exists in the cache, use it | |
| var isCurr = itm.getProperty("is_current",""); | |
| // else, retrieve is_current from the database | |
| if(isCurr === ""){ | |
| itm = inn.getItemById(itm.getID()); | |
| isCurr = itm.getProperty("is_current", ""); |
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
| var itm = document.thisItem; | |
| var inn = itm.getInnovator(); | |
| // if is_current property exists in the cache, use it | |
| var isCurr = itm.getProperty("is_current",""); | |
| // else, retrieve is_current from the database | |
| if(isCurr === ""){ | |
| itm = inn.getItemById(itm.getID()); | |
| isCurr = itm.getProperty("is_current", ""); |
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
| <xsl:template match="Selector for EHT_Part Characteristics"> | |
| <p> | |
| <xsl:value-of select="./eht_char_name"/> | |
| <xsl:value-of select="./eht_char_val"/> | |
| </p> | |
| </xsl:template> |
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
| <xsl:template match="Selector for EHT_Part Charactheristics"> | |
| <p> | |
| <xsl:value-of select="./eht_char_name"/> | |
| <xsl:apply-templates select="./eht_char_val[text()='Mounting']"/> | |
| </p> | |
| </xsl:template> | |
| <xsl:template match="eht_char_val"> | |
| <xsl:value-of select="."/> | |
| </xsl:template> |
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
| // get the form field "container" | |
| var wrapper = getFieldByName("field_name"); | |
| // get the form field element | |
| var l = wrapper.getElementsByTagName("select")[0]; | |
| // disabling/enabling field | |
| if ( some_logic ) { | |
| // disable list | |
| l.disabled = true; |
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
| Innovator innovator = this.getInnovator(); | |
| string item = this.getProperty("item", ""); | |
| string name = this.getProperty("itemName", ""); | |
| Item result = innovator.applyMethod("PowerBI_GetToken", ""); | |
| string accessToken = result.getResult(); | |
| Item results = innovator.newItem(); | |
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
| <div id="pbiContainer"></div> | |
| <script type="text/javascript"> | |
| // be sure to set the path for your Aras instance | |
| require(["http://localhost/innovatorserver/Client/customer/powerbi/scripts/powerbi.js"], | |
| function (pbi) { | |
| var innovator = aras.newIOMInnovator(); | |
| var item = "report"; // The type of Power BI element you are querying | |
| var itemName = "Product"; // The name of the element in Power BI you are querying | |
| // Call the PowerBI_GetItem server method that will get an access token |
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
| //MethodTemplateName=CSharp:Aras.TDF.ContentGenerator(Strict); | |
| // get parent document | |
| string doc_id = executionContext.DocumentId; | |
| Innovator inn = this.Factory.InnovatorInstance; | |
| Item thisDoc = inn.getItemById("tp_Block", doc_id); | |
| if (!thisDoc.isError()) { | |
| // get metadata we want to display from parent document | |
| string num = thisDoc.getProperty("item_number",""); |
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
| <xs:element name="Standard-Doc"> | |
| <xs:complexType> | |
| <xs:sequence> | |
| <xs:element ref="Title"/> | |
| <xs:element ref="Subtitle" minOccurs="0" maxOccurs="1"/> | |
| <xs:element ref="Doc-Data" minOccurs="0" maxOccurs="1"/> | |
| <xs:element ref="Section" minOccurs="0" maxOccurs="unbounded"/> | |
| </xs:sequence> | |
| </xs:complexType> | |
| </xs:element> |