Can Javascript modify properties of objects within a format?

I've been trying to figure out a way to more clearly indicate that a fill has been completed successfully.  This is due to a large user base who are all "brand new" to Service Manager and who's prior ticketing system did not have the same requirement to click fill to complete "undisplayed" fields within the application.  I  and was hoping that someone has done something like the following:


In the Post Javascript tab of the link for the individual fill, I'd like to be able to call a routine that would modify the "Fill Button Image" for the comfill object on the form that called that link record.


If not possible to do this, is there some way to set validation on links from FC that would enforce a successful fill be completed on all comfill objects within a form before it can be saved/escalated/closed/etc?

  • Hello,

    I am not sure why you want to force users to click on all comfills. Maybe will be enough to check in FC that the required fields are not null or contain valid data from target table? If you still want to do that as you described, you can do following:

    In each link which is fired by the comfill button add information like $fieldx="true" where x can be randomly applied index of the field. Then in format control on validation set condition for all your $fieldx that they must be true either validation wont pass.

    Or you can put on form some signs like symbol on OK button next to each field with comfill which will be not displayed until user  wont click on the comfill link (again you will need to set in each link line $fieldx=true and then use it for Display condition of the OK signs).

  • The intent is not to require fill on ALL, however there are some that are requried to fill to pull additional fields via the link to the individual record.  I understand how the temp variable would work in this regard, however I was hoping for some visual indication that the fill was completed during the click on the button.  As a follow-up question on this, is there some way to force the fill to occur during the Save of the record?

  • Verified Answer


    Dont think that you will be able to call link at the save button. Regarding visual effect i wrote the way of doing that with some symbols (like accept symbol for OK buttons in the system) which will be displayed after clicking on the link.

  • You can call application in formatctrl on save. You can find examples on how to call it in online help or by entering do (displayoption) and entering in application field and press search. HTH
  • You can do something like this:


    Go to the format control of that tableand in the JS write:


    function updateFill()


     //var incT=new SCFile("table_name")

     if (vars.field_name !=null || vars.field_name !="")


       var rteCode=new SCDatum()

       var rc=system.functions.rtecall("callrad",rteCode,"", new Array("name","prompt","string1"),new Array("field_name_on_which_you_have _to_perform_fill","fill","table_name"),false,true)






    But i guess you have to perform this on each fill button which might be quite hectic task. Otherwise you can put this code in fc on Add. So that if all the mandatory fields has been filled then on submission above rtecall gets executed and values in the fill button field will get filled.


    Same you can do at the updation of the record.