How to assign information file to variable.

Hi, I created two variables.
First variable(name:v_year_bbdd)
This variable receive a year database input.
SELECT
CASE WHEN extract (month from trunc(sysdate)) = 1
THEN
extract (year from trunc(sysdate))-1
ELSE
extract (year from trunc(sysdate))
END
FROM DUAL
Second variable(name:v_year_file)
This variable receive a year a value of csv.
In the scene(package) I will compare two variables.
but my problem is how I get the value file?
The file is a csv, and value is a year.
I could have loaded this information of the file in a table, but in the scene it can´t to compare field of the table with the variable, but only I can variable with variable.
Dou you undestand me?
thanks

Hi ,
I am not sure what you meant by code image ...
All you need to do is that follow the steps mentioned in the post and then copy the code generated for "Load Data" from your own ODI operator .
Then use the same code inside your variable .
Thanks,
Sutirtha

Similar Messages

  • How to assign a Customer exit variable to Key figure

    Hi,
    I have created a Customer Exit variable to findout no. of days in the month. 
    But I dont know how to assign that variable to a Keyfigure value.  Can you please let me know how to assign it.
    Regards
    Sankar

    Hi Sankar,
    From what I could understand, you want to display the output of that key figure for some no. of days of a month (calculated in your customer exit variable)...right ???
    If that is the case then you can create a structure in columns. Create a new selection...include your key figure and that customer exit variable in it.
    That shall serve the purpose.
    Regards
    Shalabh Jain
    Edited by: Shalabh Jain on Dec 15, 2008 1:46 PM

  • How to handle flat file with variable delimiters in the file sender adapter

    Hi friends,
    I have some flat files in the ftp server and hope to poll them into XI, but before processing in XI, I hope to do some content conversion in the file sender adapter, according to the general solution, I just need to specify the field names, field seperator, end seperator, etc. But the questions is:
    The fileds in the test data may have different amount of delimiters (,), for example:
    ORD01,,,Z4XS,6100001746,,,,,2,1
    OBJ01,,,,,,,,,,4,3     
    Some fileds only have 1 ',' as the delimiter, but some of them have multiple ','.
    How can I handle it in the content conversion?
    Regards,
    Bean

    Hi Bing,
    Plz do refer the following blogs u will get an idea:
    File content conversion Blogs
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns
    /people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    Regards,
    Vinod.

  • How to include a file as variable in %@ include file tag.

    Hi,
    I have a interesting problem here, how can I include a file in <%@ include file tag. where the include file path is a variable. I am trying to implement the following statement.
    <@ include file="<%=headerLogic_template %>">
    where headeLogic_template is a variable which contains the actual path of the include file.
    Thanx,
    Ramana.
    email:[email protected]

    Please note that you can not write anything else between the quotes nor for page specification or parameters.
    BAD EXAMPLE!!
    <% for (int i = 0; i < 20; i++) { %>
    <jsp:include page="included.jsp" flush="false">
      <jsp:param name="apa" value="prestring_<%=i%>"/>
    </jsp:include>
    <% }BAD EXAMPLE!!

  • How to assign my custom VBA variable to a parameter

    I want to be able to assign the value from my custom variable to a parameter from a script;
    but I cannot figure out if it is possible;
    I want to be able to manipulate a string using my VBA code, save this string to a variable, and pass it back to a one of the parameters on a page in a scripts, and continue playing the script with this new value instead, without using Data Bank;
    Thank you for help.

    Here is an example that sets a parameter named "UserName."
    Private Sub RSWVBAPage_beforePlay()
    Dim col As New Collection
    col.Add "MyName"
    RSWApp.SetParameterValues "UserName", col
    End Sub
    As you can see, this code is in the before play event. You must put this in before play in the page where the parameter exists. You can also use wild cards when identifying the parameter to be set.
    For example, if you needed to look for UserName_784328732 (with a changing number value)
    You could do the following RSWApp.SetParameterValues "UserName*", col
    I hope this is helpful

  • Help: How to assign dynamically a javascript variable to a jsp variable???

    Hello all,
    What I need to do is to assign the value of the html form element which is a checkbox in this case:
    <input name="ADB02_checkbox" type=checkbox id="ADB02_checkbox" onClick="decide_enable_or_disable_particular_checkbox()" value="ADB02">
    to a jsp variable :
    <%
    String riderCode = "";
    %>
    Its dynamic because i need to do different operations based on different rider codes like in this function:
    function decide_enable_or_disable_particular_checkbox() {
    var rider = document.rider_form;
    alert(rider.ADB02_checkbox.value);
    if (rider.<%= riderCode%>_checkbox.checked == true) {
    enable_all_row_elements_for_<%= riderCode%>();
    else {
         disable_all_row_elements();
    which uses the naming of the rider code to call other corresponding functions.
    so is there any way that you guys ca suggest a solution.
    what i thought is to do this:
    function decide_enable_or_disable_particular_checkbox() {
    var rider = document.rider_form;
    HERE--> riderCode = rider.ADB02_checkbox.value;
    alert(rider.ADB02_checkbox.value);
    if (rider.<%= riderCode%>_checkbox.checked == true) {
    enable_all_row_elements_for_<%= riderCode%>();
    else {
         disable_all_row_elements();
    or
    add an onFocus="riderCode = document.rider_form.ADB02_checkbox.value;" in the checkbox tag.
    but can i do that or is there any other way or is it totally impossible to assign javascript values to jsp variables.

    Hi again,
    I got a problem here abt looping in javascript.
    The prob is that only the 1st loop works the rest are not.
    So only the checkbox in the 1st row is enabled, the rest aren't.(only ADB02 is enabled not DLP01 cause ADB02 is 1st in the loop)
    Here are 2 of many of the checkboxes in different rows:
    <input name="ADB02_checkbox" type="checkbox" id="ADB02_checkbox" value="checkbox" onClick="val_checkbox()" disabled=true>
    <input name="DLP01_checkbox" type="checkbox" id="DLP01_checkbox" value="checkbox" onClick="val_checkbox()" disabled=true>
    This is declared in jsp:
    <%
    //to be used with javascript function prepare_elements() for checking to enable/disable checkbox , to check age base and limit of insured
    String[][] riderCheckArray = {
    {allPlans.PLAN_HER_MY_FUTURE, allRiders.RIDER_ACCIDENTAL_DEATH_BENEFIT, "20", "60"},
    {allPlans.PLAN_HER_MY_FUTURE, allRiders.RIDER_LIFELINE_BENEFIT, "20", "50"},
    {allPlans.PLAN_HER_MY_FUTURE, allRiders.RIDER_MEDICASH_100_PLAN, "0", "55"},
    {allPlans.PLAN_HER_MY_FUTURE, allRiders.RIDER_MEDICASH_200_PLAN, "0", "55"},
    {allPlans.PLAN_HER_MY_FUTURE, allRiders.RIDER_MEDICASH_300_PLAN, "0", "55"},
    {allPlans.PLAN_HER_MY_FUTURE, allRiders.RIDER_MANUTERM_REDUCING_TERM_ASSURANCE_PLAN, "16", "65"},
    {allPlans.PLAN_HER_MY_FUTURE, allRiders.RIDER_PERSONAL_ACCIDENT_BENEFIT, "20", "65"},
    {allPlans.PLAN_HER_MY_FUTURE, allRiders.RIDER_15_YEAR_LEVEL_AND_CONVERTIBLE_MANUTERM_RIDER, "16", "55"},
    {allPlans.PLAN_HER_MY_FUTURE, allRiders.RIDER_20_YEAR_LEVEL_AND_CONVERTIBLE_MANUTERM_RIDER, "16", "50"},
    {allPlans.PLAN_HER_MY_FUTURE, allRiders.RIDER_5_YEAR_RENEWABLE_AND_CONVERTIBLE_MANUTERM_RIDER, "16", "60"},
    {allPlans.PLAN_HER_MY_FUTURE, allRiders.RIDER_10_YEAR_RENEWABLE_AND_CONVERTIBLE_MANUTERM_RIDER, "16", "60"},
    %>
    Here's the script (the riderCheckArray[any no.] should be eg: riderCheckArray[0] (has an i in front))
    <script>
    <!--////////////////////////////////////PREPARE PAGE BASED ON PLAN///////////////////////////////////-->
    function prepare_elements() {
    var rider = document.rider_form;
    <!--///////////////////////////////////////////////////for her@myfuture////////////////////////////////////-->
    for (i=0 ; i < <%= riderCheckArray.length%> ; i++) {
    if ("<%= txtPlanCode%>" == "<%= riderCheckArray[i][0]%>" ) {
    riderCode = "<%= riderCheckArray[i][1]%>";
    if (<%= insuredAge.intValue()%> < <%= Integer.parseInt(riderCheckArray[i][2])%> ||
    <%= insuredAge.intValue()%> > <%= Integer.parseInt(riderCheckArray[i][3])%>) {
    disable_particular_checkbox();
    alert("This rider cannot be attached. This rider can only be attached for age range " +
    <%= riderCheckArray[i][2]%> +
    " to " +
    <%= riderCheckArray[i][3]%>);                    
    else {                    
    enable_particular_checkbox();
    <!--////////////////////////////////////ENABLE/DISABLE checkboxes////////////////////////////-->
    function enable_particular_checkbox() {
    var Rdr_Checkbox = riderCode + "_checkbox";
    var rider = document.rider_form;
    rider.all(Rdr_Checkbox).disabled = false;
    rider.all(Rdr_Checkbox).style.background ="FFFFFF";
    function disable_particular_checkbox() {
    var Rdr_Checkbox = riderCode + "_checkbox";
    var rider = document.rider_form;
    rider.all(Rdr_Checkbox).disabled = true;
    rider.all(Rdr_Checkbox).style.background ="CCCCCC";
    </script>

  • How to assign the file in SCAT

    Hi all,
    I'm using the SCAT for data upload, I have done the recording for the transaction and created the text file now how to create link to this file and the recording so that I can upload the data.
    Thnaks,
    Annup.

    Hi,
      After u have done the recording,you need to  dbl-click on TCD and that takes you to the list of screens.
    Click on the FIELD LIST  button and specify the parameters for the fields that you  want to upload data.
    Say if u want to upload data for matnr field,specify the parameter as &matnr.
    Then in the menu bar, GOTO->VARIANTS->EXPORT DEFAULT.
    This will create the excel file in the format Specific to CATT.Starting from the fourth row of the excel file,you need to enter the data  below the corresponding fields that needs to the uploaded .
    Then Click on EXECUTE button and choose the radio button
    EXTERNAL FROM FILE in Variants Tab.
    Then click on execute to upload data .
    Hope this helps you.
    Regards,
    Venkatalakshmi

  • How to transfer information/files

    I just bought a new macbook pro and I'm giving my other one to my son.  what is the easiest way to tranfer files to the new mac?  I tried using an ethernet wire, but it was not successful because the old mac could not find the new mac. 
    Before, we shared the mac and did not set up different accounts.  So when I transfer information, is it easy to select only the files that I want?  Will it also transfer apps and settings?
    Last of all, is there a way to reset my old mac to factory settings?  I think the old one got bogged down - probably because of many unnecessary things on there that filled up my memory (The "other" catagory was large), even though I went thru all of my media and files to get rid of things - the "Other" catagory did not change much.
    Thanks so much!

    I'm guessing that you old MBP came with disks.  If so follow these instructions:
    http://support.apple.com/kb/ht3910
    To transfer data I suggest you consider Target Disk Mode;
    http://support.apple.com/kb/PH10725
    http://support.apple.com/kb/ht1661
    Ciao.

  • Help needed on how to assign string value to variables in process designer

    Hi,
    I am using LC Workbench 8.0.1 version, I have a business requirement where in my form I have a dropdown box which contains two options i.e,
    1. Accept
    2. Decline
    If the user selects Accept, I have to route the form to user some "x" or if the user selects Decline then the form should be routed to some user "y" .
    To implement this I need to capture the user selected value which is a String.
    can someone explain me how to reslove this..?
    thanks and regards,
    sudheer

    I'm assuming you're using a xfaForm variable that points to an XDP in the repository to render your document.
    In that case, you set the Form Data Mapping to point to that xfaForm variable in the User step.
    When the user submits the form the xfaForm variable contains the data for the form in an XML format. You can have multiple routes that come out of your user step that will check a certain value in the xfaForm variable.
    The xml data for you form will be located under the /process_data/xfaForm/data/datasets/data node.
    You can use an xPath similar to /process_data/xfaForm/object/data/xdp/datasets/data/myNode/MyField
    you can also use the // notation to do a full search within the data node if you're not sure of the structure:
    /process_data/xfaForm/object/data/xdp/datasets/data//MyFieldValue
    I hope this helps.
    Jasmin

  • How to assign colour to a variable?

    In a project have a dozen of half titles that divides the book in these parts.
    Only a master page, no chapters, no sections.
    In the master is inserted a variable (running header) based on the twelve half titles to identify in each page the parts (1-12)
    I need to change the colour of this running header instead of creating twenty master pages.
    Has it to be scripted?

    Hi Camilo,
    If this is what you want to do, that can be done with variables.
    With left and right pages:

  • How to assign bean value to a local variable in JSP using struts.

    Hi everybody!
    I've a problem that puzzled me on how to assign a bean value to a local variable like String in JSP using struts.
    we can have someting like this to display the value
    <bean:write name="detailService" property="status" />or
    <bean:define id="theStatus" name="detailService" property="status"/>
         This is country: <%=theStatus%>but an error occured when I tried like this:
    String currentStatus = "<bean:define id="theStatus" name="detailService" property="status"/>";
    or
    String currentStatus = "<bean:write name="detailService" property="status" />";Is there a way to do this?.....
    Any help pretty much appreciated

    Java != JSP.
    The <bean:define> and <bean:write> tags are custom tags meant to appear in the HTML section of a JSP file, as opposed to the scriptlet section. They actually get turned into java code as part of the translation process.
    The <bean:write> tag naturally just writes out what you tell it to.
    The <bean:define> tag defines a local variable, and gives it a value.
    this should do it.
    <bean:define id="theStatus" name="detailService" property="status" type="java.lang.String"/>
    <%
      String currentStatus = theStatus;
    %>With the advent of JSTL, you shouldn't really need to use scriptlet code anymore. Personally I am for 0% scriptlet code in any jsp I write.

  • How do I use an array variable in the assignment target?

    Hi,
    I am creating a BPEL process in which I have to use an array variable. The array variable needs to be initialized based on some condition.
    The issue is I cannot find a way to set the value of the array variable. There are ways to GET the value of an array variable indexing into it.
    But how do I set the value by using the Array variable in the <to> tag?
    Any help is appreciated. I am using BPEL 10.1.2.0.2.
    Thanks.

    You can declare a variable of type integer which will server as your index. Figure out based on some condition in your process which index of array to update. Assign to your integer variable you created.
    And have Assign copy operation like this -
    <copy>
    <from variable="Var_Output_FetchDueDate"
    part="OutputParameters"
    query="/ns18:OutputParameters/ns18:DUEDATE"/>
    <to variable="outputVariable" part="payload"
    query="/client:GetCustomerAccountInformationProcessResponse/client:customer/client:accounts/client:account[$Var_Counter]/client:dueDate"/>
    </copy>
    I have been using this in my processes.

  • How can I assign image file name from Main() class

    I am trying to create library class which will be accessed and used by different applications (with different image files to be assigned). So, what image file to call should be determined by and in the Main class.
    Here is the Main class
    import org.me.lib.MyJNIWindowClass;
    public class Main {
    public Main() {
    public static void main(String[] args) {
    MyJNIWindowClass mw = new MyJNIWindowClass();
    mw.s = "clock.gif";
    And here is the library class
    package org.me.lib;
    public class MyJNIWindowClass {
    public String s;
    ImageIcon image = new ImageIcon("C:/Documents and Settings/Administrator/Desktop/" + s);
    public MyJNIWindowClass() {
    JLabel jl = new JLabel(image);
    JFrame jf = new JFrame();
    jf.add(jl);
    jf.setVisible(true);
    jf.pack();
    I do understand that when I am making reference from main() method to MyJNIWindowClass() s first initialized to null and that is why clock could not be seen but how can I assign image file name from Main() class for library class without creating reference to Main() from MyJNIWindowClass()? As I said, I want this library class being accessed from different applications (means different Main() classes).
    Thank you.

    Your problem is one of timing. Consider this simple example.
    public class Example {
        public String s;
        private String message = "Hello, " + s;
        public String toString() {
            return message;
        public static void main(String[] args) {
            Example ex = new Example();
            ex.s = "world";
            System.out.println(ex.toString());
    }When this code is executed, the following happens in order:
    1. new Example() is executed, causing an object to constructed. In particular:
    2. field s is given value null (since no value is explicitly assigned.
    3. field message is given value "Hello, null"
    4. Back in method main, field s is now given value "world", but that
    doesn't change message.
    5. Finally, "Hello, null" is output.
    The following fixes the above example:
    public class Example {
        private String message;
        public Example(String name) {
            message = "Hello, " + name;
        public String toString() {
            return message;
        public static void main(String[] args) {
            Example ex = new Example("world");
            System.out.println(ex.toString());
    }

  • How do I create an interactive PDF file with variable data

    We would like to basically do a 'mail merge' of our list of customers with an interactive PDF file (including videos, menus, etc - not just form fill out and web links) to create a single PDF file that contains multiple mail pieces ... one for each customer ... with each mail piece being customized for that customer.  Customizations would include different greetings (Dear Bob, Dear Dana, etc), as well as different charts based on data unique to the customer, different photographs, etc.
    I've seen that InDesign and Acrobat Professional can be used to create an interactive PDF (such as from http://tv.adobe.com/watch/ask-the-adobe-ones/14-calling-rufus-about-interactive-pdf-making).  However I don't understand how I can insert data from a database, csv file, excel file etc into the PDF file so that each page, or each set of pages, within the PDF can be customized.
    Can anyone point me to a tool to use for this?
    Thanks,
    Bob Kendall

    For that kind of volume and unattended operation, you want InDesign Server – which is the server/high volume edition of INDD.
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Thu, 3 Nov 2011 06:58:07 -0700
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: How do I create an interactive PDF file with variable data
    Re: How do I create an interactive PDF file with variable data
    created by Ti26E31DSxxx<http://forums.adobe.com/people/Ti26E31DSxxx> in PDF Language and Specifications - View the full discussion<http://forums.adobe.com/message/4005459#4005459

  • How to assign a variable value to crystal report viewer formula with CR2008

    Hi ,
    I am using crystal reports 2008 and i am not able to find how to assign  variable value  to crystal report viewer formula.
    In CR 8.5 , i used to have crystalreport1.Formulas(0) = variable1
                                             crystalreport1.Formulas(1) = variable2
    but, i don't find similar kind  in crystal reports 2008.
    How can i achieve the same functionality using crystal reports 2008.
    Thanks in Advance
    Regards,
    Ramnath

    Hi,
    Can i anyone help me out with this.
    I am generating crystal reports in vb6 using CR 8.5 and vb6 and below is the code snippet for the same
    CrystalReport1.Formulas(0) = "PrintTitle= '" & strMyTitle & "'"
    CrystalReport1.Formulas(1) = "FromDate= '" & MskFromDate.Text & "'"
    CrystalReport1.Formulas(2) = "ToDate= '" & MskToDate.Text & "'"
    Please let me know how the same functionality can be achieved in VB.Net using Crsytal reports 2008
    Any code snippet would be of great Help.
    Thanks in Adnvance.
    Ramnath

Maybe you are looking for