<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.aras.com/community/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Is it Possible to pass custom parameters from a javascript to Search dialog</title><link>https://www.aras.com/community/f/development/38132/is-it-possible-to-pass-custom-parameters-from-a-javascript-to-search-dialog</link><description>I&amp;#39;m attempting to apply a custom filter value to a search dialog in my application. To achieve this, I&amp;#39;m using the &amp;#39;onSearchdialog&amp;#39; event on a specific property where the filter should be applied. However, I&amp;#39;ve encountered an issue where the filter value</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: Is it Possible to pass custom parameters from a javascript to Search dialog</title><link>https://www.aras.com/community/thread/9816?ContentTypeID=1</link><pubDate>Thu, 09 Nov 2023 09:05:12 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:7a73eba4-b542-4310-b333-d194c553fa12</guid><dc:creator>alaxala</dc:creator><description>&lt;p&gt;You can use the itemContext property of the search dialog parameters. The type of the itemContext is Node, you can set it properties or attributes and it will be passed to onSearchDialog method as inArgs.itemContext.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it Possible to pass custom parameters from a javascript to Search dialog</title><link>https://www.aras.com/community/thread/9815?ContentTypeID=1</link><pubDate>Thu, 09 Nov 2023 08:44:21 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:cf3e7fba-8c28-4ddf-84a8-e49e13e5c0b5</guid><dc:creator>Sathish</dc:creator><description>&lt;p&gt;The custom form is a standard HTML page and not a dialog.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Then in the HTML page, from where i open the searchdialog, below code is used&lt;pre class="ui-code" data-mode="javascript"&gt;async _openSearchDialog() {
		const returnValue =
			await this._topWindow.ArasModules.MaximazableDialog.show(&amp;#39;iframe&amp;#39;, {
				aras: this._aras,
				itemtypeName: this._selectionSetItemType,
				type: &amp;#39;SearchDialog&amp;#39;,
				sourceItemTypeName: &amp;#39;vm_SelectionSet&amp;#39;,
				sourcePropertyName: &amp;#39;custom_variabilityitem&amp;#39;,
				parameter1: &amp;#39;%variability1%&amp;#39;
			}).promise;

		return returnValue;
	}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I write the below code in onSearchDialog event of the property. I want to use the parameter1 value in the &amp;#39;onSearchdialog&amp;#39; event.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="javascript"&gt;var customParam = inArgs.parameter1;
var Filter = {};
Filter[&amp;quot;dvl_variabilityitem&amp;quot;] = { filterValue: customParam, isFilterFixed: false };
return Filter;
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it Possible to pass custom parameters from a javascript to Search dialog</title><link>https://www.aras.com/community/thread/9813?ContentTypeID=1</link><pubDate>Thu, 09 Nov 2023 08:12:51 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:fdb157a3-7e5a-45e8-9ad4-7a3c2c36f51e</guid><dc:creator>alaxala</dc:creator><description>&lt;p&gt;Is your custom form a some item form or a custom dialog? The dropdown is some item property or just list of values?&lt;/p&gt;
&lt;div id="gtx-trans" style="left:498px;position:absolute;top:-20px;"&gt;
&lt;div class="gtx-trans-icon"&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>