Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X
Good Info Steve,<br /><br />I ran across the getIeModel, but didnt recall the IE connection.<br /><br />I found another example searching for GROUP_OUT & renderModel:<br /><br />prog_examples\federation\search_portal\jsps\infoengine\jsp\examples\federation\jca_portal\index.jsp<br /><br /> // describe the table we want to display<br /> //<br /> %><jca:describetable var="tableDescriptor" id="exampleFederatedSearchTable" configurable="false" label="Federated" search=" results&quot;=" componenttype="SIMPLE"><br /> <jca:describecolumn id="name" label="The" name&quot;=" sortable="false"/"><br /> <jca:describecolumn id="number" label="The" number&quot;=" sortable="false"/"> <br /> <jca:describecolumn id="lastModified" label="Last" modified&quot;=" sortable="false"/"><br /> <jca:describecolumn id="repository" label="Repository" sortable="false"/"><br /> <jca:describecolumn id="downlink" label="Download" sortable="false"/"><br /> </jca:describetable><%<br /> //<br /> // construct the input<br /> //<br /> String elm = "class=ext.example.Part:obid=@" + MY_DOMAIN;<br /> %><ie:webject name="Create-Group" type="GRP"><br /> <ie:param name="GROUP_OUT" data="input"/><br /> <ie:param name="ELEMENT" data="&lt;%=elm%">" /><br /> </ie:webject><%<br /> //<br /> // perform the search<br /> // since most of the work will be done in the server VM anyways run the task there<br /> // to cut down on the # of outgoing connections and minimize the amount of IPC required<br /> // to run the search.<br /> //<br /> long start = System.currentTimeMillis();<br /> %><jca:getiemodel var="tableModel" descriptor="${tableDescriptor}" action="FederatedSearch"><br /> <ie:param name="CLIMBER" data="com.infoengine.util.LDAPTypeHierarchy"/><br /> <ie:param name="GROUP_IN" data="input"/><br /> </jca:getiemodel><%<br /> //<br /> // add some info to the output to render in the table<br /> //<br /> postProcess ( ie.getGroup ( "output" ), (java.util.Map)ie.getGroup ( "examplePartRepositories" ).getGroup().getMetaValue ( "map" ) );<br /> //<br /> // display the results<br /> //<br />//ie.getGroup ( "output" ).toXML ( new java.io.PrintWriter ( System.err ), false, true );<br />%> <br /> <br /> (<%="+ie.getGroup().getElementCount()%> parts found in <%=(System.currentTimeMillis()-start)%> ms.) <br /><jca:rendertable model="${tableModel}" showpaginglinks="false"/"> <br /><br />I then did a search for js* withgetIeModel & came across a few more:<br /><br />codebase\netmarkets\jsp\carambola\customization\examples\tree\advancedTree4.jsp<br />codebase\netmarkets\jsp\carambola\ie\jcaSearch.jsp<br />codebase\netmarkets\jsp\esiTransaction\relatedTransactionsStep.jsp<br />codebase\netmarkets\jsp\search\searchResults.jsp<br />codebase\netmarkets\jsp\tgt\distTargetsTable.jsp<br />codebase\netmarkets\jsp\tgt\targetAdminStep.jsp<br />codebase\netmarkets\jsp\tgt\updateTargetAssocationsStep.jsp<br />prog_examples\federation\search_portal\jsps\infoengine\jsp\examples\federation\jca_portal\index.jsp<br /><br />the last index.jsp creates its ie group through domains.jsp:<br /><br />prog_examples\federation\search_portal\jsps\infoengine\jsp\examples\federation\jca_portal\domains.jsp<br /><br />I think it obtains its group through tag lib, instead of direct webject: if ( ie.getGroup ( "examplePartRepositories" ) == null )<br />{<br /> Url u = new Url ( NamingService.getDirectoryProvider() );<br /> u.setDn ( NamingService.getSearchBase() );<br /> DelegateDirectory dir = new DelegateDirectory ( u.toString() );<br /> Repository [] repositories = dir.listRepositories();<br /> Group domains = new Group ( "examplePartRepositories" );<br /> ie.addGroup ( domains );<br /> //<br /> // for easy lookup later add a Map of domain -> description as Meta<br /> //<br /> java.util.Map map = new java.util.HashMap();<br /> domains.getGroup().setMetaValue ( "map", map );<br /> for ( int i = 0; repositories != null && i < repositories.length; i++ ) {<br /> String type = repositories[i].getRepositoryType();<br /> if ( "com.ptc.windchill".equals ( type ) || type.startsWith ( "ext.example." ) )<br /> {<br /> Element e = new Element();<br /> String d = repositories[i].getDisplayName();<br /> String desc = repositories[i].getDescription ();<br /> if ( d == null || desc == null ) continue;<br /> map.put ( d, desc );<br /> e.addAtt ( new Att ( "domain", d ) );<br /> e.addAtt ( new Att ( "description", repositories[i].getDescription() ) );<br /> e.addAtt ( new Att ( "taskP", repositories[i].getTaskProcessor() ) );<br /> e.addAtt ( new Att ( "webjectP", repositories[i].getSupportingAdapter() ) );<br /> domains.addElement ( e );<br /> }<br /> }<br />}<br />List checked = (List)pageContext.findAttribute ( "selected_domains" );<br />boolean all = checked.isEmpty() || checked.size()==ie.getGroup("examplePartRepositories").getElementCount();<br />%><br /><input type="checkbox" name="all" onclick="allOrNone(this.form);"&lt;%=all?" checked&quot;:&quot;&quot;%=">> All<br /><br /><ie:foreach groupin="examplePartRepositories" groupout="oneRepository"><%<br /> String domain = (String)ie.getGroup ( "oneRepository" ).getAttributeValue ( 0, "domain" );<br />%><input type="checkbox" name="domains" value="&lt;%=domain%">"<%=(all||checked.contains(domain))?" checked":"%>><a href=""javascript:displayRepoInfo('','<ie:getvalue name="description"/>','<ie:getvalue name="taskP"/>','<ie:getvalue name="webjectP"/>')"><ie:getvalue name="description"/><br /><br /></ie:foreach> But im not great with that area, so now I have the weekend to get better with it.<br /><br />L Jett<br />cadjett@aol.com,datajett@aol.com<br />