iManExtLib 8.2 problem

Hi All,

We're migrating from DeskSite 8.0 to 8.2 and in the process a particular application that was working fine in 8.0 doesn't work anymore in 8.2.On investigation , I found that the 'Show' method of EditProfileDialog is throwing error. The following code snippet might help in understanding the problem:

Dim pdoc As IManage.NRTDocument
.
.
.
.

Set EditPrfDlg = New IMANEXTLib.EditProfileDlg
Set pdoc = MySelectedDocs(0).Database.CreateDocument


EditPrfDlg.NRTDocument = pdoc
'EditPrfDlg.SetAttributeValueByID nrCustom25, True, True
EditPrfDlg.CloseOnOK = True
EditPrfDlg.Show hWnd

The highlighted text throws error the moment the dialog box pops up. The erorr is either of the following two :

1. [NRTDocument ][Document Extension(get) ]Access is denied.
2. [NRTDocument ][GetAttributeByID ]Access is denied.

Could you please let me know what changes are required in the code to make it DeskSite 8.2 compliant.

Thanks
Satadru

Comments

  • Hi All,

    We're migrating from DeskSite 8.0 to 8.2 and in the process a particular application that was working fine in 8.0 doesn't work anymore in 8.2.On investigation , I found that the 'Show' method of EditProfileDialog is throwing error. The following code snippet might help in understanding the problem:

    Dim pdoc As IManage.NRTDocument
    .
    .
    .
    .

    Set EditPrfDlg = New IMANEXTLib.EditProfileDlg
    Set pdoc = MySelectedDocs(0).Database.CreateDocument


    EditPrfDlg.NRTDocument = pdoc
    'EditPrfDlg.SetAttributeValueByID nrCustom25, True, True
    EditPrfDlg.CloseOnOK = True
    EditPrfDlg.Show hWnd

    The highlighted text throws error the moment the dialog box pops up. The erorr is either of the following two :

    1. [NRTDocument ][Document Extension(get) ]Access is denied.
    2. [NRTDocument ][GetAttributeByID ]Access is denied.

    Could you please let me know what changes are required in the code to make it DeskSite 8.2 compliant.

    Thanks
    Satadru
    I can't tell which line of code is the highlighted one. Would you send in a simplified project that can reproduce the problem so that I can examine it more closely?

    What does this code piece do?
  • Hi,

    Thanks for your reply. The problem is with the line EditPrfDlg.Show hWnd.

    This code piece is used to change profiles of multiple documents in DeskkSite. Users can select as many as documents from the worklist and then change the profile of all selected documents at once by right clicking on them.

    The problem that I'm facing is when I'm invoking the IMANEXTLib.EditProfileDlg show method in 8.2, however in 8.0 it works perfectly fine. The errors displayed depends on the database I select , but it's always either of the following two :

    1. [NRTDocument ][Document Extension(get) ]Access is denied.
    2. [NRTDocument ][GetAttributeByID ]Access is denied.


    Do you think it might have to do with the following line :

    EditPrfDlg.NRTDocument = pdoc where :

    1. EditPrfDlg = New IMANEXTLib.EditProfileDlg

    2. pDoc = pdoc = MySelectedDocs(0).Database.CreateDocument

    3. MySelectedDocs is an array of IManage.NRTDocument.

    Thanks
    Satadru
  • Hi,

    Thanks for your reply. The problem is with the line EditPrfDlg.Show hWnd.

    This code piece is used to change profiles of multiple documents in DeskkSite. Users can select as many as documents from the worklist and then change the profile of all selected documents at once by right clicking on them.

    The problem that I'm facing is when I'm invoking the IMANEXTLib.EditProfileDlg show method in 8.2, however in 8.0 it works perfectly fine. The errors displayed depends on the database I select , but it's always either of the following two :

    1. [NRTDocument ][Document Extension(get) ]Access is denied.
    2. [NRTDocument ][GetAttributeByID ]Access is denied.


    Do you think it might have to do with the following line :

    EditPrfDlg.NRTDocument = pdoc where :

    1. EditPrfDlg = New IMANEXTLib.EditProfileDlg

    2. pDoc = pdoc = MySelectedDocs(0).Database.CreateDocument

    3. MySelectedDocs is an array of IManage.NRTDocument.

    Thanks
    Satadru
    The line of code in 2 does not make much sense to me. If you could send in a simplified project that has just enough code to demonstrate the problem, I can then take a look at it.

  • Dim pdoc As IManage.NRTDocument
    .
    .
    .
    .

    Set EditPrfDlg = New IMANEXTLib.EditProfileDlg
    .
    .
    .

    Thanks
    Satadru
    Hi,
    We are also working on a custom code integration which is using IMANEXTLib.
    Being new to worksite and Dot net environment, I am getting difficulty to locate the library to include in my project.
    Can you please guide me with the location of IMANEXTLib.DLL ?
    Appreciate your help.

    Thanks,
    Amit
TeamSite Developer Resources

  • Docker Automation

  • LiveSite Content Services (LSCS) REST API

  • Single Page Application (SPA) Modules

  • TeamSite Add-ons

If you are interested in gaining full access to the content, you can register for a My Support account here.
image
OpenText CE Products
TeamSite
APIs