<?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>Select classification in dialog</title><link>https://www.aras.com/community/f/development/3589/select-classification-in-dialog</link><description>I&amp;#39;m trying to get users to select a classification before the main form for an item displays.

To do this I have a very simple dialog box with an Item field and a Classification field. This form is connected to the Item Type as a View.

In the Item Type</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: Select classification in dialog</title><link>https://www.aras.com/community/thread/1391?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2018 00:50:42 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:80e3e4a8-8f8c-468f-9713-3e2a879bc538</guid><dc:creator>Former Member</dc:creator><description>Thank you Angela.

Works well.

Only had to change the line
&lt;pre&gt;dialogSizes[“Design Request”] = { width : 340 , height : 300 };
todialogSizes[thisType] = { width : 340 , height : 300 };&lt;/pre&gt;
Cheers,

Brian.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Select classification in dialog</title><link>https://www.aras.com/community/thread/1386?ContentTypeID=1</link><pubDate>Mon, 26 Feb 2018 01:47:58 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:176ee6c6-a66e-4904-aee8-6d736270bab0</guid><dc:creator>Tejaswini</dc:creator><description>Hello Brian,
You can try with below method to create classification dialog box.Attach method on onshowItem event in client Event.

if (this.getProperty(&amp;quot;classification&amp;quot;, &amp;quot;&amp;quot;) !== &amp;quot;&amp;quot;) {
    top.aras.evalMethod(&amp;quot;OnShowItemDefault&amp;quot;, inDom, inArgs);
    return;
}
var inno = this.getInnovator();

var thisType = this.getType();
var Related_Item = top.aras.getItemTypeForClient(thisType, &amp;quot;name&amp;quot;);
Related_Item = Related_Item.node;
var itemLbl = top.aras.getItemProperty(Related_Item, &amp;quot;label&amp;quot;);
if (!itemLbl) {
                itemLbl = top.aras.getItemProperty(Related_Item, &amp;quot;name&amp;quot;);
}
var dialogSizes = [];
dialogSizes["Design Request"] = { width : 340 , height : 300 };

var mainWindow = window;
var param = {
                aras : top.aras,
                isEditMode : true,
                itemTypeName : thisType,
                class_structure : top.aras.getItemProperty(Related_Item,&amp;quot;class_structure&amp;quot;),
                dialogType : &amp;quot;classification&amp;quot;,
                title : &amp;quot;Select the type of &amp;quot;+itemLbl+&amp;quot; you want to create&amp;quot;,
                selectLeafOnly : true,
                isRootClassSelectForbidden : true
};
param.content = &amp;quot;ClassStructureDialog.html&amp;quot;;
param.dialogHeight = dialogSizes[thisType].height;
param.dialogWidth = dialogSizes[thisType].width;
param.resizable = 1;
 
var self = this;
var wnd = aras.getMostTopWindowWithAras(window);

(wnd.main || wnd).ArasModules.Dialog.show(&amp;quot;iframe&amp;quot;, param).promise.then(
    function(res){
        if (res == null || res == &amp;quot;&amp;quot;) {return false;}
 
       
       
        self.setProperty(&amp;quot;classification&amp;quot;, res);
       
        top.aras.evalMethod(&amp;quot;OnShowItemDefault&amp;quot;, self.node, inArgs);
        

    });&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Select classification in dialog</title><link>https://www.aras.com/community/thread/1385?ContentTypeID=1</link><pubDate>Sun, 25 Feb 2018 23:25:05 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:a6f0ddc2-8690-43c1-bb1d-3ccefd179aab</guid><dc:creator>Former Member</dc:creator><description>Suggestions anyone?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>