ODI - refresh a variable from a file field

Hi,
Is it possible to refresh directly a ODI variable from value stored in a file ? I find a workaround by loading the file into a temp table, and then make a variable refresh, but this solution is not good for me.
Any other idea ?
Thanks,
JP

http://odiexperts.com/how-to-refresh-odi-variables-from-file-%E2%80%93-part-1-%E2%80%93-just-one-value
gives you the step for refreshing variable from file

Similar Messages

  • Populate a table from a file field

    hi guys im having headaches acheiving this, basically what i want is the following
    A user can use a file field to browse for a file. Once selected the value will display in the file text field.
    Then i want an add button that when clicked will add the file location to a string variable and display it in a table below. every time a new file is added the table should update.
    Finally on submit all file names should be submitted so that i can use them on another page using getattribute.
    I cant get it to work any help would be appreciated.

    yeah, sorry basically ive created a jsp page and
    inserted the file field and its browsing but im a bt
    stumped as to what to do from there.Whatever it is you have to do, I doubt it has anything to do with Java. I think IE lets you edit a table tag on the fly using Javascript, but otherwise I'm pretty sure you're hosed. Use a text area instead. And go ask at a Javascript forum.

  • Movie refuses to load variables from text file

    Hi,
    I'm sure you can solve my newbie problem in less than 1
    minute...
    I'm pulling my hair out on a template I bought 2 days ago
    from templatemonster.com
    I am using Flash 8 Pro.
    All I want to do is change an existing textfield that is
    Static to Dynamic and load variables from a text file.
    The Action Script I use to do so comes directly from
    Macromedia documentation (see attached)
    It works fine when I create a brand new movie, but doesn't do
    anything when inserted into the template.
    It doesn't even complain about not finding the text file if I
    rename or delete it!
    Here are the FLA and text file:
    Edit : Link to source file removed
    The textfield I would like to change is in the txt2 symbol.
    Here is how I proceed:
    When I open HEADER.FLA, Flash tells me I'm missing a font,
    ok, so I click on Use Default, I'll deal with this later.
    I open up the Movie Explorer, go to Layer 30, go to Frame 75
    and click once on txt2
    I name the instance "myMovie_mc" and save (converts from
    Flash MX to Flash 8)
    I double-click on the Movie Clip, select the word
    "Automobile" on the Stage, change from Static to Dynamic and call
    that instance "myText_txt"
    Still in the Movie Clip, I create a new layer I call
    "actions", and in Frame 1 I copy the attached Action Script:
    This script works when I create a new flash file, but it does
    absolutely nothing in this template.
    I know I'm doing something wrong, but I wonder what?
    Many thanks to any helping soul!
    Ferris.

    try this:
    // Load text as variable and assign it to the
    // dynamic text field
    var features_lv:LoadVars = new LoadVars();
    features_lv.onLoad = onText();
    features_lv.load("safetyFeatures.txt");
    function onText(success:Boolean) {
    if (success) {
    myText_txt.text = features_lv.safetyfeatures;
    } else {
    myText_txt.text = "unable to load text file.";
    or this
    // Load text as variable and assign it to the
    // dynamic text field
    var features_lv:LoadVars = new LoadVars();
    features_lv.onLoad = function(success) {
    if (success) {
    myText_txt.text = features_lv.safetyfeatures;
    } else {
    myText_txt.text = "unable to load text file.";
    features_lv.load("safetyFeatures.txt");

  • Problem accessing variables from java file to JSP page

    Hello Everyone,
    I have small problem accessing my method variables from my java bean file to a JSP page. can some please take a look and tell me why I can't populate my JSP page, I've been trying all day to get this done!!!
    This is my Java file
    package dev;
    import java.io.*;
    import java.util.*;
    public class RoundDetail2
    public String string_gameID;
    public int string_card1;
    public String readDetail_topLayer;
    public static final String SUITS[] = {" ", "Clubs", "Hearts", "Spades", "Diamonds", "Joker", "FaceDown"};
    public static final String VALUES[] = {"Joker ","Ace", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Jack", "Queen", "King"};
    public static final String SuitVALUES[] = {" ","1","2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14"};
    public RoundDetail2() throws FileNotFoundException
    DataInputStream inFile=
                 new DataInputStream(
                    new BufferedInputStream(
                   new FileInputStream("C:/apps/jakarta-tomcat-4.0.6/webapps/ROOT/WEB-INF/classes/dev/Data_452SY2.txt")));
    try { 
                 while((readDetail_topLayer = inFile.readLine()) != null)
              StringTokenizer tokenizer_topLayer = new StringTokenizer(readDetail_topLayer,"\t", true);
                   while  (tokenizer_topLayer.hasMoreTokens())
                        string_gameID = tokenizer_topLayer.nextToken();
         catch(IOException e)
                    System.out.println(e.getMessage());
         Thanks KT

    ......How are you declaring the class in your JSP? ... are you instantiating it as a bean using the useBean tag, or just instantiating it in your code like normal.
    Maybe you could post the relevant JSP code too?
    Hello again,
    Only the last string is populating after the file has be tokenized. What I'll like to accomplish is passing the very first string in the file. I did not get too far in the JSP file setup because the code is still in it's testing stage, but any help will be highly appreciated.
    Here is the JSP code
    <%@page import="dev.*" %>
    <%@page session="true" language="java" import="java.io.*" %>
    <jsp:useBean id="wagerhist" scope="request" class="dev.RoundDetail2" />
    <html>
    <head>
    <title>Round Detail</title>
    <body>
      <table width="530" bordercolor="#000000" valign="top">
        <tr>
              <td align="left"  width="19%">Game ID<%=wagerhist.string_gameID%></td>
              <td align="left"  width="30%">  </td>
              <td align="left"  width="20%">card1</td>
              <td align="left"  width="31%">  </td>
            </tr>
      </table>
    </body>
    </html>

  • Creating Variables From Text File

    Hello a little new to powershell and have banging my head on the wall trying to get this working.
    I have a text file (where the numbers of lines will change everytime) that will contain AD groups. 
    Lets say it looks like this
    GroupA
    GroupB
    GroupC
    I'm trying to you a loop that will read the file and output each new line to a variable so
    var1=GroupA
    Var2 =GroupB
    Var3=Groupc
    My first problem is that non of these can be null since this will be then be used with Add-ADgroupmemeber
    So I have it get the number of items with $Items = get-content *File* | Measure-Object -Line
    After that I have been trying to use a loop which to me looks like it should work however is not. I'm not getting any errors. However I'm not getting any created variables either. 
    For ($i=1; $i -lt $Items.lines; $i++) {
    $var[$i] = (Get-Content *File*)[$i-1]
    write-host $var[$i]}
    In my head I should get a listed of each line of the txt file but I'm getting nothing. 
    In the end I was hoping to doing something along the lines of ADD-Adgroupmember -identity $Var[$i] -members *Machine Name*
    If there is a better way to approach this I'm all ears.
    Thanks for any help!

    You don't need a loop to read each line from the file. You don't need a variable for each group read from the file. 
    For example, if your file looks like:
    GroupA
    GroupB
    GroupC
    with spaces/empty lines in it, that you wish to ignore, you can use:
    $Groups = Get-Content .\groups2.txt | % { ($_.split(" ",[System.StringSplitOptions]::RemoveEmptyEntries)) }
    The $Groups variable will be an array that holds non-empty lines from the file. You can use that directly as in:
    foreach ($Group in (Get-Content .\groups2.txt | % { ($_.split(" ",[System.StringSplitOptions]::RemoveEmptyEntries)) })) {
    Add-ADGroupMember -identity $Group -members *Machine Name*
    Sam Boutros, Senior Consultant, Software Logic, KOP, PA http://superwidgets.wordpress.com (Please take a moment to Vote as Helpful and/or Mark as Answer, where applicable) _________________________________________________________________________________
    Powershell: Learn it before it's an emergency http://technet.microsoft.com/en-us/scriptcenter/powershell.aspx http://technet.microsoft.com/en-us/scriptcenter/dd793612.aspx

  • Refresh a variable from several schemas

    Is it possible to refresh a variable with data from multiple schemas?
    If not, what are the workarounds? The only one I see (apart from dblinking) is to use two variables, refreshing one before refreshing the other.

    hmm..I can think of making the schema as dynamic that is put a variable in place of the schema name in your data server. Same thing for physical schema and take a specific logical schema for this. Now in your package refresh the same variable which will hold the schema name. So in run time this value will be substituted there.
    Test it and let me know.
    Bhabani

  • Loading variable from a file in 7.0 Queries

    Hi All,
    When we run BW 3.x queries through RRMX, we get option to load the variables values via import from file means loading the variables values from a file. Do we have this option available in case of 7.0 queries also as 7.0 queries directly run on portal.
    I know via RSRT, i have that option available for 7.0 queries as well.
    Thanks in advance.
    Sumita.

    Hi,
       Please check out this link. They are requesting to use patch level 14 to the SAP front end.
    Re: Clipboard option in BI7
    Hope this helps for you.
    Thanks,
    Arun.

  • Loading Variable from a file in BI 7.0 queries

    Hi All,
    When we run BW 3.x queries through RRMX, we get option to load the variables values via import from file means loading the variables values from a file. Do we have this option available in case of 7.0 queries also as 7.0 queries directly run on portal.
    I know via RSRT, i have that option available for 7.0 queries as well.
    Thanks in advance.
    Sumita.

    Hi,
    In 7.0 it is not possible to load directly from a flat file when you run the query in the portal. However, I don't think it was an option in 3.x either. In het analyzer, both 3.x and 7.0 have that option, only the copy paste functionallity is gone in 7.0, you have to use a flatfile now. Also, in 7.0 portal you can add indivual values for a variable sperated by a ; sign. So you can use excel to create a ; seperated csv file and copy and paste from that.
    Kind regards,
    Alex

  • How to handle comma separated values in OLE DB Source query for a parameter variable from XML file in SSIS

    Hi,
    I am using OLE DB Source to fetch the records with Data Access Mode as SQL COMMAND which is using the below query with a parameter,
    SELECT CON.Title,CON.FirstName,EMP.MaritalStatus,EMP.Gender,EMP.Title AS Designation, EMP.HireDate, EMP.BirthDate,CON.EmailAddress, CON.Phone
    from HumanResources.Employee EMP INNER JOIN Person.Contact CON ON EMP.ContactID=CON.ContactID WHERE EMP.Title in (?) 
    In this query for the parameter I am passing the value from a variable and which is configured (XML Configuration). While passing value
    Buyer it works correctly. But while passing values Accountant,Buyer
    it is not working as expected.
    How to handle while passing such multiple values Or is it possible to pass such values or not in SSIS 2012 ?
    Kindly help me to find a solution.
    NOTE: I placed the whole query in a variable as a expression as below it is working fine.
    "select CON.Title,CON.FirstName,EMP.MaritalStatus,EMP.Gender,EMP.Title AS Designation,EMP.HireDate,EMP.BirthDate,CON.EmailAddress,CON.Phone from HumanResources.Employee EMP
    INNER JOIN Person.Contact CON ON EMP.ContactID=CON.ContactID WHERE EMP.Title in ('" + REPLACE(@[User::temp],",","','")  +"')"
    Any other solution is there ? without placing the query in a variable. May be a variable can have some limitations for no. of characters stored not sure just a thought.
    Sridhar

    Putting the whole thing into a variable is certainly a valid solution.  The other involves putting the comma delimited list into a table valued variable.
    http://gallery.technet.microsoft.com/scriptcenter/T-SQL-Script-to-Split-a-308206f3
    For an odd ball approach: 
    http://www.sqlmovers.com/shredding_multiline_column_using_xml/ .
    Russel Loski, MCT, MCSE Data Platform/Business Intelligence. Twitter: @sqlmovers; blog: www.sqlmovers.com

  • ODI variable refresh from a file

    In one of the the threads in the past I read some tips about how to refresh a variable from a flat file. I have some information in a flatfile which I need as a variable.
    Now I am reading the flat file into a SQL table and then refreshing it into the variable. I guess we can do this in one step. I am sure I read blog something about it. If anyone aware of the thread can you send the link.
    Thanks

    http://odiexperts.com/?p=243
    http://odiexperts.com/?p=243

  • Pass a Value to Variable from the unix environment in ODI (ELT)

    Hi
    i am very new to ODI environment.
    i want know how to pass a value to variables in oracle data integrator from unix environment.
    Example:
    Variable name : Sales
    for variable name sales i want to pass the value from unix environment.
    Regards,
    Raj
    Edited by: user11137587 on Aug 19, 2009 6:26 AM

    Work Around !
    You can execute OS commands using Jython script. Probably you need to flush your enviornment variables value into a file using jython script and then read those value into ODI variable from the file.
    BUt may I know why you want to read environment variable vaules in ODI, Dont you think this will make your application less portable
    Regards,
    Amit

  • How do I assign an ODI variable from an Open Tool?

    I'm writing an open tool (a custom tool to use in my ODI flows - a java class that implements oracle.odi.sdk.opentools.IOpenTool
    ). I need to perform a complex calculating in the java Open Tool and 'export' a value back into the ODI world. Idealy, it would be great if I could set a variable in ODI (from within the java world).
    Is this possible?
    If anyone knows the answer, or another way to do this (that might not be as ideal, but works all the same) please let me know.
    Matt.

    Matt
    It is not possible to directly populate an ODI variable, but what you can do is to put the result value into a memory engine table/column, and then to refresh the variable from there. As it is all in-memory, it is fast.
    Craig

  • How to load variables from a .txt file

    Hi.
    I usually make a flash aplication in colaboration with a php
    programmer. But i want to test my swfs without having to wait for
    him. So i want to do that through a text file. I know that flash
    can load variables from text files. The problem is i don't know how
    to format the text file ( example.txt).
    Thank you

    Here's a couple of ideas.
    First you probably want to change what you have...and put
    your 'if (pVar==1' etc inside a separate function and call it from
    the onLoad handler after you have assigned the value to pVar...
    because the onLoad will run at some unknown point in time after
    loading has finished (actually in the test environment this might
    work... but that wouldn't be the same as what happens in a
    production setting).
    To create test files for loadvars... simply create a new as2
    file and put this code on the first frame and test movie:

  • Php - get name from 'file field' and pass to database?

    Is it possible to extract the 'image' name from the 'file' field and insert it into a database using php?
    <input type="file" name="ImageName" id="ImageName">
    I can't have:
    $ImageName = trim($_FILE['ImageName']);
    So hows this handled?
    Cheers
    Os

    Murray *ACP* wrote:
    Should be pretty strightforward, Os.  You know where to ask the questions!
    Yeah.. but I keep coming up against brick walls
    I'm trying to manipulate David Powers PHP Solutions chapter 6 - Uploading Files.
    He's got some sort of complicated function going on which makes sure no two images which are uploaded to a folder have the same name. i.e., london.jpg becomes london_1.jpg. (the php even inserts underscores if there are gaps in the image name)
    If I just use $ImageName = $_FILES["ImageName"]["name"]; potentially I could end up with dozens of images with the same name in the database, which is NOT desirable.
    Of course I could simplyfy everything and use two forms - 1 for uploading the images to the upload folder and then one for inserting the images details into the database BUT that has the drawback of the client needing to type in the name of the image identically to match the name which has been generated in the upload folder and that aint gonna happen in a million years

  • Sharing variable among different file

    How to set value to a variable from different file.I can not use interface because interface make everything as final.Is there any other way to set number of variables from more than one file?

    I guess you want to declare the variable in one class and change the value of the variable in another class. If I am correct, try the following
    public class First {
            public int a = 10;
    //TODO
    public class Second {
         private First firstObject = null;
         public void changeValue() {
               if(firstObject == null) {
                   firstObject = new First();
                   firstObject.a = 30;
    }

Maybe you are looking for

  • An error occurred while reading document

    Hello all, First let me apologize for the lengthy post, but I want to be clear.  :-). Ever since I upgraded my iPad 2 to the newest iOS 8 release, I have had issues with my tablet.  It is running slower, as I type this out there is a delay with the p

  • Idoc texting without any EDI or EAI

    Hello, I have a  text file to test in SAP with the following IDOC DEBMAS05. Does somebody the méthodology to run the test without any middleware... thanks Roger

  • Installing CS2 on Vista 64

    After many struggles, I recommend the following... 1) Install ALL Service Packs and updates for Microsoft Vista. If you read the details of those upgrades, many of them mention fixing compatibility issues with Adobe CS2 and other Adobe products. 2) A

  • MB21 - Reservation in reference to a BOM - Special procurement key

    Hello, I want to create a manual material reservation against a WBS element in reference to a BOM which uses a special procurement key at component level. This special procurement 70 uses the following configuration points: -  Procurement type: Exter

  • Mavericks Migration Assistant - Migrate user data to a separate user drive?

    I have a question about upgrading to Mavericks with a separate user drive that I haven't been able to find an answer to, so I thought I'd ask for some guidance before actually trying to attempt it. I have a late-model Macbook Pro (A1260) running 10.8