How to implement ajax at ADF table column or ADF table column button.

I want to use ajax in table column selection. I have two table. One is master table and second one is detailed table. I have requirement to click master table column and display data in detail table column against the master table column.
let assume i have two tables 1.
<af:form id="f1">
<af:panelSplitter id="ps1" orientation="vertical">
<f:facet name="first">
<af:table value="#{radionBean.generatedData}" var="item" columnSelection="single" rowBandingInterval="0"
id="tableData">
<af:column sortable="false" selected="true" headerText="Ticket No" align="start" id="c1">
<af:outputText value="#{item.ticketno}" id="ot1"/>
</af:column>
<af:column sortable="false" headerText="Requestor" align="start" id="c2">
<af:outputText value="#{item.requestor}" id="ot2"/>
</af:column>
<af:commandButton text="More" id="cb1" action="#{radionBean.myrow}">
<f:ajax execute="@this" render=":f1:detailTableData"/>
<f:setPropertyActionListener target="#{radionBean.currentrow}" value="#{item}"/>
</af:commandButton>
</af:column>
</af:table>
</f:facet>
Second table
<f:facet name="second">
<af:table value="#{radionBean.detailData}" var="itemdet" rowBandingInterval="0"
id="detailTableData">
<af:column sortable="false" headerText="Ticket No" align="start" id="c21">
<af:outputText value="#{itemdet.ticketno}" id="ot21"/>
</af:column>
<af:column sortable="false" headerText="Date" align="start" id="c22">
<af:outputText value="#{itemdet.date}" id="ot22"/>
</af:column>
</af:table>
</f:facet>
</af:panelSplitter>
</af:form>
The above is my two table when i run the program i have this exception
<UIXEditableValue> <_isBeanValidationAvailable> A Bean Validation provider is not present, therefore bean validation is disabled
<FaceletViewHandlingStrategy> <handleRenderException> Error Rendering View[untitled1.jsf]
java.lang.IllegalArgumentException
     at org.apache.myfaces.trinidad.component.UIXComponentBase.findComponent(UIXComponentBase.java:708)
     at com.sun.faces.renderkit.html_basic.AjaxBehaviorRenderer.getResolvedId(AjaxBehaviorRenderer.java:279)
     at com.sun.faces.renderkit.html_basic.AjaxBehaviorRenderer.appendIds(AjaxBehaviorRenderer.java:269)
     at com.sun.faces.renderkit.html_basic.AjaxBehaviorRenderer.buildAjaxCommand(AjaxBehaviorRenderer.java:214)
     at com.sun.faces.renderkit.html_basic.AjaxBehaviorRenderer.getScript(AjaxBehaviorRenderer.java:86)
     at javax.faces.component.behavior.ClientBehaviorBase.getScript(ClientBehaviorBase.java:103)
     at oracle.adf.view.rich.render.RichRenderer._encodeClientBehaviors(RichRenderer.java:3740)
     at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1409)
     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1659)
     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
     at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
     at oracle.adf.view.rich.render.RichRenderer.encodeChildInContext(RichRenderer.java:3118)
     at oracle.adfinternal.view.faces.renderkit.rich.table.BaseColumnRenderer.renderDataCell(BaseColumnRenderer.java:1468)
     at oracle.adfinternal.view.faces.renderkit.rich.table.BaseColumnRenderer.encodeAll(BaseColumnRenderer.java:166)
     at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1659)
     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
     at oracle.adf.view.rich.render.RichRenderer.encodeChild(RichRenderer.java:3201)
     at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer.renderDataBlockRows(TableRenderer.java:2803)
     at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer._renderSingleDataBlock(TableRenderer.java:2433)
     at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer._handleDataFetch(TableRenderer.java:1634)
     at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer.encodeAll(TableRenderer.java:560)
     at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
     at org.apache.myfaces.trinidad.component.UIXCollection.encodeEnd(UIXCollection.java:617)
     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1659)
     at oracle.adfinternal.view.faces.util.rich.InvokeOnComponentUtils$EncodeChildVisitCallback.visit(InvokeOnComponentUtils.java:116)
     at com.sun.faces.component.visit.PartialVisitContext.invokeVisitCallback(PartialVisitContext.java:183)
     at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:531)
     at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:354)
     at oracle.adfinternal.view.faces.renderkit.rich.PanelSplitterRenderer._visitFacetAsStretched(PanelSplitterRenderer.java:393)
     at oracle.adfinternal.view.faces.renderkit.rich.PanelSplitterRenderer._visitFacet(PanelSplitterRenderer.java:371)
     at oracle.adfinternal.view.faces.renderkit.rich.PanelSplitterRenderer.visitChildrenForEncodingImpl(PanelSplitterRenderer.java:338)
     at oracle.adf.view.rich.render.RichRenderer.visitChildrenForEncoding(RichRenderer.java:2393)
     at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:410)
     at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:695)
     at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:558)
     at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:354)
     at oracle.adfinternal.view.faces.renderkit.rich.DecorativeBoxRenderer.visitChildrenForEncodingImpl(DecorativeBoxRenderer.java:214)
     at oracle.adf.view.rich.render.RichRenderer.visitChildrenForEncoding(RichRenderer.java:2393)
     at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:410)
     at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:695)
     at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:558)
     at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:354)
     at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer._visitFacetAsStretched(PanelStretchLayoutRenderer.java:856)
     at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer._visitFacet(PanelStretchLayoutRenderer.java:834)
     at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer.visitChildrenForEncodingImpl(PanelStretchLayoutRenderer.java:793)
     at oracle.adf.view.rich.render.RichRenderer.visitChildrenForEncoding(RichRenderer.java:2404)
     at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:410)
     at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:695)
     at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:558)
     at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:354)
     at org.apache.myfaces.trinidad.render.CoreRenderer.visitChildrenForEncoding(CoreRenderer.java:228)
     at oracle.adf.view.rich.render.RichRenderer.visitChildrenForEncodingImpl(RichRenderer.java:2421)
     at oracle.adf.view.rich.render.RichRenderer.visitChildrenForEncoding(RichRenderer.java:2404)
     at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:410)
     at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:695)
     at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:558)
     at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:354)
     at org.apache.myfaces.trinidad.render.CoreRenderer.visitChildrenForEncoding(CoreRenderer.java:228)
     at oracle.adf.view.rich.render.RichRenderer.visitChildrenForEncodingImpl(RichRenderer.java:2421)
     at oracle.adf.view.rich.render.RichRenderer.visitChildrenForEncoding(RichRenderer.java:2404)
     at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:410)
     at org.apache.myfaces.trinidad.component.UIXComponent.visitChildren(UIXComponent.java:695)
     at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:558)
     at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:354)
     at org.apache.myfaces.trinidad.component.UIXDocument.visitTree(UIXDocument.java:82)
     at javax.faces.component.UIComponent.visitTree(UIComponent.java:1496)
     at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:487)
     at oracle.adfinternal.view.faces.util.rich.InvokeOnComponentUtils.renderChild(InvokeOnComponentUtils.java:42)
     at oracle.adfinternal.view.faces.streaming.StreamingDataManager._pprComponent(StreamingDataManager.java:756)
     at oracle.adfinternal.view.faces.streaming.StreamingDataManager.execute(StreamingDataManager.java:525)
     at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer._encodeStreamingResponse(DocumentRenderer.java:3713)
     at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer.encodeAll(DocumentRenderer.java:1475)
     at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1452)
     at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
     at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:923)
     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1659)
     at oracle.adfinternal.view.faces.context.PartialViewContextImpl._processRender(PartialViewContextImpl.java:321)
     at oracle.adfinternal.view.faces.context.PartialViewContextImpl.processPartial(PartialViewContextImpl.java:152)
     at javax.faces.component.UIViewRoot.encodeChildren(UIViewRoot.java:974)
     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1652)
     at oracle.adfinternal.view.faces.component.AdfViewRoot.encodeAll(AdfViewRoot.java:91)
     at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:399)
     at org.apache.myfaces.trinidadinternal.application.ViewDeclarationLanguageFactoryImpl$ChangeApplyingVDLWrapper.renderView(ViewDeclarationLanguageFactoryImpl.java:350)
     at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)
     at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:273)
     at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:165)
     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:1027)
     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:334)
     at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:232)
     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:313)
     at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
     at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
     at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
     at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:122)
     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
     at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
     at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
     at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
     at java.security.AccessController.doPrivileged(Native Method)
     at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
     at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
     at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
     at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
     at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
     at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
     at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
     at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
     at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
Please reply this.......
THANK YOU IN AN ADVANCE
Regards
Muhammad Khurram
Edited by: 912134 on Feb 3, 2012 4:28 AM

I don't think you need the f:ajax tag - you should be able to do the synchronization between the tables with the built-in partial page refresh functionality.
Just define the partialTrigger property of the second table to point to the firsttable.
http://docs.oracle.com/cd/E16162_01/web.1112/e16181/af_ppr.htm#BGBEGIDF

Similar Messages

  • How to implement tooltip for the list items for the particular column in sharepoint 2013

    Hi,
    I had created a list, How to implement tooltip for the list items for the particular column in SharePoint 2013.
    Any help will be appreciated

    We can use JavaScript or JQuery to show the tooltips. Refer to the following similar thread.
    http://social.technet.microsoft.com/forums/en/sharepointdevelopmentprevious/thread/1dac3ae0-c9ce-419d-b6dd-08dd48284324
    http://stackoverflow.com/questions/3366515/small-description-window-on-mouse-hover-on-hyperlink
    http://spjsblog.com/2012/02/12/list-view-preview-item-on-hover-sharepoint-2010/

  • How to implement Ajax toolkit for SharePoint2013?

    Hi All,
    How to implement Ajax toolkit for SharePoint2013?

    Hi Sam,
    Based on your description,
    I can suggest as follows:
    Use the “SharePoint AJAX 3.5 for 2010 and 2013”
    solution.
    Download URL:
    http://sharepointajax.codeplex.com/
    2.    
    Use the Ajax Control Toolkit with ASP.NET 4.5.
    Download correct version of Ajax Control Toolkit.
    http://ajaxcontroltoolkit.codeplex.com/releases/view/109918
    Add AjaxControlToolkit.dll reference to your project.
    Add Ajax Control Toolkit ScriptManager in master page.
    Register Ajax Control Toolkit namespaces in SharePoint package Designer.
    More information:
    http://timscyclingblog.wordpress.com/2013/03/22/ajaxcontroltoolkit-version-7-0123-with-net-4-5/
    http://sampathnarsingam.blogspot.in/2012/05/how-to-make-ajax-control-toolkit.html
    Please inform me freely if you have any questions.
    Thanks
    Qiao Wei
    TechNet Community Support
    Is it possible to use version AJAX
    Control Toolkit .NET 4.5 along with SharePoint 2013?
    As far as I know with SharePoint we can use only version AjaxControlToolkit(3.0.30930.0). Isnt it?

  • How to implement Ajax in CE 7.1

    Hi all,
    can anybody tell me the step by step procedure to implement Ajax in CE 7.1 ?
    Regards,
    Sunaina Reddy t

    HI,
    Thanks for ur reply.I am facing an problem while importing an wsdl document. I have chosen import from file menu . webservices->wsdl  then, In the output folder option i have chosen the project which i am going to use the wsdl file & Among the options given below for available wsdl sources i selected an Remote location/ File system option.then in the URL field if i provide wsdl doument url like http://soap.amazon.com/schemas2/AmazonWebServices.wsdl. It is giving an error like "the Wsdl file could not be downloaded .Connection timed out".
    but there is no problem in the wsdl file.it is getting openned if i open separetly in the browser .
    thanks in advance
    Regards,
    ThenMalar. v

  • How to implement AJAX into APEX

    Hello everybody,
    I am trying to get data from table on apex page based on selection item from select list without submit. Trying to do this with AJAX by firing a javascript function 'onChange' for select list item. Following is the javascript and application process. I tried to pull 2 data items from table but it is not working. Your help will be highly appreciated.
    INSP_DT(date), BANK_NME(varchar2) and INSPECTION_DT(date) are columns from table atm_state_day_insp table.
    <script language="JavaScript" type="text/javascript">
    function f_getDet(key_loc_select)
    --var keylocObj = document.getElementById(key_loc_select)
    var ajaxRequest=new htmldb_Get (null,&APP_ID.,'APPLICATION_PROCESS=GETSTATEDATA',0);
    ajaxRequest.add('P1_KEY_LOC',key_loc_select)
    ajaxResult = ajaxRequst.get('XML');
    if(ajaxResult)
    var INSP_DTItems = ret.getElementsByTagName("INSPECTION_DATE");
    if (INSP_DTItems)
    var INSP_DT = document.getElementById("INSP_DT");
    INSP_DT.value = ADM_FEEItems[0].getAttribute("VALUE");
    var BANK_NAMEItems = ret.getElementsByTagName("BANK_NAME");
    if (BANK_NAMEItems)
    var BANK_NME = document.getElementById("BANK_NAME");
    BANK_NME.value = BANK_NAMEItems[0].getAttribute("VALUE");
    else
    { html_GetElement('BANK_NAME').value = '' }
    get = null;
    </script>
    Application Process: getStateData
    DECLARE
    bank_name VARCHAR2 (20);
    ins_dt date;
    key_locat number(8);
    --cancat_val varchar(100);
    BEGIN
    select key_location, scheduled_dte, bank_nme into key_locat,ins_dt,bank_name from atm_state_day_insp,bank_name where key_location = :P1_KEY_LOC and
    inspection_dt in( select max(inspection_dt)
    from atm_state_day_insp group by key_location);
    --cancat_val := key_locat||','||sche_dt||','||ins_dt;
    htp.prn('<DATA>');
    htp.prn('<KEY_LOC VALUE="' || key_locat || '"></KEY_LOC>');
    htp.prn('<BANK_NAME VALUE="' || bank_name || '"></BANK_NAME>');
    htp.prn('<INSPECTION_DATE VALUE="' || ins_dt || '"></INSPECTION_DATE>');
    htp.prn('</DATA>');
    EXCEPTION
    WHEN OTHERS
    THEN
    HTP.prn ('');
    END;
    Regards,
    Raj, NY

    Hi Oleg,
    Thank you so much.
    KEY_LOC is the name(bind var) of the field not P1_KEY_LOC in page . I changed following:
    HTML Element attribute
    Onchange=onchange="f_getDet('KEY_LOC');"
    In javascript:
    ajaxRequest.addParam('x01',$v(KEY_LOC));
    And replace :P1_KEY_LOC to apex_application.g_x01 into application process.
    I have page0 but not sure it is public or not. How I could know?.
    Other users can access my application so I assume it is public but this my guess and do not know to check.
    I am still not able to get alert msg. I checked pop up blocker and it is disables.
    <script language="JavaScript" type="text/javascript">
    function f_getDet(KEY_LOC)
    --var keylocObj = document.getElementById(key_loc_select)
    var ajaxRequest=new htmldb_Get (null,&APP_ID.,'APPLICATION_PROCESS=GETSTATEDATA',0);
    --ajaxRequest.add('KEY_LOC',$v(KEY_LOC))
    ajaxRequest.addParam('x01',$v(KEY_LOC));
    ajaxResult = ajaxRequest.get('XML');
    alert('got it here!');
    alert(ajaxResult);
    if(ajaxResult)
    var INSP_DTItems = ajaxResult.getElementsByTagName("INSPECTION_DATE");
    if (INSP_DTItems)
    var INSP_DT = document.getElementById("INSP_DT");
    INSP_DT.value = ADM_FEEItems[0].getAttribute("VALUE");
    var BANK_NAMEItems = ajaxResult.getElementsByTagName("BANK_NAME");
    if (BANK_NAMEItems)
    var BANK_NME = document.getElementById("BANK_NAME");
    BANK_NME.value = BANK_NAMEItems[0].getAttribute("VALUE");
    --alert(BANK_NME.value);
    else
    html_GetElement('INSPECTION_DATE').value = ''
    ajaxRequest = null;
    function displayValue(id)
    alert('The Value is ' + document.getElementById(id).value );
    </script>
    Application Process: getStateData
    DECLARE
    bank_name VARCHAR2 (20);
    ins_dt date;
    --sche_date date;
    key_locat number(8);
    BEGIN
    select key_location, scheduled_dte, bank_nme into key_locat,ins_dt,bank_name from atm_state_day_insp where key_location = apex_application.g_x01 and
    inspection_dt in( select max(inspection_dt)
    from atm_state_day_insp group by key_location);
    --owa_util.mime_header('application/xml', true, 'ISO-8859-1');
    owa_util.mime_header('text/xml', FALSE );
    htp.p('Cache-Control: no-cache');
    htp.p('Pragma: no-cache');
    owa_util.http_header_close;
    htp.prn('<DATA>');
    htp.prn('<KEY_LOC VALUE="' || key_locat || '"></KEY_LOC>');
    htp.prn('<BANK_NAME VALUE="' || 'HSBC' || '"></BANK_NAME>');
    htp.prn('<INSPECTION_DATE VALUE="' || ins_dt || '"></INSPECTION_DATE>');
    htp.prn('</DATA>');
    EXCEPTION
    WHEN OTHERS
    THEN
    HTP.prn ('');
    END;
    I really appreciate your time and help.
    Best Regards,
    Raj Sinha

  • How to implement two dependent dropdown lists in an input  table row?

    Hi all,
    I am new in Jdev 11g. I try to develop an input table with two dependent dropdown list. I can create independent dropdown list in such table. When I try to implement dependent one following some examples do it in a form using bind variable in the view object I get an empty listbox. How can I do this? Is it possible. I cannot find any documents about this.
    Thanks in advance

    Hi,
    it hasn't changed between 10.1.3 and 11. The basic outline of how you do it is
    - use a managed bean to query the data
    - populate the list with f:selectItems that point to the managed bean ArrayList<SelectItem> for the master and the detail
    - obtain the master ID in the managed bean by parsing the #{row} variable when the table renders
    - then bulild the detail list
    - have the detail list referencing the ArrayList<SelectItem> you expose for the details
    Note that without proper caching, the action is quite expensive
    Frank

  • How to implement Quick Query and Saved Searches in ADF?

    We are using 11gR2 ADF.
    The requirement is to enable Quick Search and save the Searches.
    In the Oracle ADF documentation, it is mentioned that
    - Create a view with view criteria named.
    - In the .jspx drag and drop the view criteria and Select Quick Query
    Upon doing the above, we see that a Search panel is getting created, but with a message 'No Search Fields Added'.
    In the named view criteria, Under 'UI Hints' we have set
    -- execution mode as Both
    -- Search region mode is Basic
    -- Show Operators in Basic
    Under 'Criteria Definition'
    the attributes are added in a group with OR condition.
    Thanks for your reply. Oracle ADF developer guide does not help!!
    If you have any other documentation that helps in implementing this Quick Query and Saved Search, your help is greatly appreciated.

    Set the following on your af:query component
    SaveQueryMode = hidden
    ModeChangeVisible = false
    This should work for you ..
    Regards,

  • How  to implement PCCD001 exit for new field in AENR table

    Dear experts,
    I am implementing PCCD0001 exit for a new field in AENR table secnario below.
    Tcode CC31/CC32/CC33 required additional field which stores value in AENR table. in AENR in implemented include(CI_AENR) and added new field. After i implemnted PCCD0001 screen exit for CC31/CC32/CC33.
    in that two function exit are there, one for passing data to  screen EXIT_SAPMC29C_001
    another for getting data from screen EXIT_SAPMC29C_002.
    which table or structure i use to place field in screen exit to pass data to EXIT_SAPMC29C_002, in this function i don't have import parameter.
    Adv. thanks,
    Venkey

    Hi sekhar,
    Your Requirement can be implemented by OVS(Object Value selector) This is the custom search help .So that you can define on what basis the value has to be fetched.
    Look at the below link
    http://wiki.sdn.sap.com/wiki/display/WDABAP/ABAPWDObjectValueSelector(OVS)
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/606288d6-04c6-2c10-b5ae-a240304c88ea?quicklink=index&overridelayout=true
    You need to use the component WDR_OVS.
    It has 3 phases
    In phase 1
         You will fetch the value from input field to F4 help dialog box.
    In phase 2
         You will generate the search results , in this phase look for the input value given in field 2 and accordingly generate search result for the field 3.
    In phase 3
         The selected value will be returned to the original screen.
    Regards
    Karthiheyan M

  • How to implement search help instead of match code objects table in program

    Hi,
    We are now in upgrade process of code remediation ( From 4.6c to EC6.0).
    We have created search helps instead of matchcode object table. This match code object table M_VMVLC has been deleted
    in EC6.0.  And search help VMVLC is available.
    In the program, they have used <M_VMVLC > -<fieldname> i.e. <tablename> - <fieldname> in declaring parameters,
    in the 'into' clause of select statement, in the 'from' clause of select statement, in the 'write' statement.
    I want to know how to replace this matchcode object table with the search help in the program.
    Thanks,
    Abirami.

    Hi,
    Check the link
    http://help.sap.com/saphelp_nw04/helpdata/EN/cf/21ee2b446011d189700000e8322d00/content.htm
    Regards,
    Amit

  • Need help implementing AJAX in an existing Struts Application

    Hi!
    I am trying to implement AJAX in my existing Struts Application. I need a good approach to go ahead and implement Ajax. I was thinking.. may be i will have to club all the code in the forms n actions (in the current Struts application) to one form and action, So I can easily include the dynamic content in the page.
    Please let me know if you have any ideas of how to implement AJAX in a fully developed Struts application.
    Thanks,
    Swapna.

    Hello Friends,
    Check out whether the link below could be of somehelp for you folks...
    http://www.it-eye.nl/weblog/2005/12/13/ajax-in-struts-implementing-dependend-select-boxes/
    http://today.java.net/pub/a/today/2005/10/27/sprinkle-ajax-magic-into-struts-webapp.html
    http://www.theserverside.com/news/thread.tss?thread_id=37355
    http://getahead.ltd.uk/dwr/examples/lists
    http://www.componentsource.com/products/backbase-ajax-struts/summary.html
    http://www.jibbering.com/2002/4/httprequest.html
    added to it there are few implementation frameworks which are addressing this issue you may further search on it and update abt the info which could be very much useful for all of the ppl out here.
    and there is a current thread running on the same topic it'd really appriciated if u can accomadate ur posts there.
    http://forum.java.sun.com/thread.jspa?threadID=784924&tstart=0
    REGARDS,
    RAHUL

  • How to use C:when test... inside column in ADF table

    I am using ADF table with below two columns
    in First column i have to check the Type of document if it is doc type then i have to use commondlink to download that file ,Otherwise i need to show only text.
    for that i added
    *<c:when test="{boolean($favoriteType eq 'doc')}">*
    which is not working .
    please let me know how to use <C:when test... inside column in ADF table
    <tr:column sortProperty="favoriteName" sortable="true"
    headerText="#{res['favorite.favoritename']}"
    width="500" noWrap="false">
    <c:choose>
    *<c:when test="{boolean($favoriteType eq 'doc')}">*
    <tr:commandLink actionListener="#{bindings.downloadFile.execute}"
    text="#{row.favoriteName}"
    disabled="#{!bindings.downloadFile.enabled}"/>
    </c:when>
    <c:otherwise>
    <af:outputText value="#{row.favoriteName}"/>
    </c:otherwise>
    </c:choose>
    </tr:column>
    <tr:column sortProperty="favoriteType" sortable="true"
    headerText="#{res['favorite.favoriteType']}" rendered="true">
    <af:outputText value="#{row.favoriteType}" id="favoriteType"/>
    </tr:column>

    Hi Frank,
    Thanks it is working like cham..
    related to same page i am facing new problem which i posted at below thread
    How to get row data runtime @ trinidad table , set rowSelection="multiple"
    can u reply on same.
    Thanks for all help.
    Jaydeep

  • How to fix the width of sorting column about adf table ?

    I develop project with ADF in jdeveloper.
    When click on the sorting column header in adf table,it will adjust the width of the sorting column header.It will make page shifting.
    How can I do to avoid the adjusting ?
    How can I do to fix the width of soting table header?
    Any hint will be appreciated.
    Thank you!
    Message was edited by:
    user618145

    I have set the column width like this:
    in style.css:
    /** Column Settings **/
    af|column::header-text
    background-color:#F0EDE1;
    color:#000000;
    font-family:Arial,Helvetica,sans-serif;
    font-size:12px;
    font-weight:bold;
    padding-left: 2px;
    padding-right: 2px;
    padding-top: 3px;
    padding-bottom:3px;
    border-color: #B5B5B5;
    WIDTH: 120px;
    af|column::sortable-header-text
    background-color:#F0EDE1;
    color:#000000;
    font-family:Arial,Helvetica,sans-serif;
    font-size:12px;
    font-weight:bold;
    padding-left: 2px;
    padding-right: 2px;
    padding-top: 3px;
    padding-bottom:3px;
    border-color: #B5B5B5;
    WIDTH: 120px;
    and in jsp page,write like this:
    <af:panelBox text="test" width="1000" background="dark" >
    <af:table emptyText="" value="#{ftOverview.listOfTransefersVect}" var="transfers" width="100%" banding="row" bandingInterval="1">
    <af:column sortable="true" sortProperty="transactionId" headerText="#{resources['ft_overview.ref']}" formatType="text" width="39"
    noWrap="true">
    <af:outputText value="#{transfers.transactionId}" escape="false"/>
    </af:column>
    </af:table>
    </af:panelBox>
    but it seems doesn't work well.

  • How to bind dynamic columns in ADF table to view object

    In the below piece of code i am trying to bind a dynamically added column to my newly added attribute in view object, but the value expression does not set the value of this attibute in the view object please help on what is wrong in this code ??
    <af:table value="#{bindings.ViewObj1.collectionModel}" var="row"
    rows="#{bindings.ViewObj1.rangeSize}"
    emptyText="#{bindings.ViewObj1.viewable ? 'No rows yet.' : 'Access Denied.'}"
    fetchSize="#{bindings.ViewObj1.rangeSize}"
    filterModel="#{bindings.ViewObj1Query.queryDescriptor}"
    queryListener="#{bindings.ViewObj1Query.processQuery}" varStatus="vs"
    selectedRowKeys="#{bindings.ViewObj1.collectionModel.selectedRow}"
    rowSelection="single"
    binding="#{backingBeanScope.backing_createDTpg1.table1}"
    id="table1"
    columnSelection="single"
    partialTriggers="::addCol ::addColAfter ::addColBefore ::removeCol ::addRow ::addRowAfter ::addRowBefore ::removeRow ::addAction ::addActionAfter ::addActionBefore ::deleteAction :::dialog1 :::d1"
    allDetailsEnabled="true" verticalGridVisible="false"
    horizontalGridVisible="true" width="100%" disableColumnReordering="true"
    selectionListener="#{bindings.ViewObj1.collectionModel.makeCurrent}"
    immediate="true" contentDelivery="immediate"
    editingMode="clickToEdit" autoHeightRows="-1">
    <af:column sortProperty="Sno" filterable="false" sortable="false"
    headerText="Sno"
    align="center" width="28" rowHeader="true"
    inlineStyle="font-style:italic;" frozen="true"
    id="sno" selected="true" headerNoWrap="true"
    displayIndex="0">
    <af:outputText id="ot0" value="#{vs.index+1}"/>
    </af:column>
    <af:column id="separatorColumn" align="center"
    width="15" frozen="true" displayIndex="1"
    rowHeader="unstyled" sortable="false"
    filterable="false" selected="false"
    inlineStyle='background-image:url("jheadstart/images/jsp_forward.png"); background-repeat:no-repeat; outline-color:InactiveCaption; outline-style:solid; outline-width:thin;'
    headerText=""/>
    </af:table>
    DCBindingContainer dcBindings =
    (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding iterBind =
    (DCIteratorBinding)dcBindings.get("ViewObj1Iterator");
    ViewObject decisionTableView1 = iterBind.getViewObject();
    System.out.println("before getAttributeCount :"+decisionTableView1.getAttributeCount());
    int counter = decisionTableView1.getAttributeCount() + 1;
    AttributeDef attribute =
    decisionTableView1.addDynamicAttribute("condition_" + counter);
    RichColumn column = new RichColumn();
    column.setId("condition_" + counter);
    column.setHeaderText("condition_" + counter);
    column.setNoWrap(true);
    RichInputText inputtext = new RichInputText();
    inputtext.setId("condition_"+counter);
    inputtext.setAutoSubmit(true);
    inputtext.setValueExpression("condition_"+counter,
    getValueBinding("#{row.bindings.condition_" +
    counter +
    ".inputValue}"));
    column.getChildren().add(inputtext);
    RichCommandImageLink headerLink = new RichCommandImageLink();
    headerLink.setText("<<Select Fact>>");
    headerLink.setId("conditionLink_" + counter);
    column.setHeader(headerLink);
    List columnList = this.table1.getChildren();
    int separatorColumnIndex =
    findColumnIndex(columnList, "separatorColumn");
    if (columnIndex == -1 || columnIndex > separatorColumnIndex) {
    columnIndex = separatorColumnIndex;
    System.out.println("Column Index :" + columnIndex);
    column.setDisplayIndex(columnIndex);
    this.table1.getChildren().add(columnIndex, column);

    Sorry Frank i could not figure out what u rtrying to say.
    In my case i have ADF table with two predefined coulmns :
    1 : a serial number read only column
    2 : a separator coumn
    I need help to bind the newly created dynamic attribute in the VO with my newly created column in the ADF table which has a input text as child.
    My problem is binding the is not working properly as values entered in the Table are not reflected in the VO.
    And when i insert a new column in between two columns which has already filled values the data in the rows does not shift coreespondingly..
    Edited by: user10281080 on Jul 27, 2009 12:22 AM

  • How to split a column into 4 sub columns of table in adf

    i hav a table and i need to make a column in to 4 sub columns. ie i havae column called scheduled under the same
    column i have 3 column releted to scheduled . how i make it possible
    Regards
    Rajesh

    Hi Rajesh,
    Something like this?
    <tr:column headerText="Schedules">
      <tr:column headerText="Schedule A">
        <tr:outputText value="#{row.bindings.ScheduleA.inputValue}"/>
      </tr:column>
      <tr:column headerText="Schedule B">
        <tr:outputText value="#{row.bindings.ScheduleB.inputValue}"/>
      </tr:column>
      <tr:column headerText="Schedule C">
        <tr:outputText value="#{row.bindings.ScheduleC.inputValue}"/>
      </tr:column>
      <tr:column headerText="Schedule D">
        <tr:outputText value="#{row.bindings.ScheduleD.inputValue}"/>
      </tr:column>
    </tr:column>Regards,
    Chan Kelwin

  • Dynamically reordering columns in ADF Faces Table

    The Rich UI components (see ADF Faces Rich Client Components - Marrying JSF and AJAX together) that the ADF Faces library will contain with the JDeveloper 11g release - and hopefully before that moment - will allow end-users to do all sorts of manipulations with Tables. They will be able to resize columns an drag & drop columns to change the order - much like you can do in Spreadsheet applications like Excel. However, those components are not yet available to us. Yesterday my customer asked me if he could have offer the option to re-order columns in a table to his end users. That means that in any table component, the user can decide which column should be displayed first, which one second and which one last. It happened to be the same customer who was after the feature to show/hide columns at run-time, a challenge easily resolved in a previous article: Having the end-user hide and display columns in a JSF Table Component (http://technology.amis.nl/blog/?p=1331).
    I have written an article that shows how we can implement this feature: have the end-user specify the order of the columns in the table. I have used ADF Faces for this demonstration, but any JSF implementation will do. See: http://technology.amis.nl/blog/?p=1334 for the article.
    best regards,
    Lucas

    Well issue is that
    I have a list of values that can be chnaged any time during application execution sya its list of Fav Fruits..
    and in an other page i need a data table having these fruits as coulmns and their details as rows...
    how to achieve this..
    we can not guess the number of columns before time.. so can make the estimate and hide them.

Maybe you are looking for