af:poll not working in adf table

Hi All,
Does anyone have tried create timer using <af:poll inside a table?, i have a problem like this:
<trh:script>
var count=0;
var timer;
var sec;
var min;
function startCount(event){
inputField = event.getSource().findComponent("totalTime");
inputField.setValue(timer);
count=count+1;
sec = Math.floor(count / 100);
min = Math.floor(count / 6000);
hour = Math.floor(count / 360000);
if (sec >= 60) {
sec = sec - 60 * min;
if (min >= 60) {
min = min - 60 * hour;
timer = pad2(hour) + ':' + pad2(min) + ':' + pad2(sec);
function startAndStopPoll(event) {
event.cancel();
var poll = AdfPage.PAGE.findComponent("poll");
if (0 > poll.getInterval())
poll.setInterval(10);
else
poll.setInterval(-1);
function pad2(number) {
return (10 > number) ? '0' + number : number;
</trh:script>
then if i put this script :
<af:panelFormLayout>
<af:poll id="poll" interval="-1">
<af:clientListener type="poll" method="startCount"/>
</af:poll>
<af:inputText label="Total Time" id="totalTime" shortDesc="Total time" clientComponent="true"
value="00:00:00"/>
</af:panelFormLayout>
<af:panelGroupLayout layout="horizontal">
<af:commandButton text="Start and Stop Poll" id="button">
<af:clientListener type="action" method="startAndStopPoll"/>
</af:commandButton>
</af:panelGroupLayout>
out side the table it is working, but if i put that script inside the table it is not working.. does any one know what happen with the script?
Regards,
Hadi Wijaya

Hi Frank,
Actually i want create timer to record how long does customer service (CS) spend the speaking time with each customer. and the scenario is like this :
1. customer call the CS
2. CS click add button to start a new record in the table
3. then one of table column has start/stop button and one input text which is the input text will be filled by timer like stopwatch (00:00:00)
4. then CS click the start/stop button to start the timer.
5. button stop pressed by the CS after call is over.
6. CS will add new row for next customer again and again
Do you have a suggestion for scenario like this?
Regards,
Hadi Wijaya
Edited by: Hadi Wijaya on Jul 1, 2009 12:02 AM

Similar Messages

  • Standalone Weblogic deployment not working for ADF Table

    Hi All,
    I have create one application using JDeveloper 11g R3. I have taken one ADF Rich Table
    When i run application in Jdeveloper it runs fine.
    Now issue is when i deployee the same in standalone Weblogic server it is not running(Page gets open but table dosent display).
    But when i use same datacontrol and drag it as ADF Form it is working fine.
    Also weblogic server is not showing any logs.
    Please suggest.
    Thanks,
    Vijay

    The Admin Server Log is bellow,
    JAVA Memory arguments: -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m -XX:MaxPermSize=512m
    WLS Start Mode=Development
    CLASSPATH=E:\Oracle\MIDDLE~1\WLSERV~1.3\server\ext\jdbc\oracle\11g\ojdbc6dms.jar;E:\Oracle\MIDDLE~1\patch_wls1033\profiles\default\sys_manifest_classpath\w
    ic_patch.jar;E:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\sys_manifest_classpath\weblogic_patch.jar;E:\Oracle\MIDDLE~1\JDK160~1\lib\tools.jar;E:\Orac
    DDLE~1\WLSERV~1.3\server\lib\weblogic_sp.jar;E:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.jar;E:\Oracle\MIDDLE~1\modules\features\weblogic.server.modu
    0.3.3.0.jar;E:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\webservices.jar;E:\Oracle\MIDDLE~1\modules\ORGAPA~1.1/lib/ant-all.jar;E:\Oracle\MIDDLE~1\modules\NETSF
    _1/lib/ant-contrib.jar;E:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.jrf_11.1.1\jrf.jar;E:\Oracle\MIDDLE~1\WLSERV~1.3\common\derby\lib\derbyclient.jar;E:\Orac
    DDLE~1\WLSERV~1.3\server\lib\xqrl.jar;E:\Oracle\MIDDLE~1\patch_wls1033\profiles\default\sys_manifest_classpath\weblogic_patch.jar;E:\Oracle\MIDDLE~1\patch_
    111\profiles\default\sys_manifest_classpath\weblogic_patch.jar;E:\Oracle\MIDDLE~1\JDK160~1\lib\tools.jar;E:\Oracle\MIDDLE~1\utils\config\10.3\config-launch
    E:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic_sp.jar;E:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.jar;E:\Oracle\MIDDLE~1\modules\features\weblogic
    er.modules_10.3.3.0.jar;E:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\webservices.jar;E:\Oracle\MIDDLE~1\modules\ORGAPA~1.1/lib/ant-all.jar;E:\Oracle\MIDDLE~1\m
    s\NETSFA~1.0_1/lib/ant-contrib.jar;E:\Oracle\MIDDLE~1\WLSERV~1.3\common\derby\lib\derbynet.jar;E:\Oracle\MIDDLE~1\WLSERV~1.3\common\derby\lib\derbyclient.j
    PATH=E:\Oracle\MIDDLE~1\patch_wls1033\profiles\default\native;E:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\native;E:\Oracle\MIDDLE~1\WLSERV~1.3\serve
    ive\win\32;E:\Oracle\MIDDLE~1\WLSERV~1.3\server\bin;E:\Oracle\MIDDLE~1\modules\ORGAPA~1.1\bin;E:\Oracle\MIDDLE~1\JDK160~1\jre\bin;E:\Oracle\MIDDLE~1\JDK160
    n;E:\Oracle\MIDDLE~1\patch_wls1033\profiles\default\native;E:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\native;E:\Oracle\MIDDLE~1\WLSERV~1.3\server\n
    \win\32;E:\Oracle\MIDDLE~1\WLSERV~1.3\server\bin;E:\Oracle\MIDDLE~1\modules\ORGAPA~1.1\bin;E:\Oracle\MIDDLE~1\JDK160~1\jre\bin;E:\Oracle\MIDDLE~1\JDK160~1\
    :\Oracle\app\product\11.2.0\dbhome_1\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;E:\Oracle\MIDD
    WLSERV~1.3\server\native\win\32\oci920_8;E:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32\oci920_8
    * To start WebLogic Server, use a username and *
    * password assigned to an admin-level user. For *
    * server administration, use the WebLogic Server *
    * console at http:\\hostname:port\console *
    starting weblogic with Java version:
    java version "1.6.0_18"
    Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
    Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode)
    Starting WLS with line:
    E:\Oracle\MIDDLE~1\JDK160~1\bin\java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m -XX:MaxPermSize=512m -Dweblogic.Name=AdminSer
    Djava.security.policy=E:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.policy -Xverify:none -Xverify:none -da -Dplatform.home=E:\Oracle\MIDDLE~1\WLSERV~
    Dwls.home=E:\Oracle\MIDDLE~1\WLSERV~1.3\server -Dweblogic.home=E:\Oracle\MIDDLE~1\WLSERV~1.3\server -Ddomain.home=E:\Oracle\MIDDLE~1\USER_P~1\domains\BASE
    -Dcommon.components.home=E:\Oracle\MIDDLE~1\ORACLE~1 -Djrf.version=11.1.1 -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger -Djr
    .optfile=E:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.jrf_11.1.1\jrocket_optfile.txt -Doracle.domain.config.dir=E:\Oracle\MIDDLE~1\USER_P~1\domains\BASE_D~1\
    g\FMWCON~1 -Doracle.server.config.dir=E:\Oracle\MIDDLE~1\USER_P~1\domains\BASE_D~1\config\FMWCON~1\servers\AdminServer -Doracle.security.jps.config=E:\Orac
    DDLE~1\USER_P~1\domains\BASE_D~1\config\fmwconfig\jps-config.xml -Djava.protocol.handler.pkgs=oracle.mds.net.protocol -Digf.arisidbeans.carmlloc=E:\Oracle
    LE~1\USER_P~1\domains\BASE_D~1\config\FMWCON~1\carml -Digf.arisidstack.home=E:\Oracle\MIDDLE~1\USER_P~1\domains\BASE_D~1\config\FMWCON~1\arisidprovider -D
    gic.alternateTypesDirectory=E:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.ossoiap_11.1.1,E:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.oamprovider_11.1.1 -Dwebl
    jdbc.remoteEnabled=false -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=E:\Orac
    DDLE~1\patch_wls1033\profiles\default\sysext_manifest_classpath;E:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\sysext_manifest_classpath weblogic.Serv
    <Jan 19, 2011 4:34:37 PM IST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 16.0-b13 from Sun Micr
    ems Inc.>
    <Jan 19, 2011 4:34:37 PM IST> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3.3.0 Fri Apr 9 00:05:28 PDT 2010 1321401 >
    <Jan 19, 2011 4:34:38 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <Jan 19, 2011 4:34:38 PM IST> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
    <Jan 19, 2011 4:34:38 PM IST> <Notice> <Log Management> <BEA-170019> <The server log file E:\Oracle\Middleware\user_projects\domains\base_domain\servers\Ad
    rver\logs\AdminServer.log is opened. All server side log events will be written to this file.>
    <Jan 19, 2011 4:34:40 PM IST> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
    <Jan 19, 2011 4:34:43 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>
    <Jan 19, 2011 4:34:43 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <Jan 19, 2011 4:34:48 PM IST> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service succes
    y.>
    <Jan 19, 2011 4:34:48 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
    <Jan 19, 2011 4:34:48 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
    <Jan 19, 2011 4:34:48 PM IST> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on fe80:0:0:0:0:5efe:a81:c06c:7001 for protocols iiop,
    dap, snmp, http.>
    <Jan 19, 2011 4:34:48 PM IST> <Warning> <Server> <BEA-002611> <Hostname "INEDEC-ENP-70.emrsn.org", maps to multiple IP addresses: 10.129.192.108, fe80:0:0:
    1:2cf6:49b4:9963%11>
    <Jan 19, 2011 4:34:48 PM IST> <Notice> <Server> <BEA-002613> <Channel "Default[4]" is now listening on 0:0:0:0:0:0:0:1:7001 for protocols iiop, t3, ldap, s
    http.>
    <Jan 19, 2011 4:34:48 PM IST> <Notice> <Server> <BEA-002613> <Channel "Default[3]" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, h
    <Jan 19, 2011 4:34:48 PM IST> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 10.129.192.108:7001 for protocols iiop, t3, ldap, snmp,
    .>
    <Jan 19, 2011 4:34:48 PM IST> <Notice> <Server> <BEA-002613> <Channel "Default[2]" is now listening on fe80:0:0:0:31c1:2cf6:49b4:9963:7001 for protocols ii
    3, ldap, snmp, http.>
    <Jan 19, 2011 4:34:48 PM IST> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "AdminServer" for domain "base_domain" running in Devel
    t Mode>
    <Jan 19, 2011 4:34:48 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
    <Jan 19, 2011 4:34:48 PM IST> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
    <Jan 19, 2011 4:46:29 PM IST> <Error> <org.apache.beehive.netui.pageflow.internal.AdapterManager> <BEA-000000> <ServletContainerAdapter manager not initial
    correctly.>
    <Jan 19, 2011 4:47:01 PM IST> <Warning> <netuix> <BEA-423420> <Redirect is executed in begin or refresh action. Redirect url is /console/console.portal?_nf
    ue&_pageLabel=AppApplicationOverviewPage&AppApplicationOverviewPortlethandle=com.bea.console.handles.AppDeploymentHandle%28%22com.bea%3AName%3DFMW+Welcome+
    Application%2311.1.0.0.0%2CType%3DAppDeployment%22%29.>
    <Jan 19, 2011 4:48:08 PM IST> <Warning> <netuix> <BEA-423420> <Redirect is executed in begin or refresh action. Redirect url is /console/console.portal?_nf
    ue&_pageLabel=AppApplicationOverviewPage&AppApplicationOverviewPortlethandle=com.bea.console.handles.AppDeploymentHandle%28%22com.bea%3AName%3Dtestdep%2CTy
    AppDeployment%22%29.>
    <Jan 19, 2011 4:48:45 PM IST> <Warning> <netuix> <BEA-423420> <Redirect is executed in begin or refresh action. Redirect url is /console/console.portal?_nf
    ue&_pageLabel=AppApplicationOverviewPage&AppApplicationOverviewPortlethandle=com.bea.console.handles.AppDeploymentHandle%28%22com.bea%3AName%3DFMW+Welcome+
    Application%2311.1.0.0.0%2CType%3DAppDeployment%22%29.>
    <Jan 19, 2011 4:49:03 PM IST> <Warning> <netuix> <BEA-423420> <Redirect is executed in begin or refresh action. Redirect url is /console/console.portal?_nf
    ue&_pageLabel=AppApplicationOverviewPage&AppApplicationOverviewPortlethandle=com.bea.console.handles.AppDeploymentHandle%28%22com.bea%3AName%3Dtestdep%2CTy
    AppDeployment%22%29.>
    <Jan 19, 2011 4:49:45 PM IST> <Warning> <netuix> <BEA-423420> <Redirect is executed in begin or refresh action. Redirect url is /console/console.portal?_nf
    ue&_pageLabel=AppApplicationOverviewPage&AppApplicationOverviewPortlethandle=com.bea.console.handles.AppDeploymentHandle%28%22com.bea%3AName%3DFMW+Welcome+
    Application%2311.1.0.0.0%2CType%3DAppDeployment%22%29.>

  • Drill down is not working for Pivot tables,but working for chart

    I have two reports and trying to navigate betwen summary report to detail report. But details report is displaying all the records .The filter condition is not working and displaying all the filters .I have Case statement in my filter.But the summary report column where the filter condition is applied is aggregated in the RPD level. Does this might be the reason ?. Is it passing different type of data type to details report ?. The filter condition is not working for Pivot table .But Chart is working fine and displaying the only selected records based on the filter condition.
    Please help me with the below issue.

    Hi sil174sss,
    Per my understanding you are experiencing the issue with the excel report which have add the drill down action, after export to excel only the expanded nodes included and the collapsed nodes is not shown, right?
    Generally, if we expand the nodes before export to excel then the excel will display the expanded details row and keep collapsed the details row which haven't expand, but we have the toggle "+","-" on the left of the Excel to help
    control the expand and collapse, when you click the "+" you can expand the collapsed notes to see the details rows.
    I have tested on my local environment with different version of SSRS and can always see the "+","-" as below:
    On the Top left corner you can find the "1","2", this help to control the "Collapse All" and "Expand All".
    If you can't see the "+","-" in the excel, the issue can be caused by the Excel version you are currently using, and also excel have limit support of this, please provide us the Excel version information and the SSRS version. You
    can reference to this similar thread:
    lost collapsing columns when export to excel
    Please try to export other drill down report to excel and check if they work fine, if they did, the issue can be caused by the drill down action you have added in this report is not correctly, if possible, please try to redesign the report.
    Article below about how to add  Expand/Collapse Action to an Item for your reference:
    http://msdn.microsoft.com/en-us/library/dd220405.aspx
    If your problem still exists, please feel free to ask
    Regards
    Vicky Liu

  • DBsequence not working in ADF app

    HI All
    I am using Jdeveloper 11g release 2 (11.1.2.3.0) and Oracle DB.
    I have created an entity object and set the type of the filed as DBseequence but forgot to insert the sequence+trigger in the database for the table from which it was created.
    I have also created a view object for this EO, and through the app module have used it i a page.
    Clearly the submit and/or commit were not working because of the missing seq+trigger.
    I created the seq + trigger on the db, everything works fine if I insert a record from the db, and the id is generated as it should.
    When i try to do the same from ADF (tried from the page and from the model tester) i get the following error : (oracle.jbo.AttrValException) JBO-27014: Attribute Invoiceid in Invoices is required.
    It seems that the fact that there is a sequence to generate the id is not recognized.
    Any ideas?
    Thank you

    Or you use the groovy approach which doesn't need the db trigger and is easy to implement.
    Check out http://tompeez.wordpress.com/2011/09/02/using-groovy-expression-to-set-a-primary-key-with-a-sequence-number/
    Timo

  • File Upload UI element is not working properly inside Table Popin container

    Hi Expert,
    I created a table with popin, i placed file-upload UI element inside table popin contatiner.
    The file upload UI element is displaying properly but, when i click the browse button to select  the file, the file open dialog box is not popping out.
    will table popin support file-upload UI element inside it?
    it not is there any other way to call a file_open dialog box from inside the table popin.
    Thanks,
    James

    If you are on NetWeaver 7.01, you can try both the ACFUpDownload UI element or try creating your own FileUpload in Adobe Flex with Flash Islands.  ACFUpDownload requires the KPRO by default (which is why the same application isn't working for you), but you can write your own handler class to act as the KPRO receiver.  Here is an eLearning on the topic:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/109b9b52-bc00-2c10-8786-e4c5e96d7e04
    and source code:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70645070-bb00-2c10-f086-f126721acdb4
    If you want an eLearning on the FlashIslands approach, you can find it here as well:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50d42644-91ef-2b10-228c-9e0ae75b274e
    and Source Code:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f044b62c-90ef-2b10-64a6-9ec25294d133
    However in both of these approaches you still have to be careful with how you handle large files.  The problem is that they are processed often a single binary string.  This makes the processing easy, but requires total amount of session memory at least as large as the file being uploaded.  In NetWeaver 7.02 ABAP adds the concept of Streams and Locators to help with the partial processing of large files.  This feature doesn't come until later this year, but if you are interested you can learn about it here:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/80f983df-213e-2c10-ba89-b5a12ef178e8

  • Next button not working in advanced table

    HI ,
    I have created an advanced table programatically.everything is working fine but the navigation buttons for next and previous are not working properly.If I click on next 20 records I am getting the first 20 records.Do i need to set anything for this.Please hepl me.

    Hi,
    This may be the problem in your InternetExplorer.
    Mini

  • Insert statement is not working for z table.

    Hi experts,
    My insert statement is not working.
    I have used follwing code to update z table .
    INSERT ztable FROM TABLE gt_table.
    here i have checked gt_table and its filled up with all the records properly.
    now the problem is in this table i have 15 fields and it inserts 14  fields of it but
    the last field is never inserted though in gt_table i can see value for last fields also.
    I have added this field in ztable recently . so i also used se14 to adjust table but still i am facing same problem.
    please help me out.
    thanks,
    Neo

    > > Table maintainance will have nothing to do with
    > this
    > > issue.
    >
    > It does sometimes when you are trying to see the
    > values from SM30 instead of SE16. The value may be
    > there, but it may just not seen in SM30 because the
    > table maintenance hasn't registered the addition of
    > new field.
    >
    > Another place to look at is the activation log to see
    > if there are any warnings issued there.
    You shouldn't use SM30 to view table entries. You use this transaction to maintain the table entries. Pure and Simple.

  • Transaction SE16: Field selection (User-Specific Settings) is NOT working for ALL tables

    Hi Guru’s,
    I have an issue in Transaction SE16, Field selection (User-Specific Settings) is NOT working in Tables (ALL tables).
    Following is the screenshot attached for your kind reference,
    That is in the initial screen of transaction SE16 if I choose Filed Name or Filed Label only the technical details (Field Names) are appearing and not the descriptions like Client, Purchasing Doc, and Company Code Doc. Category Document Type etc…
    Right now I am using ECC6 and EHP7 SAP system.
    Please help me to resolve this issue by implementing any OSS note or User Role creations or any technical changes required in system.
    Hope the requirement is clear and in case need any clarification please revert back.
    NOTE: Right now in Development System we don’t have any successful user to compare the settings.
    Regards,
    Kumar.S

    Thanks Patra.
    Even I searched in SAP portal and couldn't able to find the relevant OSS note.
    Following is my BASIS team response,
    "Only you can view Table Field values from higher release"
    Can you suggest / guide on this comment as well.
    Looking forward to your speedy response.
    Regards,
    Kumar.S

  • AddCurrentValue is not working for Command Table parameters

    Hello,
    I am using Powerbuilder 10 and RDC for CR XI R2 Sp2. I am able to pass parameters to a report using the ParameterFieldDefinition object by calling AddCurrentValue. But this does not work if the ParameterFieldDefinition was created (in Crystal) when a Command Table is created. Is there something else I should be using to pass a value to these parameters. See my code exert below:
    oleobject lo_parameter_field = oio_report.ParameterFields.Item (ll_index)
    string ls_value = "123"
    lo_parameter_field.AddCurrentValue (ls_temp_string)
    Like I said this has always worked for parameters created in the field explorer using "Create New Parameter" dialog, but if the parameter is created in the "Modify Command" dialog it does not work.
    Please, am I missing something here? How do I fix this?
    Thanks

    Hi Geoff,
    The RDC has not been funcitonally updated since version 9. Setting anything in a Command object was added later to the Designer and at the time only setting log on info was capable.
    You should download and install SP5 and try again. If the Parameter collection doesn't list the Command Parameter then you'll have to link it to a parameter in CR Designer and see if that works. If not then I heard PB has/or is going to support .NET. You can then upgrade to our .NET assemblies and then you'll have access to them.
    If you have not heard RDC in CR XI R2 is the last version shipped.
    Thank you
    Don

  • Select list pagination not working for big tables

    Hi,
    i am trying to view a table with large amount of data using tabular form. the pagination using select list is not working in this page. i have selected select list kind of pagination but it is showing "row range 1-15 16-30(with set pagination)' type of pagination. when i lowered the amount of data in the table the pagination type will automatically change to select list pagination. could you please tell me why this happens and any possible work around if any.
    Thanks,
    Jo

    Hi Jo,
    I don't know what you call a large amount of records, but the effect you describe might be intentional by apex.
    The select list pagination would generate a selection tag with (number of records in table/15) options in your page HTML.
    Although there isn't a hard limit to the number of options a select list can have there certainly is a limit to what your browser/pc can render.
    Think about it
    Let's say you table contains a million rows. this would result to a select list with 66666 options. Which your browser won't handle :)
    I very possible the apex team resolved this by simply reverting to row range pagination when the number of select options would grow to large.
    Geert

  • "member of " not working with nested table of dates

    Can someone explain why this doesn't work. The last select does not return any row. When trying the same with a table of number, it works fine.
    drop table test;
    drop type date_tab;
    create type date_tab as table of date;
    create table test(dates date_tab) nested table dates store as dates;
    insert into test values (date_tab(to_date('10-jan-2007'),to_date('15-jan-2007'),to_date('15-jan-2007')));
    commit;
    select * from test where to_date('10-jan-2007') member of dates;
    Line above should find the row, but does not return anything.

    > With 10G Oracle said that these two engines are now sharing the same source code
    Is that documented somewhere? Regarding database versions, it was 9.0.1 that claimed an integrated parser. I don't see any update for 10g.
    > So in the old days one had to do a [SELECT sysdate INTO d FROM dual] to assign a function value to a PL/SQL var - as the function did not exist in PL/SQL.
    Then (from Oracle 7 onwards?) these functions were also available in PL/SQL. However, the two engines did not share common code. So functions in SQL did not always behave like function in PL/SQL and vice versa.
    I don't recall that limitation in PL/SQL v1 (Forms 3 to 4.5, and database v6, though I doubt many people actually used PL/SQL on the database because (1) it was separately licensed, and (2) it didn't have stored procedures) - but then it was a while ago so I could be mistaken.
    I know USER, SYSDATE and others used to be implicit queries of dual (i.e. the supplied PL/SQL function was just a wrapper containing SELECT SYSDATE INTO dt FROM dual; RETURN dt;) although that's probably just confusing the issue.

  • Why String Search in not working in ADF.?

    Hi,
        I've created application in ADF with Search Options. Search Operation is working for all the Integer Values in that page but its not working for String Values.
    I dont know why its not able to search String Values.
    My AppModule bean Code :
                    package model.portfolio.portfolio.am;
    import model.portfolio.portfolio.am.common.PortfolioAppModuleAM;
    import model.portfolio.portfolio.view.ResourceViewChildObjImpl;
    import oracle.jbo.VariableValueManager;
    import oracle.jbo.ViewCriteria;
    import oracle.jbo.server.ApplicationModuleImpl;
    import oracle.jbo.server.ViewLinkImpl;
    import oracle.jbo.server.ViewObjectImpl;
    public class PortfolioAppModuleAMImpl extends ApplicationModuleImpl implements PortfolioAppModuleAM {
         * This is the default constructor (do not remove).
        public PortfolioAppModuleAMImpl() {
        public void applyVCforGlobalSearchPortfolios(String theString){
            ViewObjectImpl vo = getPortfolio1();
            ViewCriteria vc = vo.getViewCriteria("PortfolioVOCriteria");
            System.out.println("On Criteria");
            vc.resetCriteria();
            VariableValueManager vvm = vc.ensureVariableManager();
            System.out.println("On String");
            vvm.setVariableValue("globalSearchString", theString);
            System.out.println("After String");
            vo.applyViewCriteria(vc,true);
            vo.executeQuery();
    *All Getters and Setter of all VO and VLs****
    My Query created in View Criteria :
    ( (UPPER(SHORTNAME) LIKE UPPER( :globalSearchString || '%') ) OR (UPPER(DESCRIPTION) LIKE UPPER( :globalSearchString || '%') ) AND (PROGRAMMES_COUNT = :globalSearchString ) OR (KK_COUNT = :globalSearchString ) OR (KPI_KRA_VALUE = :globalSearchString ) )
    One more interesting thing in After Creating the View Criteria If i try to Test this Query, Its giving me error msg as
    "Cannot complete query to determine the view attributes.  Either the query is invalid or timeout occurs.  Please revise the query or create the view attributes manually.
    "com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':globalSearchString || '%') ) OR (UPPER(QRSLT.DESCRIPTION) LIKE UPPER( :globalSe' at line 1"
    I don know why... Can somebody please help me?
    Im using Jdev 12C

    Binding variables will be different from oracle database and My Sql database.
    Oracle database use this (:) for defining bindVariable but in My Sql use this (?)
    Try to remove the view criteria which you define in View Object and you can make it programmatically like this:
        ViewObject vo = getPortfolio1();
        ViewCriteria vc = vo.createViewCriteria();
        ViewCriteriaRow vcr = vc.createViewCriteriaRow();
        vcr.setAttribute("Attribute1", value);
        vcr.setAttribute("Attribute2", value);
        vc.add(vcr);
        vo.applyViewCriteria(vc);
        vo.executeQuery();

  • TableChanged() does not work with parrent table reference

    Hi,
    I used this example http://www.javalobby.org/articles/jtable/ where the cells refocus after updating, but I have rewrote it to my needs and the program throws nullpointerexception when I update any cell:(
    here is the tableChanged part of code:
        public class InteractiveTableModelListener implements TableModelListener {
            public void tableChanged(TableModelEvent evt) {
                if (evt.getType() == TableModelEvent.UPDATE) {
                    int column = evt.getColumn();
                    int row = evt.getFirstRow();
                    System.out.println("updated row: " + row + " column: " + column);
                   if((column + 1) >= model.getRowCount()){
                      table.removeColumnSelectionInterval(column,column);
                    }else{
                      table.setColumnSelectionInterval(column + 1, column + 1);
                    table.setRowSelectionInterval(row,row);
    }the table reference worked in the exaple but doesnt work in my program:(
    here is the init of the table in function initComponent:
            tableModel.addTableModelListener(new InteractiveTableModelListener());
            TableSorter sorter = new TableSorter(tableModel);
            JTable table = new JTable(sorter);the class is on the same level as the function
    i have searched all the internet for this with no results:(
    thank you for your advice!

    Yes, you are right, I wrote this post in a hurry and exhaused, that it does not work.
    I'm trying to write out a data file (now only a vector of data) in a JTable and I want to edit the rows and after I submit text in a cell, I want the caret to move one cell right, so the user can write another text, just like in MS Excel. At the end of the row the caret disapears but does not create another row.
    And I have problems with variable JTable table in the inner class that contains method tableChanged().
    Well After making an example I realized it worked and then I checked the example line by line and found out that I declare another JTable with the same name in the table initializing method,
    Then the variable couldnt work in tableChanged method... It was empty...
    I used your example from thread, you advised me:
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.table.*;
    public class TableProcessing extends JFrame implements TableModelListener
         // here I declare the table
            protected JTable table;
         public TableProcessing()
              String[] columnNames = {"Item", "Quantity", "Price", "Cost"};
              Object[][] data =
                   {"Bread", new Integer(1), new Double(1.11), new Double(1.11)},
                   {"Milk", new Integer(1), new Double(2.22), new Double(2.22)},
                   {"Tea", new Integer(1), new Double(3.33), new Double(3.33)},
                   {"Cofee", new Integer(1), new Double(4.44), new Double(4.44)}
              DefaultTableModel model = new DefaultTableModel(data, columnNames);
              model.addTableModelListener( this );
                    // here I declare it again, which is a MISTAKE
              JTable table = new JTable( model )
                   //  Returning the Class of each column will allow different
                   //  renderers to be used based on Class
                   public Class getColumnClass(int column)
                        return getValueAt(0, column).getClass();
                   //  The Cost is not editable
                   public boolean isCellEditable(int row, int column)
                        int modelColumn = convertColumnIndexToModel( column );
                        return (modelColumn == 3) ? false : true;
              table.setPreferredScrollableViewportSize(table.getPreferredSize());
              JScrollPane scrollPane = new JScrollPane( table );
              getContentPane().add( scrollPane );
          *  The cost is recalculated whenever the quantity or price is changed
         public void tableChanged(TableModelEvent e)
              System.out.println(e.getSource());
              if (e.getType() == TableModelEvent.UPDATE)
                   int row = e.getFirstRow();
                   int column = e.getColumn();
                   if (column == 1 || column == 2)
                                   // AND here is not initialised - throws NullPointerException
                        TableModel model = table.getModel();
                        int     quantity = ((Integer)model.getValueAt(row, 1)).intValue();
                        double price = ((Double)model.getValueAt(row, 2)).doubleValue();
                        Double value = new Double(quantity * price);
                        model.setValueAt(value, row, 3);
         public static void main(String[] args)
              TableProcessing frame = new TableProcessing();
              frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
              frame.pack();
              frame.setLocationRelativeTo( null );
              frame.setVisible(true);
    }

  • SELECT INTO ( variable ) STATEMENTS NOT WORKING FOR SYBASE TABLE AS VIEW

    Dear Experts,
    We have connected our 9i db with Sybase db using Hs connectivity.
    and then we have create the view in oracle db for SYBASE_TABLE as SYBASE_TABLE_VIEW.
    ALL THE INSERT, UPDATE AND DELETE COMMANDS ARE WORKING BUT THE
    select Into (variable) is not working.
    Please help to resolve the select into statment which is in BOLD in the below routine
    PLEASE NOTE! FORM WAS COMPILED SUCCESSFULLY AND FORM IS RUNNING BUT SELECT INTO COMMAND IS NOT WORKING.
    Thanks & Regards
    Eidy
    PROCEDURE SRBL_INSERT IS
    CURSOR SRBL IS
         SELECT impno,impcod,impnam
         from oracle_table1 a, oracle_table2 b
         WHERE a.impcod=b.empcod
         v_srpcod varchar2(5);
    BEGIN     
    FOR rec in SRBL loop     
         begin
    select "im_code" into v_impcod                    
         from SYBASE_TABLE_VIEW
         where "im_code"=rec.impcod;
    exception when no_data_found then
         v_srpcod:=null;
    end;
    END LOOP;
    END;
    Edited by: Eidy on Aug 16, 2010 11:28 AM

    hellow
    try this.
    select "im_code" into v_impcod
    from SYBASE_TABLE_VIEW
    where "im_code"=rec.impcod;
    v_srpcod := v_impcod ;
    ........

  • Adf Customized Selection Listner Not working in df Table

    Hi All,
    I am working on Oracle Adf with jdev version 11.1.1.5
    My table has single row and some columns are Select Boolean Check boxes.
    I am using my customized Selection Listener for this table.
    My problem is when table is rendered row selected automatically and selection Listener is not executed.
    Any help is appreciated ...
    Following is my code Snippet :
    <af:table value="#{bindings.homeDelToProxyParentVO1.collectionModel}"
    var="row"
    rows="#{bindings.homeDelToProxyParentVO1.rangeSize}"
    emptyText="#{bindings.homeDelToProxyParentVO1.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.homeDelToProxyParentVO1.rangeSize}"
    rowBandingInterval="0"
    selectedRowKeys="#{bindings.homeDelToProxyParentVO1.collectionModel.selectedRow}"
    rowSelection="single"
    binding="#{backingBeanScope.backing_home3.t1}"
    id="t1" styleClass="AFStretchWidth"
    autoHeightRows="5"
    contentDelivery="immediate"
    selectionListener="#{backingBeanScope.backing_home3.homeDelToProxyParentSelectionListner}">
    <af:column sortProperty="selectAll"
    sortable="false"
    headerText="Select All" id="c24">
    <af:selectBooleanCheckbox value="#{row.bindings.selectAll.inputValue}"
    required="#{bindings.homeDelToProxyParentVO1.hints.selectAll.mandatory}"
    shortDesc="#{bindings.homeDelToProxyParentVO1.hints.selectAll.tooltip}"
    id="it3"
    autoSubmit="true"
    valueChangeListener="#{backingBeanScope.backing_home3.delToProxySelectAll}">
    <f:validator binding="#{row.bindings.selectAll.validator}"/>
    </af:selectBooleanCheckbox>
    </af:column>
    <af:column sortProperty="EmpName"
    sortable="false"
    headerText="Employee Name" id="c3">
    <af:outputText value="#{row.EmpName}"
    id="ot2"/>
    </af:column>
    <af:column sortProperty="EmpPerNo"
    sortable="false"
    headerText="Person Number" id="c1">
    <af:outputText value="#{row.EmpPerNo}"
    id="ot1">
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.homeDelToProxyParentVO1.hints.EmpPerNo.format}"/>
    </af:outputText>
    </af:column>
    <af:column sortProperty="NotifyDate"
    sortable="false"
    headerText="Notification Date"
    id="c7">
    <af:outputText value="#{row.NotifyDate}"
    id="ot3">
    <af:convertDateTime pattern="#{bindings.homeDelToProxyParentVO1.hints.NotifyDate.format}"/>
    </af:outputText>
    </af:column>
    <af:column sortProperty="notification"
    sortable="false"
    headerText="Notification" id="c23">
    <af:selectBooleanCheckbox value="#{row.bindings.notification.inputValue}"
    required="#{bindings.homeDelToProxyParentVO1.hints.notification.mandatory}"
    shortDesc="#{bindings.homeDelToProxyParentVO1.hints.notification.tooltip}"
    id="it6"
    autoSubmit="true"
    valueChangeListener="#{backingBeanScope.backing_home3.delToProxyNotification}">
    <f:validator binding="#{row.bindings.notification.validator}"/>
    </af:selectBooleanCheckbox>
    </af:column>
    <af:column sortProperty="physicalAccess"
    sortable="false"
    headerText="Physical Access"
    id="c22">
    <af:selectBooleanCheckbox value="#{row.bindings.physicalAccess.inputValue}"
    required="#{bindings.homeDelToProxyParentVO1.hints.physicalAccess.mandatory}"
    shortDesc="#{bindings.homeDelToProxyParentVO1.hints.physicalAccess.tooltip}"
    id="it2"
    valueChangeListener="#{backingBeanScope.backing_home3.delToProxyPhysicalAccess}"
    autoSubmit="true">
    <f:validator binding="#{row.bindings.physicalAccess.validator}"/>
    </af:selectBooleanCheckbox>
    </af:column>
    <af:column sortProperty="networkAccess"
    sortable="false"
    headerText="Network Access" id="c35">
    <af:selectBooleanCheckbox value="#{row.bindings.networkAccess.inputValue}"
    required="#{bindings.homeDelToProxyParentVO1.hints.networkAccess.mandatory}"
    shortDesc="#{bindings.homeDelToProxyParentVO1.hints.networkAccess.tooltip}"
    id="it17"
    autoSubmit="true"
    valueChangeListener="#{backingBeanScope.backing_home3.delToProxyNetworkAccess}">
    <f:validator binding="#{row.bindings.networkAccess.validator}"/>
    </af:selectBooleanCheckbox>
    </af:column>
    <af:column sortProperty="laptopDesktop"
    sortable="false"
    headerText="Laptop/Desktop" id="c5">
    <af:selectBooleanCheckbox value="#{row.bindings.laptopDesktop.inputValue}"
    required="#{bindings.homeDelToProxyParentVO1.hints.laptopDesktop.mandatory}"
    shortDesc="#{bindings.homeDelToProxyParentVO1.hints.laptopDesktop.tooltip}"
    id="it5"
    autoSubmit="true"
    valueChangeListener="#{backingBeanScope.backing_home3.delToProxyLaptopDesktop}">
    <f:validator binding="#{row.bindings.laptopDesktop.validator}"/>
    </af:selectBooleanCheckbox>
    </af:column>
    <af:column sortProperty="mobility"
    sortable="false"
    headerText="Mobility" id="c6">
    <af:selectBooleanCheckbox value="#{row.bindings.mobility.inputValue}"
    required="#{bindings.homeDelToProxyParentVO1.hints.mobility.mandatory}"
    shortDesc="#{bindings.homeDelToProxyParentVO1.hints.mobility.tooltip}"
    id="it4"
    autoSubmit="true"
    valueChangeListener="#{backingBeanScope.backing_home3.delToProxyMobility}">
    <f:validator binding="#{row.bindings.mobility.validator}"/>
    </af:selectBooleanCheckbox>
    </af:column>
    <af:column sortProperty="otherProperty"
    sortable="false"
    headerText="Other Property" id="c4">
    <af:selectBooleanCheckbox value="#{row.bindings.otherProperty.inputValue}"
    required="#{bindings.homeDelToProxyParentVO1.hints.otherProperty.mandatory}"
    shortDesc="#{bindings.homeDelToProxyParentVO1.hints.otherProperty.tooltip}"
    id="it7"
    autoSubmit="true"
    valueChangeListener="#{backingBeanScope.backing_home3.delToProxyOtherProperty}">
    <f:validator binding="#{row.bindings.otherProperty.validator}"/>
    </af:selectBooleanCheckbox>
    </af:column>
    <af:column sortProperty="hrActivity"
    sortable="false"
    headerText="HR Activities" id="c2">
    <af:selectBooleanCheckbox value="#{row.bindings.hrActivity.inputValue}"
    required="#{bindings.homeDelToProxyParentVO1.hints.hrActivity.mandatory}"
    shortDesc="#{bindings.homeDelToProxyParentVO1.hints.hrActivity.tooltip}"
    id="it1"
    autoSubmit="true"
    valueChangeListener="#{backingBeanScope.backing_home3.delToProxyHRActivity}">
    <f:validator binding="#{row.bindings.hrActivity.validator}"/>
    </af:selectBooleanCheckbox>
    </af:column>
    </af:table>

    Since there is only one row in my table, it is getting select as a current row by default.
    But my requirement is to call my custom selection Listener which will make it current in addition to it
    I am also enabling a command button pro-grammatically there which is initially disabled i.e.( Disable = true )

Maybe you are looking for