How to switch the input of command in the DAL script parameter

Hello guys,.

I want to pass the name to extract xml (one of the input for the batch of documaker parameter) to one of my trigger DAL.

I plan to use the Ext2GVM function for this. I need to know the syntax of the following parameters:

Say-exporter variable XMLNAME am for the batch.


(1) what should be of syntax for the AFGJOB file

Is this correct-> ; Ext2Gvm; 2; ParameterName = ~ GETENV XMLNAME ;

(2) what should be my entry in the trndfdfl. DFD

Is this correct->

< FIELD: parametername>

EXT_LENGTH = 21

EXT_TYPE = CHAR_ARRAY_NO_NULL_TERM

INT_LENGTH = 20

INT_TYPE = CHAR_ARRAY

KEY = O

REQUIRED = Y

FIELDNAME = parametername


(3) is it necessary to go into details as < Trn_Fields > in the ini files?

If so, please help me with sytnax


(4) final, how can I call this variable in the script DAL ?

Is this-> OK

Metafilename = GVM ('parametername')


Thank you


I reformulerai what I think you do.

You have a file name that you want to reference it in a script DAL. This file is NOT the snippet file should be able to use in the creation and mapping of your transactional data, but a few additional files that you expect to process directly from DAL.

If this is correct, two possibilities come to mind.

1. assuming it's a file that you can copy using your linux script, copy the file to a consistent name. Your script DAL can then use the code name hard you still copied.

2. a method that does not have a copy of the file would require that you create an environment variable of the linux script that contains the name of the file passed. In your INI, you must define your own INI, something like this:

Filename = ~ GetEnv MyExternalFile

The DAL script would do this to get the name:

xmlFileName = GetINIString ("MyINIGroup", "Filename");

When DAL is requesting the INI value, see the logic underlying the ~ GetEnv which is a built-in function to get the environment variable named following. So if you have assigned your script linux environment variables, the name going through now and DAL has a way to get it.

(Note there is no magic in the name of the INI option or group or the name of variable environment you choose to use.) The magic is to use the ~ GetEnv to retrieve the value of the environment when the option is requested.)

Second note, the GetINIString function has an optional first parameter to name a context INI. In this case, I do not pretend that you use this setting. Just include a comma to indicate that the first parameter is omitted.)

Tags: Oracle Applications

Similar Questions

  • XMLFIND in the DAL script

    Hello

    I have some problems with the xmlfind function in the DAL scripts.  Find a Gendata crashes whenever I run and I've tried several different combinations of xml:

    It is a part of the xml file:

    <>activities

    < activitiesList >

    < code > < code > 801240

    Football < secondActivity > < / secondActivity >

    < name > John < / name >

    < / activitiesList >

    < activitiesList >

    < code > < code > 801116

    Basketball < secondActivity > < / secondActivity >

    < name > Adam < / name >

    < / activitiesList >

    < activitiesList >

    < code > < code > 801410

    shotput < secondActivity > < / secondActivity >

    < name > Claire < / name >

    < / activitiesList >

    < / activities >

    XMLFIND:

    % listH = LoadXMLlist ("activities.xml");

    % textList is xmlfind (listH %, 'activities', 'activitiesList');.

    I used isxmlerror to check if listH % is valid and he did return 1.  My problem is with xmlfind and gendata crashing before it can display an error message.  I would appreciate any help on this matter.

    Thank you.

    P.S. I read the DAL_book.  Nothing helps.

    Hello

    I get this method.  I don't think that this is the issue, I tried the method extract % and it worked on the first try.  So, I understand.  Thanks for your help.

  • How to activate the vb script

    I'm trying to install the software for a usb graphics adapter, and I get the message that it can not install because the VB Script is not enabled. Help please!

    Hi SheilaBest,

    1. did you of recent changes on the computer?

    2. what software you are trying to install on the computer?

    3. are you able to install all other software on the computer?

    Method 1

    Try the step below and then try to install the software, check if it helps

    (a) in the Start menu, type cmd in the search field.

    (b) with the right button on cmd in the list of search results and click on run as administrator from the context menu. If Windows needs your permission to continue, click on continue. (If you are not connected as long as administrator, you will need to authenticate with an administrator account and the password).

    (c) in the command prompt window, enter the following command:

    regsvr32 vbscript.dll

    Method 2

    If the previous step fails then I suggest that scan you SFC on the computer that would be a system file corrupt on the computer search and replace.

    The analysis may take some time, so be patient. Windows allows to fix corrupt or missing files it finds. If the information of the installation CD is required to fix the problem, you may be asked to insert your Windows Vista installation CD.

    For more information please visit the link below.

    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7

    http://support.Microsoft.com/kb/929833

  • question about how to combine the two scripts.


    Hello

    I have a sql script that can display a table (or view) all the information, it works fine. I call it validate_table.sql, as below:

    command prompt
    accept invites owner "Enter table owner:
    accept invites from TABLE_NAME "Enter object (table/View...) "name:"


    column owner format a10 column 'owner '.
    column format a30 topic 'Object name' object_name
    column object_type format a15 direction "Type of object".
    Status format a10 column titled "Status".
    in the heading of column created format a20 "created."
    the LAST_DDL_TIME format a20, heading 'LAST_DDL_TIME.
    Select
    owner
    object_name
    object_type
    status
    , to_char (created, "DD_MON_YY hh24:mi:ss") created
    LAST_DDL_TIME,
    Of
    DBA_OBJECTS
    where
    object_name = upper ('& table_name') and owner = upper ('& owner');


    command prompt

    prompt -- ----------------------------------------------------------------------- ---

    Guest - table/view structure-

    prompt -- ----------------------------------------------------------------------- ---

    command prompt


    describe and owner... & table table_name

    command prompt

    prompt -- ----------------------------------------------------------------------- ---

    guest - list assigned user/subsidies-

    prompt -- ----------------------------------------------------------------------- ---

    command prompt

    set pagesize 50000
    set linesize 10000
    set verify off
    Set feedback off
    column lvl format A4 direction "Lvl".
    proprietary format of columns A14
    format column in table_name A29
    A38 dealer column format
    column privilege A10 format


    SELECT 'Role' lvl, t.table_name, t.grantee, t.owner, t.privilege
    OF dba_tab_privs t
    WHERE t.grantee IN (SELECT FROM dba_roles role WHERE = role t.grantee) and t.table_name = upper ('& table_name') and t.owner = upper ('& owner')
    UNION
    SELECT 'User' lvl t.table_name, t.grantee, t.owner, t.privilege
    OF dba_tab_privs t
    WHERE t.grantee IN (SELECT username FROM dba_users WHERE username = t.grantee) and t.table_name = upper ('& table_name') and t.owner = upper ('& owner')
    UNION
    SELECT 'Pub' lvl, t.table_name, t.grantee, t.owner, t.privilege
    OF dba_tab_privs t
    WHERE t.grantee = 'PUBLIC' and t.table_name = upper ('& table_name') and t.owner = upper ('& owner')
    ORDER BY 1, 2, 3;

    command prompt

    prompt -- ----------------------------------------------------------------------- ---

    guest - list of synonyms created.

    prompt -- ----------------------------------------------------------------------- ---

    command prompt


    proprietary format of columns A15
    synonym_name A20 column format
    A15 table_owner column format
    format column in table_name A40
    DB_link A40 column format

    Select the owner, synonym_name, table_owner, table_name, DB_link from DBA_synonyms where Table_name = upper ('& table_name') stopped by the owner;


    command prompt

    prompt -- ----------------------------------------------------------------------- ---

    guest - list index created-

    prompt -- ----------------------------------------------------------------------- ---

    command prompt

    Select
    table-name
    index_name
    index_type
    nom_tablespace
    status
    of DBA_indexes
    WHERE table_name = upper ('& table_name') and owner = upper ('& owner')
    order of table_name, index_name;


    command prompt

    prompt -- ----------------------------------------------------------------------- ---

    guest - list of constraints-

    prompt -- ----------------------------------------------------------------------- ---

    command prompt

    format column in table_name A15
    format of column cons_type A15
    cons_name A20 column format
    check_cons A25 column format
    VALIDATED A20 column format
    column status A10 format
    last_change A20 column format

    Select
    table-name
    (case constraint_type
    When 'P', then 'Primary Key '.
    When 'R' then 'Foreign Key'
    When 'C' then 'check '.
    When 'U' then 'single '.
    When 'o' then 'read only display '.
    When 'V' then 'check the view. "
    When 'H' then 'Hash expression. "
    When 'F' then 'REF column.
    When the of ' then 'additional logging.
    cons_type end)
    constraint_name cons_name
    condition_de_recherche check_cons
    status
    VALID
    last_change
    of dba_constraints
    where owner = upper ('& owner')
    and table_name = upper ('& table_name')
    order of cons_type;

    I have another script that allows to display the newly created tables (table, table names) in the last 24 hours.

    SET SERVEROUTPUT ON;

    DECLARE

    CURSOR tmp_cur IS

    SELECT master, object_name

    FROM dba_objects

    WHERE object_type in ('TABLE', 'SEE') and the owner not in ('SYS', 'SYSTEM', 'GENERAL', "XDB", "OUTLN", "SYSMAN") and last_ddl_time > sysdate - 1;

    tmp_rec tmp_cur % ROWTYPE;

    BEGIN

    FOR tmp_rec IN tmp_cur LOOP

    DBMS_OUTPUT. PUT_LINE)

    tmp_rec. Owner | ' ' || tmp_rec.object_name);

    END LOOP;

    END;

    /

    The gap of the first script (validate_table.sql) is that it can only check table one by one by manual entry, then how can I combine these two scripts, to make a scipt that can check all newly created tables (not a table) in the last 24 hours?

    I thank very you much in advance!

    Hello

    If you already know how to find the owner and all the tables created table_name recently.  One thing you can do is to change all the WHERE clauses in validate_table.sql, so instead of things like

    where object_name = upper ('& table_name') and owner = upper('&owner');

    you say

    WHERE (owner, object_name) IN

    (

    SELECT master, object_name

    FROM dba_objects

    WHERE object_type in ('TABLE', 'SEE')

    AND owner NOT IN ('SYS', 'SYSTEM', 'GENERAL', "XDB", "OUTLN", "SYSMAN")

    AND last_ddl_time > SYSDATE - 1

    )

    ;

    Here is another approach:

    Validate_table. SQL is quite handy as it is.  You may want to run this script for tables, even when you know that they are not new.  Divide into 2 scripts: one called ask_and_describe_table.sql, which looks like this:

    -Ask_and_Describe_Table.sql

    accept invites owner "Enter table owner:

    accept invites from TABLE_NAME "Enter object (table/View...) "name:"

    -You can use any name path instead of d:\some_dir below:

    @d:\some_dir\describe_table & owner, table_name

    and the other one called Describe_Table.sql, which starts like this:

    -Describe_Table.sql

    DEFINE owner = & 1

    DEFINE table_name = & 2

    column owner format a10 column 'owner '.

    ...

    and continues with the same exact content as validate_table.sql.

    Now, to write another script (I'll call it Describe_Recent_Tables.sql):

    -Describe_Recent_Tables.sql - create and run Describe_Many_Tables.sql

    -Turn OFF the devices designed to help people to read the output:

    SET ECHO OFF

    SET FEEDBACK OFF

    SET PAGESIZE 0

    VERRIFY OFF SET

    -Create a Describe_Many_Tables.sql:

    COIL d:\some_dir\describe_many_tables.sql

    SELECT ' @d:\some_dir\describe_table '

    ||      owner

    ||      '  '

    ||      object_name

    FROM dba_objects

    WHERE object_type in ('TABLE', 'SEE')

    AND owner NOT IN ('SYS', 'SYSTEM', 'GENERAL', "XDB", "OUTLN", "SYSMAN")

    AND last_ddl_time > SYSDATE - 1;

    SPOOL OFF

    -Features lighting designed to help people to read the output:

    SET ECHO ON

    SET FEEDBACK ON

    SET PAGESIZE 50

    SET VERRIFY ON

    -Describe_Many_Tables.sql performance

    @d:\some_dir\describe_many_tables

    I guess that all of your tables have standard names (for example, start with a letter, no spaces in the name,...), which don't require quotation marks.  If they could, then the same basic approach will work, but the details are a little messier.

    When you want to see the information on a single table or view, no matter how old it is, driven

    Ask_and_Describe_Table

    or, if you do not need to question the owner of the table and the name, something like

    Describe_Table SCOTT EMP

    (You can find that you really need not Ask_and_Describe_Table.sql).

    When you want to do this for all the tables created in the last 24 hours:

    Describe_Recent_Tables

  • How to pass the encrypted script Python DB pwd

    Hello

    I'm trying to set up a domain using the python script.

    The script looks as follows:

    CD (' JDBCSystemResource/MYConnectionPool/JdbcResource/MyConnectionPool')
    Create ('myJdbcDriverParams', 'JDBCDriverParams')
    CD (' JDBCDriverParams/NO_NAME_0')
    Set('DriverName','oracle.) JDBC. OracleDriver')
    Set ('URL', OS.environ ['DATASERVER_DB_URL'])
    together ('PasswordEncrypted', "user1")

    I hard code the password as "user1" in the script. While I want to encode the password in the script as it might be different in the production environment.

    I would like to encrypt the pwd and put in a file and reference the file here in the script. Reference this file can be stored in a variable env and then passed to the script as follows:

    Set ('PasswordEncrypted', os.environ ['DATASERVER_DB_PWD'])

    Can someone help me to find out how to encrypt the pwd and how I pass to the python script.

    Thank you
    Shalini

    Hello

    NOTE: If you enter a wrong password encrypted in the WLST script.. then it won't be visible in the AdminConsole...

    I understood what mistake you made. You could have the script WLST My pasted into your Machine directly and did not replace the pssword Encrypted (or maybe a few got wrong characters included in encrypted password by replacing in the WLST script ) with your own encrypted at heart... This is why you don't see any password in the password TextField... I m able to reproduce the same thing at my end... .with the same error.

    Please try this...

    Step 1). Open a Shell prompt...

    Step 2). Move inside your root directory of the domain, and then run * "setDomainEnv.sh" *.
    Example:
    C:\bea\user_projects\domains\base_domain\bin

    Step 3). Since your domain root directory, run the following command:

    Example:
    C:\bea\user_projects\domains\base_domain>Java weblogic.security.Encrypt PBPUBLIC
    4NT9WiBG7MXYBiEteLogvA {3DES} is

    Step 4). Now, change this value encrypted in the My WLST script...

    Step5). Now, run the WLST Script to create the data source.

    .
    .
    Thank you
    Jay SenSharma

  • How to enable the Java Script function in APEX 4.2.6 running on the result of an Xquery query.

    How to take a SQL query result in the source section of an APEX "agenda of the page" field and allow this request to be formatted using XML in an HTML format for a Java Script file to perform a function on the result?

    Currently I have the following text:

    To query the DB table and format the result as HTML:

    SELECT XMLELEMENT ("UL id ="ticker01"', XMLAGG (XMLFOREST (Scroll_Mess AS LI))") "item UL' OF Web_Ticker where Mess_Id < 10 order by Mess_Id;


    That displays the following:


    < UL id = "ticker01" > < LI > HELLO < /LI > < LI > HELLO < /LI > < /UL id = "ticker01" >

    I need the output of this to be visible to a JScript function that is currently called the "head of page", but there doesn't seem to be its scope? The function works correctly if there is a list in the page field items 'Text element Pre' but does not work correctly when used in conjunction with the query to generate a table form.

    If everyone is happy to help I would be grateful .

    James.

    Solved!

    In order for the request to be part of the DOM of the page of the APEX, the Java Script allows to perform its function on the result marked "HTML" to query, you must set page of the apex on which the query resides and then add the inner text of this page to a second variable for which the function of web ticker can run on as follows:

    $(function() {})

    var x = $("#P9_TICKER_DATA");

    var y = x [0] .innerText;

    x.Append (y);

    $("UL#ticker01").liScroll ();

    });

    From there, on the Java script is able to properly see the result of the query in HTML format.

  • How to wear the formhandler query parameter in jsp

    I know that its very stupid question, but I don't get a query parameter. I don't know what mistake I make.

    Here is my code snippet:

    I created a formhandler


    LoginFormHandler.java

    public boolean handleLogin (request, response DynamoHttpServletResponse DynamoHttpServletRequest)

    throws IOException, ServletException {}

    Here the value of the user ID is available I checked using DD

    request.setParameter ("userId", username);

    handleFlag = checkFormRedirect (getCreateSuccessURL (), getCreateFailureURL(), request, response);

    in CreateSuccessURL it redirects to LoginSuccess.jsp

    LoginSuccess.jsp

    < %

    DynamoHttpServletRequest drequest = ServletUtil.getDynamoRequest (request);

    % >

    value: < %=drequest.getParameter("userId") % >

    Once that LoginSuccess.jsp the display is showing the value null of userId

    Please let me know how to wear the setting the Manager of jsp.

    Application settings will be lost in the success page because the formhandler send a redirect to the success page.

    It will be new demand for the success page.

    As suggested, or you will need to put this in formhandler, or cookie or in the url

    Peace

    Shaik

  • How to use the transformation script to add columns to the PK?

    I'm working on a script transformation that:
    -create a table
    -Adds the columns to the table
    -create a primary key for the table

    See the below script.
    Now, I want to add the primary key column.
    Documentation fix r: class IndexColumnUsage

    The Index of the class has a getter: getIndexColumnUsageList()
    and the list apply: applyIndexColumnUsageList

    Someone at - it an idea how to use these methods to add the column to the PK?

    I thank in advance.


    relational = model.getDesign () .getFirstOpenRelationalDesign ();
    table = relational.getTableSet () .createTable (null);
    table.setName ("TABLE");
    column = table.createColumn (null);
    column.setName ("COLUMN");
    index = table.createIndex (null);
    index.setName ("PK");
    index.setIndexState ("primary obligation");

    Hello

    If you have the column and index (both belonging to the same table) use:

    the index. Add (Column);

    to remove the column:

    the index. Remove (Column)

    Philippe

  • How to use the Date range parameter.

    Dear all,

    In the human resources Module, I developed a leave leave of synthesis report that gathers data from employees on.

    The end user will pass the parameter of date_start and date_end.

    The question is, if an employee only e-123 takes leave of 22 July 2013 to August 10, 2013

    and the user passes the parameter for the month of July date_start = 1 July 2013 "and date_end = July 31, 2013" for the sub condition

    "AND TRUNC (Pab.DATE_START) > =: Date_START - July 1, 2013.

    "AND TRUNC (Pab.DATE_END) < =: Date_END - July 31, 2013.

    Emp E-123 appears in the report.

    But if the user passes the parameter of the month August 1 August 2013 ", 31 August 2013", EMP - 123 does not...

    Please suggest how to write the condition he can for all conditions.

    Kind regards

    Afzal.

    Hello

    OR condition is to be enclosed with parentheses.

    If place you within the parenthesis, then take no time to deal with.

  • How to make the button script in Illustrator?

    Dear all,

    Recently, I always use Illustrator 2 free, script text are: "joinTextFrames" & "divideTextFrame".

    but I lost a lot of step to do

    for example, click: 1. Select text-> 2. File-> 3. Script-> 4. Another script-> load a script

    Fastest way-> Ctrl + F12-> load a script

    But now I want to do is the key 2 'joinTextFrames' & 'divideTextFrame '. The same way "mode button" in stock for faster work.

    How to make or solution to make? I really need it for my work.

    Thanks for your help.

    Save your scripts folder in the scripts, like that they'll show in the file-> Scripts Menu. Then, save the two actions to run each script, each gives a shortcut key (i.e. & F3 F2) or run the Mode button if you want to.

    Note that you need to re - register the action every time that you restart illustrator.

  • How to write the Java script to reference the 1st page 2nd page text field?

    Hello

    I'm developing an interactive form of VISITOR info with webdynpro ABAP, his as well as 2 pages. Their hierarchy is,

    VISITOR_form
        |
        |
        |------Page_1
        |            |
        |            |
        |            |------Text_Field_A_1
        |            |
        |            |------Text_Field_A_2
        |
        |------Page_2
                     |
                     |
                     |------Text_Field_B_1
                     |
                     |------Text_Field_B_2
    

    Now, I chose the 'Text_Field_B_1' of page_2 and write the script Java, my requirement is; If Page_1's ' Text_Field_A_2' is set to 'Value_ABCD', THEN the 'Text_Field_B_1' of page_2 should be 'readOnly '. Pls let me know WHT is the Java script for this requirement?

    If (xfa.event.newText == "ABCD)."
    {

    VISITOR_form. Page_2.Text_FieldB_1.access = "readOnly";

    }

    Put the script on the Text_FieldA_2 change event

  • Satellite Pro U400-18 s - how to switch the display to TV?

    I recently had a Satellite Pro U400-18 s and I am trying to connect it to my TV. The laptop has only a VGA port and my TV has RCA, S-Video, HDMI and SCART taken. I bought a vga s-video cable, but I am unable to get a picture on the TV.

    This is because the laptop only shows the lowest resolution of 800 x 600?
    Is there a way to lower the resolution of some how that I didn't think?
    I checked and I am running the latest drivers for the graphics card intel?

    Hello

    When you want to connect your laptop to the TV, do the follow-up:
    Connect the cable
    Activate the port S-video on the TV (TV feature how to do)
    FN + F5 key combination to switch to a laptop LCD and TV

    Please let me know if everything is OK or you still have the same problem.

  • How to switch the color to black and white photos

    I can't understand how to use Paint in windows 7... what I try to do is to pass a color black and white photo, please help me by telling me step by step what to do.

    Windows live photos did that ability on its edition tab section, in its effects options.

    I would add that it is almost to easy :)

    Select the photo and right click on and select Edit, click the edit tab section and there are 5 different effects you can put the picture in, select close file when your finished, you can make a copy of the picture first of all you will have both files.

    Your best do in paintings because he has a record under work, something has no wlpg.

  • How to run the powershell script of command with several parameters

    Is there a way to run a powershell script from the dialog box run with several parameters? In addition, the path to the script contains spaces, for example, c:\powershell scripts\script.ps1.

    Take a look at http://www.powershell.nu/2009/12/16/running-scripts-with-arguments-in-powershell/ which explains how to pass arguments to a script.

    André

  • How to switch the setting on the server using serverListener in adf 11 g

    Hi all

    I want to know how to pass a parameter to say client javascript on the server using serverListener. I know I have to use the AdfCustomEvent.queue (source, "serverListenerOpt",
    {}, false). But do not know what is the structure of the parameter and how to get it back on the bean support.


    Thank you

    You are on the right track, in fact, the third parameter of the AdfCustomEvent.queue where you can pass parameters to the server. For example

    say you have this on your page jspx

    .............



    .............

    Your javascript should look like this:

    myClientLstnr = {function (event)}

    AdfCustomEvent.queue (event.getSource (), "sendToServer",
    ({param1: 'val1', param2: val2}, false);
    }

    Your parameter must be a valid json object.

Maybe you are looking for