This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - How to display form or any item of ARAS using Innovator object created side ASP.NET

AshokGopale - Friday, July 20, 2012 3:48 AM:

Dear ARAS experts,

Good afternoon !

I would like to know , how should I display the ARAS item form window using following scenario.

Ok.

Scenario is - I have created an Innovator object using reference to IOM.dll file inside ASP.Net project.

Using this object, I can create an instance of item "PR". It works perfectly.

Now I want to use "showModalDialog()" method or simiiar functionality to show any given item in Form.

 

a) created Innovator Object

              HttpServerConnection conn = IomFactory.CreateHttpServerConnection(url, db, user, password);
                Item login_result = conn.Login();
                if (login_result.isError())
                {
                    throw new Exception("Login failed");
                }
                Innovator inn = IomFactory.CreateInnovator(conn);

b) javascript to show any item on screen.

var param = new Object();
param.aras = top.aras;
param.dialogType = 'class_structure';
param.isEditMode = document.isEditMode;
param.itemTypeName = itName;
param.title = top.aras.getResource("", "imports_core.class_structure_for", itName);
param.class_structure = class_structure;
param.item = document.item;

  var res = showModalDialog('ClassStructureDialog.html', param, 'help:0;resizable:1;status:0;');

Is it possible to do? How ?

Best Regards,

Ashok