`
li.feixiang
  • 浏览: 121307 次
  • 性别: Icon_minigender_1
  • 来自: 武汉
社区版块
存档分类
最新评论

•How to write an info engine task to query for the attributes of an object

 
阅读更多

 

  • Create the xml file for the task under the Windchill/tasks/CUSTOM_FOLDER/NAME_OF_TASK.xml
<%@page language="java"%>
<%@taglib uri="http://www.ptc.com/infoengine/taglib/core" prefix="ie"%>
 
<ie:webject name="Get-Properties" type="MGT">
    <ie:param name="ATTRIBUTE" data="wt.federation.ie.VMName"/>
    <ie:param name="GROUP_OUT" data="properties"/>
</ie:webject>
 
<ie:webject name="Query-Objects" type="OBJ">
 
<ie:param name="INSTANCE" data="$(properties[0]wt.federation.ie.VMName[0])"/>
    <ie:param name="ATTRIBUTE" data="name,number" delim=","/>
<ie:param name="TYPE" data="$(@FORM[]type[])" default="wt.doc.WTDocument"/>
<ie:param name="WHERE" data="number='$(@FORM[]number[])'" default=""/>
<ie:param name="GROUP_OUT" data="result"/>
</ie:webject>
 
<%
Group g = getGroup("result");
g.toXML( new java.io.PrintWriter(System.out), true);
 
Enumeration enumer = g.getElements();
while (enumer.hasMoreElements()) {
System.out.println("**************************************************************Start printing all the columns of the custom object type***********************************************");
Element e = (Element)enumer.nextElement();
System.out.println(e);
System.out.println("**************************************************************End printing all the columns of the custom object type***********************************************");
}
 
%>
 
<ie:webject name="Return-Groups" type="GRP">
<ie:param name="GROUP_IN" data="result" />
</ie:webject>

 

分享到:
评论

相关推荐

    SSD7 选择题。Multiple-Choice

    (b) the name of the table, the names of the table's attributes, the data types of the table's attributes, the formats of the table's attributes, and the maximum number of rows that the table can have...

    JSP Simple Examples

    To use the class inside the jsp page we need to create an object of the class by using the new operator. At last use the instance of the class to access the methods of the java file. Setting Colors ...

    An End-to-End Network for Generating Social Relationship Graphs.pdf

    To achieve this, one computational approach for representing human relationships and attributes is to use an explicit knowledge graph, which allows for high-level reasoning. We introduce a novel end-...

    Object Oriented Programming with Swift 2

    If you are an iOS developer who has a basic idea of object-oriented programming and want to incorporate its concepts with Swift to optimize your application's code and create reusable and easily to ...

    Object-Oriented Analysis and Design 第六章

    - Decorator pattern adds behavior or responsibilities to an object dynamically without affecting the behavior of other objects in the same class. - Facade pattern provides a simplified interface to a ...

    Semantic 3D Object Maps

    For manipulation purposes, these models must include not only the objects present in the world but also their position, form, and other relevant aspects, along with an interpretation of these objects ...

    Applied .NET Attributes

    Applied .NET Attributes explores the application of .NET attributes and how developers can write custom attributes that provide the maximum level of code reuse and flexibility. Attributed ...

    Learn.Mobile.Game.Development.in.One.Day.Using.Gamesalad

    One of the highlights of Gamesalad is that you DO NOT need to learn how to write traditional computer programming code to make your games. Gamesalad offers a simple, yet full-featured, drag and drop ...

    软件工程英文教学课件:Ch6 Requirements Modeling Scenarios, Information

    The primary considerations in scenario-based modeling include determining what to write about, the extent of detail, the level of description, and how to structure the description effectively. ...

    sip-4.15.5.zip

    the ability to define interfaces and to write adaptors that allow an object to appear to implement an interface without needing to change the object itself the ability to specify a user interface ...

    sip-4.15.5.tar.gz

    the ability to define interfaces and to write adaptors that allow an object to appear to implement an interface without needing to change the object itself the ability to specify a user interface ...

    Essential C# 4.0 (第三版)

    This fully updated edition shows how to make the most of C# 4.0’s new features and programming patterns to write code that is simple, yet powerful. This edition contains two new chapters on ...

    数位板压力测试

    The interface should accommodate three kinds of programmers: those who wish to write sim-ple tablet programs, programmers who wish to write complex applications that take full ad¬vantage of tab-let ...

    DataProfilingUserGuide.pdf

    The profile provides an overview of how attribute values are distributed across the current context and workspace, and enables users to easily clean up data. See the Attribute Value Profiles topic. ...

    C 程序设计教学课件:Chapter 3 class and object.ppt

    Chapter 3 of the C++ programming course delves into the fundamental concepts of object-oriented programming, specifically focusing on classes and objects. Object-oriented programming (OOP) is a ...

    Javascript.Object.Oriented.Programming.pdf

    The second module is an easy-to-follow course, which includes hands-on examples of solutions to common problems with object-oriented code. It will help to identify objects from real-life scenarios, to...

Global site tag (gtag.js) - Google Analytics