How to avoid default row on top of a table

Dear Members,
I have created a simple JSF page using ADF.
In the page, I am displaying departments and employee data.
Departments data is displayed using the ADF Form and the employee data is displayed using ADF Table.
When I am running the page a default row is appearing above the ADF Table.
I request you to please let me know, how to avoid this default row displayed on top of the table.
Many thanks in advance.
Regards.

Hello John,
My page code is as follows:
*<?xml version='1.0' encoding='UTF-8'?>*
*<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">*
*<f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">*
*<af:document title="DeptEmp.jsf" id="d1">*
*<af:messages id="m1"/>*
*<af:form id="f1">*
*<af:pageTemplate viewId="/oracle/templates/threeColumnTemplate.jspx" id="pt1">*
*<f:facet name="center">*
*<af:group id="g1">*
*<af:panelGroupLayout id="pgl1" layout="vertical" halign="center">*
*<af:panelFormLayout id="pfl1" maxColumns="2" rows="2">*
*<af:inputText value="#{bindings.DepartmentId.inputValue}"*
*label="#{bindings.DepartmentId.hints.label}"*
*required="#{bindings.DepartmentId.hints.mandatory}"*
*columns="#{bindings.DepartmentId.hints.displayWidth}"*
*maximumLength="#{bindings.DepartmentId.hints.precision}"*
*shortDesc="#{bindings.DepartmentId.hints.tooltip}" id="it1">*
*<f:validator binding="#{bindings.DepartmentId.validator}"/>*
*<af:convertNumber groupingUsed="false" pattern="#{bindings.DepartmentId.format}"/>*
*</af:inputText>*
*<af:inputText value="#{bindings.DepartmentName.inputValue}"*
*label="#{bindings.DepartmentName.hints.label}"*
*required="#{bindings.DepartmentName.hints.mandatory}"*
*columns="#{bindings.DepartmentName.hints.displayWidth}"*
*maximumLength="#{bindings.DepartmentName.hints.precision}"*
*shortDesc="#{bindings.DepartmentName.hints.tooltip}" id="it12">*
*<f:validator binding="#{bindings.DepartmentName.validator}"/>*
*</af:inputText>*
*<af:inputText value="#{bindings.LocationId.inputValue}"*
*label="#{bindings.LocationId.hints.label}"*
*required="#{bindings.LocationId.hints.mandatory}"*
*columns="#{bindings.LocationId.hints.displayWidth}"*
*maximumLength="#{bindings.LocationId.hints.precision}"*
*shortDesc="#{bindings.LocationId.hints.tooltip}" id="it13">*
*<f:validator binding="#{bindings.LocationId.validator}"/>*
*<af:convertNumber groupingUsed="false" pattern="#{bindings.LocationId.format}"/>*
*</af:inputText>*
*<af:inputText value="#{bindings.ManagerId.inputValue}"*
*label="#{bindings.ManagerId.hints.label}"*
*required="#{bindings.ManagerId.hints.mandatory}"*
*columns="#{bindings.ManagerId.hints.displayWidth}"*
*maximumLength="#{bindings.ManagerId.hints.precision}"*
*shortDesc="#{bindings.ManagerId.hints.tooltip}" id="it14">*
*<f:validator binding="#{bindings.ManagerId.validator}"/>*
*<af:convertNumber groupingUsed="false" pattern="#{bindings.ManagerId.format}"/>*
*</af:inputText>*
*<f:facet name="footer">*
*<af:panelGroupLayout layout="vertical" id="pgl3">*
*<af:panelGroupLayout layout="horizontal" id="pgl4">*
*<f:facet name="separator">*
*<af:spacer width="10" height="1" id="s1"/>*
*</f:facet>*
*<af:commandButton actionListener="#{bindings.First.execute}" text="First"*
*disabled="#{!bindings.First.enabled}" partialSubmit="true"*
*id="cb1"/>*
*<af:commandButton actionListener="#{bindings.Previous.execute}"*
*text="Previous" disabled="#{!bindings.Previous.enabled}"*
*partialSubmit="true" id="cb2"/>*
*<af:commandButton actionListener="#{bindings.Next.execute}" text="Next"*
*disabled="#{!bindings.Next.enabled}" partialSubmit="true"*
*id="cb3"/>*
*<af:commandButton actionListener="#{bindings.Last.execute}" text="Last"*
*disabled="#{!bindings.Last.enabled}" partialSubmit="true"*
*id="cb4"/>*
*</af:panelGroupLayout>*
*<af:commandButton text="Submit" id="cb5"/>*
*</af:panelGroupLayout>*
*</f:facet>*
*</af:panelFormLayout>*
*</af:panelGroupLayout>*
*<af:spacer width="10" height="20" id="s2"/>*
*<af:separator id="s3"/>*
*<af:panelGroupLayout id="pgl2" layout="vertical" halign="center">*
*<af:table value="#{bindings.EmployeesVO1.collectionModel}" var="row"*
*rows="#{bindings.EmployeesVO1.rangeSize}"*
*emptyText="#{bindings.EmployeesVO1.viewable ? 'No data to display.' : 'Access Denied.'}"*
*fetchSize="#{bindings.EmployeesVO1.rangeSize}" rowBandingInterval="0"*
*filterModel="#{bindings.EmployeesVO1Query.queryDescriptor}"*
*queryListener="#{bindings.EmployeesVO1Query.processQuery}" filterVisible="true"*
*varStatus="vs"*
*selectionListener="#{bindings.EmployeesVO1.collectionModel.makeCurrent}"*
*rowSelection="multiple" id="t1" width="90%" partialTriggers="::cb6">*
*<af:column sortProperty="#{bindings.EmployeesVO1.hints.CommissionPct.name}"*
*filterable="true" sortable="true"*
*headerText="#{bindings.EmployeesVO1.hints.CommissionPct.label}" id="c1">*
*<af:inputText value="#{row.bindings.CommissionPct.inputValue}"*
*label="#{bindings.EmployeesVO1.hints.CommissionPct.label}"*
*required="#{bindings.EmployeesVO1.hints.CommissionPct.mandatory}"*
*columns="#{bindings.EmployeesVO1.hints.CommissionPct.displayWidth}"*
*maximumLength="#{bindings.EmployeesVO1.hints.CommissionPct.precision}"*
*shortDesc="#{bindings.EmployeesVO1.hints.CommissionPct.tooltip}"*
*id="it2">*
*<f:validator binding="#{row.bindings.CommissionPct.validator}"/>*
*</af:inputText>*
*</af:column>*
*<af:column sortProperty="#{bindings.EmployeesVO1.hints.DepartmentId.name}"*
*filterable="true" sortable="true"*
*headerText="#{bindings.EmployeesVO1.hints.DepartmentId.label}" id="c2">*
*<af:inputText value="#{row.bindings.DepartmentId.inputValue}"*
*label="#{bindings.EmployeesVO1.hints.DepartmentId.label}"*
*required="#{bindings.EmployeesVO1.hints.DepartmentId.mandatory}"*
*columns="#{bindings.EmployeesVO1.hints.DepartmentId.displayWidth}"*
*maximumLength="#{bindings.EmployeesVO1.hints.DepartmentId.precision}"*
*shortDesc="#{bindings.EmployeesVO1.hints.DepartmentId.tooltip}"*
*id="it3" readOnly="true">*
*<f:validator binding="#{row.bindings.DepartmentId.validator}"/>*
*<af:convertNumber groupingUsed="false"*
*pattern="#{bindings.EmployeesVO1.hints.DepartmentId.format}"/>*
*</af:inputText>*
*</af:column>*
*<af:column sortProperty="#{bindings.EmployeesVO1.hints.Email.name}" filterable="true"*
*sortable="true" headerText="#{bindings.EmployeesVO1.hints.Email.label}"*
*id="c3">*
*<af:inputText value="#{row.bindings.Email.inputValue}"*
*label="#{bindings.EmployeesVO1.hints.Email.label}"*
*required="#{bindings.EmployeesVO1.hints.Email.mandatory}"*
*columns="#{bindings.EmployeesVO1.hints.Email.displayWidth}"*
*maximumLength="#{bindings.EmployeesVO1.hints.Email.precision}"*
*shortDesc="#{bindings.EmployeesVO1.hints.Email.tooltip}" id="it4">*
*<f:validator binding="#{row.bindings.Email.validator}"/>*
*</af:inputText>*
*</af:column>*
*<af:column sortProperty="#{bindings.EmployeesVO1.hints.EmployeeId.name}"*
*filterable="true" sortable="true"*
*headerText="#{bindings.EmployeesVO1.hints.EmployeeId.label}" id="c4">*
*<af:inputText value="#{row.bindings.EmployeeId.inputValue}"*
*label="#{bindings.EmployeesVO1.hints.EmployeeId.label}"*
*required="#{bindings.EmployeesVO1.hints.EmployeeId.mandatory}"*
*columns="#{bindings.EmployeesVO1.hints.EmployeeId.displayWidth}"*
*maximumLength="#{bindings.EmployeesVO1.hints.EmployeeId.precision}"*
*shortDesc="#{bindings.EmployeesVO1.hints.EmployeeId.tooltip}"*
*id="it5">*
*<f:validator binding="#{row.bindings.EmployeeId.validator}"/>*
*<af:convertNumber groupingUsed="false"*
*pattern="#{bindings.EmployeesVO1.hints.EmployeeId.format}"/>*
*</af:inputText>*
*</af:column>*
*<af:column sortProperty="#{bindings.EmployeesVO1.hints.FirstName.name}"*
*filterable="true" sortable="true"*
*headerText="#{bindings.EmployeesVO1.hints.FirstName.label}" id="c5">*
*<af:inputText value="#{row.bindings.FirstName.inputValue}"*
*label="#{bindings.EmployeesVO1.hints.FirstName.label}"*
*required="#{bindings.EmployeesVO1.hints.FirstName.mandatory}"*
*columns="#{bindings.EmployeesVO1.hints.FirstName.displayWidth}"*
*maximumLength="#{bindings.EmployeesVO1.hints.FirstName.precision}"*
*shortDesc="#{bindings.EmployeesVO1.hints.FirstName.tooltip}" id="it6">*
*<f:validator binding="#{row.bindings.FirstName.validator}"/>*
*</af:inputText>*
*</af:column>*
*<af:column sortProperty="#{bindings.EmployeesVO1.hints.HireDate.name}" filterable="true"*
*sortable="true" headerText="#{bindings.EmployeesVO1.hints.HireDate.label}"*
*id="c6">*
*<f:facet name="filter">*
*<af:inputDate value="#{vs.filterCriteria.HireDate}" id="id1">*
*<af:convertDateTime pattern="#{bindings.EmployeesVO1.hints.HireDate.format}"/>*
*</af:inputDate>*
*</f:facet>*
*<af:inputDate value="#{row.bindings.HireDate.inputValue}"*
*label="#{bindings.EmployeesVO1.hints.HireDate.label}"*
*required="#{bindings.EmployeesVO1.hints.HireDate.mandatory}"*
*columns="#{bindings.EmployeesVO1.hints.HireDate.displayWidth}"*
*shortDesc="#{bindings.EmployeesVO1.hints.HireDate.tooltip}" id="id2">*
*<f:validator binding="#{row.bindings.HireDate.validator}"/>*
*<af:convertDateTime pattern="#{bindings.EmployeesVO1.hints.HireDate.format}"/>*
*</af:inputDate>*
*</af:column>*
*<af:column sortProperty="#{bindings.EmployeesVO1.hints.JobId.name}" filterable="true"*
*sortable="true" headerText="#{bindings.EmployeesVO1.hints.JobId.label}"*
*id="c7">*
*<af:inputText value="#{row.bindings.JobId.inputValue}"*
*label="#{bindings.EmployeesVO1.hints.JobId.label}"*
*required="#{bindings.EmployeesVO1.hints.JobId.mandatory}"*
*columns="#{bindings.EmployeesVO1.hints.JobId.displayWidth}"*
*maximumLength="#{bindings.EmployeesVO1.hints.JobId.precision}"*
*shortDesc="#{bindings.EmployeesVO1.hints.JobId.tooltip}" id="it7">*
*<f:validator binding="#{row.bindings.JobId.validator}"/>*
*</af:inputText>*
*</af:column>*
*<af:column sortProperty="#{bindings.EmployeesVO1.hints.LastName.name}" filterable="true"*
*sortable="true" headerText="#{bindings.EmployeesVO1.hints.LastName.label}"*
*id="c8">*
*<af:inputText value="#{row.bindings.LastName.inputValue}"*
*label="#{bindings.EmployeesVO1.hints.LastName.label}"*
*required="#{bindings.EmployeesVO1.hints.LastName.mandatory}"*
*columns="#{bindings.EmployeesVO1.hints.LastName.displayWidth}"*
*maximumLength="#{bindings.EmployeesVO1.hints.LastName.precision}"*
*shortDesc="#{bindings.EmployeesVO1.hints.LastName.tooltip}" id="it8">*
*<f:validator binding="#{row.bindings.LastName.validator}"/>*
*</af:inputText>*
*</af:column>*
*<af:column sortProperty="#{bindings.EmployeesVO1.hints.ManagerId.name}"*
*filterable="true" sortable="true"*
*headerText="#{bindings.EmployeesVO1.hints.ManagerId.label}" id="c9">*
*<af:inputText value="#{row.bindings.ManagerId.inputValue}"*
*label="#{bindings.EmployeesVO1.hints.ManagerId.label}"*
*required="#{bindings.EmployeesVO1.hints.ManagerId.mandatory}"*
*columns="#{bindings.EmployeesVO1.hints.ManagerId.displayWidth}"*
*maximumLength="#{bindings.EmployeesVO1.hints.ManagerId.precision}"*
*shortDesc="#{bindings.EmployeesVO1.hints.ManagerId.tooltip}" id="it9">*
*<f:validator binding="#{row.bindings.ManagerId.validator}"/>*
*<af:convertNumber groupingUsed="false"*
*pattern="#{bindings.EmployeesVO1.hints.ManagerId.format}"/>*
*</af:inputText>*
*</af:column>*
*<af:column sortProperty="#{bindings.EmployeesVO1.hints.PhoneNumber.name}"*
*filterable="true" sortable="true"*
*headerText="#{bindings.EmployeesVO1.hints.PhoneNumber.label}" id="c10">*
*<af:inputText value="#{row.bindings.PhoneNumber.inputValue}"*
*label="#{bindings.EmployeesVO1.hints.PhoneNumber.label}"*
*required="#{bindings.EmployeesVO1.hints.PhoneNumber.mandatory}"*
*columns="#{bindings.EmployeesVO1.hints.PhoneNumber.displayWidth}"*
*maximumLength="#{bindings.EmployeesVO1.hints.PhoneNumber.precision}"*
*shortDesc="#{bindings.EmployeesVO1.hints.PhoneNumber.tooltip}"*
*id="it10">*
*<f:validator binding="#{row.bindings.PhoneNumber.validator}"/>*
*</af:inputText>*
*</af:column>*
*<af:column sortProperty="#{bindings.EmployeesVO1.hints.Salary.name}" filterable="true"*
*sortable="true" headerText="#{bindings.EmployeesVO1.hints.Salary.label}"*
*id="c11">*
*<af:inputText value="#{row.bindings.Salary.inputValue}"*
*label="#{bindings.EmployeesVO1.hints.Salary.label}"*
*required="#{bindings.EmployeesVO1.hints.Salary.mandatory}"*
*columns="#{bindings.EmployeesVO1.hints.Salary.displayWidth}"*
*maximumLength="#{bindings.EmployeesVO1.hints.Salary.precision}"*
*shortDesc="#{bindings.EmployeesVO1.hints.Salary.tooltip}" id="it11">*
*<f:validator binding="#{row.bindings.Salary.validator}"/>*
*</af:inputText>*
*</af:column>*
*</af:table>*
*<af:separator id="s4"/>*
*<af:commandButton actionListener="#{bindings.CreateInsert.execute}" text="Create Employee"*
*disabled="#{!bindings.CreateInsert.enabled}" id="cb6"/>*
*</af:panelGroupLayout>*
*<af:separator id="s5"/>*
*<af:panelGroupLayout id="pgl5" layout="vertical" halign="center">*
*<af:commandButton actionListener="#{bindings.Commit.execute}" text="Save"*
*disabled="#{!bindings.Commit.enabled}" id="cb7"/>*
*</af:panelGroupLayout>*
*</af:group>*
*</f:facet>*
*<f:facet name="header"/>*
*<f:facet name="branding"/>*
*<f:facet name="copyright"/>*
*<f:facet name="status"/>*
*</af:pageTemplate>*
*</af:form>*
*</af:document>*
*</f:view>*

Similar Messages

  • How to avoid default selection screen in HR interfaces(using pnp ldbs)

    How to avoid default selection screen in HR interfaces(using pnp ldbs)

    Dear Rakesh,
    The report category is used to change the selection screen of programs that use the 'PNP' logical database.
    See links bellow:
    http://www.sapdevelopment.co.uk/hr/hr_repcat.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/15/229357553611d3967f00a0c9306433/frameset.htm
    Report categories for selection screen in HR programming
    Also visit the following blog:
    /people/alvaro.tejadagalindo/blog/2006/02/19/how-to-deal-with-hr-payroll-reports
    Regards,
    Naveen.

  • How to make default Currency  depending upon plant in table entries

    Hi,,
    How to make default Currency  depending upon plant in table entries?
    I am making entries in SM30.
    I have the following fields in z table.
    plaant , material,month.year,PFvalue,Currency.
    Can  some body throw light for this issue,please?\
    I am familiar  with modification-events.
    With Regards,
    Jaheer

    Hi,
      In PBO, within a LOOP, table control is filled via a Structure/Work Area.
      In that module, code as follows,
    LOOP AT SCREEN.
        IF WA-FIELD1 = C_1 AND SCREEN-GROUP1 = C_G1.
          SCREEN-INPUT = 0.
          MODIFY SCREEN.
        ENDIF.
    ENDLOOP.
      Here, WA is a strcture & FIELD1 is its field, like that...
      I already did this.
      Check it out & Reply.
    Yours,
    R.Nagarajan
    We can

  • How do I default to the top of an article when you swipe away from it and then swipe back? (Smooth scrolling)

    We basically have a catalogue with multiple ranges - a lifestyle shot for the first 1024x768 and then the rest of the products scrolling down, is it possible to default to the top of the page when you go to another page and then back? We are finding that when people use the catalogue it tends to get very messy very fast and this is going to be in a reception area on a stand.
    Cheers!
    Aaron

    No, not by swiping but you could do it with a navto: button.

  • How to make first row as selected in af:table

    Hi,
    I am using JDeveloper 11.1.1.4 and ADF-BC in my application.
    In all the pages across my application we have multi select enabled for the table[af:table].
    But when the pages are displayed,the first row is not selected by default.
    My requirement is to display first row as selected across all the tables in my app.
    I have the selectionListenerset as for example selectionListener="#{bindings.RSCMapVO2.collectionModel.makeCurrent}" in all the pages.
    Please suggest on how to make first row as selected.
    Regards,
    Praveen

    Hi
    Put these codes in your selection listner method(You have to define a selectionListner method in your backing bean and put this code segment
    (Special thanks go to Franks how posted this code segment. threadID=1089583)
    RichTable yourTable = (RichTable) selectionEvent.getSource();
    //the Collection Model is the object that provides the structured data
    //for the table to render
    CollectionModel yourTableModel = (CollectionModel) yourTable.getValue();
    //the ADF object that implements the CollectionModel is JUCtrlHierBinding. It
    //is wrapped by the CollectionModel API
    JUCtrlHierBinding yourTableBinding = (JUCtrlHierBinding) yourTableModel.getWrappedData();
    //Acess the ADF iterator binding that is used with ADF table binding
    DCIteratorBinding yourTableIteratorBinding = yourTableeBinding.getDCIteratorBinding();
    //the role of this method is to synchronize the table component selection
    //with the selection in the ADF model
    Object _selectedRowData = yourTable.getSelectedRowData();
    //cast to JUCtrlHierNodeBinding, which is the ADF object that represents
    //a row
    JUCtrlHierNodeBinding nodeBinding = (JUCtrlHierNodeBinding) selectedRowData;
    //get the row key from the node binding and set it as the current row in the
    //iterator
    Key rwKey = nodeBinding.getRowKey();
    tableIteratorBinding.setCurrentRowWithKey(rwKey.toStringFormat(true));
    Thanks
    Padma

  • Selecting a default row in an adf detail table problem

    Hi, i'm hoping someone can help me as this problem is driving me to despair. I am using JDeveloper 10.1.3 production. All I want to do is set the first row selected in the detail af:table in my page. I have referred to the documentation available at http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/devguide/table.html#Single%20Selection and from this I have created the following code which I think should work.
    public void setResourcesTable(CoreTable resourcesTable) {
    this.resourcesTable = resourcesTable;
    RowKeySet r = resourcesTable.getSelectionState();
    if(r != null){
    Iterator selection = r.getKeySet().iterator();
    if(selection.hasNext()){
    String rowKey = (String) selection.next();
    resourcesTable.setRowKey(rowKey);
    The main problem is that the getSelectionState() is returning null and I cant understand why. This happens regardless of whether or not there are any detail rows in the table. I havent been using JSF that long and so I apologise if i'm missing something obvious.
    Please help me as I haven't been able to find any help throughout the forums apart from referring me to the same page and I cant believe that it can possibly be this difficult just to set the default row.
    Thanks in advance,
    Lee

    mark,
    Those four fields can be set completely declaratively in the Entity Object (check out the History Colum feature). Copied from the (11g) documentation:
    If you need to keep track of historical information in your entity object, such as when an entity was created or modified and by whom, or the number of times the entity has been modified, you specify an attribute with the History Column option selected (in the Edit Attribute dialog).
    If an attribute's data type is Number, String, or Date, and if it is not part of the primary key, then you can enable this property to have your entity automatically maintain the attribute's value for historical auditing. How the framework handles the attribute depends which type of history attribute you indicate:
    * Created On: This attribute is populated with the time stamp of when the row was created. The time stamp is obtained from the database.
    * Created By: The attribute is populated with the name of the user who created the row. The user name is obtained using the getUserPrincipalName() method on the Session object.
    * Modified On: This attribute is populated with the time stamp whenever the row is updated/created.
    * Modified By: This attribute is populated with the name of the user who creates or updates the row.
    * Version Number: This attribute is populated with a long value that is incremented whenever a row is created or updated.
    John

  • How to get selected row data of an ADF table in HashMap?

    Hi,
    Can anyone please tell me how to selected row data of an ADF table in HashMap like :
    Object obj = pageTable.getSelectedRowData();
    JUCtrlHierNodeBinding rowData = (JUCtrlHierNodeBinding)obj;
    Now in above code I want the convert rowData in HashMap.
    Can anyone please tell me how to do that? Its urgent.
    Thanks,
    Vik

    Vik,
    No need to ask the same question 3 times...
    In [url http://forums.oracle.com/forums/message.jspa?messageID=4590586]this post, Nick showed you how to get the Row.
    If it were so urgent, you could have done a little reading of the javadocs to come up with code like this (not tested, up to you to do that)
    HashMap m = new HashMap();
    Row r = get it like Nick showed you to;
    Object values[]=r.getAttributeValues();
    String names[]=r.getAttributeNames();
    for (int i=0; i<r.getAttributeCount(); i++)
    m.put(names, values[i]);

  • How to send multiple row data into an internal table??

    I have a view with table control.i want to select multiple row and send all the row data into an internal table.i am able to select multiple row but all the selected row data is not going to the internal table.....only a particular row data which is lead selected is going.
    Do anyone can help me regarding this issue?
    Thanks in advance,
    Subhasis.

    Hey,
    Some code example:
    declaring an internal table and work area to get all the elements from the node.
    data : lt_Elements type  WDR_CONTEXT_ELEMENT_SET,
             ls_Element type  WDR_CONTEXT_ELEMENT_SET,
    considering flights is my node.
             lt_data type sflight.
    Node_Flights is the ref of the node to which ur table is binded.
    Use Code Inspector to read the node.
    lt_Element = Node_Flights->GET_ELEMENTS
    loop at lt_elements into ls_Element.
    l_bollean =   ls_elements->is_selected ( returns abap true/false ).
        if l_bollean IS INITIAL.
           append ls_Element to lt_data.
       endif.
    Hope this would help.
    Cheers,
    Ashish

  • How to move a row to top in a report on button click

    Hi,
    I have a report and have 2 buttons(Top and Bottom). When I click on top button selected row should be moved to top in the list, when I click on bottom that select row should be moved to bottom. I checked Denes reorder rows example it has only up and down functionality.
    Could some one help me in doing that.
    Thanks in advance,
    Sri

    Hello, maybe I don´t get your problem, but I would just use: single table, form subform for row with positioned (manually like 2 rows) or flowed (with two "internal" subforms to help achieve 2-like-row-design of the row) content and that´s all. Otto
    p.s.: if your problem is not that simple then I don´t get it, please clarify

  • How to avoid duplicated rows using the outer join

    Hi everybody,
    I have the following query:
    select a.usr_login, b.ugp_rolename, b.ugp_display_name from
    (select usr.usr_login, usr.usr_key, usg.ugp_key from usr,usg
    where usg.usr_key = usr.usr_key
    and usr.usr_login IN ('C01015','C01208')) a,
    (select ugp.ugp_key, ugp.ugp_display_name from ugp
    where ugp.ugp_rolename LIKE 'B-%') b
    where a.ugp_key = b.ugp_key (+)
    The first query 'a' has the following result:
    usr_login <space> usr_key <space> ugp_key
    C01015 <space> 49 <space> 565
    C01015 <space> 49 <space> 683
    C01015 <space> 49 <space> 685
    C01015 <space> 49 <space> 3
    C01208 <space> 257 <space> 3
    The usr_login on table usr is the primary key, and as you can see above, for each usr_login I can find one ore more ugp_key on the table usg.
    The query 'b' gives the list of all the usr_login's roles which have the name LIKE 'B-%' (it means '*Business Roles*'), and all the respective role's key (ugp_key)
    So, when I join the query 'a' with the query 'b', I expect to find for every usr_login the respective ugp_display_name (the Business Role name).
    Because the query 'b' contains ONLY the ugp_keys of the Business Roles, when I execute the complete query, this is the result:
    usr_login <space> ugp_rolename <space> ugp_display_name
    C01015 <space> BK005 <space> TELLER 1
    C01015 <space> BK003 <space> TELLER 2
    C01015 <space> null <space> null
    C01015 <space> null <space> null
    C01208 <space> null <space> null
    As you can see, with the outer join I obtain the Business Name (ugp_display_name) for each occurrence (and I have 2 rows duplicated with 'null' for the usr_login C01015); This beacuse the query 'b' doesn't have the two ugp_keys 685 and 3.
    Instead I'd like to have the following result:
    usr_login <space> ugp_rolename <space> ugp_display_name
    C01015 <space> BK005 <space> TELLER 1
    C01015 <space> BK003 <space> TELLER 2
    C01208 <space> null <space> null
    deleting ONLY the duplicated rows with null, when the usr_login has already at least one ugp_display_name not null.
    For example:
    1) The usr_login 'C01015' has 2 Business Roles (with ugp_key = 565 and 683) and other 2 not-Business Roles (with ugp_key = 685 and 3) --> I want to see ONLY the 2 records related to the Business Roles
    2) The usr_login 'C01208' has only one not-Business Roles (with ugp_key = 3) --> I want to see the record related to the not- Business Role
    Practically:
    1) When a usr_login has one or more Business Roles and other not-Business Roles , I'd like to see ONLY the records about the Business Roles (not the records with 'null','null')
    2) When a usr_login doesn't have Business Roles, I'd like to see the records about the same usr_login with 'null','null'
    This, because I need to show both usr_logins: with and without Business Roles.
    Anybody has any suggestions ? Any help will be appreciated.
    Thanks in advance for any help !!
    Alex

    Hi, Alex,
    So you want to display rows from a where either
    (1) the row has a match in b, or
    (2) no iwith the same usr_login has a match.
    Here's one way to do that:
    WITH     a     AS
         SELECT  usr.usr_login, usr.usr_key, usg.ugp_key
         FROM      usr
         ,     usg
         WHERE      usg.usr_key     = usr.usr_key
         AND     usr.usr_login     IN ('C01015','C01208')
    ,     b     AS
         SELECT  ugp.ugp_key, ugp.ugp_display_name
         FROM      ugp
         WHERE     ugp.ugp_rolename     LIKE 'B-%'
    ,     got_match_cnt     AS
         SELECT     a.usr_login, b.ugp_rolename, b.ugp_display_name
         ,     b.ugp_key
         ,     COUNT (b.ugp_key) OVER (PARTITION BY  a.usr_login)     AS match_cnt
         FROM      a
         ,     b
         WHERE     a.ugp_key     = b.ugp_key (+)
    SELECT     usr_login, ugp_rolename, ugp_display_name
    FROM     got_match_cnt
    WHERE     ugp_key          IS NOT NULL     -- Condition (1)
    OR     match_cnt     = 0              -- Condition (2)
    ;If b.ugp_rolename or b.ugp_display_name can not be NULL, then you could use that just as well as b.ugp_key for testing condition (1).
    By the way, you don't need sub-queries for a and b; you can do all the joins and all the filtering (except conditions (1) and (2)) in one query, but the sub-queries aren't hurting anything. If you find the separate sub-queries easier to understand, debug and maintain, then, by all means, keep them.
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables, and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using.

  • How to avoid column/row nesting in crosstab

    Hi,
    I am using Cross Tab to get out put in following format. But every time i insert new column/row in cross tab it gets nested. I am trying to get following format. Could you please help or any pointer
                               Total          Col1+Col2 Col1          Col2          Col3+Col4     Col3          Col4     
    Group          Total                  0.00          0.00          0.00          0.00          0.00          0.00          0.00     
              Sub Group1          0.00          0.00          0.00          0.00          0.00          0.00          0.00     
              Sub Group 2          0.00          0.00          0.00          0.00          0.00          0.00          0.00     
    Regards,
    Kuldeep
    Edited by: Kuldeep Chitrakar on Apr 9, 2009 7:24 AM
    Edited by: Kuldeep Chitrakar on Apr 9, 2009 7:31 AM

    Hi Kuldeep,
    Condition 1:
    If you try to take one Dimension and one measure like Year and sales revenue using e-fashion demo universe then new column inserted will be nested when using cross tab where the measure values will be spread across multiple columns.
    In this case you have to use condition to refer individual column names like
    =[Sales revenue] Where([Year]="2001" )+ [Sales revenue] Where([Year]="2002")
    and calculate the sum.
    Select the measure column in the cross tab then click  the u201CInsert Sumu201D button it will display the sum in the last column of the cross tab then you can modify the formula generated to specify the condition which columnu2019s sum you want o display in that column.
    Ex:  Use e-Fashion universe and take Year and sales Revenue turn it to cross tab and follow the process I mentioned.
    Condition 2:
    However if you use one dimension and multiple measure like the one you are using where you are trying to calculate sum of col1+col2 and so on. In this case you can directly insert the column and calculate the sum of column referring their names.
    Ex: Use e-Fashion universe and take objects Year, Sales revenue. Quantity sold, Discount, margin here you can directly sum individual column values like sales revenue, quantity sold and discount +margin by inserting the column in between the columns using u201Cinsert Columnu201D
    I  Hope this helpsu2026
    Thanksu2026
    Pratik

  • How to select a row in a single-select table view?

    Hello folks,
    I have a table view with a 'details' button. When a row is selected and 'details' is pressed, the table view disappears and a form view is displayed (like the toggle button in PCUI). I have implemented this using a navigation link. When I press 'cancel' in the form view, another navigation link takes the user back to the table view.
    My problem is, when the table view reappears, there is no row selected (the row that was selected previously, is de-selected). How do I make sure that the row remains selected?
    I tried using the collection_wrapper->mark() method in the inbound plug of the table view, but it works only for multi-select table.

    Hi Masood,
    Thanks for your reply.
    I had already tried using MARK ( iv_index = lv_index ), but it did not work because the first statement in the MARK method is
      check ME->MULTI_SELECT = ABAP_TRUE.
    Mine is a single-select table. So, using the MARK of the iterator object, with either the IV_BO or the IV_INDEX parameter also does not work. Is there any other way for a table with single row selection?
    Thanks!!!
    Rohan.

  • HOW TO SELECT ALL ROWS IN A MULTI SELECT TABLE!!!!!

    Hello
    I have a table with tableSelectMany component. how can I set the page to initially select all rows when first opened?????

    efffffttttttt? are you saying you will do an electronic funds funds funds funds funds transfer transfer transfer transfer transfer transfer to anyone who answers?
    What version of JDeveloper are you using - that is quite important in order to be able to give you an answer.
    What also might be useful is "please" and "thank you" instead of SHOUTING IN ALL CAPS THAT YOUR QUESTION IS IMPORTANT. Realizing that you asked this question over a weekend when most people dont sit and read the forum...
    You have a habit of saying all your questions are URGENT!!!!!! which is generally considered, um...., impolite.

  • How to avoid editing a deleted record in a Table component

    Hi! Everyon,
    I am building a prototype using JSC. In Page1.jsp, I have a table displaying the records. On column one there are buttons that allow the user to edit the record, including deleting it. My problem is: when somebody else deleted a record and if the current user tries to edit the same record by clicking the edit button on the corresponding row he will get the next record. Could somebody tell me how to solve this problem? Thanks in advance.
    By the way, I do not access database directly from the Web part. Instead, I dropped a session bean's method on the Table compoment. In the edit button's event handler, I use
               TableRowDataProvider row = (TableRowDataProvider )getBean("currentRow");However, since that record was deleted already I always get the next record.
    With best regards,
    Daniel

    Thank you very much for your help. And sorry for not explaining clearly.
    I have a session bean that has getCities(), getCity(String code) and other methods. getCities() returns an array of CityDO objects and getCity(String) returns a CityDO object. class CityDO basically is a JavaBean containing city code, city name and other information. When I designed the web part using Java Studio Creator, I dropped a Table component to the design view first, then dropped the EJB method getCities() onto that Table component. Up to now, it is very similar to http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/ejb.html and everything worked fine.
    In order to edit a CityDO record, I added a column containg "edit" buttons into the Table component. If the user clicks the edit button we will show the CityDO in another page called editPage.jsp. In editPage.jsp, the user can update the city or simply delete it. Here is the major part of the event handler of the edit button in Page1,
        public String editCity_action() {
            TableRowDataProvider row = (TableRowDataProvider)getBean("currentRow");
            String code = (String)row.getValue("code");     // "code" is a field in CityDO
            CityDO city = null;
            try {
                city = cityClient1.getCity(code);
            } catch (Exception ex) {
                ex.printStackTrace();
                return null;
            getSessionBean1().setCity(city);          // pass the city to editPage
            return "editPage";
        }Usually, the above logic is good. However, if somebody else deleted one city and the current user tries to edit that deleted city (it is still in his table), he gets the next city. The real problem is in editCity_action(),
    row.getValue("code") returns an updated value, but I only need the old one.
    You memtioned ArrayList. That could be a good solution. Suppose I have an ArryList containing the CityDO objects, if I can bind the table to my ArrayList that will solve my problem. Could you tell me how to do the binding in that case?
    Thank you again.
    With best regards,
    Daniel
    By the way, I do not access database directly from
    the Web part. I do not understand what you mean by the above
    statement.
    Instead, I dropped a session bean's
    method on the Table compoment. Can you explain further. What method did you drop on
    the Table component?
    In the edit button's
    event handler, I use
    TableRowDataProvider row =
    (TableRowDataProvider
    )getBean("currentRow");However, since that
    record was deleted already I always get the next
    record.Here is the delete code from
    http://developers.sun.com/prodtech/javatools/jscreator
    /learning/tutorials/2/inserts_updates_deletes.html.
    As is is working on the rowkey in the page bean's
    table, that should not be affected by other users in
    other sessions, the rowkey should not change, even if
    the underlying record has changed.
        public String delete_action() {
    form1.discardSubmittedValues("save");
    try {
    RowKey rk = tableRowGroup1.getRowKey();
    if (rk != null) {
    tripDataProvider.removeRow(rk);
    tripDataProvider.commitChanges();
    tripDataProvider.refresh();}
    (Exception ex) {
    log("ErrorDescription", ex);
    error(ex.getMessage());
    return null;
    }What is the underlying structure for the table's
    data. Is it a row cache from a query? Is it an
    ArrayList?

  • How to avoid validation of input items within af table and javascript

    Hi all,
    I developed a form which includes table and commandButton. Some input items are required. I want them to validate while just button pressed.
    And everything was ok, this scenario was working well. But when table presents only one row, selecting row does not work. See alsa plz: Table row selection --> might be 9th post
    I applied to my jsff the solution which is told in above link. It works previous issue but this time, javascript caused another problem that is inconsistent validation. As i understood java script overrides af table immediate="true" property. plz see : http://www4.picturepush.com/photo/a/11897217/640/11897217.png
    How can i resolve that? Any suggestion?
    Plz help me
    Thanks in advance
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    xmlns:trh="http://myfaces.apache.org/trinidad/html"
    xmlns:f="http://java.sun.com/jsf/core">
    <trh:script>
    function tableLoad(event)
    AdfCustomEvent.queue(event.getSource(), "refreshTables",
    true);
    event.cancel();
    </trh:script>
    <af:table var="row" rowBandingInterval="1" id="entityT"
    value="#{pageFlowScope.incomingPaperworkBean.baseRowCollection}"
    partialTriggers="::cb_incPaperDef_commit ::cb_incPaperDef_filter"
    rowSelection="single" columnBandingInterval="0"
    disableColumnReordering="true" columnStretching="column:c3"
    styleClass="AFStretchWidth" autoHeightRows="20"
    contentDelivery="immediate" immediate="true"
    binding="#{pageFlowScope.incomingPaperworkBean.richTable}">
    <af:clientListener method="tableLoad" type="click"/>
    <af:serverListener type="refreshTables"
    method="#{pageFlowScope.incomingPaperworkBean.refreshTables}"/>
    <af:column id="c5" width="105">
    <af:inputText id="registrationText"
    value="#{row.baseEntity.registrationNumber.registrationNumber}"
    required="true" readOnly="true" autoSubmit="true"
    disabled="true"/>
    <f:facet name="header">
    <af:panelGroupLayout id="panelGroupLayout1" layout="vertical">
    <af:inputText id="filterRegistrationNumber"
    value="#{pageFlowScope.incomingPaperworkBean.filterTemplate.incomingPaperwork.registrationNumber.registrationNumber}"
    simple="true" autoSubmit="true"/>
    <af:spacer width="10" height="10" id="spacer1"/>
    <af:outputText value="Kayit Numarasi" id="outputText6"/>
    </af:panelGroupLayout>
    </f:facet>
    </af:column>
    Edited by: webyildirim on 07.Oca.2013 06:08

    I guess you want the table header skin selector listing. [http://download.oracle.com/docs/cd/E15523_01/apirefs.1111/e15862/toc.htm|http://download.oracle.com/docs/cd/E15523_01/apirefs.1111/e15862/toc.htm]
    search on af:table
    I only see one mention of a table header though, so maybe this is the problem.
    Have you looked at the html that is output (with Firebug) perhaps and seen what sort of style classes are associated with your table component? in 11g it seems that there are more human-readable style classes that you can guess at by looking at the html source.
    Good luck

Maybe you are looking for

  • Error on SSO

    Oracle SSO Failure - Unable to process request Either the requested URL was not specified in terms of a fully-qualified host name or OHS single sign-on is incorrectly configured. Please notify your administrator. I followed the instructions and on th

  • How to block modification of a VPN profile ? (password and address)

    Hello, we use iPhone Configuration Utility 2.2 to deploy the iPhone in our Enterprise and we are surprised by the fact that it's impossible to block the modifications a parameter configured in the profile. For example, for VPN, it's possible for the

  • Crystal Reports Date Parameter Problem

    Hello Experts, I have this query in crystal, I need it to be suming the Quantity and Totals but because of the date optional its not doing that, How  I put the date parameter and remove it from her so that I can achieve my results. SELECT T0.[DocDate

  • Set the input cursor i.e. "set cursor" in ABAP

    In ABAP Dynpro, I have the possibility to set the cursor to a specified input field using the "set cursor" command. In ABAP Web Dynpro it seems that I always have to place the cursor first using the mouse. Is there an equivalent to "set cursor" in AB

  • I cannot find "send to OneNote" button nor is it listed in Print options How do I add

    running vista 64 bit with current upgrades and 8.0.1. used to have Send to onenote in print list but not there after upgrading. How do I add back