Tabular form validation(Checkbox) is not working for Interactive report

Hi,
I am using the oracle apex 4.0 and oracle 11g.
I have written a below select query on interactive report as
select
apex_item.checkbox(1,RESIDD)||apex_item.hidden(2,RESIDD) row_selector,
apex_item.text(3,RESNUM) as resnum
from "PDRRES"
and written the validation to display the error message( Function returning error text ) as
DECLARE
vRow BINARY_INTEGER;
BEGIN
-- apex_application.g_print_success_message := NULL;
FOR i IN 1 .. apex_application.g_f01.COUNT
LOOP
vRow := apex_application.g_f01(i);
apex_application.g_print_success_message := apex_application.g_f01(i)||'-'|| apex_application.g_f03(vRow) ;
END LOOP;
END;
Output : No data found error message
As far as it work for sql report with above logic because apex built in row selector
but it fails in case of interactive report for some reason.
Please suggest.

Saroj Nayak wrote:
Hi,
I am using the oracle apex 4.0 and oracle 11g.
I have written a below select query on interactive report as
select
apex_item.checkbox(1,RESIDD)||apex_item.hidden(2,RESIDD) row_selector,
apex_item.text(3,RESNUM) as resnum
from "PDRRES"
and written the validation to display the error message( Function returning error text ) as
DECLARE
vRow BINARY_INTEGER;
BEGIN
-- apex_application.g_print_success_message := NULL;
FOR i IN 1 .. apex_application.g_f01.COUNT
LOOP
vRow := apex_application.g_f01(i);
apex_application.g_print_success_message := apex_application.g_f01(i)||'-'|| apex_application.g_f03(vRow) ;
END LOOP;
END;
Output : No data found error message
As far as it work for sql report with above logic because apex built in row selector
but it fails in case of interactive report for some reason.
Please suggest.NO DATA FOUND usually occurs when an i mplicit select does not find anything. It can also occur when referencing a collection element that has not been defined.
You have 2 collectinons in the code you posted, apex_application.g_f01() and apex_applciation.g_f03. Since you are looping therough the COUNT attribute of g_f01 its reference ("I") is probably okay and the value store in vRow is probably not right. You can check this by using RAISE_APPLICTION_ERROR to see the value something like
raise_application_error(-20000,'vRow="'||vRo2||'"');Remember that working with checkboxes is tricky. If the box is not checked nothing will be sent. You may need to define a default value when no value is submitted.

Similar Messages

  • Security option is not working for PDF Report

    security option is not working for PDF Report , e.g password , bug??

    what version of SQL Developer are you using?

  • Tabular form number validtion is not working

    Hi,
    I have an tabular form with updatable columns which has datatype as number. i have created the in built tabular form validation "Item/value specified is numeric" for this updatable columns.
    when i entered any non numeric character like "asdasd" into this updatable columns. it shows me plsql error. PL/SQL: numeric or value error: character to number conversion error.
    can you please help me on this?
    Regards,
    Nilesh

    Hi,
    If you enter "asdasd" and get PL/SQL: numeric or value error: character to number conversion error , it only implies the right thing is happening.
    Maybe what you are alluding to is that the messages is not the way you want it. It should perhaps be "<column_name> must be numeric."
    What do you have in the Error Message item of this process? If is it null you are likely to get the message of the type you are getting.
    Did you by any chance try to change the default error message, which reads "#COLUMN_HEADER# must be numeric."?
    Regards,

  • Highligh current row not working for classic report in 4.1

    Hello experts,
    One of our customers is migrating applications from APEX 3.0 to 4.1.
    All their applications use classic reports because interactive reports didn't exist in 3.0.
    The end users of the applications like the row color changing when they hover there mouse over the rows (highlight current row) and they insist on keeping this "functionality" in the applications.
    For some reason, this "functionality" doesn't work anymore after the migration to APEX 4.1.
    I thought it was something theme related so I created a new application with a classic report, tried some APEX built-in themes, and with none of them, I manage to get the highlight current row working.
    For interactive reports it is not an issue.
    Is this an undocumented no-longer-available feature of APEX 4.x or has there changed something which caused this functionality to stop working??
    Regards,
    Bart

    Hi,
    I created a service request for this issue, and the support analyst that helped me confirmed that this is a bug:
    "I have created the bug :
    Bug 13584762 - ROW HIGHLIGHTING NO MORE WORKS IN CLASSIC REPORT IN APEX 4.1
    While working on the problem , I have found the following solution in order to make the Row HighLightng work in APEX 4.1
    In the apex_4_1.min.js (file located in images\javascript ) , Search for :
    function setRowHighlight(a){apex.jQuery("#report_"+a+" .highlight-row").live("hover",function(b)
    and replace "hover" by "mouseover mouseout" :
    After the modification :
    function setRowHighlight(a){apex.jQuery("#report_"+a+" .highlight-row").live("mouseover mouseout",function(b)
    A refresh in the browser may be necessary in order to "reload" the file apex_4_1.min.js"
    I implemented the suggested workaround and this solved the problem!
    HTH,
    Matthias Hoys

  • Form Validation - Error Trapping Not Working.

    Hi,
    I'm a Coldfusion beginner desperately trying to get along with some database work for my site and have come across an annoying error that I just can't solve! I'm sure I'm missing something really basic - I just can't for the life of me figure out what it is!
    Basically, I have a form for users to sign-up. I have introduced several cfif statements and a basic CAPTCHA system to trap errors. If any errors are submitted then they should be displayed in a cfwindow. This process works fine until I specify the form action - after which it is completely ignored and the form contents are written to the database without any validation taking place. Even without specifying the form action the errors won't show in Internet Explorer.
    I really would appreciate any help - it's driving me crazy!
    Thanks in advance,
    Tom.
    Here is the code:
    <cfinclude template="CFIDE/headertemplate.cfm">
    <!-- RANDOM NUMBER GENERATOR  FOR CAPTCHA -->
    <cffunction name="makerandom" returnType="string" output="false">
    <cfset var chars = "23456789ABCDEFGHJKMNPQRSTW">
    <cfset var length = randRange(4,6)>
    <cfset var result = "">
    <cfset var i = "">
    <cfset var char = "">
    <cfscript>
         for(i=1; i <= length; i++) {
              char = mid(chars, randRange(1, len(chars)),1);
              result&=char;
    </cfscript>
    <cfreturn result>
    </cffunction>
    <!-- ERROR TRAPPING -->
      <cfset showForm = true>
      <cfparam name="form.email" default="">
      <cfparam name="form.artistname" default="">
      <cfparam name="form.city" default="">
      <cfparam name="form.postcode" default="">
      <cfparam name="form.pass" default="">
      <cfparam name="form.captcha" default="">
      <cfparam name="form.captchahash" default="">
      <cfparam name="form.terms" default="">
    <cfif isDefined("form.send")>
          <cfset errors = "">
    <cfif len (form.email) LT '4'>
    <cfset errors = errors & "You must include a valid e-mail address.<br />">
    </cfif>
    <cfif find('.',form.email) is '0'>
    <cfset errors = errors & "Your E-mail features no . symbol.<br />">
    </cfif>
    <cfif find('@',form.email) is '0'>
    <cfset errors = errors & "Your E-mail features no @ symbol.<br />">
    </cfif>
    <cfif not len(trim(form.artistname))>
    <cfset errors = errors & "You must include your name.<br />">
    </cfif>
    <cfif not len(trim(form.city))>
    <cfset errors = errors & "You must include your city.<br />">
    </cfif>
    <cfif not len(trim(form.postcode))>
    <cfset errors = errors & "You must include your postcode.<br />">
    </cfif>
    <cfif not len(trim(form.pass))>
    <cfset errors = errors & "You must specify a password.<br />">
    </cfif>
    <cfif len(form.pass) LT '6'>
    <cfset errors = errors & "Password must be between 6 and 10 characters.<br />">
    </cfif>
    <cfif hash(ucase(form.captcha)) neq form.captchahash>
    <cfset errors = errors & "You did not enter the correct Captcha text.<br />">
    </cfif>
    <cfif not len(trim(form.terms))>
    <cfset errors = errors & "You must agree to our Terms and Conditions.<br />">
    </cfif>
    <cfif errors is "">
    <cfset showForm = false>
    </cfif>
    </cfif>
    <cfif showForm>
    <cfset captcha = makerandom()>
    <cfset captchahash = hash(captcha)>
    <cfoutput>
    <h1>Artist Sign-Up</h1>
    <p>Your details are required for sign-up. Mandatory fields are indicated with a *.</p><br/><br/>
    <cfif isDefined("errors")>
    <cfwindow name="formerrors"
    title="Form Errors"
    width="450"
    height="250"
    modal="true"
    initshow="true"
    center="true"
    closable="true"
    minheight="200"
    minwidth="200">
    <center><b>Please correct the following errors and re-submit the form:</b><br /><br/>#errors#
    <br/><a href="javascript:ColdFusion.Window.hide('formerrors');">Close Window</a>
    </center>
    <br/></cfwindow>
    </cfif>
    <!-- FORM CONTENTS -->
    <cfform action="artist_insert.cfm" method="post">
    <table class="signup">
    <tr>
    <td class="noborder" width="200">
      <label for="email">E-Mail Address*:</label>
    </td>
    <td class="noborder" width="156">
    <input type="text" name="email" class="textbox" value="<cfoutput><cfif IsDefined("URL.email")>#URL.email#<cfelse></cfif></cfoutput>"/>
    </td>
    <td class="noborder">
    <cftooltip autoDismissDelay="9999" tooltip="This needs to be a valid e-mail so that<br/> promoters can get in contact with you. <br/>If several people will be using this<br/> account then try and make it a shared<br/> address."><img src="pics/i.jpg" alt="info" border="1" /></cftooltip>
    </td>
    </tr>
    <tr>
    <td class="noborder" width="200">
      Your Password* (6 to 10 chars.):
    </td>
    <td class="noborder">
    <input type="password" class="textbox" name="pass" maxlength="10"/>
    </td>
    <td class="noborder">
    </td>
    </tr>
    <tr>
    <td class="noborder" >
    Artist/Band Name*:
    </td>
    <td class="noborder">
    <input type="text" class="textbox" name="artistname" />
    </td>
    <td class="noborder">
    </td>
    </tr>
    <tr>
    <td class="noborder">
    City*:
    </td>
    <td class="noborder">
    <input type="text" class="textbox" name="city" />
    </td>
    <td class="noborder">
    <cftooltip autoDismissDelay="9999" tooltip="Entering your locational details enables Gig<br/>Digger to find the events and promoters<br/>in your area. Try specifying a well known<br/>city nearby for the best results."><img src="pics/i.jpg" alt="info" border="1" /></cftooltip>
    </td>
    </tr>
    <tr>
    <td class="noborder">
    Postcode*:
    </td>
    <td class="noborder">
    <input type="text" class="textbox" name="postcode" maxlength="8"/>
    </td>
    <td class="noborder">
    </td>
    </tr>
    <tr>
    <td class="noborder">
    Your Contact Number:
    </td>
    <td class="noborder">
    <input type="text" class="textbox" name="contact" maxlength="14"/>
    </td>
    <td class="noborder">
    </td>
    </tr>
    <tr>
    <td class="noborder">
    </td>
    </tr>
    <tr>
    <tr>
    <td class="noborder" valign="top" width="200">Please enter the CAPTCHA text in the box below*: </td>
    <td class="noborder" align="left">
    <center><cfimage action="captcha" width="156" height="50" text="#captcha#" border="1">
    <input type="hidden" name="captchaHash" value="#captchaHash#"></center>
    </td>
    <td class="noborder" valign="top">
    <cftooltip autoDismissDelay="9999" tooltip="This is here to ensure that<br/>you're human. It stops abuse <br/>of the site and makes it a safer <br/>place for us all."><img src="pics/i.jpg" alt="info" border="1" /></cftooltip>
    </td>
    </tr>
    <tr>
    <td class="noborder">
    </td>
    <td class="noborder" align="right"><font size="-2"><b><a href="javascript:location.reload(false)">Refresh Page</a></b></font>
    </td>
    <td class="noborder">
    </td>
    </tr>
    <tr>
    <td class="noborder"></td>
    <td class="noborder"><input type="text" name="captcha" class="textbox"></td>
    </tr>
    <tr>
    <td class="noborder">
    </td>
    </tr>
    <tr>
    <td class="noborder">
    </td>
    </tr>
    <tr>
    <td class="noborder" width="170">Please check this box to confirm that you agree<br/> to our <b><a href="termsandconditions.cfm">Terms and Conditions</a></b>*.
    </td>
    <td class="noborder">
    <input type="checkbox" class="textbox" name="terms" /></td>
    </tr>
    <tr>
    <td class="noborder">
    </td>
    </tr>
    <tr>
    <td class="noborder">
    </td>
    <td class="noborder" align="center">
    <cfinput type="image" src="pics/submit.png" name="send" value="Submit" validate="submitonce" border="1">
    </td>
    </tr>
    </table>
    </cfform><br/>
    </cfoutput>
    <cfelse>
    <cfoutput>
    Thank you for submitting your details, #form.name#. You may now log in with your e-mail and password.
    </cfoutput>
    </cfif>
    </td>
    </tr>
    </table>
    <!-- FOOTER START -->
    </body>
    </html>
    ARTIST INSERT PAGE - artist_insert.cfm
    <cfquery datasource="071907cs07to">
    INSERT INTO Artist(    Nsudate,
                        Nemail,
                        Npass,
                        Nname,
                        Ncity,
                        Npostcode,
                        Ncnumber
    VALUES(    ( #Now()# ),
            '#Trim(form.email)#',
            '#Trim(form.pass)#',
            '#Trim(form.artistname)#',
            '#Trim(form.city)#',
            '#Trim(form.postcode)#',
            '#Trim(form.contact)#'
    </cfquery>

    In addition to BreakawayPaul's answer.
    You are making it very difficult to troubleshoot your if/else logic because your code includes all the display stuff.  Since you're a self proclaimed beginner, you might want to try another approach.
    Save your old page and start a new one from scratch.  Solve all your logic problems first.  Display what you need to see with the cfdump tag.
    Here are some hints to make the whole thing easier.
    1.  In your cfform, use the validate and required attributes to catch errors earlier.
    2. You don't have to cfparam every form field.  The form has either been submitted to it hasn't.  If it has, all the fields will be there with the possible exception of checkboxes or radio button, if nothing was selected.

  • SSO not working for BW reports as iview in Portal

    Hi,
    I have setup SSO for netweaver portal 7.0 and BI 7.0 as backend system.
    I have used SAPLOGONTICKET for SSO.
    1. Now if I create iView for some transaction , its working fine. UserID and password is not asked and i'm getting into BW sytem.
    2. But if I create an iView for BW report type 3.x and pull a report from BI system, it is showing a login screen to me. now I have to give clientno, userID and password to get into the system.
    Can please some help me in this issue.
    is there some specific configuration I need to make..?
    Thanks in Advance.
    Regards,
    Saurabh

    Hi Kiran,
    Thanks for your reply.
    My problem is now solved. Actually transaction iViews use connectors to connect to the backend system, where as BW reports iviews use WAS to connect to the backend system.
    while accessing the portal i was not giving the fully qualified name in URL.
    while accessing the portal correct way is to use the URL is :
    http://hostname.domain:port/irj/portal ...I was missing the domain portion.
    Use the fully qualified name so that both EP and backend systems comes in same domain.
    Regards
    Saurabh

  • Multiple event not working in interactive report

    Hi Experts,
    I am developing a interactive report used Set-PFstatus '100' , AT user-command and At line-selection in a single program.
    Here At line-selection is not working but at user-command is working fine.
    After commenting set-PF ststus '100' event at line selection is working.
    Ii want at to use at-user command and at line-selection both to work with set pf-status.
    Please help me out.

    Hi,
    You can use these events together but in case while
    creating your GUI status for your program you have
    to give Function Code 'PICK' with F2 short cut key
    because for at line selectino double click 'PICK' function
    code is trigerred.
    hope it helps,
    Regards
    Mansi

  • Web client and desktop client not available for Interactive reporting 11.1.2.2

    Hi team,
    Currnetly we are usning EPM 11.1.2.2 , we are trying to install and configure
    Interactive reporting in Linux 64 bit system.
    we are few questions jotted below:
    Interactive reporting studio client & Interactive reporting Dashboard Development Studio client are disabled.
    post installation we are not able to see IR Client folder in <EPM HOME> location.
    while launching workspace we are not able to see the WEB Client Interactive reporting under TOOLS-->INSTALL.
    we read in a blog, which states it  Interactive reporting needs a license. whether it needs any special License for using it?
    we downloaded the Entire Dump of EPMS 11.1.2.2  from Oracle Edelivery website.
    Kindly let us know we are missing any where?
    we are strucked at this point.
    Regards
    Chinu

    If you want the 11.1.2.0 assemblies you will need to contact Oracle as they have been removed from edelivery.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Substitution string not working in interactive report

    Hi all,
    I am using a substitution string in the no data found message of the interactive report. But instead of the actual message, &my_message. is displayed when there is no data found. I noticed that this problem is also occuring when a substitution string is used in the column headers of the interactive report. In the non-interactive report it is working as it should. Am I doing something wrong or is it a bug?
    Hope anybody can help me. Also when you have a workaround for my problem.
    Many thanks in advance!
    Jacob
    Message was edited by:
    Jacob_B

    Jacob,
    Thanks for reporting that, it does appear to be a bug. I've logged it and we'll look at including a fix in a future release.
    Thanks,
    Marco

  • Order by not working on Interactive Report

    I have created an Interactive Report. My select statement contains an ORDER BY. When the report displays it is not in the correct order. How can I control the display order of an Interactive Report?

    hi Alfred,
    Where can I define the sorting order ? I would like the first call of the report already have a sort.
    I know the user can customize the sorting in the report but not at the first call!
    I hope it is understandable ;-)i think when the page upload u want to sort the report.
    then
    in report attributes>column attributes >edit the each column>column definition>remove the tick on sort all >apply changes and give order by i n your query
    Regads
    pavan

  • Adobe form translation changes do not work for second time

    Hi Team,
    i am translating adobe form from EN to TR and it was successful for first time and all the changes were working correctly then again i have translated all the texts and checked however then it was only translating fields which were translated in first try.
    I am really confused and please help me here i am not really sure what exactly to do .
    i have checked below note however not getting what to delete exactly .
    i have acttached the note  data below please help <removed by moderator>.
    1294146 - Problem translating rich texts in PDF based forms (Adobe)
    Message was edited by: Manish Kumar

    HI Lande,
    There is nothing to delete. Here is what you should do:
    Following procedure applies to both symptoms:
    1. Open the corresponding form in the original language in change mode in Form Builder
    2. Choose the Layout tab of Form Builder to open the form layout in Adobe Designer.
    3. Identify and select the concerned text element in the layout so that it will be highlighted in the hierarchy tree of the Adobe Designer
    4. Go to the XML Source tab of the Adobe Designer
                  The XML source shows the section of the selected form element.
         5. Go to the appropriate <exData/> element and delete the occurrence of attributes
         xft-xliff:id or xliff:rid
    6. Leave the XML source tab and save the changes.
    7. Activate the form.
    Regards,
    Ashvin

  • PDF preview in workspace not working for Financial Reporting

    I have an issue in workspace with doinga PDF preview on a Financial Reporting report. PDF preview works fine via workspace but only FR has the problem, here is the error that is displayed. I am running FR server on AIX and the print servers are on windows platform. We have two installations pointing to same windows box for print server. The 1st if FR for HFM running all on windows, the 2nd is FR on AIX for an Essbase installation. The HFM FR install works great via workspace but the the 2nd produces the following error:
    Error 500--Internal Server Error
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.5.1 500 Internal Server Error
    The server encountered an unexpected condition which prevented it from fulfilling the request.
    We made the port for the print server static(it is normally dynamic) so we could open the firewall port to the print server and have verifed it is open.
    Does anyone have a suggestion of what could be producing the Internal Server Error. I should mention that we use Weblogic for the web deployment of workspace if that should have any bearing on the issue.

    Firewall issues were preventing this problem.

  • Global Temporary table is Not working For Pdf Reports

    Hi all
    we are using oracle db-10g, developer suite-10g.
    While generating the Report for the satisfying several conditions we are fetching the data into
    Global temporary table
    On commit preserve rows
    from this temp tables excel is generated properly. but pdf is not generating can anybody exaplain why it is not generating and what to do for that
    Thank you

    query and view are not possible
    here i am giving one of the requirement
    my project is belongs to inventory project.
    report should be generated on the different selection criteria like
    1)user can select one or more product codes
    2)for that product code one or more item codes can select
    like this so many different selection are there more than 12 selections from different tables
    For this each different selection product code into gtt_prod_cd and item_cd into gtt_item_cd. after that performed the query and in where clause we are comparing the values with gtt.
    can you please suggest me what to do for PDF Reports

  • Complete Book in PDF is not working for one report

    <p>It's strange.  All of the other books run fine.  If wecreate another copy of this troublesome book, still have the sameproblem.  All of the reports in the book can be readindividually.  Is there a limitation to the number of reportsin a book to Complete Book in PDF?</p><p> </p><p>Thanks</p>

    Its working now. We just kept trying to reinstall the tools and restarting indesign. On the 4th time the buttons started working. I can't explain why it finally worked, just that it is working now.

  • Export in Query Ready mode not Working.for FR reports in HTML view

    Hi,
    When we run the FR reports in HTML view in Workspace,there is an option at the bottom to "Export in Query Ready mode",it's not exporting the report in Smart view excel .
    But some of our users are able to export the report in SV.We are using EPM 11.1.1.3. I have checked the IE 7 settings with other users and it's same.
    Does anybody has any idea what could be the cause?
    Thanks in advance.
    BC

    It is the behavior, Query ready mode will only pulls the members which are in Essbase (no FR calculated fields)
    Regards
    Celvin
    http://www.orahyplabs.com

Maybe you are looking for