AnsweredAssumed Answered

Updating the NR object on the detail_in.htmpl form

Question asked by Bscuit on Sep 7, 2015
Latest reply on Sep 7, 2015 by Gutis

I am trying to find a way to update a string attribute on the inventory tab from the detail_cr.htmpl. It does not work using dot notations adding the field straight on to the detail_cr form. I can think of a number of reasons why this won't work, but was thinking of creating a button opening the CI in a new window straight in edit mode pointing to a custom form that can be saved. I created a button and a new form, but the form seems to be still on the CR object and not pulling through to the NR object. Any ideas?

 

Below is my code for the button:

 

function updateaside()

{

  var query_str = cfgCgi +

                                        "?SID=" + cfgSID +

                                        "+FID=" + fid_generator() +

                                        "+FACTORY=nr" +

                                        "+PERSID=$args.persistent_id" +

                                        "+OP=UPDATE" +

                                        "+AUTO_OVERRIDE_LOCK=true" +

                                        "+EDIT_HTMPL=detail_aside.htmpl" +

                                        "+ACTIVITY_LOG_TYPE=ASIDE" ;

                    <PDM_IF "1" == "${args.KEEP.IsPopUp:0}">

                        query_str += "+KEEP.IsPopUp=1+KEEP.POPUP_NAME=1";

                    </PDM_IF>

                   

  popupActivityWithURL( query_str, 'affected_resource' );

 

This pulls up my new form, but it is still inside the CR object, even though the new form has a nr propfactory..

Outcomes