locked
How can I set StatusingSettings via PSI? RRS feed

Answers

  • Hi BjornBo,

    i check here: http://msdn.microsoft.com/en-us/library/websvcadmin.statusingsettingsdataset.statusingsettingsrow.wadmin_protect_actuals(v=office.12).aspx.

    The field WADMIN_PROTECT_ACTUALS is used for restrict updates only via PWA or not.

    So, you should update the only row in StatusingDataset instead of add a new row.

    Youy should read row settings using ReadStatusinSettings, modify the field StatusingSettingsDataSet.StatusingSettingsRow.WADMIN_PROTECT_ACTUALS and update this using UpdateStatusingSettings

    I hope this can helps you,

    Best Regards,

    Paolo O.


    • Marked as answer by BjörnBo Thursday, April 5, 2012 8:57 AM
    Monday, April 2, 2012 2:18 PM
  • Hi Paolo,

    that's exactly what I was searching for. Thank you.

    I created this method and it works fine:

    private void setProtectActuals(byte state)
    {
        backendAdmin.StatusingSettingsDataSet dsDelta = _adminClient.ReadStatusingSettings();
        backendAdmin.StatusingSettingsDataSet.StatusingSettingsDataTable dtStatusingSettings = (backendAdmin.StatusingSettingsDataSet.StatusingSettingsDataTable)dsDelta.Tables[0];
        SvcAdmin.StatusingSettingsDataSet.StatusingSettingsRow row = dtStatusingSettings[0];
        row.WADMIN_PROTECT_ACTUALS = state;
                
        _adminClient.UpdateStatusingSettings(dsDelta);
    }

    Best regards

    Björn

    • Marked as answer by BjörnBo Thursday, April 5, 2012 9:00 AM
    Thursday, April 5, 2012 8:59 AM

All replies

  • Anyone an idea?
    Thursday, March 29, 2012 7:32 AM
  • Hi BjornBo,

    i check here: http://msdn.microsoft.com/en-us/library/websvcadmin.statusingsettingsdataset.statusingsettingsrow.wadmin_protect_actuals(v=office.12).aspx.

    The field WADMIN_PROTECT_ACTUALS is used for restrict updates only via PWA or not.

    So, you should update the only row in StatusingDataset instead of add a new row.

    Youy should read row settings using ReadStatusinSettings, modify the field StatusingSettingsDataSet.StatusingSettingsRow.WADMIN_PROTECT_ACTUALS and update this using UpdateStatusingSettings

    I hope this can helps you,

    Best Regards,

    Paolo O.


    • Marked as answer by BjörnBo Thursday, April 5, 2012 8:57 AM
    Monday, April 2, 2012 2:18 PM
  • Hi Paolo,

    that's exactly what I was searching for. Thank you.

    I created this method and it works fine:

    private void setProtectActuals(byte state)
    {
        backendAdmin.StatusingSettingsDataSet dsDelta = _adminClient.ReadStatusingSettings();
        backendAdmin.StatusingSettingsDataSet.StatusingSettingsDataTable dtStatusingSettings = (backendAdmin.StatusingSettingsDataSet.StatusingSettingsDataTable)dsDelta.Tables[0];
        SvcAdmin.StatusingSettingsDataSet.StatusingSettingsRow row = dtStatusingSettings[0];
        row.WADMIN_PROTECT_ACTUALS = state;
                
        _adminClient.UpdateStatusingSettings(dsDelta);
    }

    Best regards

    Björn

    • Marked as answer by BjörnBo Thursday, April 5, 2012 9:00 AM
    Thursday, April 5, 2012 8:59 AM