Skip to main content
14-Alexandrite
March 18, 2024
Solved

How can I obtain the JSP value as a table in Info-Engine XML?

  • March 18, 2024
  • 2 replies
  • 909 views

we write this xml in info engine.

<%@page language="java"%>
<%@taglib uri="http://www.ptc.com/infoengine/taglib/core" prefix="ie"%>

<ie:webject name="Query-Objects" type="OBJ">
<ie:param name="INSTANCE" data="$(@FORM[]supporting-adapter[*])" delim="!" valueSeparator="!" default="<%=com.infoengine.au.NamingService.getVMName()%>"/>
<ie:param name="ATTRIBUTE" data="Customer1"/>
<ie:param name="ATTRIBUTE" data="Emmision"/>
<ie:param name="ATTRIBUTE" data="Engine"/>
<ie:param name="ATTRIBUTE" data="healthStatus"/>
<ie:param name="TYPE" data="wt.projmgmt.admin.Project2"/>
<ie:param name="WHERE" data="()"/>
</ie:webject> 

 

 

we write jsp as 

<%@page language="java"%>
<%@taglib uri="http://www.ptc.com/infoengine/taglib/core" prefix="ie"%>
<html>
<body>

<ie:task uri="ext/NEWEXAMPLE.xml" processor="com.windchill.wcdev.Windchill"/>
<ie:webject name="Display-Table" type="DSP">
<ie:param name="ATTRIBUTE" data="S.No,Customer1,Emmision,Engine,healthStatus" delim=","/>
<ie:param name="HEADER" data="S.No,CUSTOMER,EMISION NORMS,ENGINE MODEL,STATUS" delim=","/>
<ie:param name="BORDER" data="1"/>
<ie:param name="GROUP_IN" data="project"/>
</ie:webject>


</html>
</body> We have a table, but we would like to fill a certain cell in the STATUS table with a specific color, such as RED, GREEN, or YELLOW.how to do this

Best answer by HelesicPetr

Hi @AR_9920456 

Usually you can set a CSS style to the text in the table, and based on the CSS style it can be shown as you need by your conditions.

I usually write DataUtility where I assign own CSS style based on my conditions.

PetrH

2 replies

5-Regular Member
April 22, 2024
Hi @AR_9920456 
Thank you for your question.
I encourage you to bring more details and context to your initial inquiry. This will make it easier for you to receive meaningful help from other Community members.
HelesicPetr
22-Sapphire II
22-Sapphire II
April 23, 2024

Hi @AR_9920456 

Usually you can set a CSS style to the text in the table, and based on the CSS style it can be shown as you need by your conditions.

I usually write DataUtility where I assign own CSS style based on my conditions.

PetrH