HI I need help in below scenario
I have 3 entities Entity A, B (parent A), C( Parent B). On home page we are showing Entity A records mapped to logged in user account in an entity list. When user clicks on any of entity record, we want user to be redirected to new page and show the entity B records ( only related records). and then same for entity C
We have designed page, which can fetch records, perhaps, the problem is paging we are not able to implement for the records that are on page. Can anyon ehelp how we could achieve this?
if someone has solutions with portalwebapi also fine for me.
Thanks in advance.
<div class="row sectionBlockLayout sectionPrimaryColor" style="height: 15px; min-height: 15px;">
</div>
<div class="row sectionBlockLayout" style="text-align: left; height: 50px; padding: 8px; margin: 0px; min-height: 50px;">
<div class="container" style="display: flex; flex-wrap: wrap;">
<div class="col-md-12 columnBlockLayout" style="height: 40px; width: 70%;">
<p><span> </span> <span style="font-weight: bold; color: blue;">{{ user.parentcustomerid.Name }}</span></p>
</div>
<div class="col-md-12 columnBlockLayout" style="height: 40px; text-align: right; display: inline-block; width: 30%;"><input type="button" value="Back" onclick="javascript:window.history.back();" id="BackButton" class="btn btn-primary" style="height: 40px;"></div>
</div>
</div>
<div class="row sectionBlockLayout" style="display: flex; flex-wrap: wrap; padding: 8px; margin: 0px; text-align: left; min-height: 400px; background: url('/////////////////////wave-background.png');">
<div class="container" style="display: flex; flex-wrap: wrap;">
<div class="col-md-12 columnBlockLayout">
{% assign entityAId= request.params['id'] %}
{% assign pagingCookie = request.params['paging-cookie'] %}
{% if pagingCookie %}
{% assign pagingCookie = ' paging-cookie="{{ pagingCookie }}"' | liquid %}
{% endif %}
{% fetchxml entityBrecords%}
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
<entity name="entityb">
<attribute name="entitybname">
<attribute name="entitybid">
<attribute name="statecode">
<attribute name="entityA">
<filter type="and">
<condition attribute="entityA" operator="eq" uitype="entityA" value="{{entityAId}}">
</condition>
</filter>
</attribute>
</attribute>
</attribute>
</attribute>
</entity>
</fetch>
{% endfetchxml %}
<div class="view-grid">
{% for item in unitsofAssets.results.entities %}
{% unless forloop.last %},{% endunless %}
{% endfor %}
<table id="authorTable" role="grid" aria-relevant="additions" class="table table-stripped table-fluid">
<thead>
<tr>
<th scope="col" style="width:33.9090909090909%" class="sort-enabled">
<a href="#" role="button">Name <span class="sr-only sort-hint">. sort descending</span></a>
</th>
<th scope="col" style="width:32.9090909090909%" class="sort-enabled"> <a href="#" role="button">Status <span class="sr-only sort-hint">. sort descending</span></a></th>
<th scope="col" style="width:32.9090909090909%" class="sort-enabled"> <a href="#" role="button">Asset <span class="sr-only sort-hint">. sort descending</span></a></th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="details-link has-tooltip" data-toggle="tooltip" href="/new-page-2/new-page-3/?id={{ item.entityBid }}">{{ item.entityBname }} </a></td>
<td>{{ item.statecode.label }} </td>
<td>{{ item.entityA.name }}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="row sectionBlockLayout sectionPrimaryColor" style="text-align: left; min-height: 50px; padding: 8px; margin: 0px;">
<div class="container" style="display: flex; flex-wrap: wrap;">
<div class="col-md-12 columnBlockLayout"></div>
</div>
</div>
Lucas001
60
Super User 2025 Season 1
Fubar
55
Super User 2025 Season 1
surya narayanan
35