Home Service Manager

Help extending the Windows Computer form

Marc-Andre_LafleurMarc-Andre_Lafleur Customer Adept IT Monkey ✭✭
I am having an hard time extending the Windows Computer form to add a Date Time field in the Operating System section.
No matter how I extend the class or the form, I can't get the date to successfully save in the SCSM console. Any help would be appreciated!

Here's what I have so far:

A sealed management pack that contains the class extension. I extended the Windows Operating System class (Hosted & Extension).


I added one new property to this class extension and it's a Date Time (currently called Date Test for testing).


I have another sealed management pack containing the form extension. I am customizing the Windows Computer form.
We want the new date to be located into the Operating System section. I added one in the screenshot below.


I bind it to the property I created (two way).


I import the two seal MPs in my dev console and when I fill in the date and save, the data is lost when I close the form.

If I try to do the same thing directly into the Windows Computer class and into the Computer Identity section of the form, it will work but any extension to the OS section doesn't save. It probably have something to do because it's a hosted class but I can't find any information about it.

Any hint or help would be greatly appreciated!
Thanks

Best Answer

Answers

  • Brett_MoffettBrett_Moffett Cireson PACE Super IT Monkey ✭✭✭✭✭
    Hi @Marc-Andre_Lafleur, could you be hitting this issue: 
    https://systemcenternoise.wordpress.com/2015/03/10/form-customisations-dont-show-in-the-console/

    Do you have the Cireson preview MP's installed?
    These can introduce this issue.
  • Marc-Andre_LafleurMarc-Andre_Lafleur Customer Adept IT Monkey ✭✭
    @Brett_Moffett, it does not seems to be the same problem as mine but this could be useful in the future as we use the Cireson preview MP. In my case, my customizations are always visible in the console, the problem is with the saving (possibly the binding).

    I am trying to expand the Operating System section hosted in the Windows Computer class and form. Any extension that I do to the Windows Computer class and form will work and save successfully except when they are located in the "Operating System" section of the Windows Computer General tab (from extension).

    For example, in the screenshot below;
       - the date property located in Computer Identity section can be saved
       - the Windows.Operating.System date field in the Operating System section won't save
       - the Windows.Computer date field in the Operating System section won't save



    Even if I extended the Windows Computer Operating System hosted class, the property won't save which seems to me like the thing to do.
  • Brett_MoffettBrett_Moffett Cireson PACE Super IT Monkey ✭✭✭✭✭
    This sounds like a binding issue to me.
    Is the "Ext of the Windows Computer Class" property the same in both sections on this form?
    If it's working for one and not on the other, what are the differences between the two?
  • Marc-Andre_LafleurMarc-Andre_Lafleur Customer Adept IT Monkey ✭✭
    They are both binded to the same property in the same way (all form properties are the same). The only difference is that it's located in the Operating System section of the form. As soon as I put it somewhere else, it would work.

    This is why I tried to extend the Windows Operating System hosted class instead but I get the same result unfortunately. I can successfully save if I edit an Windows OS object directly but from the windows computer form, it doesn't save. :(
  • Marc-Andre_LafleurMarc-Andre_Lafleur Customer Adept IT Monkey ✭✭
    @David_Morris1 It works, thank you!

    I can't believe it was only that. It will be useful to know in the future.
Sign In or Register to comment.