Import script API

Hi guys,.

Here's my question! If we know, we CN can't use API in the import scripts, is possible to use the API in the import scripts? :)

Without using the API in the import scripts, how can you call a script in another script or in the same script? (using functions such as fImportScripts, etc.)

Thank you in advance!

I have no problem understanding of your question. However the sentence key in my answer was that you'll get better answers if you ask specific questions. The reason why I ask you to be specific, it's I know WHY you want to use the API in a script to import, I might be able to make suggestions how to solve for your needs by going in a different way.

I want to help you, but I need something concrete to go.

On the issue of the API, you ask:

Well, I guess the general answer is no. The purpose of the API is out of context when executing an import script. I imagine that this prevents users to code something when you import that would cause FDM to tangle itself by allowing direct access to the data and runtime objects. Whatever the reason, it's the way THAT FDM is designed, and you need the code within this design in order to get help. It is a long journey around the same answer I gave you earlier.

However, the second part of your question, can call you other scripts of the import script: Yes, absolutely. You can start the process too.

Kind regards
Robb Salzman

Tags: Business Intelligence

Similar Questions

  • Error of the API in the import script

    I'm trying to concatenate the result of a search of the dimension on the string of the source account. I have attached the script below to the account dimension in the import format using a data pump import script.
    ____________________________
    ' Function CCRule (strField, strRecord)

    Dim StrCC

    StrCC = (DW. Utilities.fParseString(strRecord,8,3,","))

    If StrCC = "" then "

    CCRule = StrField

    On the other

    StrField = CCRule + '_' + API. SqlMgr.fMapItemLookup(800,"UD5",StrCC)

    End If
    End Function
    _______________________________________________________


    When I run this script I get the error "object required «API"»

    Please let me know your thoughts on what I'm doing wrong here.

    Thank you

    the only thing I want to point out is to look at the performance of this. There are ways to do better if it is 'no '.

    Also, if she answered your problem do not hesitate to award points. If I get 1000 points do I get free a slinky or something. :-)

  • About import external API?

    How to import external API in jde? can work well in all os?

    The file as APS: src.com.util... outerapi.javas tools.javas...

    To import the external api, you must follow the steps:

    1. create a new project

    2. Add the jar file if you have to this project

    3. set this project as the library project type.

    4 Add the dependency to this library project in your application.

  • Using .split on an import script with a comma delimited data file

    Hi everyone-

    Any attempt to create a script to import amount field to remove the apostrophes (') of a description field to account in a .csv data import file (any folder with an apostrophe will be rejected during the import phase).  Now if it was a file delimited by semicolons (or other separators and more by commas), I could remove all the apostrophes recording with a string.replace command, then return the amount with a command of string.split.  Unfortunately, there is a problem with this solution when using comma delimiters. My data file is comma-delimited .csv file with several amount fields that have commas in them.   Even if the fields are surrounded in quotes, the .split ignores the quotes and treats the commas in fields amount as delimiters.  Therefore, the script does not return the correct amount field.

    Here is an example of a record of reference data:

    "", "0300-100000", "description of the account with an apostrophe ' ', '$1 000.00",' $1 000.00 "," $1 000.00 ","$1 000.00"," $1 000,00 "" "

    My goal is to remove the apostrophes from field 3 and return the amount in field 8.

    Some things to note:

    • If possible, I would like to keep this as an import script for amounted to simplify administration - but am willing to undertake the event script BefImport if this is the only option or more frank than the import script-based solution.
    • I tried using regular expressions, as seems to be conceptually the simplest option to respect the quotes as escape character, but think that I am not implementing properly and impossible to find examples of regex for FDMEE.
    • I know that we cannot use the jython csv on import the script by Francisco blog post - fishing with FDMEE: import scripts do not use the same version of Jython as event/Custom scripts (PSU510). This may be a factor to go with a script of the event instead.
    • It's probably a little more engineering solution, but I have considered trying to write a script to determine where to start all the quotes and the end.  Assuming that there are no quotation marks on the inside of my description of account (or I could remove them before that), I could then use the positioning of the quotes to remove commas inside those positions - leaving the commas for the delimiters as is.  I could then use the .split as the description/amount fields have no commas.  I think it may be better to create a script of the event rather than down this solution from the point of view to keep administration as simple as possible
    • Yes, we could do a search and replace in the excel file to remove the apostrophes before import, but it's no fun

    Thanks for any advice or input!

    Dan

    Hi Dan,.

    If your line is delimited by comma and quote qualified, you can consider the delimiter as QuoteCommaQuote or ', ' because it comes between each field.  Think about it like that, then simply divided by this value:

    split("\",\"")

    Here's something I put together in Eclipse:

    '''

    Created on Aug 26, 2014

    @author: robb salzmann

    '''

    import re

    strRecord = "\"\",\"0300-100000\",\"Account description with an apostrophe ' \",\"$1,000.00\",\"$1,000.00\",\"$1,000.00\",\"$1,001.00\",\"$1,002.00\""

    strFields = strRecord.split("\",\"")

    strDescriptionWithoutApos =  strFields[2].replace("'", "")   'remove the apostrophe

    strAmountInLastCol = strFields[-1:].replace("\"", "")        'You'll need to strip off the last quote from the last field

    print strDescriptionWithoutApos

    print strAmountInLastCol

    Account with an apostrophe description

    ' $1 002,00

  • Error using DW import script. Utilities.fParseString: Type mismatch: 'CLng.

    Is it possible to use CLng FDM import Scripts to convert a String data type to a Long data type, so that it can be evaluated numerically? Currently, I get the following error:

    Error:
    "Error: an error occurred importing the file."
    Detail: Type mismatch: 'CLng.
    Online: 13 "


    Script:
    Function TBNetwork (strField, strRecord)

    Dim Inga
    Inga = CLng (DW. Utilities.fParseString (strRecord, 8, 3, ","))

    If Inga > 62100 then
    TBNetwork = "Greater".
    On the other
    TBNetwork = "lower to."
    End If

    End Function


    CSV data file:
    Field1, Field2, Field3, Field4 sphere5, case Field6, Field7, Field8
    101, B1000, 62100, L0000, 401, C00001, IY002, '-10,000,000.00.
    101, B1000, 62100, L0000, 401, C00002, IY003, '-6,646,939.00 '.
    101, B1000, 62100, L0000, 401, C00003, IY004, '-55,100,000.00 '.

    Published by: Jubei on May 4, 2012 15:02

    What is the header line?

    Try

    Function TBNetwork (strField, strRecord)

    Dim Inga
    Inga = DW. Utilities.fParseString (strRecord, 8, 3, ',')

    If IsNumeric (Inga) then
    If CLng (Inga) > 62100 then
    TBNetwork = "Greater".
    On the other
    TBNetwork = "lower to."
    End If
    On the other
    RES. PblnSkip = True
    End If
    End Function

  • Group of simple logic to operate before the custom import script?

    Hi all

    Thank you for taking the time to read my question. I gladly mark this thread as helpful or reply if you can help me. I am a novice to FDM so please keep with.

    I have a script to import custom that PKI none assigns to a specific account (substituting any detail PKI). However, now I need the detail of PKI for this account in a second statistical account. I have set up a group of simple logic to create the account of logic that I can map on statistics, but then realizes that the import script runs before the logical group so I lose all details of PKI in the account of the logic as well.

    Is it possible to repeat the logical group before importing the script or is there a better way to accomplish what I'm doing?

    I don't know how critical it is, but I'm using FDM v11.1.1.3.01 adapter 11 x-G5-C

    Published by: user4591089 on August 17, 2011 14:10

    Published by: user4591089 on August 17, 2011 14:50

    Follow these steps:

    (1) remove the custom import script.
    (2) create a complex logic account and change the dimension of the PKI in the column with the value [no PIC] group. This will be what is displayed on the screen to import on behalf of this logic.
    (3) map the original source under the statistics account and the account of logic as the case

    Published by: SH on August 18, 2011 09:48

  • Use target category and period of FDM import script

    Hi all


    I write an import script where I want to validate that the target of the period and the target category are filled in the tables of control for the selected perspective.

    Export action, I can use the strTper and the strTCat, but I need to check in the event script ImportAction.

    Someone at - it a suggestion how to find these values?

    Thanks in advance,

    Marc

    Res.pstrper, res.pstrcat to get the pov element.

    For members of the target, use the accelerator.

  • Circumvention of the Import/Export API?

    Hello

    I want to generate a pl/sql procedure to perform export and import (not datapump) table!
    It appeas that Such a thing doesn't exist.
    Or
    I don't know it. Can anybody help me to find it or shows me a similar workaround ?
    Thanks and greetings

    hqt200475

    Hello

    I want to generate a pl/sql procedure to perform export and import (not datapump) table!

    Original Export/import is not API.

    If you intend to launch Original Import/Export of PL/SQL. I think you can use the DBMS_SCHEDULER that allow you to run Scripts a BONE (which could run the export / import of orders).

    There are other ways detailed below:

    http://www.orafaq.com/wiki/PL/SQL_FAQ#Can_one_execute_an_operating_system_command_from_PL.2FSQL.3f

    However, I think you should rather use DATAPUMP as all of the API are already built for this utility. More on the original export/import is deprecated in current releases.

    Hope this helps.
    Best regards
    Jean Valentine

  • Import script and merging of multiple Excel worksheets

    I use a script written by NOR supported for import and merge multiple Excel worksheets. This works when importing data in the format, so that the script has been designed. The data format has now changed with a new added to the right column. This new column is now only the first worksheet, but the script still matter the rest of the data correctly if I move another column across.

    How can I import data from Excel and merge while keeping in sync?

    Please find the attached script. Thank you very much.


  • problem with fdmContext ["PERNAME"] in the import script

    Hello

    I am struggling to understand why the following script returns an empty when string assigned to a dimension in an import format.

    def Parse_Period (strfield, strrec):

    sPeriod = fdmContext ["PERIODNAME"]

    return sPeriod

    I tried several combinations of the variable without joy fdmContext (LOCNAME, PERIODKEY, etc.). I also noticed that there is a discrepancy between the Oracle EPRI_Admin_11.1.2.3.510 guide and scripts used in the forums. the guide uses fdmContext ["LOCNAME"] while the forums seem to have success with fdmContext ["LOCNAME"]

    Thank you

    KM

    Hi KM.

    You can try to add this line in your script:

    fdmAPI.logInfo (', '.join (map (str, fdmContext.values ()))

    and see in your log file if you have any value at all in fdmContext.

    You must also include the content of your log file, it might help.

    Julien

  • by aligning import script files or plugins...

    Is there an easy way to randomize imports files in markers in after effects comps automatically, some kind script or plugin and if not how to create one?

    Steven l. Götzpreditorj40153117inactiveforumnotifier thanks in advance

    This looks more like a special edition. After Effects are not for editing. Use of Premiere Pro. There even an automaton of command sequence such as described here: using Adobe Premiere Pro | Add clips to sequences and in this tutorial.

    If you then use the change that results in AE, you can use the command import Premiere Pro sequence in After Effects.

    If you really want to work in only AE, you might look http://aescripts.com/automate-to-sequence/ that mimics the Premiere Pro command. (There is also http://aescripts.com/rift/, but I don't know if it does what you want).

  • Import script

    Hello

    I would ask you whether it is possible import a script to another and calling her features?

    Thanks Domaneni

    I advise to use $.evalFile. You can also use//@include. evalFile has the advantage of being able to use cross platform paths. For example from Photomerge.jsx

    var g_StackScriptFolderPath = app.path + ' / ' + localize("$$$/ScriptingSupport/InstalledScripts=Presets/Scripts") + ' / '.

    + Locate ("$$$ / private/Exposuremerge/StackScriptOnly = stack Scripts only /");

    $.evalFile (g_StackScriptFolderPath + "LatteUI.jsx");

  • To group the existing objects by using script API?

    Am I missing something, or is at - it no way to group the existing objects using the api script? You can add GroupItems (), but that does not help you with existing objects.

    You have probably not to duplicate the element, which is just how the examples have been written.

    Looking at the code, try to change this:

    newItem = docSelection [i] .duplicate ();

    newItem.moveToBeginning (newGroup)

    to do this:

    docSelection [i] .moveToBeginning (newGroup)

  • FDM 11.1.2 integration Import script error for strWorkTableName

    Hello

    I'm under FDM 11.1.2 with Essbase adapter connection ES11X-G4-G to Essbase 11.1.2.
    Try to use the import integration script directly query a Microsoft SQL 2008 database.
    Excerpt from script:
    _________________________________________________________________
    Function SQLImport (lngCatKey, dblPerKey, strLoc, strWorkTableName)

    Dim cnss
    Dim rs
    Dim rsAppend
    Dim DBLocation
    Dim DBList
    Dim SA
    Dim SApswd
    Dim strCNSS
    Dim strSQL
    Dim DateConvString

    Define the cnss = CreateObject ("ADODB. Connection")
    Set rs = CreateObject ("ADODB. Recordset')
    Set rsAppend = DW. DataAccess.farsTable (strWorkTableName)
    ...
    _________________________________________________________________

    When I run the script via the Script on the Web Editor, I get:

    Error: An error occurred while running the script:
    -2147217865-data access error.
    Online: 25

    Line 25: Set rsAppend = DW. DataAccess.farsTable (strWorkTableName)

    What is straight out of the guide of the administrator, hency my dilemma...

    In addition, the error log contains the following error message:
    * Start the journal entry for the Runtime Error FDM [2010-07-23 12:48:54] *.
    -------------------------------------------------------------
    ERROR:
    Code...-2147217865
    Description... Table does not exist.

    Process... clsDataAccess.farsTable
    The component... upsWDataWindowDM
    Version.......................................... 1112
    Thread........................................... 6620

    IDENTIFICATION:
    User............................................. XXXX
    Name of the computer... XXXX
    App Name......................................... XXXX
    Client App....................................... WebClient

    CONNECTION:
    Provider......................................... SQLOLEDB
    Database server... XXXX
    Name of the database... XXXX
    Trust connect... Fake
    Connect status... Open connection

    GLOBALS:
    Location......................................... XXXX
    Location ID... 749
    Location Seg... 3
    Category......................................... REAL
    ID of the category... 12
    Period... - Sept - 2009
    Period ID........................................ 09/30/2009
    POV Local........................................ True
    Language......................................... 1033
    User Level....................................... 1
    All Partitions... True
    Is Auditor....................................... Fake

    No idea on the cause? Maybe something with the FDM installation.
    Thank you in advance for your help!

    Adam

    Have you by chance tried to run the Workbench or the script of the web editor? If so, he would miss that the work table is not created until the import step is initialized.

  • Specifying the parameters open PDF in Word import script

    I have created a number of URL to a Word document that open to a specific page only. in format PDF files for example http://www.adhc.nsw.gov.au/__data/assets/file/0008/228194/HomeModificationGuidelines.pdf#p age = 4

    The function of parameters as expected when opened directly in the Word document, but after importing and publishing v9 HR, parameterized URLS are completely ignored in the browser (Internet Explorer).

    If I add the URL via HR directly, they are OK, however, I have to keep the source in Word format.  Anyone know if there is a limitation in the context of the word is important to HR or am I missing the point somewhere along the way? I searched high and low for an answer and praying that there could be a solution or workaround!

    Thanks in advance...

    Wilan

    I have been informed by the Adobe support is currently not possible to import a document Word with PDF open parameters in a URL, for example http://example.org/doc.pdf#page=3 .  I'm not sure if this applies also to the referencing a destination named in a PDF also.  Adobe engineers will continue the investigation.

Maybe you are looking for