我需要按ID过滤资产集,我的资产类型是& > select.form-control {
position: relative;
border-radius: $input-border-radius;
background-color: transparent;
box-shadow: none; // remove the bootstrap styling
appearance: none;
&:focus + div.select-picker::after{
outline: none;
border-color: green; // don't change the color on focus
}
。我以前从来没有这样做过,而且我对此很感兴趣。
这是我的代码:
flex asset
<publication:load name="pub" field="name" value='<%= ics.GetVar("site") %>'/>
<publication:get name="pub" field="id" output="siteId"/>
<%-- Content:getasset data is a custom tag to obtain attributes form a concrete asset --%>
<content:getassetdata prefix="lov" id='<%= ics.GetVar("assetid") %>' type="LOV" attributes="LOVUser"/>
<listobject:create name="powerObject" columns="power"/>
<c:forEach items="${lov.LOVUser}" var="usu">
<listobject:addrow name="powerObject"><listobject:argument name="power" value="${usu.id}"/></listobject:addrow>
</c:forEach>
<listobject:tolist name="powerObject" listvarname="powerList"/>
<%-- A this time, I have a powerList with all the IDs that I need to get --%>
<searchstate:create name="ssLovElements"/>
<searchstate:addstandardconstraint name="ssLovElements" attribute="id" list="powerList" />
<assetset:setsearchedassets name="asElementLovs" constraint="ssLovElements" assettypes="elementLOV" site='<%= ics.GetVar("siteId") %>' fixedlist="false"/>
第一个列表包含 60 元素,第二个列表包含 600 。我需要使用这个约束来提取只需要的元素,并获得具有多个值的属性,但我不会这样做。有帮助吗?感谢
答案 0 :(得分:0)
我认为您应该使用Asset API而不是jstl标记。 See the doc:
Session ses = SessionFactory.getSession();
AssetDataManager mgr = (AssetDataManager) ses.getManager(AssetDataManager.class.getName());
Condition c = ConditionFactory.createCondition( "id", OpTypeEnum.GREATER_THAN, long);
Query query = new SimpleQuery( "elementLOV", null, c, Arrays.asList( "name", ) );
query.getProperties().setIsBasicSearch( true );