On April 27, 2024, our Sign-in and Create Account options will be unavailable from 9am-12pm ET. During this maintenance window, developer account access and free trial registration will be unavailable.

Scope resolution in webtop component

I have a custom import component with following definition

<config version='1.0'>
<scope location="/Cabinet/folderA/folderB">
<component id="import" extends="import:webcomponent/config/library/contenttransfer/importcontent/import_component.xml">
<document-docbase-base-type>custom_document</document-docbase-base-type>
<document-docbase-type>custom_document</document-docbase-type>
</component>
</scope>
</config>

I'm using an external web application to import files through import action. For this i'm using a URL [http://webtop.com/webtop/action/import?objectId=<folderIdC>&filePath=C:/test.txt&parentPath=/Cabinet/folderA/folderB&isDirectory=false]. The URL first prompts the user to login to webtop and then presents the properties screen.

While importing to a folder (folderC) under /Cabinet/folderA/folderB with id <folderIdC>, The property page doesnot show custom_document as selected.

Where as if i login to webtop, navigate to the same folder and select import, in the property page custom_document is shown as selected.

Please suggest if you have come across a similar situation. We needed similar behaviour as webtop.

regards

Sunil

Tagged:

Answers

  • BTMSoftware
    edited 2008 25 #2

    I think it is because when calling from Webtop directly, and selecting the object type, then it refreshes the other elements in the display which in turn display what is needed.

    I guess you will have to somehow find a way to emulate that from your application