• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Trouble Setting the structured app on import - FS_StructuredImportApplication

New Here ,
Mar 16, 2015 Mar 16, 2015

Copy link to clipboard

Copied

Hello All,

I have some referenced documents that I refresh when opening the parent document and I am trying to set the structured application on import.

I am using>            

        var importParams = GetImportDefaultParams();

                    

                        i=GetPropIndex(importParams,Constants.FS_StructuredImportApplication);

                        importParams.propVal.ival= "myStructApp";

              

                        alert(importParams.propVal.ival);

I expect the alert to return "myStructApp" , which exists in the list of structured apps. However, my alert returns 0.

What am I doing wrong please?

thanks,

Tracey

[Thread moved to Scripting Forum by moderator]

TOPICS
Scripting

Views

361

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 01, 2016 Aug 01, 2016

Copy link to clipboard

Copied

Hi Tracey,

You need to use this instead:

importParams.propVal.sval= "myStructApp";

Notice is is "sval" instead of "ival".

However, I am having a problem where when I set my structured application this way, the import command still prompts me for the structured application. Obviously, I want to avoid the prompt since I am supplying the application name.

Rick

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Aug 01, 2016 Aug 01, 2016

Copy link to clipboard

Copied

Hi Rick and Tracey,

I think you also need to tell FM that the document to be imported is an XML document. Set Constants.FS_ImportAsType to Constants.FV_TYPE_XML as well as defining the structured application. That should do the trick. Let me know if it works.

Jang

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 01, 2016 Aug 01, 2016

Copy link to clipboard

Copied

LATEST

Hi Jang,

I tried that, but it didn't work. It still prompts me for the application. Thanks anyway.

Rick

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines