Application Information Dependency View as catalogue

This forum is for code contributions to the Essential Project.
Forum rules
Attention: Code on this forum has not been approved by The Essential Project and usage is at your own risk.
Contributors: Please read the sticky topic before submitting a contribution.
Post Reply
Rajaraman
Posts: 137
Joined: 02 May 2018, 12:20
Contact:

We see the interaction between application in https://essentialviewer.com/report?XML= ... 8&cl=en-gbview

To see the relationship name, from, to applications its relation ship name we can take a copy of this view and customize can create the new catalog view.

Take this file application/core_al_app_provider_list_table.xsl Use the following code blocks.

declaration

Code: Select all

	<xsl:variable name="allApps" select="/node()/simple_instance[(type = 'Application_Provider') or (type = 'Composite_Application_Provider')]"/>
	<xsl:variable name="allAppUsages" select="/node()/simple_instance[type = 'Static_Application_Provider_Usage']"/>
	<xsl:variable name="allInfoReps" select="/node()/simple_instance[type = 'Information_Representation']"/>
	<xsl:variable name="allInfoRepAtts" select="/node()/simple_instance[type = 'Information_Representation_Attribute']"/>
	<xsl:variable name="allAppDependencies" select="/node()/simple_instance[type = ':APU-TO-APU-STATIC-RELATION']"/>
	<xsl:variable name="allApp2InfoReps" select="/node()/simple_instance[type = 'APP_PRO_TO_INFOREP_RELATION']"/>


header part

Code: Select all

<table id="dt_apps" class="table table-striped table-bordered">
								<thead>
									<tr>
										
										<th>
											<xsl:value-of select="eas:i18n('Relation Ship Name')"/>
										</th>
									
										<th>
											<xsl:value-of select="eas:i18n('From Application')"/>
										</th>
										<th>
											<xsl:value-of select="eas:i18n('To Application')"/>
body part

Code: Select all

	<td>
				<xsl:variable name="anApp2InfoRep" select="$allApp2InfoReps[name = current()/own_slot_value[slot_reference = 'apu_to_apu_relation_inforeps']/value]"/>




				<xsl:variable name="anInfoReps" select="eas:getInfoRepsFromRelation($anApp2InfoRep)"/>

				<xsl:for-each select="$anInfoReps">

					<div>
						<span class="text-primary">

							<xsl:variable name="demoString" select="current()/own_slot_value[slot_reference = 'name']/value" />


							<xsl:value-of select="$demoString"/>
					
						</span>
					</div>

				</xsl:for-each>
			</td>
		
			<td>
				<xsl:variable name="anAppNameFromusage" select="$allAppUsages[name = current()/own_slot_value[slot_reference = ':TO']/value]"/>
				<xsl:variable name="boundApps" select="$allApps[name = $anAppNameFromusage/own_slot_value[slot_reference = 'static_usage_of_app_provider']/value]"/>
				<xsl:for-each select="$boundApps">
					<div>
						<span class="text-primary">
							<xsl:value-of select="current()/own_slot_value[slot_reference = 'name']/value"/>
						</span>
					</div>

				</xsl:for-each>
			</td>
			<td>



				<xsl:variable name="anAppNameFromusage" select="$allAppUsages[name = current()/own_slot_value[slot_reference = ':FROM']/value]"/>
				<xsl:variable name="boundApps" select="$allApps[name = $anAppNameFromusage/own_slot_value[slot_reference = 'static_usage_of_app_provider']/value]"/>
				<xsl:for-each select="$boundApps">
					<div>
						<span class="text-primary">
							<xsl:value-of select="current()/own_slot_value[slot_reference = 'name']/value"/>
						</span>
					</div>

				</xsl:for-each>
			</td>
hope this helps someone
Rajaraman
Posts: 137
Joined: 02 May 2018, 12:20
Contact:

Why the interface catalogue is still not offered as one of the item in catalogues list, is there considered for latest versions? Or will there be alternative for this purpose?
Post Reply