HTML PAGE: formula IF conditional Expression?  IF command?

Hello-

I create a 1 page 'calculator' in the Apex. I have it in Excel, but I don't want to send my Excel workbook to people.

I need a boost in the right direction to learn how to do it using the formulas of the Oracle, in particular instead of my 'if' Excel formulas.

I found Oracle guide for: formula language but User Guide I get a message ORA-06550, complaining of the? in my expression... I also found Guide of Developer OLAP Oracle 9i... working with expressions

one place speaks: expression? Expression2: expression3
Another place: Boolean-expression IF THEN expression1 expression2 ELSE

I also tried: BOX WHEN expression1 THEN expression2 expression3 ELSE


I need to know the syntax or format for:

If ((: p1_item1 > 0) then: p1_item1 /: p1_item2 ELSE 0)

Thank you-
Marion

I'll assume that it is in a calculation and no javascript, because the syntax would be different.

You can do it with type pl/sql or sql expression is (work):

case when :P1_ITEM > 0 then :P1_ITEM/:P1_ITEM2 else 0 end

If it is the body of a pl/sql function, something like this:

if :P1_ITEM >0 then
  return(:P1_ITEM/:P1_ITEM2);
else
  return(0);
end if;

Tags: Database

Similar Questions

  • Here's a strange. I have a HTML page with this time a wmv video. It works perfectly from a USB stick or SD card, but does not work when they are copied to the hard drive

    I have an HTML page created with web expression 4. It contains only a wmv video. It works perfectly when it is called from a USB stick or SD card, but does not work when they are copied to the hard drive. The results are the same with IE and Firefox. It don't make no difference if I use Media Player V9 or V11. He has no control on the page Media Player. Video and html files are in the same directory. Here is the code snippet:

    LIFT, DRAG, THRUST and GRAVITY










    If I run it on a machine with Win 7 there is no problem.

    Richard Grosser

    Hi Richard c. Grosser,.

    Your question is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please post your question in the Microsoft Expression forums.

    http://social.expression.Microsoft.com/forums/en-us/categories

  • Flash command to open the .html page

    Hello - I have created a site with frames for a client (against my suggestion), but they still wanted. He's a senior and a backstory. Senior management has all the buttons of options in this 'home' "about us", etc..
    When click on these, I need their associated .html pages to load in the lower frame. Senior is the backstory of indexTop.html is indexBottom.html.

    What add you to the usual command (below) is not frames to achieve

    on (release) {}
    getURL ("thispage.html");
    }

    Thanks for any help,
    Eric

    Hello

    As far as I remember I did something similar a few years ago and the goal was to use what is called iframe.

    Maybe this link will help you:
    http://www.Kirupa.com/developer/Flash5/frames.htm

    Although it refers to Flash 5, the solution might work in the latest version of flash. He should also know that the executives are considered a little 'old' these days.

    Greetings

  • How can I reverse a condensed html page

    I had previously used an EW4 editor and condensed into an html page in order to remove the empty spaces.  I am now using DW CS6 and need to uncondense (if there is such a Word) the file for easy reading.  I would like your advice.  He must have a way to do it. You can also see the condensed code similar to http://www.oldeworldelace.com/Coventry.html thanks in advance.

    Reduced code can be very difficult to work with.  Try the command > apply Source format.

    To implement your code formatting, go in Edition > Preferences > ECMA.  Record.

    Re - do commands > apply Source Formatting.

    Nancy O.

  • How can I remove conditional Expressions in RH7 build?

    I have a project with artifacts to create a conditional Expression that I can't just simply get rid of.

    For example, I created two conditional Expressions to build:

    Internal OR Foo1

    Foo1 OR Foo2

    It was decided that the second phrase is the one we want.  But one always shows up as an option in the SSL.  Also, when I go to a page, the first expression clutter to the top of my list of possible conditional build Expressions.

    How can I lose a conditional Expression to build?  I have quite a few possible arrangements, and I don't want to confuse others by having too many choices (especially with similar names).

    Kevin

    Hi Kevin.

    I think you should do this by manually editing the file in the project .pss (projectname.pss). If you take a backup of this file and open in Notepad, you will find a section [Global Build Tag Expressions] and if all goes well there will be your expression 'In-house or Foo1' preceded by a date/time stamp. If you remove this line, it should no longer appear in your project.

  • Get the HTML page you are browsing

    The view is that I'm doing a navigation bar with 12 choices, every choice has a prefix of the current Airport (LAX, SFO, etc.). There are many airports, so I will try not to make a navigation SWF for each airport. Instead, I am trying to get the prefix of the current html page (which loads from the back-end) which will have this prefix appropriate for this topic.

    So if I'm in "lax - home.html", I want the program to read this, take off the first three letters ("lax") and which are a variable. In this way, when I select anything in the navigation, it will put the first three letters in front of it and go to the URL in this airport. I don't know if I can do it. I try to avoid to make a unique for each airport navigation, when all that changes is the first three letters. Let me know if you need any clarification. Thanks for any help!

    I have given in the URL and analyzed in a string, it is too, I don't understand. I put in two commands in the HTML where the Flash movie are sitting:

    1.
    2 and in

    'airport' is the variable in Flash (in the Flash file is called "_level0.airport") and "sbn" is the definition of the variable for 12 of the files. I'll just find "sbn" and replace it with the new airport name in the next game. It is very slippery, but it's better than having to create a new navigation for each airport. Thanks for the help.

  • Why can't I save a local HTML page on the new tab page?

    I have an HTML page stored on my hard drive local. I created a bookmark for it; the url begins with "file://". I can easily add any other web page marked with a bookmark to the new tab page, but I can't add my local HTML page. How do I do that?

    Hello, try to do this
    Open your page normal HTML (double click on the file), then copy the address address bar (the path of your daughter), then in the address bar, type "subject: config", press ENTER, yes I'm cautioned (some look like this, sorry I don't have FX in English), in the search bar, type "browser.newtab.url" and the option that is displayed, click with the right button of the mouse and click on change... or double click on the option , change its value to a copy the address (address of your file you copied), click OK and test

    Sorry my bad English!

    Thank you

  • Hindi fonts not rendered in html pages

    Hindi fonts not rendered in html pages are operating except the mangal font and original.
    Is it a bug or a problem which I am not capable of tackling.
    Browser Mozilla reveals an error in the console (font download has failed or the character encoding of the HTML document is not declared. The document will be made with text truncated in some browser configurations if the document contains characters from the US-ASCII range.
    the downloadable fonts: download failed (font family: 'Kruti Dev 010' style: normal weight: normal stretch: normal CBC index: 0): status = 2147500037
    Source: file:///D:/epub/filename/OEBPS/Fonts/k010.otf @ file:///D:/epub/filename/OEBPS/Styles/style.css).

    Please answer soon.
    Thank you.

    1 - is the HTML page to specify the correct encoding, and is the file saved in this encoding? Validate your markup and style sheet in the links below.

    2. the style sheet point to the correct file?

    3. the police is a Unicode font? If so, there may be another problem with the font file. Try to use the following fonts generator to convert it into several formats.

  • PIC of links not working in FF but is in IE8 on HTML page

    Hi, I have an Html page that has a bunch of images of small peak on this subject. When you click on one it displays close-ups in the center of the page. For some reason any they all work well in IE8 but not Firefox only works of bottom line. The law on the rest because they have no mouse link does not change to the symbol hand pick. Normally I never have an issue with FF more often its IE.

    It is because the DIV TABLE with class = "Object336" is coming to overlap this part of the screen.
    You set the height of the table to 405px.
    Remove this attribute height and also remove the three
    in the last BAY contact us

    <DIV class="Object336"><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=860 HEIGHT=405><TR><TD VALIGN="TOP" ALIGN="left"><DIV CLASS="text-align:left;margin-left:0px;text-indent:0px;"><SPAN CLASS="textstyle0"> Please write if you would like to use <br>some of my pictures. I have  many more. <br></SPAN><SPAN CLASS="textstyle1"><A HREF="Page12.html">Contact Us</A></SPAN><SPAN CLASS="textstyle0"><A HREF="Page12.html"></A> for more Info.<br><br><br>
    </SPAN></DIV></TD></TR></TABLE></DIV>
  • How can I see the source code of a html page?

    In previous versions, it was possible to read the source code on an html page in the "View" menu It is no longer there. How to read code now?

    Use one of them:

    • Firefox > Web Developer > Page Source
    • Tools > Web Developer > Source of the Page (Ctrl + U)
    • Right-click on a web page to open the shortcut menu and select the Source of the Page
  • How to put my html page created as home page?

    I created an html page and I want to put it on the home page so that whenever I open firefox it should open. The page I created is html.

    Here's how I did it.

    I saved the page to a folder on my C drive.

    Then in Windows Explorer, I opened the folder and double click on the page to open it in Firefox. (If Firefox is not your default browser, then you can drag the page of Windows Explorer in a Firefox tab to open it.)

    Then I went into the dialog box Options and clicked on the use current Pages button.

    It works for you?

  • Cannot open html page to trident engine

    Our home alarm system is accessible via the internet. Until I've used MS IE there is no problem. Unfortunately Firefox cannot open html pages. Your alarm system producer says that Firefox is not the good browser for that. After searching the Internet I found, that alarm works with the browsers of engine trident (not just from MS). Now the question: any Firefox plug in, or should I to get Firefox? I don't want to buy a new alarm system for US$ 2,000! Help, please! Thank you!

    Well Yes, its there for FF too...

    https://addons.Mozilla.org/en-us/Firefox/addon/IE-tab-2-ff-36/

  • How to access a conditional expression IF-step via API?

    If we have a flow control stage IF so we can access its conditional expression via:

    "" 'RunState.SequenceFile.Data.Seq ["MainSequence']." Hand ['IF']. ConditionExpr

    How to access this term if we do not know the type of step beforehand? I create a sort of auditor of static expressions. I have access to a step through

    RunState.InitialSelection.SelectedFile.Data.Seq [Locals.seqIndex]. GetStep (Locals.stepIndex, Locals.groupIndex)

    What if

    RunState.InitialSelection.SelectedFile.Data.Seq [Locals.seqIndex]. GetStep (Locals.stepIndex, Locals.groupIndex). StepType.Name == "NI_Flow_If".

    then I want to use the Engine.CheckExpression method to the conditional expression IF-step

    Hey maksya,

    Attached is a file of sequence with a flow control if statement that checks to see if the step is a 'NI_Flow_If' using:

    "" 'RunState.SequenceFile.Data.Seq ["MainSequence']." GetStep (0, StepGroup_Main). StepType.Name == "NI_Flow_If".

    If this is the case, it will then call check expression on the current ConditionExpr:

    RunState.Engine.CheckExpression (ThisContext, RunState.SequenceFile.Data.Seq ["MainSequence"]. GetStep(0,StepGroup_Main). ConditionExpr, 0, Locals.errorString, NULL, null)

    You will notice that this expression is not valid, and that's because "ConditionExpr" is not valid for all types of step.  However, because this step will not work UNLESS the stage is a NI_Flow_If, the expression will be valid at run time.

    Also is that I changed to using InitialSelection.SelectedFile to SequenceFile just to facilitate the testing of the installation.  However, it will be the same for your SelectedFile.

  • Try calling a WCF service hosted locally by a HTML Page customized using jquery. Error: 451: undefined

    Hello

    I created a WCF Service, customized and hosted locally by using application Console VS.

    I need to access the methods of the custom of a custom Page HTML application, using JQuery.

    I tested the WebService in Wcftestclient.exe and it works very well.

    Now, while trying to access it from the HTML Page (not no matter what Web Application), he runs into function() error of $. ajax()

    State of error: 451

    messageReason Error: Undefined

    Please share your suggesstions how approach when accessing the client HTML Page.

    Hello

    The question you posted would be better suited in the MSDN Forums; We recommend that you post your question in the MSDN Forums to get help:

    http://social.msdn.Microsoft.com/forums/en-us/WCF/threads

    Keep us updated on the status of the issue.

  • How to link to pages created by web expressions 4?

    Original title: Web links.

    How to link to pages created by web expressions 4?

    Hi mmuribi,

    You can follow these links and check if it helps.

    http://expression.Microsoft.com/en-us/ee662149.aspx

    http://www.Microsoft.com/expression/News-Press/newsletter/2007-10/Article04.aspx

    Hope the helps of information.

    Please post back and we do know.

Maybe you are looking for