Get Related Item from a Form.
Hi Can somebody please help me understand how to get a Relationship Item from a Form Method. I have tried getReleated Item but it doesnt seem to work for me. I want to run a method on Click.So when a User clicks that button it should open up another form and from there it should allow them to add information on to a related Item. Can somebody please advise me on this. Any help will be great. Thank you in advance.3.9KViews0likes1CommentTrying to creat a link through server side method with AML
Hello, AML works in Nash. When an user is created i want to put his identity into another identity. This method is plugged on after add event of identity item type. Could you tell me id i missed someting ? Should i put an apply somewhere ? Innovator _innovator = this.getInnovator(); System.Diagnostics.Debugger.Launch(); //get id of the identity of the user created var New_identity = this.getID(); Item New_identity_item = this.newItem("Identity","get"); New_identity_item.setProperty("id",New_identity); New_identity_item = New_identity_item.apply(); var Is_Alias_1 = New_identity_item.getProperty("is_alias"); if ("1".Equals(Is_Alias_1)) { //3007DCA0B6B949A0A0B5E51AF85A6B52 ***_Checker string aml = string.Format( @" <AML> <Item type = 'Member' action ='add'> <source_id>3007DCA0B6B949A0A0B5E51AF85A6B52</source_id> <related_id>{0}</related_id> </Item> </AML>",New_identity); } System.Diagnostics.Debugger.Break(); return this; Thanks you [emoticon:c4563cd7d5574777a71c318021cbbcc8]3.3KViews0likes1CommentHow to build an aml request using a request in a request ?
Hello Aras Community, i am would like to perform this SQL request but in using AML : Innovator _innovator = this.getInnovator(); StringBuilder sql = new StringBuilder(); sql.AppendLine("SELECT ID, ***_code, config_id, state, Major_Rev, Generation, is_current FROM innovator.[***_ROOT_***] ***1 WHERE ***1.generation =(SELECT MAX(generation) from innovator.[***_ROOT_***] ***2 where ***2.state = 'Working' AND ***2.config_id = ***1.config_id)order by modified_on"); Item ***_result = _innovator.applySQL(sql.ToString()); return ***_result; Basically i need to do a request in a request. Do you think this is possible ? thank you so much for any help.1.9KViews0likes0Comments