How to assign a calculation to a variable in the RTF file?

Hello


I play a series of if - end if statements to calculate the "Days_Late."

<? If: DAYS_LATE < 0? > <? xdoxslt:round ((somme (if: DAYS_LATE) div count (PAYMENT)), 0)? > <? end if? >

<? If: DAYS_LATE = 0? > * <? end if? >

<? If: DAYS_LATE > = 0? > <? xdoxslt:round ((somme (if: DAYS_LATE) div count (PAYMENT)), 0)? > <? end if? >

I would like to assign the code above to a variable and use this variable in the following logic <? xdoxslt:IfElse (VARIABLE > 0, round (VARIABLE),-1 * round (xdoxslt:abs (VARIABLE)))? >

to exercise a function of round_up ("symmetric" rounded). Oracle doesn't have a function for this yet...


How can I make this work directly in the .rtf file?


Thank you

ATP

Hi all

I didn't change the data (sql).
Also, I tried to make it work using the xdoxslt:set_variable () and xdoxslt:get_variable () functions. However, this was not necessary and makes more complex than required.

It is now resolved using a formula of symmetric rounding (rounded to 0):

I replaced the VARIABLE with my calculation: (sum (DAYS_LATE) count (PAYMENT) div)

Thanks a lot for the replies and offers to help her

Tags: Business Intelligence

Similar Questions

  • How to assign URLs dynamically using button/link on the page of peoplesoft? Please provide detailed instructions.

    How to assign URLs dynamically using button/link on the page of peoplesoft? Please provide detailed instructions.

    1. define the URL, the Z_URL1 or the Z_URL2 definitions

    2. in the change of field button:

    If true Condition then

    ViewURL (URL. Z_URL1);

    On the other

    ViewURL (URL. Z_URL2);

    End - if

  • I would like to import the contents of an audio book on cd for my audiobook file into iTunes.  How can I transfer content song (in iTunes) to the audiobook file lists?

    I would like to import the contents of an audio book on cd for my audiobook file into iTunes.  How can I transfer content song (in iTunes) to the audiobook file lists?

    Go read the information, click on the 'Options' tab, then change the drop-down list of "sort of media" to "Music" to "Audiobook". That worked for me, I hope that it helps you also.

  • How can I change my fill of tru for the pdf file and the sign? It will never change.

    How can I change my fill of tru for the pdf file and the sign? It will never change.

    In Adobe fill & sign you can add text, checkmarks, an X, a point and a circle and sign documents.  It does not "change" the existing content of the document.  Here is a tutorial: Tutorial: Introduction to Adobe fill & sign

    Thank you

    Josh

  • How to assign a user to a variable?

    for example:

    username: * scott *.

    under this user, there is a table called employee.

    Select * from scott.employee; (Normal mode)

    I want to assign the user scott to the variable a and view the table as
    Select * from a.employee;

    Is it possible to assign a user to a variable?

    In SQL, a variable is allowed to be used only as a value that is passed to a clause where clause. You cannot use variables that contain the name of the object in the static SQL. You must build the SQL Dynimically.

    Here is an example.

    declare
      mySchema varchar2(100);
      lSal emp.sal%type;
      lEmpNo emp.empno%type;
    begin
      mySchema := 'SCOTT';
      lEmpNo := 100;
      execute immediate 'select sal from ' || mySchema  || '.emp where empno = :1' using lEmpNo into lSal;
    end;
    
  • How can I build and pass a variable to the function getField?

    I need to know how to build and pass a variable to the function getField():

    I have a form of several sections similar to a spreadsheet.  Each section contains 5 rows of 11 columns.  Currently I have calculations in the field I want to consolidate and move to the level of the document.  The field names in each column are identical except for a row identifier.  For example, in the 1st row: a_debtType1, a_debtTerm1, adebtRate1, etc.  I want to be able to pass to a function of level document line identifier and that connect a function "getField.  Here is an example:

    Document-level:

    function calculateLoan (lineNumber) {}

    var myDate = getField("a_debtType"+lineNumber).valueAsString;

    var myDate = getField("a_debtTerm"+lineNumber).valueAsString;

    .. few treatment

    return

    }

    Level of the form:

    change the information in the form is ready for line 1

    function calculateLoan("1");

    Thanks in advance for any help.

    It seems good except how you call the function of what you have. The calculation script should be something like:

    Custom calculate script

    calculateLoan("1");

    Note that you can also get the line number if it is contained in behalf of the field that calls the script if you don't disturb him passing as parameter, assuming you named the fields correctly.

    For example, to calculate the field is called "row_total.1", you can get the line number in the script like this:

    var no_lig = event.target.name.split(".") [1] ;

  • How to have a prompt for all variables in the startup script?

    I was given a script to run that repeated a couple of specific column values many times in queries in the script. I noticed the ability to set variables in scripts, then in the copy of my script, I changed the value repeated a reference variable (starting with '&') and then I executed the script. What I discovered is that the execution of the script appears to present the prompt for the value of the variable EVERY TIME the done variable references, instead of only once at the beginning of the script. What can be possibly right? Is it possible to have this script the only guest (or two, perhaps, for two variables) at the beginning of the script and just have it use this value in the many places in the script need?

    Yeeees well. In the above example would be: Cancel the definition of entry
    BUT, assuming you're sqldev (not), and that you run as a script (F5), you don't need to the above calls, and you will be prompted for the value of each race.
    If you run instructions in sqldev (F9), usually, it makes more sense to use bind variables (*: * instead of * & *).

    Have fun
    K.

  • How Config Network Service by script? for example the response file

    I created a batch for DB creation using DBCA silent.

    I want to add a script to create also the Networking Service after.

    I was told that it can be done with the answer file.

    Is a response file script also which can be run after the DBCA scripts?

    Where can I find a manual with the available commands so I can produce what I need?

    On the internet, I don't find as silent examples of the DB instalation.

    EDIT

    Operating system is Windows 7 Oracle 11.2.0.1

    I want to create the Network Service that will add these lines to the tsnames.ora.

    DBNAME =

    (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = wsName) (PORT = 1521))

    (CONNECT_DATA =

    (SERVICE_NAME = dbname)

    )

    )

    on the client and the server.
    How can I automatically via a batch script, to add it to the DBCA scripts after creation?

    I was told once to atopic that this could be done via a response file.

    I provided the Correct found answer on this subject since then.

    The 1st solution to set up a NetService via a custom command script, adding the data you need as if it was a BAD IDEA.

    1. you can not guranaty the correct paths if you plan the planting in an API with a lot of end users.

    2. the 1st time, you set up a network service, it must be set to cause netca (network Assistant) 1st the tnsnames.ora is not exiswt at all.

    THE OFFICIAL is to run from a shell in silent mode netca and feed it with values from a response file, either online as parameters

    I copy paste the solution I wrote on a separate thread

    https://forums.Oracle.com/thread/2559659

    The scenario is to set up a typical network Service without using the interface graphics, but instantly with a command from the shell.

    Scenario took place on Oracle 11.2 g on Windows 7

    Level of Description: Noob

    1. you can open of Network Setup Wizard, of the hull directly by entering its name "netca.

    Info: netca is an actaully of batch file calling several "elements". Located in the \bin folder of the directory of Instalation Oracle (Client and server time)

    the patrh of the \bin folder, where is the netca is included in the widnows PATH environment variable. So when you enter netca there and run it.
               https://en.Wikipedia.org/wiki/path _ (variable)

    ATTENTION: If you have the path of the directory before the path of the Client Server, the server netca will run instead

    2. on a typical NetService we re Protocol, host, Port, DatabaseName and the name of the service itself to identify it.

    -Silent option along a response file gives the possibility of is not interact at all with the GUI as all values will be filled with the answer file that will point us

    3. you can find an example of response file to the ORACLE_HOME\inventory\response\ called netca.rsp. It contains all the possible parameters, you can pass, so that you can choose that you need.

    For our scenario, the final answer file will look like this.

    [oracle.net.ca]

    INSTALL_TYPE = ""custom"

    NAMING_METHODS = {"TNSNAMES"}

    NSN_NUMBER = 1

    NSN_NAMES = {'DBNAME'}

    NSN_SERVICE = {'testII"}

    NSN_PROTOCOLS = {'TCP; PCNAME; 1521 "}

    So now you simply enter netca responsefile option along the pat of the answer file with the silent command to power entry

    NETCA/Silent /responsefile /C:\oracle\product\11.2.0\dbhome_1\inventory\response\mynetca.rsp

    So simple

  • To access the Variables in the class file

    Say that I set a variable in a class file:

    public var container: sprite;

    I add the sprite to the scene and set it's x and y in the class file. How I would go about the change in x and y of the container in my fla file?

    You are welcome.

    using a method to expose parts of your class makes it easier to read and debug your classes.

    p.s. If your issue is resolved and that you are able, please mark this thread as answered.

  • How to get previous value of an attribute in the VOImpl file?

    Hi all
    I want to compare if the current value of the attribute VO A1 is equal to the previous value of the A1 when the value of this attribute A1 gets changed, how to get the previous value of the A1?
    I know that in the VORowImpl file I can use this.getA1 () which returns me the current value of the A1, but I don't know how me may return the previous value?

    Appreciate your help in advance!
    Thank you
    Yvette

    getPostedAttribute the value of the attribute as it was queried from the database.
    Here is an example written in EmployeesImpl

        /**
         * Sets value as the attribute value for Salary.
         * @param value value to set the Salary
         */
        public void setSalary(BigDecimal value) {
            Object attribute = getPostedAttribute((EmployeesImpl.SALARY));
            if(attribute!=null)
                System.out.println("Attribite value " + attribute); //this will give you the value as it was in the data base before you modified it.
            else
                System.out.println("attribute value is null");
            setAttributeInternal(SALARY, value);
        }
    
  • The variables in the local file backup

    Hello

    First of all, I'm not very good at that. I hope that you do not conclude against me. My player (projector, I guess that the term) runs on Windows XP using Flash 10 (I'm editing in CS5).

    I got the task to modify a Flash animation (not SA) so that it would collect data of WSDL, write to a text file, and then use that data every time it runs.

    You see, the Flash animation is part of a selection (digital display) and has a fixed term which does not network problems when retrieving WSDL data. So, while I managed to do work correctly in just showing the WSDL data directly - it sometimes expired.

    I have the recovery of WSDL part down (flex), I can even read .txt stuff files, but cannot make the middle part - written variables in a .txt file.

    I appreciate any help you can offer.

    You can perform manipulations of file with AIR. Otherwise, it is not possible for security reasons.

  • How to add multiple images to a JLabel since the jar file

    I want to add more than one image in a JLabel, but the icon property only allows me to add a. I thought I could use the rendered html to add the images I need using the < img > tab, but I need to use a URL that points to the image.

    How do I point to an image in the jar file? If I can't do it, is there another way to display multiple images in a JLabel since the jar file?

    Discover camickr [http://tips4java.wordpress.com/2009/03/29/compound-icon/ url] composed icon.

    DB

  • Cannot access the process value of the variable in the DXFA file

    Hello

    I use request-Assembly solution accelerator to sting the forms. I'm trying to access a process inside the dxfa file variable.

    It's the syntax I used: < var items = c:forEach = "${requestScope.paramsMap.templateList"templateItem"}" > the templateList value is not read. The same code works fine if I hard code elements.

    paramsMap is defined as the variable map of parameters in the function invokeODADocument.

    Any suggestions on what I might be missing here?

    Thank you.

    Kind regards

    Vidya

    Vidya Kesavan

    Just a shot in the water here, but I think you have a typo in on "requestScropt.paramsMap.templateList" where "paramsMap" should be "paramsmap" in the context of the CSC model. This could be the cause, it is impossible for ODA find the variable you are referencing. (I think it's "paramsmap" within the SCC regardless of what name you have the parameter map process variable.)

    Stefan

    Adobe Systems

  • How to link to an another spry tab in the include file.

    Hi all

    I am new to using spry tabed panels, acordians, etc.  I was wonding if something is possible.  You can link to a different panel of spry tabed another where both are include files?

    Here is an example of what I am asking:

    <! - what is main.inc.php which is an include file in index.php - >

    < div id = "TabbedPanels1" class = "TabbedPanels" >
    < ul class = "TabbedPanelsTabGroup" >
    < class li = "TabbedPanelsTab" tabindex = "0" > tab 1 < /li >
    < class li = "TabbedPanelsTab" tabindex = "0" > tab 2 < /li >
    < class li = "TabbedPanelsTab" tabindex = "0" > tab 3 < /li >
    < class li = "TabbedPanelsTab" tabindex = "0" > tab 4 < /li >
    < class li = "TabbedPanelsTab" tabindex = "0" > tab 5 < /li >
    < /ul >
    < div class = "TabbedPanelsContentGroup" >
    < div class = "TabbedPanelsContent" > <? PHP include(content_page_1.inc.php');? > < / div >
    < div class = "TabbedPanelsContent" > Content 2 < / div >
    < div class = "TabbedPanelsContent" > <? PHP include ('content_page_2.inc.php');? > < / div >
    < div class = "TabbedPanelsContent" > 4 content < / div >
    < div class = "TabbedPanelsContent" > <? PHP include(content_page_3.inc.php');? > < / div >
    < / div >
    < / div >

    So if main.inc.php is included in the index.php with content_page_1 and content_page_2 set up identically to main.inc.php...  You can have text in tab 4 of the content_page_1 will take you to tab 2 in content_page_2?

    If it is possible, does anyone know of a tutorial where I can learn how to do this?

    Thank you

    Your description is a little hard to follow, but it seems that you have with tab panels nested inside each other.

    The fact that you use include files makes no difference whatsoever. Include files are assembled on the server to create a web page. Therefore, the important thing is that your panels with tabs should have a unique ID. So, if you are nesting inside the TabbedPanels1 tabbed panels, the other panels should be TabbedPanels2, TabbedPanels3, etc.. Each set of tabs panels will also be initialized by the constructor Spry at the bottom of the parent page.

    The best way to implement is to create a simple page that does what you want, then skinning in the include files.

    Use the showPanel() method to open a different tab. For example, to create a link to open the third tab in TabbedPanels1, you create a link like this:

    Open panel 3
    

    The panels are numbered from 0, so 2 represents the third tab.

    I have not tested, but in theory, the following should open a specific tab in a nested set of tabbed panels:

    Open panel 4 inside the second tab
    
  • How to read a string of file &amp; assign val to a variable in the batch file

    Hello

    How to read a string from a file and assign the value to a variable, then return the value on the screen in the windows batch file?

    Any suggestions?

    Thank you.

    Try again with

    off @echo
    for /F "delims =" % in ('findstr /i OPEN status.log") set var = %% a
    % Var Echo%

Maybe you are looking for

  • How can I change the black background of iTunes 12.4.1.1

    I am running iTunes 12.4.1.1 on OS 10.8.5 on a Macbook Pro. How can I change the black background on iTunes to simple white. Thanks for any help Savewolves

  • How to set the text bigger? Help.

    Want more text on the screen. Besides that I printed everything has been very itsy bitsy... much smaller than on the screen.

  • Satellite R850 uses only 25% of the CPU

    Hey, my toshiba satellite R850 uses 25% of the CPU, I got 8 GB of ram, and most of the higher quality games have 20-30 FPS, is there a possibility to make it higher? Thanks for the help!

  • Windows Installer error message

    When you try to install Java, I get an error message saying that Windows Installer are not available. It can occur if you are using without failure or if Windows Installer is installed incorrectly. I'm not in safe mode. I don't know what to do to fix

  • All my icons the office opened in the same program.

    I have Windows Vista Ultimate, and the dose of OS disk not a repair on this subject. My problem is with the exe file. that some how got corrupted even thru on my computer (files, sub & folders). However, I was able to make another witch account direc