Show report conditionally by checked checkbox

All,
I created 8 checkboxes:
‘Source’
STATIC2:a;1,b;2,c;3,d;4,e;5,f;6,g;7,h;8
Depending on c (checked) I want to show a report.
Condition of Report:
‘PL/SQL function Body Returning a Boolean’
begin
if (:c= '3') then
return true;
else
return false;
end if;
end;
But it doesn’t work.
Any help appreciated,
Cheers
lucio

I believe if you select multiple items it wills separate them with a ':'. So try this:
begin
   if (instr(:P1_SOURCE,'3') != 0) then
      return true;
   else
      return false;
   end if;
end;Replacing :P1_SOURCE with whatever your checkbox is named as.
Hope this helps,
Aaron
Edited by: aaron22 on Dec 10, 2009 7:58 AM

Similar Messages

  • Action links show link conditionally using simple filter

    Hello Gurus,
    When I set up an interaction with action link, every thing works fine. But when I try to use the 'show link conditionally' using a simple condition, I get an error such as:
    "State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 16001] ODBC error state: 37000 code: 8180 message: [Microsoft][ODBC SQL Server Driver][SQL Server]Statement(s) could not be prepared.. [nQSError: 16001] ODBC error state: 37000 code: 8120 message: [Microsoft][ODBC SQL Server Driver][SQL Server]Column 'SAWITH3.c6' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.. [nQSError: 16002] Cannot obtain number of columns for the query result. (HY000)"
    Can anyone help with this?
    Thanks

    Try to apply that condition to the report and see how it works
    Btw: check this
    sql - Reason for Column is invalid in the select list because it is not contained in either an aggregate function or the…

  • How to hide/show reports region with radio group selections

    Hi, I have an HTML region with a radio group of two choices (Rpt1 and Rpt2). Also got two other report regions which depend on the radio group selections and by pressing a button it will display records.
    Everything does work perfect BUT say I select Rpt1 and press the report button it will show the records and after that if I select the Rpt2 radio button I still see the result of Rpt1 records. How can I clear or hide the reports regions when I change my radio button selection?
    Thank you
    -iahmadi

    Hi,
    You can create HTML regions that do not need to contain anything at all (use the "No Template" region template to ensure that you don't see a region Title on the page).
    However, in order to get this region to be displayed until the Report button is clicked, you would need to have a hidden page item (called, say, P1_SHOW_REPORT) that has, as a default, 0 as a value. The branch that is triggered by the Report button would then set this item to 1 - so, 0 = hide and 1 = show
    On your page you should have a branch that is conditional on the Report button being clicked. On this branch, set the first "Set these items" to P1_SHOW_REPORT and "With these values" to *1*. You should also have a branch on the page that is unconditional - meaning that it can be triggered by anything that submits the page. Firstly, this branch should have a high Sequence Number (say, 99) and secondly, should should set the value of P1_SHOW_REPORT to *0*. So the Report button sets it to 1 and anything else (which will include the radio button selections) will reset it to 0.
    Now, on your regions you have to change the conditions slightly as we now have two conditions to check - which report has been selected and whether or not the Report button has been clicked.
    This can be done by using a SQL Exists condition of something like:
    SELECT 1 FROM DUAL WHERE :P1_SHOW_REPORT = 1 AND :P1_RADIO = 'ABC'(where ABC is the value for the radio button for the report
    The "blank" region would also have a condition - that would be a simple Item = Expression 1 condition of P1_SHOW_REPORT = 0
    Andy

  • Interactive report, conditional display of column link

    Hello,
    We have requirement to disable editing in case that status of field is 1 (1=Closed).
    Is there any way to disable it on interactive report.
    case when status=1 column link should be disabled (not visible) in order to prevent future edits on payroll.
    SELECT payroll_no, status
    FROM hr_payroll
    ORDER BY payroll_no DESC;
    I tried link below, but it's not working in my case.
    http://nerd.net.au/24-apex-application-express/report-layout/92-conditionally-show-report-link-column-based-on-value-of-…
    Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production
    Application Express 4.2.2.00.11
    Thank you in advance,
    Regards, FM

    CASE WHEN status = 'ACTIVE' then
    <a href="f?p=&APP_ID.:60:&SESSION.::&DEBUG.::P60_EMPLOYEE_ID:'||employee_id||'"> </span><br /><span class="Moobi_Code"><img src="#WORKSPACE_IMAGES#deactivate_button.png"></a>'</span><br /><span class="Moobi_Code">ELSE NULL END deactivate_employee,
    from
    EMPLOYEES
    What exactly is the error you get? What HTML is showing in the HTML source?
    Just by looking at this I would say you need to remove the "/" in front of the f?p
    Keep in mind this way could cause problems if you start to use checksum, then you might want to look into using APEX_UTIL.PREPARE_URL to create your URL.

  • Workflow condition to check error records in a multi line container element

    Hi All,
    My requirement is to change a standard workflow in which below condtion is checked and subsequent action is taken.
    The condtion checks a return internal table contains a row or not. Now the problem is for success and Information messages
    also the return table contains entries and the condition is becoming true. Subsequently workflow follows error recovery steps when there is no error.
    SAP suggests a note with manual corrections and mentions to change the condition to check whether error records are there. So can we enhance the condition &return& NX to something that it checks error records. I dont want to create a new step and go to business object method to delete non error records.
    Please let me know if this condition can be enhanced.
    Thanks in Advance.
    Aleem Mohiuddin.

    Dear Aleem,
    As this is sap standard workflow, should report this error and wait for feed back. Or add a loop step before of this check any E messages inside, if yes put a errflg as x other wise keep as blank.
    Best of luck.
    Regards,
    Ranjith

  • CRviewer do not show anything when click button to show report with VS2013

    First of all I must say, My English language skill is not good but I'll try to communicate as best as possible.
    I am using Visual Studio 2013Ultimate with Update4  on .NetFramework 4.5.1  and Crystal Reports SP13.0.13.1597
    When installed complete. ( Previously i have tried it with my project but CR & CRviewer not working)
    I have tried using CRviewer in a new asp.net page  The following code
    ***-----WebFrom1.aspx-----***
    <body>
        <form id="form1" runat="server">
        <div>
        <asp:RadioButton ID="rdoByAll" runat="server" Text="all" GroupName="rdoChoose" AutoPostBack="True" />
            FromDate :
            <asp:TextBox ID="txtDateFrom1" runat="server" AutoPostBack="True"></asp:TextBox> 
            ToDate :
            <asp:TextBox ID="txtDateTo1" runat="server" AutoPostBack="True"></asp:TextBox>
            <asp:Button ID="btnCallReport1" runat="server" Text="CallReport" />
            <br />
            <br />
            <asp:RadioButton ID="rdoByName" runat="server" Text="ByName" GroupName="rdoChoose" AutoPostBack="True" />
            FromDate :       
            <asp:TextBox ID="txtDateFrom2" runat="server" Height="16px" Width="150px" AutoPostBack="True"></asp:TextBox>
            ToDate :
            <asp:TextBox ID="txtDateTo2" runat="server" Height="16px" Width="150px" AutoPostBack="True"></asp:TextBox>
      <asp:Button ID="btnCallReport2" runat="server" Text="CallReport" />
            <asp:DropDownList ID="ddlNamelist" runat="server" AutoPostBack="True">
            </asp:DropDownList>
            <br />
            <br />
            <CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="True" ToolPanelView="None" />
            <br />
        </div>
        </form>
    </body>
    ***-----WebFrom1.aspx.vb-----***
    Imports CrystalDecisions.CrystalReports.Engine
    Imports CrystalDecisions.Shared
    Imports CrystalDecisions.Web
    Public Class WebForm1
        Inherits System.Web.UI.Page
        Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        End Sub
    Protected Sub rdoByAll_CheckedChanged(sender As Object, e As EventArgs) Handles rdoByAll.CheckedChanged
            If rdoByAll.Checked = True Then
                txtDateFrom1.Enabled = True
                txtDateTo1.Enabled = True
                btnCallReport1.Enabled = True
                txtDateFrom2.Enabled = False
                txtDateTo2.Enabled = False
                btnCallReport2.Enabled = False
                ddlNamelist.Enabled = False
            Else
                txtDateFrom1.Enabled = False
                txtDateTo1.Enabled = False
                btnCallReport1.Enabled = False
                txtDateFrom2.Enabled = True
                txtDateTo2.Enabled = True
                btnCallReport2.Enabled = True
                ddlNamelist.Enabled = True
            End If
        End Sub
        Protected Sub rdoByName_CheckedChanged(sender As Object, e As EventArgs) Handles rdoByName.CheckedChanged
            rdoByAll_CheckedChanged(sender, e)
        End Sub
        Protected Sub btnCallReport1_Click(sender As Object, e As EventArgs) Handles btnCallReport1.Click
            Dim rpt As New ReportDocument()
            rpt.Load(Server.MapPath("CrystalReport1.rpt"))
            Me.CrystalReportViewer1.ReportSource = rpt
            Me.CrystalReportViewer1.RefreshReport()
        End Sub
    End Class
    When i press F5 to run project make Code of radiobutton not work(Disable,Enable OtherControl such as textbox)
    And when i try press CallReportButton CRviewer do not show anything.
    When I brought CRviewer leaving the page ,Code of Radiobutton were working fine.
    But can't to show "CrystalReport1.rpt" on CRviewer when i click CallReportButton. i'm not understand.
    Then i have tried to learn from follow this link : CR not working in visual studio 2013
    and Using Crystal Report in ASP.Net website, Report not showing in CrystalReportViewer
    i have to create a new CR ASP NET project and copy the whole C:\inetpub\wwwroot\aspnet_client folder
    into my app folder and then add this to your web.config file, line in bold:  <add key="vs:EnableBrowserLink" value="false"/>
    project is working but not fine  when I try to click button to call report  I get this pop-up .   " popup.JPG"   what is it?
    And project warning!  could not find schema information every element . "Could not find every Element.JPG"
    After that, copy the whole C:\inetpub\wwwroot\aspnet_client folder into my app folder Only!  not add in my web.config
    (In previous project need to use CR)  make to project were working  but i get same pop-up when i click to show report.
    **** buleline in popup.JPG picture  is "The report you requested requires further information"

    I think you're over-complicating things. I'd like you to have a look at a few sample apps, see how they work, then adjust your app. Samples are here:
    Crystal Reports for .NET SDK Samples - Business Intelligence (BusinessObjects) - SCN Wiki
    Also, have a look  at Crystal Reports for Visual Studio 2005 Walkthro... | SCN (- applies to all versions of CR and .NET).
    Finally, the Developer Help files are here:
    SAP Crystal Reports .NET SDK Developer Guide
    SAP Crystal Reports .NET API Guide
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow me on Twitter

  • Payment Wizard - Recommendation Report - Prints Un-Checked Lines

    Hi,
    I am running the Payment Wizard and when I get to step 6 (Recommendation Report) I un-check some of the Payments. When I click the Print Preview or Print icon, it previews or prints, but it shows all of the payments that I have, including the un-checked payments. I tried to find the field / variable of the check box or any filed / variable that I could use to determine if the payment / line is checked or not and I couldn't find one. Can anyone help?
    Thanks

    That rings a bell.  If this client has not yet been lived yet but it start with 2005 version, some configuration may not been correct in the first place.
    You may need to restore current db to test environment to do more testing to find the real issue.
    Compare to working one to find the differences.

  • Report for Void Checks

    All FI Gurus,
    I would like to know if there is a Report for Void Checks with reason codes.

    Hi Gurus,
    My issue is more relevant to voided payroll checks - The payroll check register (FCHN) lists checks that were voided but it doesnu2019t show the u2018Amountu2019 voided (column Amount Paid (FC) ). I need a list of all voided payroll checks for a selected period with the amount voided as it needs to match what the bank says was stopped.
    Any suggestions? Many thanks!
    - Tarun

  • Help with Report Condition

    I have three parameters in my report which are academic year, instance code and id number. Only two parameter values are entered when user runs report, that is, either academic year and id number or academic year and instance code.
    The report produces a student’s statement of results and should show all results for the previous years. E.g. if student did c-inst1 in 2009, c-inst2 in 2010, c-inst3 in 2011, when user enters 2011 for parameter academic year and c-inst3 as course instance, the report should display all the results of students starting from 2011 going back to 2009 for all the three course instances c-inst1, c-inst2 and c-inst3.
    My report conditions are as below:
    ACADEMIC_SESSION <= :ACADEMIC_YEAR AND
    (Id_NUMBER = :ID_NUMBER OR (:ID_NUMBER IS NULL AND (CI.INSTANCE_CODE = :course_instance OR What?? ) What condition should I add here in order to get all those records with course instance entered as well as previous course instances done by a student?
    Please assist. Thanks.

    user8655468 wrote:
    I have three parameters in my report which are academic year, instance code and id number. Only two parameter values are entered when user runs report, that is, either academic year and id number or academic year and instance code.
    The report produces a student’s statement of results and should show all results for the previous years. E.g. if student did c-inst1 in 2009, c-inst2 in 2010, c-inst3 in 2011, when user enters 2011 for parameter academic year and c-inst3 as course instance, the report should display all the results of students starting from 2011 going back to 2009 for all the three course instances c-inst1, c-inst2 and c-inst3.
    My report conditions are as below:
    ACADEMIC_SESSION <= :ACADEMIC_YEAR AND
    (Id_NUMBER = :ID_NUMBER OR (:ID_NUMBER IS NULL AND (CI.INSTANCE_CODE = :course_instance OR What?? ) What condition should I add here in order to get all those records with course instance entered as well as previous course instances done by a student?You can use lexical parameter in reports sql and pass the condition whatever u want. How can we do that ?
    1. create a parameter like PR with char data type.
    2. pass the column name and other parameter to this parameter via After Parameter Form trigger.
    Hope this will help you.

  • I am having macbook air recently my iphotos did not open and was showing report apple and reopen but i came to know that by pressing alt and iphotos i open an new photo library and stored the pics but now how can i get the pics which i had in the earlier

    i am having macbook air recently my iphotos did not open and was showing report apple and reopen but i came to know that by pressing alt and iphotos i open an new photo library and stored the pics but now how can i get the pics which i had in the earlier photo please help me to recover my photos

    Well I'll guess you're using iPhoto 11:
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.  
    Regards
    TD

  • Action with a condition that checks for a survey filled in a transaction

    Hi!
    I need to create an action with a condition that checks if there is a survey filled in the complaint document.
    Is there any way to do it?
    Thanks a lot!
    Susana Messias

    Hi Siva,
    Thanks for the document.
    My scenario its the following:
    I have a complaint with a survey assigned to it. I need to create an action that creates a follow-up task to the person responsible when the status is equal to Completed and the survey it's not filled.
    I customized the action profile as you said, but the problem is to create a condition with the information about the survey. The field status it's ok to insert in a condition, but how about the survey?
    Any ideas?!
    Susana Messias

  • Show/Hide conditional text at a book level

    I am using TCS2 on Windows XP.
    FM 9.0 p250
    I have several files as part of a large FM book. Each file has the same text conditional tags. Can I, at a book level, set my conditions to show/hide, etc. and then update the book? So far, I only know how to open each file, set the SHOW/HIDE CONDITIONAL TEXT as I need it (not to show conditiona indicators and according to my built expression) and then save and close each file.
    Is there a way to do all my files at once? Note- I want them all set the same way... so that might make it easier..
    Thanks,
    Adriana

    adrianaharper wrote:
    I am using TCS2 on Windows XP.
    FM 9.0 p250
    I have several files as part of a large FM book. Each file has the same text conditional tags. Can I, at a book level, set my conditions to show/hide, etc. and then update the book? So far, I only know how to open each file, set the SHOW/HIDE CONDITIONAL TEXT as I need it (not to show conditiona indicators and according to my built expression) and then save and close each file.
    Is there a way to do all my files at once? Note- I want them all set the same way... so that might make it easier..
    Thanks,
    Adriana
    I don't have FrameMaker available right now, so I'm working from memory, using the traditional FrameMaker menus, rather than the FM 9 tools.
    Select all the files in the book window. With the book window active, open the View menu and look for Conditional Text. Your settings here apply to all selected files in the book window, so it's possible to set conditions on all or some files files. Ctrl+Click to select non-contiguous files; Shift+Click to select a range of contiguous files.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • When i connect my ipad2 to iTune, it show "iTunes could not check for an update to the carrier settings for your iPad. An unknown error occured (1651)". What should i do to solve this problem? My iTune version is 10.1.4.10 and my ipad is 4.3.5.

    When i connect my ipad2 to iTune, it show "iTunes could not check for an update to the carrier settings for your iPad. An unknown error occured (1651)". What should i do to solve this problem? My iTune version is 10.1.4.10 and my ipad is 4.3.5.

    If you have iOS 7.1 then you must be a developer, so you should be posting in the developer forums : https://devforums.apple.com/index.jspa

  • Is it possible to use T : FCHR to show a list of Checks as Encashed

    My goal is to Manually input a BATCH of Vendor checks as Cashed so I get them off the Outstanding Check Listing.
    I do not receive an on-line listing of cashed checks from our bank.
    Is it possible to show a group of checks as cashed manually if I:
    1- export into Excel the Outstanding Check Listing
    2- copy a portion of the check numbers that I want to show cashed
    3-paste the group to FCHR  
    4-Fill in the Encashed date and value date for the batch
    5- choose KZ ( vendor payment)
    6-Save
    I have tried this and it does not appear to take the checks off the outstanding.
    Is there another step I should be doing ............. or possibly this way of manually clearing a batch of checks off the outstanding will not work at all in FCHN?
    Thanks.
    Points will be awarded.
    Kathy
    Edited by: Kathy Toumbas on Jan 7, 2008 8:29 PM
    Edited by: Kathy Toumbas on Jan 7, 2008 8:29 PM

    HI
    You can make it work by using the logic of populating the node itself with modified values.
    i.e. during the population of the first node populate the text with the text from the second node by looping through its elements
    one by one.
    node 1  -- during its population or may be after its population loop though its elements and modify the value of text
    with the proper value taken from the corresponding value of text from the corresponding element of node 2.
    thanks
    sarbjeet singh

  • Condition type check in va01 transaction

    Hi friends,
    I have a requirment.
    in va01 transaction , at the line item level iam entering a  material number and order quantity and  when i press enter i get the corresponding values for that particular line item.
    now iam double clicking on that particluar line item(matnr) and clicking on the conditions tab.
    there in the condtion type i will get what all the condition types are maintianed for that particular line item.
    now my requirment is i need to add another concdtion type manully
    say 'ZABC' and hit enter. the pricing for that particlular contion type 'ZABC' will be Determined.
    Now  can any one tell me in which internal table will i get all the condition type,
    coz i need to do some additional check for the  the manual entry'ZABC'  (condition type ) which i have given .
    which user exit should i use it.
    remember i need user exit for condition type check but not for pricing bsaed on the contion type
    Regards
    Priyanka.

    Hi priyanka
    If you want to Check  then check in the  KOMK and KOMP tables
    As you want to go for user exit use any one of the user exits as per your requirement  USEREXIT_PRICING_PREPARE_TKOMK  or USEREXIT_PRICING_PREPARE_TKOMP
    But can you tell what exactly you want to change and why you want to go for user exits
    Regards
    Srinath

Maybe you are looking for