Is CASE function allowed in forms 6i???

Hi,
Is CASE function allowed in forms 6i???
Thanks
ESL

Hi!
The case statement come first with Oracle Database 9i.
In Forms 6i it will not work.
Regards

Similar Messages

  • CASE function problem in forms

    I am using the CASE function in View. Whenever i execute it using SQL plus it runs successfully. I have developed a form on this view and the form does not reflect the CASE function changes. Just an example i am using the CASE function to set the number format but it is not depicting on form.
    SELECT (CASE when TO_NUMBER(123123.12/1000000) < 1 THEN TO_CHAR(TO_NUMBER(123123.12/1000000),'0.99999')
    ELSE LTRIM(TO_CHAR(TO_NUMBER(123123.12/1000000),'999,999.999999')) END) as targetamount
    FROM DUAL

    This is not that diffucult.....I rememeber doing this in one of my forms....
    I would have three content areas
    ContentArea A (Portrait) linked to Subform A
    ContentArea B (Landscape) linked to Subform B
    ContentArea C (Portrait) linked to Subform C
    Now I will set the Min, Max and Initial values for each of those Subform using Binding tab.
    Then I will manage the page layout selection with each of those subforms using Object>>Pagination>>Place and link those to the Content area A B or C based on the layout they should go on. That should do the trick.
    If this is not helpful just forward me a copy at n_varma(AT)lycos.com....I will try my best.
    Good Luck,

  • Subtotal issue when subtotaling on a calc field built using CASE function

    Okay, I hpe I can explain this well. May be possible that this is something cannot handle in Discoverer. I am using Discoverer Plus to develop a new workbook - cross project expenditure inquiry. A requirement is to not allow a worksheet user to see labor cost (since possible to figure out someone's salary) amount unless they are allowed to view labor cost. I have a function that returns a Y/N value that tells me if they can view labor cost. That works out just fine. So what I am doing is taking my database cost column (which is defined as Number(22,5) in the Oracle table. I create a new calculated column, basically like this -
    CASE WHEN expenditure type <> LABOR THEN cost WHEN view labor cost = 'Y' THEN cost ELSE NULL END.
    That calculated column is working just fine. I am seeing my desired results in that column. Okay so far.
    Next, the users want subtotals by project organization and project. So I created a new total. When I did that, my subtotal row amount is blank.
    Okay, I have seen this happen with NULLS before. Like in the gl_je_lines tables, where the accounted_Dr and accounted_Cr may be null, and have to do a NVL function to convert the null to 0 and allow me to subtotal on the column in a Discoverer workbook.
    So I tried creating a second calculation -
    NVL(Cost,0)
    So I return the cost if not null, otherwise I return 0. Second calc column results look okay.
    Now I did a subtotal on the second calculation. Oops. Wrong result. Amount is shown as 0.
    For grins, I went back to my CASE statement on my first calculation and changed the ELSE condtion from NULL to 0. When I did that, the subtotal on that column changes from a blank (Null) value to a 0 value. Well, better, but still just like my second calculation subtotal.
    Obviously the users have the option to export to Excel and subtotal in Excel.
    Does anyone know of a way to get a good subtotal in this kind of situation, where I am attempting to subtotal on a calculated field that is built on a CASE function? Or am I out of luck when it comes to Discoverer?
    John Dickey

    Okay, I did find a workaround, though I do not understand why the workaround works, but why the way I first tried to get a subtotal did not work. What I did is that I had to go to Discoverer Administrator. I picked my folder and did an Insert/Item. I created my new item building the same CASE statement that I used in my worksheet to create a new calculation. I then closed Discoverer Plus and reopened Discoverer Plus. Opened my worksheet. Edited the worksheet and brought in my new (derived) item from my folder. Then I created my subtotals for this secured cost amount. Voila. I get a number now, and the subtotal amount appears to be correct (still testing/verifying, but looks okay so far). So I deleted my subtotals on my calculated column and then deleted the calculation, to get that stuff out of the report. Sure would be nice if there was documentation in the Discoverer manuals about this.
    John Dickey

  • How can i add a picture upload function to my forms

    hi all,
    i designed a forum for a survey , but i need a function to upload a picture to the form then only the meaning of the survey fullfilled , any body know how to put a "Insert image function to my forms .
    please let me know
    saji

    Hi;
    There is an "Attachment" field that allows a user to upload an attachment (Image, PDF, document etc).  It is one of the fields on the form fields toolbar:
    Make sure you are in "Web View" as opposed to "Page View" on the Design tab authoring your form to add the attachment field, the "View" setting is under the View menu and also at the bottom right corner of the page.
    Here is a tutorial on the attachment feature: http://forums.adobe.com/docs/DOC-1413
    Thanks,
    Josh

  • What is the difference betwee decode & case function

    Hi
    What is the difference betwee decode & case function
    1.decode can't used in pl/sql 1) case can be user
    2.in decode we can't use (>,<,>=) 2) we can use
    any other do u have....
    thanks in advance....

    DECODE works with expressions which are scalar values.
    CASE can work with predicates and subqueries in searchable form.
    There is one more Important difference between CASE and DECODE
    DECODE can be used Only inside SQL statement....
    But CASE can be used any where even as a parameter of a function/procedure
    Eg:-
    SQL> create or replace procedure pro_01(n number) is
      2  begin
      3  dbms_output.put_line(' The number  = '||n);
      4  End;
      5  /
    Procedure created.
    SQL> set serverout on
    SQL> var a varchar2(5);
    SQL> Begin
      2  :a := 'ONE';
      3  End;
      4  /
    PL/SQL procedure successfully completed.
    SQL> Begin
      2   pro_01(Decode(:a,'ONE',1,0));
      3  End;
      4  /
    pro_01(Decode(:a,'ONE',1,0));
    ERROR at line 2:
    ORA-06550: line 2, column 9:
    PLS-00204: function or pseudo-column 'DECODE' may be used inside a SQL
    statement only
    ORA-06550: line 2, column 2:
    PL/SQL: Statement ignored
    SQL> Begin
      2    pro_01(case :a when 'ONE' then 1 else 0 end);
      3  End;
      4  /
    The number  = 1
    PL/SQL procedure successfully completed.Message was edited by:
    Avi
    Message was edited by:
    Avi

  • How to disable Save & Print functionality in PDF form?

    Hi,
    This is the requrement, client need to disable Save & Print functionality in PDF form. (They not allow employee save & print the hrforms payslip)
    May I know how to do it. Thank you.
    What is the parameter value in structure SFPOUTPUTPARAMS  that I need to set in order to  disable Save & Print functionality ?
    call function 'FP_JOB_OPEN'
        changing
          ie_outputparams = SFPOUTPUTPARAMS
        exceptions
          others          = 1.

    Hi Nayan,
    I'm the person who did the WD as well, using IFrame to contain the PDF binary. WD site didn't contro the binary source.
    I pre-define the 'FP_JOB_OPEN' before calling the PDF generation.
    Optional: Set output parameters
      gs_outputparams-nodialog  = ''.
      gs_outputparams-preview   = ''.
      gs_outputparams-getpdf    = 'X'.
      gs_outputparams-nopreview = 'X'.
      gs_outputparams-noprint   = 'X'.
      gs_outputparams-noarchive = 'X'.
      gs_outputparams-nopributt = 'X'.
      gs_outputparams-arcmode = '1'.
      gs_outputparams-noarchive = 'X'.
    Open print job
      CALL FUNCTION 'FP_JOB_OPEN'
        CHANGING
          ie_outputparams = gs_outputparams
        EXCEPTIONS
          OTHERS          = 1.
    Regards,
    Eric

  • CASE function is not working

    Hi,
    I want to use the CASE function in a sql statement used at form level but it's not working. I can't compile the form. I am using developer 6i at font end and Oracle 10g database at back end. Is it possible to use case function at form level sql statement. If so then please help me about it.
    Best Regards

    Forms has it's own PL/SQL engine, and in Forms 6i it's version 8 where no CASE was available. So if you want to use CASE you'll have to use a view or put your logic in a stored procedure.

  • CASE function in determining turn around time

    I am working with a customer that submits work for processing that must be accomplished on very short turnaround. There is a submission date in one table and in a joined table there is an accomplishment date. I can use the CASE calculation with a simple "like" condition to compare submission dates with accomplishment dates to answer "yes" or "no" if they match or do not match. How can I report a turnaround time of 2 days or 3 days, where the accomplishment date is 2 or 3 days after the submission date. Can I use a variation of the CASE calculation to derive a "yes" or "no" answer to these variations?

    I am working with a customer that submits work for
    processing that must be accomplished on very short
    turnaround. There is a submission date in one table
    and in a joined table there is an accomplishment
    date. I can use the CASE calculation with a simple
    "like" condition to compare submission dates with
    accomplishment dates to answer "yes" or "no" if they
    match or do not match. How can I report a turnaround
    time of 2 days or 3 days, where the accomplishment
    date is 2 or 3 days after the submission date. Can I
    use a variation of the CASE calculation to derive a
    "yes" or "no" answer to these variations?I think that I was able to find an answer to my question in an earlier forum response to someone who wanted to know how to determine difference in workdays. I really wanted the simplicity of the "yes" or "no" answer allowed by the CASE function. The forum response date I found was Nov 15, 2006

  • How to use a function PIPELINED in Forms 10g?

    Hi guys,
    When I tried to use a function PIPELINED in Forms, I received the message:
    - PL/SQL function called from SQL must return value of legal SQL Type
    FOR rec_dev IN (SELECT *
    FROM TABLE(p1196.f_executa('01-aug-2010', -- pdDataInicial
    '30-aug-2010', -- pdDataFinal
    5, -- pnCodAdm
    NULL, -- pnCdsCod
    NULL, -- pnAdmsSrvCod
    NULL, -- pnAcao
    NULL)))
    LOOP
    vnQtdeEstornos := vnQtdeEstornos + rec_dev.qtde_estornos;
    vnVlrTotalCredito := vnVlrTotalCredito + rec_dev.valor_credito;
    END LOOP;
    Can anyone help me?
    Cris

    You can't. One option would be to wrap your pipelined function in a view, or you could write a stored procedure which returns a strong ref cursor instead.
    cheers

  • How to use, Case function and Filter in Column Formula?

    Hello All,
    I am using case function and also would like to filter value to populate.
    Below is showing error :
    case
    when '@{Time}' = 'Year' then "Time"."Fiscal Year"
    when '@{Time}' = 'Quarter' then "Time"."Fiscal Quarter"
    when '@{Time}' = 'Month' then FILTER ("Time"."Fiscal Period" USING "Time"."Fiscal Period" NOT LIKE 'A%')
    else ifnull('@{Time}','Selection Failed') end
    Thanks, AK

    when '@{Time}' = 'Month' then FILTER ("Time"."Fiscal Period" USING "Time"."Fiscal Period" NOT LIKE 'A%')I dont think Filter this works here or any other data types except number.
    Try to use option Column's->Filter->Advanced->Convert this filter to SQL
    If helps mark

  • AT&T has rules for the iPhone 3G S launch - Lines allowed to form starting at 7am

    AT&T has rules for iPhone 3G S launch - Lines allowed to form starting at 7am
    Perhaps AT&T has learned some from the troubles with iPhone past launches and they are going to try to make the experience better by settings some rules this time around. While AT&T is calling these “rules” guidelines, we think it really is nothing more than an effort to make a success of what the company hopes is one of the biggest tech event launches of the year.
    AT&T stores will receive inventory in time for the actual launch on June 19th. AT&T is already accepting pre-orders online as well as in stores. This change is key this time around because those that choose not to place a pre-order could be left out in the cold. From our understanding, pre-order customers will be given priority.
    The way that it will work is when the AT&T store opens, customers in line will then be split into two lines, with those already having a pre-order placed in one line and those who don’t have a pre-order placed in the other line. Pre-order customers will be able to start receiving their new iPhone 3G S starting shortly after 7 A.M., while those without a pre-order will have to wait until the store’s official regular opening time. Upon the actual regular opening time of the store, the two lines will then be merged into one line again. Apple retail stores will also be an option as they will open at 8 A.M. on launch day, but only those that pre-order from the Apple retail store will actually be able to pick up their phones early.
    As for the pricing, current AT&T customers that have had a contract with AT&T for at least 18 months will be able to get the new 16GB model for $199 or a 32GB model for $299. If you happen to be a current AT&T iPhone owner, but have not gone 18 months on your current contract, you will be able to pick up a new iPhone 3G S but will have to pay between $399 to $599, depending on how much time is left on your current contract and whether you want the 16GB or 32GB model. From what we understand, you will have to agree to another 2-year contract to get the iPhone 3G S this time around.
    The only actual possible loophole in this deal is to cancel your current AT&T contract and pay the $175 early termination fee and then wait three months. After the three months have lapsed, you can return to AT&T and then get new customer pricing, which would save you $225, but you have to endure a three-month wait.
    While the pricing and the options might make some AT&T customers unhappy, it is what it is. The bottom line is that the iPhone is still so hot, AT&T knows that people will pay what it takes to sport the new version if they are a big iPhone fan. According to our sources, AT&T should have enough inventory to more than cover the pre-orders, but beyond the pre-orders it is difficult to say if they will be able to meet the demand on launch day for additional units. Our advice is that if you want to have one on launch day, you had better get your pre-order in soon.
    Source:
    http://www.fudzilla.com/content/view/14181/1/

    I believe if you are a current AT&T Customer and wish to ADD a new phone to your account you will be able to get the new 16GB model for $199 or a 32GB model for $299. I went through
    http://www.apple.com/iphone/buy/
    and selected "Add a new line to my existing account" and was shown pricing as $199 for 16 GB and $299 for 32 GB.
    Hard to see this as any benefit unless you need an additional line on an existing account, which I happen to (I bought a new "additional line" 3G just before the 3GS was announced, and will fit into the "return" window)

  • Function keys in Forms 9i

    Function keys in Forms 9i
    are not working with me..any possible reasons?

    Thanx for your help.
    it was my mistake I thought F9 is a built-in function key for LOV like it was in 6i
    but I have another question please in this area
    suppose I want to add F9 function key to call LOVs
    I understod that i shoud add this line to fmrweb.res
    120 : 0 : "F9" : ??? : "List of values"
    what should I put instead of the question marks?
    what is Forms function number? how can i find it? and how can i modify it?
    thanx again.

  • Is there a plug-in yet that will allow pdf forms to be opened in the browser and submitted?

    Is there a plug-in yet for Firefox that will allow pdf forms to be opened in the browser (instead of downloaded), and then submitted to an e-mail address using the submit button on the form? I finally installed the plug-in that allows a pdf to open in Firefox and not downloaded, but the Submit button doesn't work.

    Help. Same issue.

  • XSLT upper-case function()

    Does anybody know how to use a upper-case() function in XSLT? I have it in a XSL mapping of a routing service. I want it as below:
    <xsl:when test='(upper-case(/imp1:GENERIC4) = "YES") or (/imp1:AWARDTYPE = "227")'>
    <top:ccFlag>
    <xsl:text disable-output-escaping="no">Y</xsl:text>
    </top:ccFlag>
    I want it to be true no matter what case of YES is. It can be yes/Yes/YES/or anything.
    I also tried the following,
    <xsl:variable name="lower">abcdefghijklmnopqrstuvwxyz</xsl:variable>
    <xsl:variable name="upper">ABCDEFGHIJKLMNOPQRSTUVWXYZ</xsl:variable>
    <xsl:choose>
    <xsl:when test='(translate(/imp1:GENERIC4,$lower,$upper) = "YES") or (/imp1:AWARDTYPE = "227")'>
    <top:ccFlag>
    <xsl:text disable-output-escaping="no">Y</xsl:text>
    </top:ccFlag>
    </xsl:when>
    <xsl:otherwise>
    <top:ccFlag>
    <xsl:text disable-output-escaping="no">N</xsl:text>
    </top:ccFlag>
    </xsl:otherwise>
    </xsl:choose>
    But doesnt work.
    Thanks for helping.

    this code works for me
        <ns1:testBPELProcessRequest>
          <ns1:input>
            <xsl:value-of select="xp20:upper-case(/ns1:testBPELProcessRequest/ns1:input)"/>
          </ns1:input>
        </ns1:testBPELProcessRequest>
      </xsl:template>maybe you need to use the namespace in front of the upper-case

  • Font size issue with the email functionality of infopath form

    Hi,
    We have a SharePoint list created and customised the form to send the form via email using email functionality in infopath form.
    We have made the font size of the form fields( rich text box) to 11. But it is showing as 10 in email. Also for a text box we set the font size to 14. But it is 13.5 in the email.
    Could anyone please let me know how to fix this issue?

    http://social.technet.microsoft.com/Forums/sharepoint/en-US/afbd9fc3-b8d3-4ef9-a8bf-9cb136d12039/formatting-problem-with-email-from-an-browser-enabled-infopath-2010-form-in-sharepoint-2010?forum=sharepointcustomizationprevious
    Yes, this is normal. Forms Services has to convert the form to an aspx page, and things get lost in translation when this gets submitted via email.  My workaround has always been to set static widths to columns/controls, but you said that didn't work
    for you?  It's always worked for me.
    https://go4answers.webhost4life.com/Example/infopath-send-form-email-162481.aspx
    http://www.formotus.com/15413/blog-infopath/making-the-most-of-email-submit-with-infopath-and-formotus-forms

Maybe you are looking for

  • Printer stopped working with Firefox but works fine with Safari. We have a MacBook Pro OS 10.5.8.

    Our R380 Printer has been working perfectly with Firefox in printing web pages and email. However, now it will not even attempt to print web pages or email. It's like it doesn't even know that a printer is connected. But when I launch Safari, the pri

  • R&R suddenly useless - too many files "in use" or "corrupted​"

    I have a new T410s.  Partway through setting it up, I ran R&R without incident and created a backup on a USB external drive. Some crappy software I installed wasn't uninstalling properly.  I had changed out the HD and not realized that I then needed

  • Zen Vision M 30G Compatability Iss

    I've recently reinstalled XP onto what used to be a Vista computer and found that my Creative Zen Vision M wont show up in windows explorer when I connect it Via USB. I know it is not the MP3 player causing the issue as it works fine with other Vista

  • Hello i have problem.

    when i buy my macbook pro i have problem becouse i can not write by arabic text in word, and when i written arabic  words the word showing one one. please i dont know what i will doing.

  • DVD Studio Pro and Motion won't work

    I posted this in the Tiger forum and didn't get a solution so I'm trying here. After installing Tiger DVD Studio Pro and Motion quit working. Both applications open (in the menu bar at least), but neither one will open all of its windows and nothing