Jump to content


catsky

[SC 2012 SP1 beta][OSD] not able to activate the "Apply" by using SetDirtyFlag or use "dirty" property

Recommended Posts

We face an issue when do the OSD OEM integration with SCCM 2012 SP1 beta. In task sequence editor, we add our customized step action control, and follow the step as MSDN indicated:http://msdn.microsoft.com/en-us/library/cc143499.aspx . We want to active the "apply" button in task sequence editor by using the API SetDirtyFlag(true) or Dirty = true when things changed in our action control. However, "apply" button is not enabled after call this method.

 

We use the same logic to perform this task, and no issues happened on SCCM 2007 R2 or SCCM2012.

 

 

 

SCCM2012SP1beta has this kind of issue, but SCCM2007R2/2012 don't.

 

Env: windows2008r2 + SCCM2012SP1 beta

Steps to Reproduce: (steps could be found on MSDN http://msdn.microsoft.com/en-us/library/cc143499.aspx )

1. find the required dll under C:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole\bin on SCCM2012SP beta server, and reference these assemblies in my own project

---assemblies list----

AdminUI.Common.dll

AdminUI.DialogFoundation.dll

AdminUI.OsdCommon.dll

AdminUI.TaskSequenceEditor.dll

AdminUI.WqlQueryEngine.dll

Microsoft.ConfigurationManagement.ApplicationManagement.dll

Microsoft.ConfigurationManagement.ApplicationManagement.Extender.dll

Microsoft.ConfigurationManagement.DialogFramework.dll

Microsoft.ConfigurationManagement.exe

Microsoft.ConfigurationManagement.exe.config

Microsoft.ConfigurationManagement.ManagementProvider.dll

------------------------

 

2. add event handler to my customized action control, e.g. for a text field, add an event handler once content changed. In the handler, set dirty flag by

leverage the API "Microsoft.ConfigurationManagement.AdminConsole.SmsPageControl.SetDirtyFlag(bool" to active the "apply" button as we always do. Since this method is deprecated in SP1 dll, we also try set "Dirty" property to "true" as indicated. However, neither of them succeed to enable the "apply" button

 

---code---

SetDirtyFlag(true);

//Dirty = true;

3. however the "apply" button doesn't active at all. if we click "ok" button, the changes doesn't save either.

the user will not be able to save the any changes in my customized action control. It will be very annoying. So it is a must fix defect.

post-18036-0-94308000-1351773950_thumb.jpg

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.