Function in a variable

Hello,
I want to declare a variable who containt
a function
For exemple:
<?xdoxslt:set_variable($_xdoctx,'test', subtr(toto,1,2)) ? >
Can you help me with the correct syntax?
thanks

You were close:
<?xdoxslt:set_variable($_XDOCTX,’x’, substring(SUPPLIER_NAME,1,4)) ?>
the XDOCTX string is case sensitive.
Tim

Similar Messages

  • How to make a Java program that recognises a function of two variables...

    How to make a Java program that recognises a function of two variables to assign values to that?
    First I will give an example and then do the question.
    Ex1.
    We have any function, eg.y = x ^ 2 + 1 (read 'y' equals 'x' high to the square), a function of the second degree.
    To build the graph of this function attach values to 'x' to find the values of 'y'
    And thus mount the pair ordered (x, y) which represents a point on the Cartesian plane.
    Assigning values to 'x' 'we can build up a table that gives us the pairs ordered:
    We can use any numbers, but arfer interval [-3.3]
    X | y = x ^ 2 + 1
    -3 | Y = (-3) ^ 2 +1 = 10
    -2 | Y = (-2) ^ 2 +1 = 5
    -1 | Y = (-1) ^ 2 +1 = 2
    0 | y = (0) ^ 2 +1 = 1
    1 | y = (1) ^ 2 +1 = 2
    2 | y = (2) ^ 2 +1 = 5
    3 | y = (3) ^ 2 +1 = 10
    We then ordered the pairs:
    (-3.10), (-2.5); (-1.2), (0,1), (1,2), (2,5), (3,10)
    Tabem that can be represented by a table:
    X | y
    -3 | Y = 10
    -2 | Y = 5
    -1 | Y = 2
    0 | y = 1
    1 | y = 2
    2 | y = 5
    3 | y = 10
    Now I begin to explain my doubts.
    See this program:
    Ex2
    * To change this template, choose Tools | Templates
    * And open the template in the editor.
    Encontrando_o_valor_de_y package;
    * @ Author des Soldat Gottes
    Import javax.swing.JOptionPane;
    Public class (Main
    * @ Param args the command line arguments
    Public static void main (String [] args) (
    Int x, y;
    String x1;
    X1 = JOptionPane.showInputDialog ( "We have the function y = x + 1 \ n" +
    "Assign a value for 'x',"); / / receives a value for the function y = x + 1
    X = Integer.parseInt (x1); / / tranforma String in int
    Y = x + 1; / / receives the value of 'x' and calculates' y '
    JOptionPane.showMessageDialog (null, "The value of 'y' is: \ t \ t" + y);
    / / Displays the value of 'y'
    System.exit (0);
    We see that the program receives above a value for 'x' and replaces the function contained in the program, y = x + 1, and so is the value of the variable 'y'.
    In: x1 = JOptionPane.showInputDialog ( "We have the function y = x + 1 \ n" +
    "Assign a value for 'x',");
    The entry is a number and that number is assigned aa ja existing function in the (y = x + 1).
    The question is: would it be possible to come to a function?
    Ex: the program ask: DIGITE THE FUNCTION?
    The USUARIO DIGITARIA A FUNCTION ANY, TYPE: y = x ^ 2 +1
    The program would recognize the function and give numerical values to that function as Ex1, at the beginning of this text.
    And then to find the values of the x and y launch a table.
    It would be possible that?
    By invez of entering with a number so that the program sustitua a function ja existing as Ex2, seen above, entering with a function quaquer (type: y = x ^ 2 +1) for the program atribuisse values to that function and then create a table of values as Ex1.
    I hope it has been easier to understand my doubts now.
    Thank you for your attention!
    God bless!

    rafaelmenezes wrote:
    Thanks for the explanation, could understand what fly said.
    But as it applied to a program?
    How to create a program that recognizes that the entry coefficients?Are you asking about how to parse out the coefficients from the string "3x^4 + 4x^3 - 8x^2 + 5x^1 + 2x^0"? If you define the format to strictly follow that example, this should get you started:
    Strip out the spaces
    Split the String on "x^"
    That should give you [3, 4+4, 3-8, 2+5, 1+2, 0]
    Split each resulting String on "+ | -", preserving the operator as a token so you can apply the correct sign to the coeff.
    That should leave you with [3, 4, +, 4, 3, -, 8, 2, +, 5, 1, +, 2, 0]. Every other number is a coeff, the rest are the degrees.
    You can strip out the +, since those coeffs are already positive, and strip out the - after negating the following number. This is all assuming that you have to write this yourself. There is no doubt already a library or 5 out there that does this for you.

  • How to  use data function using characterstics variable for calculation on

    how to  use data function using characterstics variable for calculation on  attribute as key figure

    Hi Gayatri
    Did you not see my answer for CASE because CASE does indeed offer the use of the BETWEEN clause, but DECODE does not. Let me give you a little synopsis of DECODE.
    In its most simple form it takes 4 values and looks like this: DECODE(A, B, C, D)
    This essentially means, IF A = B THEN C ELSE D
    The trick to solving BETWEEN in a DECODE is to work out algoriths where A = B. Because we don't know how many values are between 00 and 99, although I could guess there were 100 we could of course have 100 parts in the DECODE but that would be awful. How about if we look at it another way and say this:
    IF PART_NUMBER < 'SDK00' THEN pay_amount
    ELSE IF PART_NUMBER > 'SDK99' THEN pay_AMOUNT
    ELSE pay_amount + 100
    This statement only had 2 hard coded values, but how to make DECODE work with less than? Easy, we use the LEAST function. The LEAST function takes 2 values and returns the one with the lowest value. So I use LEAST(PART_NUMBER, 'SDK00') then whenever the PART_NUMBER is lower than SDK00 it will be true. A similar situation exists for the opposite function GREATEST. Putting all of this together then, you can do this:
    DECODE(PART_NUMBER, GREATEST(PART_NUMBER, 'SDK00'), DECODE(PART_NUMBER, LEAST(PART_NUMBER, 'SDK99'), PAY_AMOUNT * 100, PAY_AMOUNT), PAY_AMOUNT)
    In English this can be read as follows:
    IF the PART_NUMBER is greater than or equal to SDK00 and the PART_NUMBER is less than or equal to SDK99 THEN PAY_AMOUNT x 100 ELSE 0
    Best wishes
    Michael

  • Cant get function to use variable!

    hi I have created an actionscript function which stops an animation on a specific frame which works fine. I have then loaded in a php file with a variable which will contain the number for the frame i want the animation to stop on. This has loaded in fine and i have loaded it in a function. what i cant seem to do is to get the variable into the function which tells the animation to stop playing.
    here is my code:
    //load variables
    varReceiver = new LoadVars(); // create an object to store the variables
    varReceiver.load("http://playground.nsdesign6.net/percentage/external.php");
    //load variables
    //function1
    varReceiver.onLoad = function() {
        //value is the var that is created.   
        var paul = this.percentage;
    //function1
    //function2
    this.onEnterFrame = function() {   
    if(this._currentframe==(paul)) {
    this.stop();
    this.onEnterFrame = undefined;
    play();
    //function2

    One problem lies in that you are declaring the variable within a function.  This limits the scope of that variable to within the function. So your enterFrame function cannot see it.  One other thing you should consider is not activating the enterFrame function until the variable is read in.  So while I would have suggested you move the variable declaration out of the function, maybe moving the enterFrame into the function will have a similar effect...
    varReceiver.onLoad = function() {
        //value is the var that is created.   
        var paul = this.percentage;
        this.onEnterFrame = function() {   
            if(this._currentframe==(paul)) {
              this.stop();
              this.onEnterFrame = undefined;
    play();
    If that doesn't work, then just try moving the variable declaration outside of the function and only assign its value within it.  That way paul is visible to the second function...
    var paul;
    //function1
    varReceiver.onLoad = function() {
        //value is the var that is created.   
        paul = this.percentage;
    //function1

  • Package interpeting function call as variable call

    When I try to compile my package the compiler mistakes the function calls in this collection for variables.:
    type dayonelist IS TABLE OF NUMBER;
    dayone dayonelist := dayonelist(wkdaysminusone(), sadaysminusone(), sudaysminusone());
    I get this error message:
    Error(244,35): PLS-00306: wrong number or types of arguments in call to 'WKDAYSMINUSONE'
    Anyone know how I can correct this?

    rthakur-
    I'm a beginner at this and looking for help and not smart comments. I may not have your experience but I have a little more courtesy than you. Here's the package code:
    CREATE OR REPLACE
    package accessreports is
    vc_FirstofMonth DATE;
    vc_CurrentPick date;
    PROCEDURE PICK_DATE
    (p_first_of_month IN DATE);
    PROCEDURE EXEC_REPORTS(p_first_of_month IN DATE);
    PROCEDURE PRODUCTIVITY_INSERT
    (p_first_of_month IN DATE);
    PROCEDURE AVERAGE_BOARDINGS
    (p_first_of_month IN DATE);
    end accessreports;
    CREATE OR REPLACE PACKAGE BODY accessreports IS
    /*Below are all functions that provide variables for calulations and WHERE
    clauses. All functions are at the top of the package for visibility to all procs and
    convenience*/
    FUNCTION curpick RETURN DATE IS p_current_pick DATE;
    BEGIN
    SELECT MAX(pick) AS
    pick
    INTO p_current_pick
    FROM bus_picks;
    RETURN p_current_pick;
    END curpick;
    FUNCTION wkdays(p_first_of_month IN DATE)
    RETURN NUMBER IS p_wk NUMBER;
    BEGIN
    vc_FirstofMonth := p_first_of_month;
    SELECT COUNT(service_date) AS
    wk
    INTO p_wk
    FROM
    (SELECT DISTINCT service_date
    FROM bus_daily_rides
    WHERE to_char(service_date,'MM-YYYY') = to_char(vc_firstofmonth,'MM-YYYY')
    AND day_type = 'W')
    RETURN p_wk;
    END wkdays;
    FUNCTION sadays (p_first_of_month IN DATE)
    RETURN NUMBER IS p_sa NUMBER;
    BEGIN
    vc_FirstofMonth := p_first_of_month;
    SELECT COUNT(service_date) AS
    sa
    INTO p_sa
    FROM
    (SELECT DISTINCT service_date
    FROM bus_daily_rides
    WHERE to_char(service_date, 'MM-YYYY') = to_char(vc_firstofmonth, 'MM-YYYY')
    AND day_type = 'A')
    RETURN p_sa;
    END sadays;
    FUNCTION sudays(p_first_of_month IN DATE)
    RETURN NUMBER IS p_su NUMBER;
    BEGIN
    vc_FirstofMonth := p_first_of_month;
    SELECT COUNT(service_date) AS
    su
    INTO p_su
    FROM
    (SELECT DISTINCT service_date
    FROM bus_daily_rides
    WHERE to_char(service_date, 'MM-YYYY') = to_char(vc_firstofmonth, 'MM-YYYY')
    AND day_type = 'U')
    RETURN p_su;
    END sudays;
    FUNCTION wkdaysminusone(p_first_of_month IN DATE)
    RETURN NUMBER IS p_wkone NUMBER;
    BEGIN
    vc_FirstofMonth := p_first_of_month;
    SELECT COUNT(*) AS
    wkone
    INTO p_wkone
    FROM
    (SELECT DISTINCT to_char(add_months(service_date, -12), 'dd-mm-yyyy')
    FROM bus_daily_rides
    WHERE to_char(service_date, 'mm-yyyy') = to_char(vc_firstofmonth, 'MM-YYYY')
    AND day_type = 'W')
    RETURN p_wkone;
    END wkdaysminusone;
    FUNCTION sadaysminusone(p_first_of_month IN DATE)
    RETURN NUMBER IS p_saone NUMBER;
    BEGIN
    vc_FirstofMonth := p_first_of_month;
    SELECT COUNT(*) AS
    saone
    INTO p_saone
    FROM
    (SELECT DISTINCT to_char(add_months(service_date, -24), 'dd-mm-yyyy')
    FROM bus_daily_rides
    WHERE to_char(service_date, 'mm-yyyy') = to_char(vc_firstofmonth, 'MM-YYYY')
    AND day_type = 'A')
    RETURN p_saone;
    END sadaysminusone;
    FUNCTION sudaysminusone(p_first_of_month IN DATE)
    RETURN NUMBER IS p_suone NUMBER;
    BEGIN
    vc_FirstofMonth := p_first_of_month;
    SELECT COUNT(*) AS
    suone
    INTO p_suone
    FROM
    (SELECT DISTINCT to_char(add_months(service_date, -12), 'dd-mm-yyyy')
    FROM bus_daily_rides
    WHERE to_char(service_date, 'mm-yyyy') = to_char(vc_firstofmonth, 'MM-YYYY')
    AND day_type = 'U')
    RETURN p_suone;
    END sudaysminusone;
    FUNCTION wkdaysminustwo(p_first_of_month IN DATE)
    RETURN NUMBER IS p_wktwo NUMBER;
    BEGIN
    vc_FirstofMonth := p_first_of_month;
    SELECT COUNT(*) AS
    wktwo
    INTO p_wktwo
    FROM
    (SELECT DISTINCT to_char(add_months(service_date, -24), 'dd-mm-yyyy')
    FROM bus_daily_rides
    WHERE to_char(service_date, 'mm-yyyy') = to_char(vc_FirstofMonth, 'MM-YYYY')
    AND day_type = 'W')
    RETURN p_wktwo;
    END wkdaysminustwo;
    FUNCTION sadaysminustwo(p_first_of_month IN DATE)
    RETURN NUMBER IS p_satwo NUMBER;
    BEGIN
    vc_FirstofMonth := p_first_of_month;
    SELECT COUNT(*) AS
    satwo
    INTO p_satwo
    FROM
    (SELECT DISTINCT to_char(add_months(service_date, -24), 'dd-mm-yyyy')
    FROM bus_daily_rides
    WHERE to_char(service_date, 'mm-yyyy') = to_char(vc_firstofmonth, 'MM-YYYY')
    AND day_type = 'A')
    RETURN p_satwo;
    END sadaysminustwo;
    FUNCTION sudaysminustwo(p_first_of_month IN DATE)
    RETURN NUMBER IS p_sutwo NUMBER;
    BEGIN
    vc_FirstofMonth := p_first_of_month;
    SELECT COUNT(*) AS
    sutwo
    INTO p_sutwo
    FROM
    (SELECT DISTINCT to_char(add_months(service_date, -24), 'dd-mm-yyyy')
    FROM bus_daily_rides
    WHERE to_char(service_date, 'mm-yyyy') = to_char(vc_firstofmonth, 'MM-YYYY')
    AND day_type = 'U')
    RETURN p_sutwo;
    END sudaysminustwo;
    /*PICK_DATE determines if the report being provided takes place during a pick month.*/
    PROCEDURE pick_date(p_first_of_month IN DATE)
    AS
    BEGIN
    vc_firstofmonth := p_first_of_month;
    vc_currentpick := curpick();
    IF to_char(vc_firstofmonth, 'MM-YYYY') <> to_char(vc_currentpick, 'MM-YYYY') THEN
    accessreports.exec_reports(p_first_of_month);
    ELSE
    NULL;
    /*This procedure being built*/
    END IF;
    END pick_date;
    /*EXEC_REPORTS executes the procs below it with two input vars.*/
    PROCEDURE exec_reports(p_first_of_month IN DATE)
    IS
    BEGIN
    accessreports.productivity_insert(p_first_of_month);
    accessreports.average_boardings(p_first_of_month);
    END;
    /*Last two procs use dynamic SQL to rotate through the different day types and
    pls_integer of days for each day type.*/
    PROCEDURE productivity_insert(p_first_of_month DATE)
    AS
    TYPE daylist IS TABLE OF VARCHAR2(1);
    DAYS daylist := daylist('W', 'A', 'U');
    TYPE countlist IS TABLE OF NUMBER;
    counts countlist := countlist(wkdays(), sadays(), sudays());
    BEGIN
    FOR i IN 1 .. 3 LOOP
    EXECUTE IMMEDIATE 'INSERT INTO RFC_BUS' || DAYS(i) || 'PRODUCTIVITY(ROUTE,PPPH)
    SELECT a.route, ((sr05 / sy05)/' || counts(i) || ') AS "RATIO"
    FROM (SELECT route,
    SUM (DECODE (TO_CHAR (pick, "MM-YYYY"),
    to_char(vc_FirstofMonth, "MM-YYYY"), platform_hours, null)) AS sy05
    FROM bus_platformhours
    WHERE day_type =' || DAYS(i) || ' and platform_hours > 0
    GROUP BY route) a,
    (SELECT route,
    SUM (DECODE (TO_CHAR (service_date, "mm-yyyy"),
    to_char(vc_FirstofMonth, "MM-YYYY"), rides, null)) AS sr05
    FROM bush_daily_rides
    WHERE day_type = ' || DAYS(i) || 'GROUP BY route) b
    WHERE a.route = b.route
    ORDER BY a.route
    VALUES(
    p_route,
    p_ratio
    ) USING days(i), counts(i)';
    END LOOP;
    END productivity_insert;
    PROCEDURE average_boardings(p_first_of_month DATE)
    AS
    type daylist IS TABLE OF VARCHAR2(1);
    DAYS daylist := daylist('W', 'A', 'U');
    type countlist IS TABLE OF NUMBER;
    counts countlist := countlist(wkdays(), sadays(), sudays());
    type dayonelist IS TABLE OF NUMBER;
    dayone dayonelist := dayonelist(wkdaysminusone(), sadaysminusone(), sudaysminusone());
    type daytwolist IS TABLE OF NUMBER;
    daytwo daytwolist := daytwolist(wkdaysminustwo(), sadaysminustwo(), sudaysminustwo());
    BEGIN
    vc_firstofmonth := p_first_of_month;
    FOR i IN 1 .. 3 LOOP
    EXECUTE IMMEDIATE 'INSERT INTO RFC' || DAYS(i) || 'BUSAVG_RIDES_AND_PROD(ROUTE, THIRD_YEAR, SECOND_YEAR, PRESENT_YEAR,
    PER_DIFF_THIRDTOPRESENT, PER_DIFF_SECONDTOPRESENT, ROUTETWO, PASS_PLAT_HOUR)
    select r.*,
    t2.*
    from (
    select *
    from (select route,
    sum(y04)/' || counts(i) || ' y04,
    sum(y05)/' || dayone(i) || ' y05,
    sum(y06)/' || daytwo(i) || ' y06,
    decode(sum(y04),0,0,(sum(y06)-sum(y04))/sum(y04)*100) Percent_difference_04to06,
    decode(sum(y05),0,0,(sum(y06)-sum(y05))/sum(y05)*100) Percent_difference_05to06
    from (select route,
         decode(to_char(service_date,"yy"),"04",Rides,0) y04,
    decode(to_char(service_date,"yy"),"05",Rides,0) y05,
         decode(to_char(service_date,"yy"),"06",Rides,0) y06
    from bus_daily_rides
    where TO_CHAR(service_date, "YY") IN ("04","05", "06")
    AND TO_CHAR(SERVICE_DATE,"MM")=TO_CHAR(vc_FirstofMonth, "MM")
    AND day_type=' || DAYS(i) || '
    group by route
    WHERE ROWNUM > 0
    ) r,
    ' || DAYS(i) || '"_"Route_productivity t2
    where t2.route = r.route
    VALUES(p_route,
    p_third_year,
    p_second_year,
    p_present_year,
    p_thirdtopresent,
    p_secondtopresent,
    p_routetwo,
    p_ppph) USING counts(i), days(i), daysone(i), daystwo(i)';
    END LOOP;
    END;
    END accessreports;

  • Is there a "where used" functionality for SEM variables?

    Hello everybody,
    I am about to do some major changes to a BPS application that i have built and have come to realize that it will be quite some work to go through the whole thing for the purpose of replacing some variables.
    Hence, is there a "where used" functionality for SEM variables somewhere out there?
    Greetings,
    Martin

    Hi Martin,
              Have not seen that functionality before,however I have used the same by creating my own reports.All the variables can be found in the UPC_VAR table.If you are looking for the use of the variables in fox code,use a wild card search with UPC_FORML table in the formula column for %'VARV'%.IF Searching for uses in the conditions field for planning functions , use the table UPC_OPTIOS, column variable.In my case i needed to search the foxcode for variable uses.
    Hope this helps to some extent.
    regs.

  • How do you use the windows User32.dll Library functions to read variables from other applications that are running

    I am trying to read a text box from a programme running at the same time as my Labview application using calls to the Windows
    User32.dll. I believe I need to find the window handle for the 'form' containing this text string and use this together with
    various other defined input variables to access the sting.
    I have no experience of using this 'Call Library Function Node', but have an understanding of the 'C' programming language. Does anyone have
    example Labview code showing how this might be done.
    Thanks

    If you're trying to access information that's being displayed in the window of another application and that application has no ActiveX interface, then yes, Windows calls can be used. There's a very good example on calling DLLs that ship with LabVIEW. Open the Example Finder (Help->Find Examples) and switch to the Search tab. Enter "Call" in the search box and open the VI "Call DLL". Run the VI, select any of the examples, and click the "Open Example VI..." button. That shows you how to call a DLL.
    Now, given that you have no experience in calling DLLs, have only an "understanding" of C (which to me means you have never written something like a DLL), and don't seem to know that much about what Windows functions you may need, you're going to find this route pretty difficult, especially since you have to deal with Windows API calls, which are not always that easy to do from LabVIEW.
    Let me propose an alternate solution. Go over to http://www.autoitscript.com/autoit3/ and download AutoIt. This is an automation tool that allows you to automate just about anything you want. It has an ActiveX interface that you can call from LabVIEW. I've attached an example VI that shows you how to use it to get the value of a text box from one of the tabs in the computer "System Properties" control panel applet.
    Attachments:
    AutoIt Example (v7).vi ‏25 KB

  • Function module Global variables not cleared from memory?

    Hi,
    This is may be simple & stupid question ( after posting  4242 posts ):)
    " Declaration in TOP
    data : begin of i_y1yatt occurs 0.
            include structure y1yatt.
    data : end of i_y1yatt.
    types: begin of t_yatt71.
           include structure yatt71.
    types: tcode like sy-tcode.
    types: dflag type c.
    types: end of t_yatt71.
    data : i_yatt71 type standard table of t_yatt71
                   with default key  with header line  initial size 0.
    This is code in the function module.
      loop at i_y1yatt.
        move-corresponding o_y1yatt to i_yatt71.
        if i_y1yatt-werks eq 'N501'.
           move space to i_yatt71-werks.
        endif.
        append i_yatt71. 
        " Here this internal contains the previous entry
        clear i_yatt71.
      endloop.
    This function module is called 25 times in a minute.
    My problem is this
    For example : 1st tranmission is called this fm with 50 records,
    and 2nd tranmission is called fm with 10 records.
    My results are showing
    last record in the 1st transmission is still on the memory while calling 2nd transmission.  ( Here in int table I_YATT71 still contains the 1st transmission's last records during the 2nd tranmission call)
    As per my knowledge if each time calls comes in to fm all gloabl variables get cleared. but some how this not happening.
    Anybody come across this scenario.
    PS. I know i need to use clear statement within the loop as first statement.

    You must understand that when calling a FM, you load the entire function group into memory. IF there are global variables, then they are "alive" for the entire duration of the program execution. Meaning if you call the function numerious times, or even if you call another function within the same function group, the functions still have access to that same global variable space, so it must always be cleared manually by the developer at the required points.  You can not rely on the runtime to clear the global variables at the end of the function call.  So you should clear all you globals as the first operation in your function module call, if that is what is required.
    Is this clear?
    Regards,
    Rich Heilman

  • Assigning return value of a javascript function to a variable

    hi.
    I have a javascript function which returns string.
    I wanna assing return value of that function to variable.
    for example:
    <script>
    funtion writeMe()
    var ex;
    ex="try"
    return ex;
    </script>
    Then in body of JSP page. I wanna do something like:
    <% String st;%>
    Now I wanna assign the value that returned from writeMe function ("try") to st string.like:
    <%st= writeMe();%>. but of course it doesn't work. how can I do that?

    thnx. but actually what I want to do is sending some values produced by javascript to a barchart object. is it impossible too?
    I mean my script function returns something like "100, 200, 300". I wanna pass that values to barchart. when I want to add aplet tag to jsp code instead of writing:
    <param name="s1_value" value="100,200,300">
    I want to write somethin like:
    <param name="s1_value" value="myscriptfunction()">
    is it possible in JSP? I saw an example like this in asp. it was like:
    <param name="sampleLabels" value="<%call func1()>">. but in JSP it seems like call tag doesn't work. Is it possible in JSP?

  • Need to capture the output of parseEscapedXML() function in a variable

    Hi All,
    In my BPEL process, I am fetching the XML data from the database which is stored in a CLOB column, using the database adapter. As it is in a string type I am using parseEscapedXML() function to get the XML data out.
    I have done the following:
    Imported the XSD to the project. Created a variable of element type and in the type explorer , navigated to 'Project Schema Files' -> My .XSD file -> complex XML element. But when I use this variable in any of my process activities, I get the following compilation error:
    Error(58):
    [Error ORABPEL-10010]: unresolved element
    [Description]: in line 58 of "<bpel procedure path>", XML element "{http://schemas.xmlsoap.org/ws/2003/03/business-process/}OutboundPaymentInstruction" of variable "Variable_2" is not defined.
    [Potential fix]: Make sure the XML element "{http://schemas.xmlsoap.org/ws/2003/03/business-process/}OutboundPaymentInstruction" is defined in one of WSDLs that are referenced by the deployment descriptor.
    Which WSDL file is the error referring to (I use empty BPEL process as the template)
    Could anyone please let me know how do I create a variable which is of my XSD type and use the variable for further transformation.
    Thanks a lot.
    Regards,
    Prad

    Prad,
    Did you get this resolved? I am having the same issue and can not get it to work.
    Thanks
    Troy
    Message was edited by:
    user641994

  • Use lpad function in local variable definition

    Hi
    I want to define a variable with lpad function applied to a data field. For example C_CHECK_NUMBER is the data field. I want to left pad the field with 0's to make it 6 digits long and store it in a variable. Something like this
    <?variable@incontext:PADDED_CHECK_NUM;xdofx:lpad(C_CHECK_NUMBER,6,’0’)?>
    <xsl:variable xdofo:ctx="incontext" name="PADDED_CHECK_NUM" select="xdoxslt:lpad(C_CHECK_NUMBER,6,’0’)"/>
    Neither of the above works.
    Thanks
    Kishore

    <xsl:variable xdofo:ctx="incontext" name="PADDED_CHECK_NUM" select="xdoxslt:lpad(C_CHECK_NUMBER,10,’0’)"/> worked for me. I missed the '$' sign to retrieve the value.

  • Substring function for presentation variables in obiee

    I have a presentation variable called period that has the (fromdate and to date)
    Is there any way that I can split this one variable into 2 by using substring function??in such a way that it gives one for from date and the other for to date..
    any synatx like
    SUBSTRING ( '@{period} FROM 0 FOR POSITION
    (' - ' IN '@{period})) ???
    and how to apply this?

    The answer to this question is the same for the one you posted here:
    can we create two dashboard prompts for the same column in the samepage
    You need to split your prompts into two. If you read the link I posted in the other thread and re-posted here, you will find that the reason to do it this way is so you can see the values of the prompts. Read the first paragraph of this link -- again, if you already read it. You cannot split the single presentation variable if you use the BETWEEN operand in the dashboard prompt. You need to put the operand in the filter in your report.
    http://oraclebizint.wordpress.com/2008/02/26/oracle-bi-ee-101332-between-prompts-for-date-columns-using-presentation-variables/

  • How can I create a function using TestStand variables and call it from a step's Pre-Expression?

    In one sequence I have dozens of Pre-Expressions which are almost the same thing, like this...
    Locals.tagID = (Parameters.singlePhaseEnabled ? "L" : "D") & Str(Locals.phase) & "006"
    ...and the only thing different is that three digit string at the end ("006" will vary). How can I write a function that I can call from a step's Pre-Expression so it would look something like this? ...
    Locals.tagID = MyNewFunction("006")

    You cannot write custom commands for expressions.
    That being said, there are a couple of options:
    Create a subsequence with a single step. Use a parameter of the sequence as "function parameter".
    Create a custom step type including a substep module which implements the function. Add an edit substep to enable the user of the steptype to gracefully change the parameter.
    Store the variable parameter in a local/file global variable and modify the value in each step. This will, at least, keep the "function" the same for every step.
    Norbert

  • Attempting to test Function with Bind Variable --- What am I doing wrong?

    When I try to test a function (ComputeFreight) with a bind variable, I get an error, returned.....
    "SQL> EXEC :ComputeFreight :=V_ComputeFreight;
    BEGIN :ComputeFreight :=V_ComputeFreight; END;
    ERROR at line 1:
    ORA-06550: line 1, column 25:
    PLS-00201: identifier 'V_COMPUTEFREIGHT' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored"
    What am I doing wrong?
    Below is my code with description ----
    create or replace function "ComputeFreight"(p_ORDERNUMBER IN C_ORDER.ORDERNUMBER%TYPE) -- Passing Ordernumber into Function
    return NUMBER
    is
    -- Declaring Variables
    v_ComputeFreight NUMBER(10,2);
    v_low number (10,2) := 0.05;
    v_high number (10,2) := 0.07;
    v_SUBTOTAL NUMBER(10,2);
    begin
    -- Computing order subtotal (Retrieving Item cost and qty from two different tables, multiplying and adding total order cost)
    SELECT SUM(O.QUANTITY * I.ITEMPRICE) INTO v_subtotal
    FROM ORDER_LINE O JOIN INV_ITEM I
         ON (O.ITEMNUMBER = I.ITEMNUMBER)
    WHERE O.ORDERNUMBER = P_ORDERNUMBER;
    -- Testing to see which freight charge rate to use
    IF
    v_subtotal < 300.00 THEN
    v_computefreight := v_subtotal * v_low;
    ELSE
    v_computefreight := v_subtotal * v_high;
    END IF;
    -- Returning Freight Charge
    RETURN v_ComputeFreight;
    end "ComputeFreight";
    -----------------------------------

    You have made at least 2 errors.
    The first one is the name of your function:
    create or replace function "ComputeFreight" (You use double quotas and the mixed case in the function name - it means you
    make your function name case-sensitive. In the call of your function you have to use double-quoted form "ComputeFreight", nothing else.
    If you your function name has to be case-insensitive, don't use double quotas or
    use upper-case form: "COMPUTEFREIGHT".
    The next mistake is how your call you function. You have to do the following:
    var V_ComputeFreight number
    EXEC :V_ComputeFreight := <your function name>
    V_ComputeFreight is a bind variable and you have to read more about this.
    Rgds.
    P.S. and as Dave fairly remarked above you have to pass the argument into the function.
    Message was edited by:
    dnikiforov

  • Using pipelined functions with bind variables in Apex...

    Hy all:
    I have a table which has about 10 million records and it is hanging up the system when it is trying to retrieve the data from that table... so what I have done is I created a pripelined
    function and then trying to retrieve data using an SQL statement ... when I try to use a bind variable to filter by the date and location it is binding according to the location
    but not by date ... can anyone help me in this please!!
    Help greatly appreciated !
    Thanks in advance !

    Hi Denes:
    Create or replace type ohe1 as object (
    IMLITM NCHAR(50), IMAITM NCHAR(50), IMDSC1 NCHAR(60), COUNCS NUMBER(22), LIPQOH NUMBER(22),
    LIMCU NCHAR(24), LILOCN NCHAR(40), LILOTN NCHAR(60), LILOTS NCHAR(2), IOMMEJ NUMBER(22))
    CREATE OR REPLACE TYPE OHE AS TABLE OF Ohe1
    CREATE OR REPLACE FUNCTION GET_ohe
    return OHE PIPELINED
    IS
    m_rec ohe1:= ohe1 (NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,0);
    begin
    for c in (select f1.LITM LITM, F1.AITM AITM, F1.DSC1 DSC1, F5.UNCS UNCS,
    F21.QOH QOH, F21.MCU MCU, F21.LOCN LOCN, F21.LOTN LOTN, F21.LOTS LOTS,
    F8.MEJ MEJ FROM F1 F1, F2 F2, F21 F21, F5 F5, F8 F8
    WHERE (F5.EDG='07') AND (F21.QOH != 0) AND F2.IBITM = F1.IMITM
    AND F21.ITM = F2.ITM AND F21.ITM = F5.ITM AND F21.MCU = F5.MCU
    AND F21.MCU = F2.MCU AND F21.LOTN = F8.LOTN AND F21.MCU = F8.MCU)
    loop
    m_rec.LITM:=c.LITM;
    m_rec.AITM:=c.AITM;
    m_rec.DSC1:=c.DSC1;
    m_rec.UNCS:=c.UNCS;
    my_record.QOH:=c.QOH;
    my_record.MCU:=c.MCU;
    my_record.LOCN:=c.LOCN;
    my_record.LOTN:=c.LOTN;
    my_record.LOTS:=c.LOTS;
    my_record.MEJ:=c.MEJ;
    PIPE ROW (my_record);
    end loop;
    return;
    end;
    select LITM , AITM , DSC1 , UNCS*.0001 UNCS, QOH*.0001 QOH, (UNCS*.0001)*(QOH*.0001) AMOUNT,
    MCU MCU, LOCN LOCN, LOTN LOTN, LOTS LOTS, jdate(DECODE(MEJ,0,100001,MEJ)) MEJ FROM
    TABLE (GET_ohe)
    WHERE trim(LIMCU)= TRIM(:OHE_BRANCHID)
    AND (jdate(DECODE(MEJ,0,10001,MEJ)) >=:FROMEXPDT
    AND jdate(DECODE(MEJ,0,10001,MEJ)) <=:TOEXPDATE)
    The MEJ is a julian date and I am trying to convert it into a date ..... using the function jdate! and the pipelined function is created without any errors
    and I am able to get the data with correct branch location bind variable but only problem is it is not binding the date filters in the sql.....
    Thanks
    Edited by: user10183758 on Oct 16, 2008 8:17 AM

Maybe you are looking for

  • WRITE BACK IN OBIEE 11g

    Hi , Colud you please clearify the error "The system not able to read the WRITE BACK template.Please contact your system Administrator. for that, I folled this Document. http://rajeshthomas.blogspot.in/2012/08/writeback-analysis-in-obiee-11g-part-1.h

  • Something is wrong with some of my PSD files when I save them?

    I am working with Photoshop Cs5 extended, and I have had it for about a year, I work in Windows 7. I was working on a comic when my scanner broke so I took pieces of the skecthes I drew instead to paint them in photoshop with my cannon powershot came

  • IMac will not boot

    Hello everyone, I feel as though I'm fighting a lost battle, but just in case, I wanted to know if anyone could help before I throw in the towel. So my iMac (early 2010, I believe), will not boot. It gets stuck at the loading screen with the apple lo

  • Mac OS 9 Graphics mode

    Hello. I just purchased a game for my kids. It's an application designed for Mac OS 9. It runs just fine for me on Tiger 10.4.3, but the graphics resolution (magnification?) in full screen mode is such that the game's display area is very small (abou

  • Can too many Photos slow down a Mac Pro?

    Hi, I have atleast 100,000 photos on my pc, would this many photos slow down a 2.66GHz quad core mac pro with 6 gigs of memory? thanks