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

Issue with dataset.display in illustrator4

New Here ,
Mar 21, 2011 Mar 21, 2011

Copy link to clipboard

Copied

I'm opening a document, importing a XML with dataset using activeDocument.importVariables and then displaying the dataset. When I run the code on already opened document then it dataset is changed and displayed in illustrator document but if I open a new document through code and then execute the code to import variables and display dataset then dataset is not displayed. Below is my code for both the cases.

1) When document already opened

activeDocument.importVariables(File ('/E/Projects/Illustrator/Temp/TempFile.xml'));
app.activeDocument.activeDataset = activeDocument.dataSets.getByName("CURRENT");
app.activeDocument.activeDataset.display();

This code runs without problems and changes variable values are displayed.

2) When code for opening the document is executed

var myDocument = app.open(File("/E/Projects/Illustrator/Templates/test6.ait"));

myDocument.activate();

activeDocument.importVariables(File ('/E/Projects/Illustrator/Temp/TempFile.xml'));
app.activeDocument.activeDataset = activeDocument.dataSets.getByName("CURRENT");
app.activeDocument.activeDataset.display();

Values of active dataset is not shown in the document and in the variables panel , selected dataset is not shown selected though variables are imported successfully.

Do I need to do something else to show the dataset?

TOPICS
Scripting

Views

598

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

correct answers 1 Correct answer

Community Expert , Mar 21, 2011 Mar 21, 2011

I think that below page as a reference.

http://forums.adobe.com/thread/513517?tstart=1


Ten

Votes

Translate

Translate
Adobe
Community Expert ,
Mar 21, 2011 Mar 21, 2011

Copy link to clipboard

Copied

I think that below page as a reference.

http://forums.adobe.com/thread/513517?tstart=1


Ten

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
New Here ,
Mar 23, 2011 Mar 23, 2011

Copy link to clipboard

Copied

Thanks Ten, I'll go through this and see if my issue is resolved.

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
New Here ,
Mar 23, 2011 Mar 23, 2011

Copy link to clipboard

Copied

LATEST

Thanks A millon Ten...

My issue is resolved....

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