Importing Datasets Scripting Question

I'm new to scripting in Illustrator and I have a pretty simple problem.  After one loads a variable library into an Illustrator document, one must first select the newly loaded data set in the Data Set drop down menu before it actually populates the document.  How could I code for this latter step (the selection from the drop down menu) in javascript?
First I would import the library via:
docRef.importVariables(new File(xmlFilePath));
And then what?
Thanks for reading.

check this post
hope it helps;

Similar Messages

  • Gettinhg WLSTException: MDS-00039 while attempting to import dataset

    I am getting the below error while importing dadaset using script.
    Starting import metadata script ....
    Please enter your username :weblogic
    Please enter your password :
    Please enter your server URL [t3://localhost:7001] :t3://
    Connecting to t3:// with userid weblogic ...
    Successfully connected to Admin Server 'AdminServer' that belongs to domain 'base_domain'.
    Warning: An insecure protocol was used to connect to the
    server. To ensure on-the-wire security, the SSL port or
    Admin port should be used instead.
    Location changed to domainRuntime tree. This is a read-only tree with DomainMBean as the root.
    For more help, use help(domainRuntime)
    Problem invoking WLST - Traceback (innermost last):
    File "/u01/app/oracle/Oracle/Middleware/Oracle_IDM1/server/bin/", line 21, in ?
    File "/u01/app/oracle/Oracle/Middleware/oracle_common/common/wlst/", line 268, in importMetadata
    File "/u01/app/oracle/Oracle/Middleware/oracle_common/common/wlst/", line 733, in executeAppRuntimeMBeanOperation
    File "/u01/app/oracle/Oracle/Middleware/oracle_common/common/wlst/", line 996, in saveStackAndRaiseException
    WLSTException: MDS-00039: error while attempting to parse the document /oracle/Oracle/Middleware/Oracle_SOA1/soa/thirdparty/edifecs/XEngine/help/API/COM/html/classXEHelper.html using SAX.
    Whitespace required.
    Whitespace required.MDS-91009: Operation "importMetadata" failure. Use dumpStack() to view the full stacktrace.
    -------------------------------------------------------dataset xml----------------------------------------------------------------------------------------------------------------------------------
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <request-data-set xmlns="" xmlns:xsi="" xsi:schemaLocation="" name="ProvisionResourceTestRO" entity="TestRO" operation="PROVISION">
    <AttributeReference name="Employee Number" attr-ref="Employee Number" type="String" length="50" widget="text" required="true" available-in-bulk="false"/>
    <AttributeReference name="First Name" attr-ref="First Name" type="String" length="40" widget="text" required="false" available-in-bulk="false"/>
    <AttributeReference name="Last Name" attr-ref="Last Name" type="String" length="40" widget="text" required="false" available-in-bulk="false"/>
    -------------------------------------------------------------------content of weblogic.prop file------------------------------------------------------------------------------------------------
    please help me out, I am new to oim 11g.

    I have tried importing metadata using "xelsysdma" user but got some new error.
    Starting import metadata script ....
    Please enter your username :xelsysadm
    Please enter your password :
    Please enter your server URL [t3://localhost:7001] :t3://
    Connecting to t3:// with userid xelsysadm ...
    Successfully connected to managed Server 'oim_server1' that belongs to domain 'base_domain'.
    Warning: An insecure protocol was used to connect to the
    server. To ensure on-the-wire security, the SSL port or
    Admin port should be used instead.
    Location changed to custom tree. This is a writable tree with No root.
    For more help, use help(custom)
    Problem invoking WLST - Traceback (innermost last):
    File "/u01/app/oracle/Oracle/Middleware/Oracle_IDM1/server/bin/", line 21, in ?
    File "/u01/app/oracle/Oracle/Middleware/oracle_common/common/wlst/", line 268, in importMetadata
    File "/u01/app/oracle/Oracle/Middleware/oracle_common/common/wlst/", line 733, in executeAppRuntimeMBeanOperation
    File "/u01/app/oracle/Oracle/Middleware/oracle_common/common/wlst/", line 996, in saveStackAndRaiseException
    WLSTException: java.lang.SecurityException: MBean operation access denied.
    MBean: oracle.mds.lcm:name=MDSAppRuntime,type=MDSAppRuntime,Application=OIMMetadata,ApplicationVersion=
    Operation: importMetadata(java.lang.String, [Ljava.lang.String;, [Ljava.lang.String;, boolean, boolean, boolean, boolean, boolean)
      Detail: Access denied. Required roles: Admin, executing subject: principals=[SYSTEM ADMINISTRATORS, oimusers, xelsysadm]
    MDS-91009: Operation "importMetadata" failure. Use dumpStack() to view the full stacktrace.
    From oracle doc it is mention to use weblogic userfor importing metadata.

  • Calling Functions From Import Integration Script

    I've got an import integration script that runs fine, however I also have several DataPump scripts that are used in FDM to change specific columns as they come in. I can take the code from the scripts and add to the Import Integration script, but I would rather just call those other functions from the VBScript. I don't see any docs on this, and I'm just wondering if anyone has done this or can describe how I can do it.
    Is it possible? Since the standard import scripts reference the strField and the strRecord, can these functions be called from the import integration script?

    strField and strRecord are arguments passed by the application to the import function. The represent the field as defined by the import format and the record that is being processed during the import.
    Given that, I'm not sure how to answer your question.

  • Import Format script required to update multiple fields

    Further to my previous post yesterday (Import Format script required to work across multiple fields I now need my import script to update multiple (two) fields at the same time, based on criteria set across multiple fields. So far, I can use DW.Utilities.fParseString to assess the values across multiple fields, but I now need to update not only the field in question, but also an additional field at the same time. For example:
    Function TBService(strField, strRecord)
    ' How do I update a second field at the same time?
    Dim strField2 As String
    If Left(strField, 1) = "S" Then
    If DW.Utilities.fParseString (strRecord, 3, 8, ",") = "B1110" Then
    strField2 = "N101"
    strField2 = "Network N/A"
    End If
    TBService = strField
    TBService = "Service N/A"
    End If
    End Function
    Is this even possible? Should I be looking at creating an event script which would work post-import? Or can this be done right here in the import script?

    All the logic you require can be encapsulated in the import script for the second field. You don't need to reference the second field in the first import script.
    Edited by: SH on May 2, 2012 5:39 PM

  • Issue with FDM Import Integration script

    I need to pull records from Oracle DB and load in FDM. have created Import Integration script for this. But,I reciev 'Data access error' when I execute the script.
    The line of error is Set rsAppend = DW.DataAccess.farsTable(strWorkTableName)+ .When I review log, I see 'strWorkTableName' is Invalid table name.
    Code............................................. -2147467259
    Description...................................... ORA-00903: invalid table name
    Procedure........................................ clsDataAccess.farsTable
    Component........................................ upsWDataWindowDM
    Below is the script:*
    Dim cnSS 'ADODB.Connection
    Dim strSQL 'SQL string
    Dim rs 'Recordset
    Dim rsAppend 'tTB table append rs object
    'Initialize objects
    Set cnSS = CreateObject("ADODB.Connection")
    Set rs = CreateObject("ADODB.Recordset")
    Set rsAppend = DW.DataAccess.farsTable(strWorkTableName)
    'Connect to Oracle database "Provider=OraOLEDB.Oracle.1;Data Source= FDMDB;Database= FDMDB;User ID= FDM;Password= xxxx"
    'Create query string
    'Get data
    rs.Open strSQL, cnSS
    'Check for data
    If rs.bof And rs.eof Then
    RES.PlngActionType = 2
    RES.PstrActionValue = "No Records to load!"
    Exit Function
    End If
    'Loop through records and append to tTB table in location’s DB
    If Not rs.bof And Not rs.eof Then
    Do While Not rs.eof
    rsAppend.Fields("PartitionKey") = RES.PlngLocKey
    rsAppend.Fields("CatKey") = RES.PlngCatKey
    rsAppend.Fields("PeriodKey") = RES.PdtePerKey
    rsAppend.Fields("DataView") = "YTD"
    rsAppend.Fields("CalcAcctType") = 9
    rsAppend.Fields("Account") = rs.fields("Account").Value
    rsAppend.Fields("Entity") = rs.fields("Entity").Value
    rsAppend.Fields("Amount") = rs.fields("Amount").Value
    End If
    'Records loaded
    RES.PlngActionType = 6
    RES.PstrActionValue = "Import successful!"
    'Assign Return value
    SQLIntegration = True
    End Function
    Also, Is the below string correct to connect to Oracle DB: "Provider=OraOLEDB.Oracle.1;Data Source= FDMDB;Database= FDMDB;User ID= FDM;Password= xxxx"+
    Thanks in advance
    Edited by: 995155 on Mar 20, 2013 12:45 PM

    I am assuming you originally tried to run the script in workbench. for these type of scripts this is not possible as you get the error you highlighted.
    If it ran successfully (albeit without pulling any data,) then it might just be the SQL string that is incorrect.
    What i would try is:
    1. Add some error handling after the connection to the DB and display the error if it occurs
    2. display the SQL string you are using to make the Selection on, to ensure the format is ok.
    Edited by: user10757003 on 21-Mar-2013 01:34

  • Importing & exporting script

    hi experts,
    through program "RSTXSCRP" we can export or import the script to hard disk.
    my doubt is in the selection screen: we have "control parameters for file operation" what is the purpose of them.
    one more is we have "control of language version" what is the language vector field? how it is useful here.
    can anyone plz help me.
    thanks in advance.

    Hi Mytri
    The "Contrl Parameters for file operation" is generally when u want to save the file in to LAH server(application server) or at the place in which u want (i.e form/frontend option).
    The "control of language versions" helps in to save the form in different languages.More over there is one more option to upload and save it original box too(see the check box u had)

  • Using  FDM Import Action script to import data from ERPI table "tdataseg_t"

    Hi Experts
    I have extracted data from EBS using ERPI and loaded into the intermediate table "tdataseg_t"
    I am trying to use Import Action script within FDM to extract data from "tdataseg_t" table (where ERPI extract data is stored) as i could not use the normal import script.
    Requirement : I have to restrict the custom 2 dimension based on Account dimension.
    Dim Account
    Account = ???? ( i am struck here)
    If Account = 1000 to 5000 Then
    Custom2 = Right( product , 5)
    End If
    but , I could not find the exact syntax to call the Account dimension from the "tdataseg_t" table.
    Please Advise
    Edited by: user12292415 on Feb 26, 2012 1:19 AM

    Importing data via a manual script defeats the purpose of ERPi. As it will not provide you an audit trail, drill-through/drill-back, etc.
    Your best bet is to use the default settings by the software. Just because it returns more records than you want is not a bad thing. You can conditionally change/alter the information either in an EventScript inside of FDM or by mapping the un-needed information to IGNORE.
    Thank you,

  • DRM Import, Action Script

    Hi All,
    I am new to Hyperion DRM 11.1.2, I am confused about concepts such as metadata and data still not able to understand difference between them. What I understand is all Versions hold is set of independent hierarchies which have nodes and their property values, which is nothing but metadata.
    Please help me understand difference between data and metadata?
    There are different task groups like Import, Action script and Migration Utility all the these are essentially used for importing metadata and data in the DRM Application.
    Migration Utility - Provides the ability to bulk load metadata and security objects in DRM applications. Other operations which can be performed in migration utility are extract and difference.
    Import- It provides a way to import data in DRM Applications, but it creates new version after import
    Action Script - Used to process a bulk set of changes in an automated fashion.
    Can anyone help me understand best case scenario for when to use which utility to import metadata and data?
    Thanks in advance.

    Migration Utility: When you are trying to Export/Import Properties, Validations, Export Definitions, Import Definitions etc to an XML or from another server.
    Import: This function Imports a whole new Version once you have the load file in a specific Import format that you define.
    Blendor: The Version you imported Can be blended with the Actual current existing version
    Action Script: This is used when updating the current Hierarchies. Like Adding nodes, updating Properties etc.

  • Quick SAP Script question New Page Print

    Quick SAP Script question
    I have added a new page to an existing SAP Script BUT only want it to print if a condition is true.
    I need to do this from within the form as the print program is SAP Std.
    Any idea how I can prevent the new page from printing?
    i.e. I need the form NOT to call the new page if the condition is false. Is there a way of forcing an exit or stop from with in the form?

    To trigger a new page, there is script ediotr command NEW-PAGE.
    so find where is that command is triggered and use the below code for trigger it on any specific condition....
    if &condition& = 'True'
    /*  NEW-PAGE
    /: NEW-PAGE   
    so it means if condition is satisfied your new page will not work.. else it will...
    Hope you got it...
    Try this..
    Best luck..

  • Importing a script

    I'm trying to import a script (originally written in Final Draft and exported from there as a PDF) into Story so that I can get at the metadata.
    I've tried it as a pdf, and exported the pdf as a Word document (both doc and docx) and tried to import those, and I get the error "Failed to import document" every time.
    This happens both on the browser and desktop versions.
    It starts to import, and I get a progress bar... then it stops. A document is created, and it's imported the first line of the title page (or it may have gotten that from the filename), but nothing more - the "written by" segment shows my name rather than the authors of the script I'm trying to import.
    I'm on a Mac, 10.8.3, and have a full CC subscription.

    Have you tried importing the .fdx document directly into Story?
    If you face issues with that too please mail the document  at DL-AdobeStory-support<at>adobe<dot>com so that we may have a look at it.

  • Import Integration Script Needed for Oracle DB

    Hi All!
    Anybody can give me import integration script for Oracle DB if i want to import data directly from DB where i dont need to extract or make Flat file and to keep at specific location location on fdm directory.
    A script which integrates if new location is created in set of books of accounts or any entity will be created in Oracle Apps. and stored in specific db. From where i have staging area where relevent DB with req feilds and records.
    Thanks in Advance

    If you review the FDM Workbench Admin Guide there is a sample one already.
    There are only a few differences between Oracle and SQL:
    1. The provider string (which can be generated by looking at a .UDL file in a text editor)
    2. Oracle DB's are case sensitive, and by default everything non-quoted is pushed to uppercase (which is pretty much everything for FDM)
    Thank you.

  • Import Integration Script

    Hello Guys,
    I want to pull the specific data from two different tables from oracle database . what should i do ? is it possible to import data from two different tables using import integration script or i need to write SQL query for this ?
    Any one have sample script for same issue ?

    Hi Vnm,
    See page 91 of the FDM Admin guide at:
    Yes you can access multiple sources from an integration script and yes as you are hitting a database you will need to execute a SQL statement as part of the integration script.
    The example on 91 does use SQL which is typical for integration scripts.
    John A. Booth

  • Scripting Question - Very Basic

    Hello, I'm using the trial version of InDesign and am wondering if because it's the trial version that I can't load custom scripts from Adobe?  I've downloaded and installed a Custom Calendar script [I can see the extracted files in/on my PC] but the app apparently doesn't see it.  Any help you can offer is greatly appreciated.  Thanks, 

    Thank you so much, you were spot on. 
    From: Peter Spier <[email protected]>
    To: Friar5 <[email protected]>
    Sent: Monday, December 12, 2011 3:18 PM
    Subject: Scripting Question - Very Basic
    Re: Scripting Question - Very Basic created by Peter Spier in InDesign - View the full discussion
    Have you put thew script in a location that InDesign uses for scripts? See How to install scripts in InDesign | InDesignSecrets
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    To unsubscribe from this thread, please visit the message page at In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in InDesign by email or at Adobe Forums
    For more information about maintaining your forum email notifications please go to

  • Automate Import integration script

    We have import integration script using which we are loading data to FDM.
    I want to know if there is any way to automate load through Integration script. As of now, we are changing POV for all periods and running script to load data to specific periods.
    Do we have any way where in we can automate this so that data gets loaded to all periods for a specific location at once.
    Thanks in advance

    batch loader will help you to automate FDM workflow.
    If you want to automate integration script you will have to create an empty batch file.
    I suggest you make your SQL query dynamic so period extracted is defined based on FDM POV period.
    Hope that helps

  • ODBC Driver for Import Integration Script?

    My understanding is that for the Import Integration Script to work with an Oracle database we need to install the Oracle client and an ODBC driver on the FDM server. Since I don't have access to the server, and I'm not the one installing anything, I need to tell the installation group where to find the correct driver. I've seen the DataDirect/Merant driver used in the past. Is that the only odbc driver that works? Does that come with FDM? Where can I find the right driver to install?

    As you know FDM is VB compliant. With that being said most anything that can be done inside of VBScripting can be done inside of FDM. Unfortunately it is not the responsibility of FDM to package/compile all drivers and information ... it probably would just be too large to accomidate.
    If you want to leverage a technology/connection/etc then the respected technology must be installed. So if you are trying to connect to an Oracle DB then the correct software, setup and configuration files must be in place to make that happen.
    In your instance, if you are going to connect to the Oracle DB you have two options:
    1. Native drivers (OLE DB Provider Drivers)
    2. Standard drivers (ODBC Drivers)
    In either situation they must be able to actively and validly connect to the database. You can test the connections to your database by leveraging a test .UDL file and stepping through the connection pieces manually. Once you have determined a connection that will suit your needs you can then save the .UDL file and open it a text-editor to retrieve your connection string.
    Thank you,

Maybe you are looking for