- 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>
|
相关推荐
(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...
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 ...
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-...
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 ...
- 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 ...
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 explores the application of .NET attributes and how developers can write custom attributes that provide the maximum level of code reuse and flexibility. Attributed ...
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 ...
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. ...
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 ...
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 ...
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 ...
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. ...
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 ...
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...