client side id

Hi,

how can I obtain the client side id of a control that’s inside another (included) portlet?

thanks
Bruno

Please see the “External Portlet References” section of the CAF Development Help.

This information is available in the Designer help or online @ http://techcommunity.softwareag.com/ecosystem/documentation/webmethods/wmsuites/wmsuite8-2_sp2/Designer/8-2-SP1_CAF_Development_Help.pdf

Nice :slight_smile:

I would like to avoid to go to MWS and define manually the alias.
How can I add an alias to the portlet while in designer so that it goes included in the project?

thanks
Bruno

How are you creating the page that contains the portlets? Are you using an xmlImport.xml file that is included in your application?

If so, you can set the alias in there via the ‘alias’ attribute of the portlet element. For example:

<CONFIG>
	<CONTEXT alias="folder.public">
		<folder name="MyPage">
			<page>
				<row attributes="top,one">
					<column attributes="thin,left,one"
						width="100%">
						<mycustomapp___SearchBar
							name="SearchBar" alias="my.custom.searchbar" />

						<mycustomapp___SearchResult
							name="SearchResult">
							<wiring name="queryString"
								portlet="my.custom.searchbar" property="lastSearchState" />
						</mycustomapp___SearchResult>
					</column>
				</row>
			</page>
		</folder>
	</CONTEXT>
</CONFIG>