Importing Datasets Scripting Question
Hi,
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
http://forums.adobe.com/thread/513517?tstart=0
hope it helps;
cheers;
Similar Messages
-
Gettinhg WLSTException: MDS-00039 while attempting to import dataset
Hi
I am getting the below error while importing dadaset using weblogicImportMetadata.sh script.
------------------------------------------------------------------Error-----------------------------------------------------------------------------------------------------------------------------------------------
Starting import metadata script ....
Please enter your username :weblogic
Please enter your password :
Please enter your server URL [t3://localhost:7001] :t3://192.168.5.11:7001
Connecting to t3://192.168.5.11:7001 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/weblogicImportMetadata.py", line 21, in ?
File "/u01/app/oracle/Oracle/Middleware/oracle_common/common/wlst/mdsWLSTCommands.py", line 268, in importMetadata
File "/u01/app/oracle/Oracle/Middleware/oracle_common/common/wlst/mdsWLSTCommands.py", line 733, in executeAppRuntimeMBeanOperation
File "/u01/app/oracle/Oracle/Middleware/oracle_common/common/wlst/mdsWLSTCommands.py", 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="http://www.oracle.com/schema/oim/request" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.oracle.com/schema/oim/request" 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"/>
</request-data-set>
-------------------------------------------------------------------content of weblogic.prop file------------------------------------------------------------------------------------------------
wls_servername=oim_server1
application_name=OIMMetadata
metadata_from_loc=/u01/app
metadata_to_loc=/u01/app
metadata_files=/dataset/ProvisionResourceTestRO.xml
please help me out, I am new to oim 11g.
Regards,
AvijitHi,
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://192.168.5.11:14000
Connecting to t3://192.168.5.11:14000 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/weblogicImportMetadata.py", line 21, in ?
File "/u01/app/oracle/Oracle/Middleware/oracle_common/common/wlst/mdsWLSTCommands.py", line 268, in importMetadata
File "/u01/app/oracle/Oracle/Middleware/oracle_common/common/wlst/mdsWLSTCommands.py", line 733, in executeAppRuntimeMBeanOperation
File "/u01/app/oracle/Oracle/Middleware/oracle_common/common/wlst/mdsWLSTCommands.py", line 996, in saveStackAndRaiseException
WLSTException: java.lang.SecurityException: MBean operation access denied.
MBean: oracle.mds.lcm:name=MDSAppRuntime,type=MDSAppRuntime,Application=OIMMetadata,ApplicationVersion=11.1.1.3.0
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.
Regards,
Avijit. -
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"
Else
strField2 = "Network N/A"
End If
TBService = strField
Else
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
Hi,
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.
ERROR:
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
cnss.open "Provider=OraOLEDB.Oracle.1;Data Source= FDMDB;Database= FDMDB;User ID= FDM;Password= xxxx"
'Create query string
strSQL = "Select ACCOUNT,ENTITY,AMOUNT FROM BALANCES"
'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.AddNew
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
rsAppend.Update
rs.movenext
Loop
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:
cnss.open "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 PMI 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 -
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
Thanks
Sak
Edited by: user12292415 on Feb 26, 2012 1:19 AMHello,
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.
Regards,
AniketMigration 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?Hi,
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
elseif
/: NEW-PAGE
endif
so it means if condition is satisfied your new page will not work.. else it will...
Hope you got it...
Try this..
Best luck..
Regs,
Lokesh. -
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.Hi,
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.
Thanks
Rashi -
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
RegardsHello,
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. -
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:
http://docs.oracle.com/cd/E17236_01/epm.1112/fdm_admin.pdf
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.
Regards,
John A. Booth
http://www.metavero.com -
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: http://forums.adobe.com/message/4079869#4079869
To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4079869#4079869. 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 http://forums.adobe.com/message/2936746#2936746. -
Automate Import integration script
Hi,
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 advanceHi,
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
Regards -
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?
Hello,
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
-
How do i share my itunes account with a second computer
how do i share my itunes account with another computer in my home?
-
My Macbook Pro (2010, 10.9.5) turns off by itself randomly
Hi all My Macbook Pro (mid 2010, 2.53 GHz, ram 4GB, Intel Core i5, Mac OS 10.9.5) turns off randomly while I am working. The screen turns black and I get a message that my "mac was turned off due to a problem". It turns on again and all seems normal.
-
Generate reports in PDF or EXCEL from Web App...
Hello, I have to generate some reports from data base using web APP on Java, these reports with few generation criteria must be in PDF format and EXCEL format (both), someone knows a tool with which I can generate them? Best regards.
-
Why have I lost all my payed for in app's when I had to reset my iPod.
Have spent over a £10 and lost the lot. Did back up but still lost the lot. Can anyone help.
-
OIM + OAM .. best approach of implementation
Hi There, We have two sets of users, one in MS - AD and one in SUN LDAP.. Both users, access two applications, App1 and App2 App1 authenticates MS - AD App2 authenticates SUN LDAP What is the best approach for Single Sign ON to such use - case ? appr