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 - Related Item using Action to another Item Relation

eknath - Monday, February 8, 2016 2:48 AM:

Hello,

I have Created an Action,When Click on that action,Related Items all Record Should be show in another Item Relationship Record.I have Done the Code.

Code:

var myItem = this;

var newBatch = myItem.newItem('Symbi_Batch Record','add');
newBatch.setProperty('symbi_batch_number', top.aras.getNextSequence("","Symbi_Batch_Record"));
    newBatch.setProperty('symbi_product', myItem.getProperty('symbi_product',''));


var newAML = myItem.newItem('Symbi_BR_AML','add');
newAML.setPropertyItem('related_id',myItem );
newBatch.addRelationship(newAML);


var res=newBatch.apply();
newBatch = res.getItemByIndex(0);

top.aras.uiShowItemEx(newBatch.node,undefined,true);

this Code does not show Related Item Record.

 

thank you