Update column in a table with several lines at a time

I created a tabular presentation, page 19, with a single editable column, STATUS. Let's say that there are 300 rows in this form.

I would like to have a button that selects all lines and change the status to "AUTHORIZED", if the status is set to "PLANNED".

Without passing through and using checkboxes on the tabular form, is there a way I can do this with a button and a process? Then my code would look like this in a process of PL/SQL:

BEGIN
UPDATE of the elements
SET
State = "AUTHORIZED."
auth_date = sysdate,
status_date = sysdate
WHERE
ID =: P3_ID
AND status = 'PLANNED ';
END;


Thank you very much
Maggie

Maggie,

There are some things that you need to consider:

<script language="JavaScript" type="text/javascript">
function f_mass_update()
{
var counter = 0;
for (var i = 0; i < document.wwv_flow.f03.length; i++)

{var curr_id = document.wwv_flow.f03.id;

if ($x(curr_id).value == 'COMPLETE')

{$x(curr_id).value = 'CANCELED';
$x(curr_id).style.color = "darkred";
$x(curr_id).style.fontWeight = "bold";
$x(curr_id).style.background = "yellow";
$x(curr_id).style.width = "103px";
counter = counter + 1;}}

if (counter == 0)
{alert ('There are no more statuses to change!');}
else {alert(counter + ' Records updated!');}
}
</script>

corresponds to the correct script if escape you COMPLETE as 'DONE' and CANCELLED as "CANCELLED". The same rules apply for the javascript that for most other languagas programming - numbers do not need to be escaped, but make the strings.

The second thing is the question of your id to tabular presentation. In my case it was f03 but in your case, it's probably different. If you have created a tabular presentation Wizard does not touch, you could count the columns.
If your column is the first column editable only be f03. The second will be f04 and so on. My recommendation is to use Firefox and download the Firebug extension. You can do this with firebug HTML > inspect and move the mouse on any item in your page. Click the actual cell in a table, and it will tell you a code like this:

<input type="text" id="f03_0001" value="10" maxlength="2000" size="16" name="f03"/>

Thus, the name of the element is f03.

See the same page, now with an attached image of what I just explained:

http://Apex.Oracle.com/pls/OTN/f?p=31517:213

Denes Kubicek
-------------------------------------------------------------------
http://deneskubicek.blogspot.com/
http://www.Opal-consulting.de/training
http://Apex.Oracle.com/pls/OTN/f?p=31517:1
-------------------------------------------------------------------

Tags: Database

Similar Questions

  • Add sub form of table with several lines

    I would like to have a button to add a line for each line of a tabular presentation. How can I do?

    Let me give you an example. I have a tabular form on a view that joins two tables. The display consists of
    MANAGER_FIRM_ID (no show),
    MANAGER_ID (no-show),
    TYPE_ID (no-show),
    TYPE_DESCRIPTION,
    FIRST NAME,
    LAST_NAME,
    PONSBILITY_TYPE,
    TITLE,
    GENDER,
    OWNER,
    ETHNICITY_ID

    Looks like the shape of tables:

    Type Description first name last name title genre ethnic group owner through

    There may be one or several (sometimes 3 or 4) for the description of each type (i.e., management).

    I would that the user has a button Add on each line, so they may have several people who made the same type of management operation.

    I downloaded the app at the APEX. ORACLE.COM SaS.

    Workspace: RGWORK
    Username: Tester
    Password: test123

    Application: Application for Certification online - 47405

    Page 33 > run > enter user/password > select disadvantaged business (1st box) and select Start Application > button > click Control (management) on the list on the left under steps.

    Someone can help me.

    Robert

    Hi Robert,.

    I think I have now something works: [http://apex.oracle.com/pls/otn/f?p=35917:35]

    I had major problems with IE and FireFox does not handle things the same way (as always :(), but it works in both:

    <script type="text/javascript">
    function pad(n)
    {
     var s = '0000' + n;
     return s.substr(s.length-4);
    }
    function updateFields(f)
    {
      var fields = document.getElementsByName(f);
      var j;
      if (fields.length > 0)
      {
        for (j = 0; j < fields.length; j++)
        {
          fields[j].id = f + "_" + pad(j+1);
        }
      }
    }
    function updateInputs()
    {
     updateFields("f01");
     updateFields("f02");
     updateFields("f03");
     updateFields("f04");
    }
    function cloneRow(r)
    {
      var w = r.parentNode;
      while (w.tagName != "TR")
      {
        w = w.parentNode;
      }
      var t = w.parentNode;
      while (t.tagName != "TABLE")
      {
        t = t.parentNode;
      }
      var ri = w.rowIndex;
      var wNew = t.insertRow(ri + 1);
      var c;
      var newCell;
      var oldCells = w.getElementsByTagName("TD");
      for (c = 0; c < oldCells.length; c++)
      {
        newCell = wNew.insertCell(c);
        newCell.className = oldCells[c].className;
        newCell.innerHTML = oldCells[c].innerHTML;
      }
      var inputs = wNew.getElementsByTagName("INPUT");
      var j;
      for (j = 0; j < inputs.length; j++)
      {
        inputs[j].value = "";
      }
      updateInputs()
    }
    updateInputs()
    </script>
    

    Is the only thing that I have not been able to manage the events 'onmouseover' and 'onmouseout' on TR tags - they are not actually used on my example, even if they are part of the HTML code. As long as you don't need them, then the above should be ok for you.

    Andy

  • performance-sql for table with several lines

    I have a database table that contains information that allows me to determine certain information processing to the breast of a proxy service. I want to be able to get (multiple lines) data from this table.

    When I use execute sql it returns only a single row where more than one are expected.

    Anyone aware of several rows of a table within the OSB?

    Thank you

    Hello
    give something like this in the expression editor...
    {} - run sql('DataSource','Record','select * from...')

    The reason for which you receive only one record is that the return type of this function would be a bunch of files, it would be like... .... ...
    But this return value is not consistent with an XML document because... you will notice that there is no element root for the records...

    For more to come this., wrap the function with any xml tag that acts as a root... in this case...

    Kind regards
    Manoj Nair...

  • How to update exists column on the table with the exact number and auto increment

    Hello

    I have a table with more than 10 million rows and there is a column called 'number_zaq', I want to update this column on line frist from 2000 and + 1 for the next all ranks.

    Update your_table

    Set number_zaq = rownum + 2000-1;

  • Unique table with several columns or several tables split?

    What is the best.

    A table with multiple columns inside or divided into several tables. Why?
    How will the performance in the two scenarios?

    Hello

    user13024762 wrote:
    I have a table EMP that has column EMP_ID, EMP_NAME MGR_ID, MGR_NAME, SALARY, EXP_IN_MNTHS, EXP_IN_YRS... etc with multiple columns

    I have the following tables
    EMP-> EMP_ID, EMP_NAME

    Each row in the table emp thie represents a separate employee. I guess other columns in the emp table might be birth_date, social_security_number and status (by example, 'Active', 'Leave', 'complete'). Here's what an employee has (at least) one of. If there is a one-to-many relationship between an employee and an attribute, then you probably want another table for this attribute.

    BISHOP-> EMP_ID, MGR_ID, MGR_NAME

    There is a one-to-many relationship between employees and managers? In other words, an employee may have 2 or more managers? If Yes, then you need another table.
    If there is only a one-to-one relationship between employees and managers (in other words, if an employee is never more than 1 Manager) so why don't you just have a mgr_id column in the emp table?
    Managers are also used for? (This is often the case, as in scott.emp and hr.employees.) If so, do not store their names in the EME and tables of mgr. Store name (and date of birth and other information) in the table emp only and, if you need a table of Bishop, just the emp_id and mgr_id column.

    SAL-> EMP_ID, SALARY

    There is a one-to-many relationship between the employees and wages? In other words, an employee may have 2 or more treatments? If so, how will you use the values? Is a special treatments in some way, as it will be used more often than others? (In other words, you may have a current and past wages salary, but the last wages are rarely used.)
    If you never have more than 1 salary for a given employee, why not just have a sal column in the emp table?

    EXP-> EMP_ID, EXP_IN_MNTHS, EXP_IN_YRS

    There is a one-to-many relationship between the employees and what whether you store in this table?

    etc. with more tables

    What is the best based on

    (1) performance and data recovery
    (2) ease of use
    (3) maintainability

    A one-to-many relationship requires an additional table. If an employee can have up to 3 managers, don't have mgr1, mgr2 and mgr3 columns in the emp table. Use a separate table, with up to 3 lines for the same employee, instead.
    For 1-1 relationships, it is usually best to not have separate tables.

  • Table with several columns

    I have a table advanced with more or less 60 columns and the table is larger than the header image. How can I align the table with the advanced table?
    Thank you.

    Published by: Vieira on 1.01 giu-3-2010

    I don't think that this is possible.

    what you can do, is that you can fix the scroll bar horizontal to your table, this way that your condition is possible. Please visit the Blog of Mukul to fix scrollbars at the table.

    Kind regards
    Out Sharma

  • Create table with several Collections of data control

    Hello

    I have a requirement about to display data in a table. It shows simple, but certain columns in the table are within a collection, and the others are in another collection. I read this chapter Creation of ADF Databound Tables - 11 g Release 1 (11.1.1.7.0), and she explains to create the table with a collection.

    I have no knowledge on the model, I know just as control data, so what should I do? :

    -Ask for the template designer to redraw the control of data to include a collection with all the data?

    -Try to work with the actual data control? If so, how can I create the table several Collections of data control?

    Plese let me know if there is another solution. I work with JDeveloper 11.1.1.7.

    Thank you!

    AAPDL

    Hello

    You can have a managed bean that e... g exposes an ArrayList of objects. This can then binds to the value property of the table. If the object sets the information of table row combination that you get multiple iterators (collections), then the table will display the joined data.

    Frank

  • How to make the column in the table with the formula

    Hi all..
    This is my class
    public class MyNumber{
         private int num;
    
         public int getNum(){
              return num;
         }
    
         public void setNum( int num){
              this.num = num;
         }
    }
    Consider that designing a table with FXML Editor (Builder scene in this case)
    and here are some of my codes
    private TableView tab;
    private TableColumn<MyNumber, Integer> tabColInput;
    private TableColumn tabColOutput;
    
    tab.setEditable(true);
    tabColInput.setEditable(true);
    
    tabColInput.setCellValueFactory( new PropertyValueFactory<Person,Integer>("num") );
    tabColInput.setCellFactory(TextFieldTableCell.forTableColumn());
    tabColInput.setOnEditCommit(
        new EventHandler<CellEditEvent<MyNumber, Integer>>() {
            @Override
            public void handle(CellEditEvent<MyNumber, Integer> t) {
                ((MyNumber) t.getTableView().getItems().get(
                    t.getTablePosition().getRow())
                    ).setNum(t.getNewValue());
            }
        }
    );
    Problem:
    I want to tabColOutput to always show the result for tabColInput multiplied by 2

    for example:
    When I change a line in tabColInput 10, tabColOutput shows 20
    When I change a line in tabColInput to 3, tabColOutput show 6

    Could someone advice me how do?

    PS: I'm not native English, so I'm sorry if I tell it fake ^^

    You're up-to-date data are probably not ObservableValues as properties, so the TableView cannot update dynamically as modification of data items.

  • How to create a table with no lines to the left or to the right?

    If I create a table with say 5 columns and 15 lines, how not to do a vertical line (border) to the left and to the right of the table while keeping the boundary up and down? Is that possible or I just put a white box on the left and the right?

    IDCS3

    There are a few methods that work. Here is one.

    (1) select your table cells

    (2) open the race Panel

    3) click the blue lines of the proxy image in the Panel of stoke to deselect the lines inside and high and low lines

    (4) 0 the value of the weight of the race (or change the color of the None swatch)

    Oh and for the love of your fellow designers or the person that allows you to edit your work in the future... do NOT use a white box to hide the traits of lines and columns in the table.

    HTH

    -mt

  • trigger for update field in a table with the sum of the fields to another table

    My experience in creation of triggers and pl/sql in general can be described in terms of oracle with the null value. I practiced by creating arrays and applications on my personal server at home to help me with some of my work related tasks. Right now I am creating a trigger which will, after insert, update, delete on the update of the table assignment_time_track the area of the time_spent on the table of assignments with the sum of the time_spent on the assignment_time_track table fields. I hope that run on the sentence it is clear to the people other than me. I tried this script on my own using the tool of creation of trigger for Oracle Database Express Edition, but I get the following error:

    Create a trigger failed, for the following reason:
    ORA-06552: PL/SQL: ORA-06553 finished Compilation unit analysis: PLS-320: the declaration of the type of the expression is incomplete or incorrect

    Here is my attempt to create the trigger on my own.

    create or replace trigger "ASSIGNMENT_TIME_TRACK_T1".
    AFTER
    INSERT or update or delete on 'ASSIGNMENT_TIME_TRACK '.
    for each line
    Start
    update assignments
    Set time_spent = (select sum (time_spent)
    of assignment_time_track
    where assignment_time_track.name = assignments.name);

    end;
    /


    If what I posted is not clear or more detail is needed, let me know and I will respond with a full description of tables and my goals for each table. Thanks in advance for any help. I also gladly accepts links to tutorials or lessons that explain how to do this kind of thing.

    Published by: bobonthenet on March 9, 2009 14:01

    I think I understand what you mean :)

    Rather than use a trigger to keep the master table (assignments) in sync with the time spent on the details, it would be much easier to use a query to do this, maybe creating a view.

    Something along the lines of

    SQL> create table assignments
      2  (id number primary key
      3  ,name varchar2(10)
      4  );
    
    Table created.
    
    SQL>
    SQL> create table assignment_time_tbl
      2  (id number primary key
      3  ,assid number references assignments
      4  ,time_spent number
      5  );
    
    Table created.
    
    SQL>
    SQL> insert into assignments
      2  select rownum
      3       , 'a'
      4    from all_objects
      5   where rownum < 5
      6  /
    
    4 rows created.
    
    SQL>
    SQL> insert into assignment_time_tbl
      2  select rownum
      3       , rownum
      4       , rownum * 3
      5    from all_objects
      6   where rownum < 5
      7  /
    
    4 rows created.
    
    SQL>
    SQL> commit;
    
    Commit complete.
    
    SQL>
    SQL>
    SQL> select a.id
      2       , a.name
      3       , (select sum (time_spent)
      4            from assignment_time_tbl
      5           where assid = a.id
      6         )
      7    from assignments a
      8  /
    
            ID NAME       (SELECTSUM(TIME_SPENT)FROMASSIGNMENT_TIME_TBLWHEREASSID=A.ID)
    ---------- ---------- -------------------------------------------------------------
             1 a                                                                      3
             2 a                                                                      6
             3 a                                                                      9
             4 a                                                                     12
    
  • ADF table with more lines not able to create new record

    Hi I have situation where I adf table 13 lines that is able to create new records and I have the table who got about 3000 documents, but I have to refresh the page after I click the createinsert button in order to have an empty space to enter new record am jdeveloper 11.1.1.7.0 using IE and firefox

    JSFF page creating record

    <? XML version = "1.0" encoding = "UTF - 8"? >

    " < = xmlns:jsp jsp:root ' http://Java.Sun.com/JSP/page "version ="2.1" "

    ' xmlns:af = ' http://xmlns.Oracle.com/ADF/faces/rich "" "

    ' xmlns:f = ' http://Java.Sun.com/JSF/core ">

    < af:panelHeader text = 'maintain Provience"id ="ph1 ".

    inlineStyle = ' height: 844px; ">

    < f: facet = 'context' name / >

    < name f: facet = 'bar menu' / >

    < name f: facet = "toolbar" / >

    < f: facet = name "legend" / >

    < f: facet = 'info' name / >

    < af:panelCollection id = "pc1" inlineStyle = "width: 1033px;" height: 790px; ">

    < f: facet = 'menus' name / >

    < f: facet name = "toolbar" >

    < af:toolbar id = "t2" >

    < af:commandButton actionListener = "#{bindings." CreateInsert.execute}.

    Text = "CreateInsert."

    ID = "cb1" / >

    < af:commandButton actionListener = "#{bindings.Commit.execute} '"

    Text = "Register" id = "cb2" / >

    < af:quickQuery label = 'Search' searchDesc = 'Search' id = 'qryId1 '.

    value = "#{bindings." ImplicitViewCriteriaQuery.quickQueryDescriptor}.

    model = ' #{bindings. " ImplicitViewCriteriaQuery.queryModel}.

    queryListener = ' #{bindings. " ImplicitViewCriteriaQuery.processQuery} ">"

    < f: facet = 'end' name >

    < af:commandLink text = "Advanced" rendered = "true" id = "cl1" / >

    < / f: facet >

    < / af:quickQuery >

    < / af:toolbar >

    < / f: facet >

    < name f: facet = 'bar of Θtat' / >

    < af:table value = "#{bindings." Var ProvinceView1.collectionModel}"="row ".

    lines = ' #{bindings. " ProvinceView1.rangeSize}.

    emptyText = "#{bindings." ProvinceView1.viewable? "{'No data to display.': 'Access Denied.'}".

    fetchSize = "#{bindings." ProvinceView1.rangeSize}.

    rowBandingInterval = '0 '.

    selectedRowKeys = ' #{bindings. " ProvinceView1.collectionModel.selectedRow}.

    selectionListener = "#{bindings." ProvinceView1.collectionModel.makeCurrent}.

    "rowSelection ="single"id ="t1"partialTriggers =": cb1: qryId1.

    columnStretching = 'last' immediate = "false" >

    < af:column sortProperty = "#{bindings." ProvinceView1.hints.ProvinceCode.name}.

    sortable = "true".

    headerText = "#{bindings." ProvinceView1.hints.ProvinceCode.label}.

    ID = "c1" >

    < af:inputText value = "#{row.bindings.ProvinceCode.inputValue} '"

    label = "#{bindings." ProvinceView1.hints.ProvinceCode.label}.

    required = "#{bindings." ProvinceView1.hints.ProvinceCode.mandatory}.

    columns = "#{bindings." ProvinceView1.hints.ProvinceCode.displayWidth}.

    maximumLength = "#{bindings." ProvinceView1.hints.ProvinceCode.precision}.

    shortDesc = "#{bindings." ProvinceView1.hints.ProvinceCode.tooltip}.

    ID = "it2" >

    < f: validator binding="#{row.bindings.ProvinceCode.validator}"/ >

    < af:convertNumber groupingUsed = "false".

    model = ' #{bindings. " ProvinceView1.hints.ProvinceCode.format}"/ >

    < / af:inputText >

    < / af:column >

    < af:column sortProperty = "#{bindings." ProvinceView1.hints.ProvinceName.name}.

    sortable = "true".

    headerText = "#{bindings." ProvinceView1.hints.ProvinceName.label}.

    ID = "c2" >

    < af:inputText value = "#{row.bindings.ProvinceName.inputValue} '"

    label = "#{bindings." ProvinceView1.hints.ProvinceName.label}.

    required = "#{bindings." ProvinceView1.hints.ProvinceName.mandatory}.

    columns = "#{bindings." ProvinceView1.hints.ProvinceName.displayWidth}.

    maximumLength = "#{bindings." ProvinceView1.hints.ProvinceName.precision}.

    shortDesc = "#{bindings." ProvinceView1.hints.ProvinceName.tooltip}.

    ID = "it1" >

    < f: validator binding="#{row.bindings.ProvinceName.validator}"/ >

    < / af:inputText >

    < / af:column >

    < af:column sortProperty = "#{bindings." ProvinceView1.hints.ProvinceDateActive.name}.

    sortable = "true".

    headerText = "#{bindings." ProvinceView1.hints.ProvinceDateActive.label}.

    ID = 'c4' >

    < af:inputDate value = "#{row.bindings.ProvinceDateActive.inputValue} '"

    label = "#{bindings." ProvinceView1.hints.ProvinceDateActive.label}.

    required = "#{bindings." ProvinceView1.hints.ProvinceDateActive.mandatory}.

    shortDesc = "#{bindings." ProvinceView1.hints.ProvinceDateActive.tooltip}.

    ID = "id2" >

    < f: validator binding="#{row.bindings.ProvinceDateActive.validator}"/ >

    < af:convertDateTime pattern = "#{bindings." ProvinceView1.hints.ProvinceDateActive.format}"/ >

    < / af:inputDate >

    < / af:column >

    < af:column sortProperty = "#{bindings." ProvinceView1.hints.ProvinceDateInactive.name}.

    sortable = "true".

    headerText = "#{bindings." ProvinceView1.hints.ProvinceDateInactive.label}.

    ID = 'c3' >

    < af:inputDate value = "#{row.bindings.ProvinceDateInactive.inputValue} '"

    label = "#{bindings." ProvinceView1.hints.ProvinceDateInactive.label}.

    required = "#{bindings." ProvinceView1.hints.ProvinceDateInactive.mandatory}.

    shortDesc = "#{bindings." ProvinceView1.hints.ProvinceDateInactive.tooltip}.

    ID = "id1" >

    < f: validator binding="#{row.bindings.ProvinceDateInactive.validator}"/ >

    < af:convertDateTime pattern = "#{bindings." ProvinceView1.hints.ProvinceDateInactive.format}"/ >

    < / af:inputDate >

    < / af:column >

    < / af:table >

    < / af:panelCollection >

    < / af:panelHeader >

    < / jsp:root >

    JSFF not able to create the record when you click the createinsert button

    <? XML version = "1.0" encoding = "UTF - 8"? >

    " < = xmlns:jsp jsp:root ' http://Java.Sun.com/JSP/page "version ="2.1" "

    ' xmlns:af = ' http://xmlns.Oracle.com/ADF/faces/rich "" "

    ' xmlns:f = ' http://Java.Sun.com/JSF/core ">

    < af:panelStretchLayout id = "PSL1" >

    < f: facet name = "center" >

    < af:panelHeader text = "Manage the Code window" id = "ph1" >

    < f: facet = 'context' name / >

    < name f: facet = 'bar menu' / >

    < name f: facet = "toolbar" / >

    < f: facet = name "legend" / >

    < f: facet = 'info' name / >

    < af:panelCollection id = "pc1" >

    < f: facet = 'menus' name / >

    < f: facet name = "toolbar" >

    < af:toolbar id = "t1" >

    < af:commandButton actionListener = "#{bindings." CreateInsert.execute}.

    Text = "CreateInsert."

    ID = "cb1" partialSubmit = "true" / >

    < af:commandButton actionListener = "#{bindings.Commit.execute} '"

    Text = "Save."

    ID = "cb2" / >

    < af:quickQuery label = 'Search' searchDesc = 'Search' id = 'qryId1 '.

    value = "#{bindings." ImplicitViewCriteriaQuery.quickQueryDescriptor}.

    model = ' #{bindings. " ImplicitViewCriteriaQuery.queryModel}.

    queryListener = ' #{bindings. " ImplicitViewCriteriaQuery.processQuery} ">"

    < f: facet = 'end' name >

    < af:commandLink text = "Advanced" id = "cl1" / >

    < / f: facet >

    < / af:quickQuery >

    < / af:toolbar >

    < / f: facet >

    < name f: facet = 'bar of Θtat' / >

    < af:table value = "#{bindings." Var BranchesView1.collectionModel}"="row ".

    lines = ' #{bindings. " BranchesView1.rangeSize}.

    emptyText = "#{bindings." BranchesView1.viewable? "{'No data to display.': 'Access Denied.'}".

    fetchSize = "#{bindings." BranchesView1.rangeSize}.

    rowBandingInterval = '0 '.

    selectedRowKeys = ' #{bindings. " BranchesView1.collectionModel.selectedRow}.

    selectionListener = "#{bindings." BranchesView1.collectionModel.makeCurrent}.

    rowSelection = "single" id = 't2' columnStretching = 'last '.

    "partialTriggers =": cb1: qryId1 ' immediate = "false".

    columnResizing = "enabled" >

    < af:column sortProperty = "#{bindings." BranchesView1.hints.BranchAd.name}.

    sortable = "true".

    headerText = "#{bindings." BranchesView1.hints.BranchAd.label}.

    ID = "c13" >

    < af:inputText value = "#{row.bindings.BranchAd.inputValue} '"

    label = "#{bindings." BranchesView1.hints.BranchAd.label}.

    required = "#{bindings." BranchesView1.hints.BranchAd.mandatory}.

    columns = "#{bindings." BranchesView1.hints.BranchAd.displayWidth}.

    maximumLength = "#{bindings." BranchesView1.hints.BranchAd.precision}.

    shortDesc = "#{bindings." BranchesView1.hints.BranchAd.tooltip}.

    ID = "it11" >

    < f: validator binding="#{row.bindings.BranchAd.validator}"/ >

    < af:convertNumber groupingUsed = "false".

    model = ' #{bindings. " BranchesView1.hints.BranchAd.format}"/ >

    < / af:inputText >

    < / af:column >

    < af:column sortProperty = "#{bindings." BranchesView1.hints.BranchCode.name}.

    sortable = "true".

    headerText = "#{bindings." BranchesView1.hints.BranchCode.label}.

    ID = "c8" >

    < af:inputText value = "#{row.bindings.BranchCode.inputValue} '"

    label = "#{bindings." BranchesView1.hints.BranchCode.label}.

    required = "#{bindings." BranchesView1.hints.BranchCode.mandatory}.

    columns = "#{bindings." BranchesView1.hints.BranchCode.displayWidth}.

    maximumLength = "#{bindings." BranchesView1.hints.BranchCode.precision}.

    shortDesc = "#{bindings." BranchesView1.hints.BranchCode.tooltip}.

    ID = "it4" >

    < f: validator binding="#{row.bindings.BranchCode.validator}"/ >

    < / af:inputText >

    < / af:column >

    < af:column sortProperty = "#{bindings." BranchesView1.hints.BranchName.name}.

    sortable = "true".

    headerText = "#{bindings." BranchesView1.hints.BranchName.label}.

    ID = "c2" >

    < af:inputText value = "#{row.bindings.BranchName.inputValue} '"

    label = "#{bindings." BranchesView1.hints.BranchName.label}.

    required = "#{bindings." BranchesView1.hints.BranchName.mandatory}.

    columns = "#{bindings." BranchesView1.hints.BranchName.displayWidth}.

    maximumLength = "#{bindings." BranchesView1.hints.BranchName.precision}.

    shortDesc = "#{bindings." BranchesView1.hints.BranchName.tooltip}.

    ID = "it2" >

    < f: validator binding="#{row.bindings.BranchName.validator}"/ >

    < / af:inputText >

    < / af:column >

    < af:column sortProperty = "#{bindings." BranchesView1.hints.BranchAddressLine1.name}.

    sortable = "true".

    headerText = "#{bindings." BranchesView1.hints.BranchAddressLine1.label}.

    ID = "c7" >

    < af:inputText value = "#{row.bindings.BranchAddressLine1.inputValue} '"

    label = "#{bindings." BranchesView1.hints.BranchAddressLine1.label}.

    required = "#{bindings." BranchesView1.hints.BranchAddressLine1.mandatory}.

    columns = "#{bindings." BranchesView1.hints.BranchAddressLine1.displayWidth}.

    maximumLength = "#{bindings." BranchesView1.hints.BranchAddressLine1.precision}.

    shortDesc = "#{bindings." BranchesView1.hints.BranchAddressLine1.tooltip}.

    ID = "it6" >

    < f: validator binding="#{row.bindings.BranchAddressLine1.validator}"/ >

    < / af:inputText >

    < / af:column >

    < af:column sortProperty = "#{bindings." BranchesView1.hints.BranchAddressLine2.name}.

    sortable = "true".

    headerText = "#{bindings." BranchesView1.hints.BranchAddressLine2.label}.

    ID = 'c3' >

    < af:inputText value = "#{row.bindings.BranchAddressLine2.inputValue} '"

    label = "#{bindings." BranchesView1.hints.BranchAddressLine2.label}.

    required = "#{bindings." BranchesView1.hints.BranchAddressLine2.mandatory}.

    columns = "#{bindings." BranchesView1.hints.BranchAddressLine2.displayWidth}.

    maximumLength = "#{bindings." BranchesView1.hints.BranchAddressLine2.precision}.

    shortDesc = "#{bindings." BranchesView1.hints.BranchAddressLine2.tooltip}.

    ID = "it1" >

    < f: validator binding="#{row.bindings.BranchAddressLine2.validator}"/ >

    < / af:inputText >

    < / af:column >

    < af:column sortProperty = "#{bindings." BranchesView1.hints.BranchCityCode.name}.

    sortable = "true".

    headerText = "#{bindings." BranchesView1.hints.BranchCityCode.label}.

    ID = 'c12' >

    < af:inputText value = "#{row.bindings.BranchCityCode.inputValue} '"

    label = "#{bindings." BranchesView1.hints.BranchCityCode.label}.

    required = "#{bindings." BranchesView1.hints.BranchCityCode.mandatory}.

    columns = "#{bindings." BranchesView1.hints.BranchCityCode.displayWidth}.

    maximumLength = "#{bindings." BranchesView1.hints.BranchCityCode.precision}.

    shortDesc = "#{bindings." BranchesView1.hints.BranchCityCode.tooltip}.

    ID = "it5" >

    < f: validator binding="#{row.bindings.BranchCityCode.validator}"/ >

    < af:convertNumber groupingUsed = "false".

    model = ' #{bindings. " BranchesView1.hints.BranchCityCode.format}"/ >

    < / af:inputText >

    < / af:column >

    < af:column sortProperty = "#{bindings." BranchesView1.hints.BranchSuburb.name}.

    sortable = "true".

    headerText = "#{bindings." BranchesView1.hints.BranchSuburb.label}.

    ID = "c9" >

    < af:inputText value = "#{row.bindings.BranchSuburb.inputValue} '"

    label = "#{bindings." BranchesView1.hints.BranchSuburb.label}.

    required = "#{bindings." BranchesView1.hints.BranchSuburb.mandatory}.

    columns = "#{bindings." BranchesView1.hints.BranchSuburb.displayWidth}.

    maximumLength = "#{bindings." BranchesView1.hints.BranchSuburb.precision}.

    shortDesc = "#{bindings." BranchesView1.hints.BranchSuburb.tooltip}.

    ID = "9" >

    < f: validator binding="#{row.bindings.BranchSuburb.validator}"/ >

    < / af:inputText >

    < / af:column >

    < af:column sortProperty = "#{bindings." BranchesView1.hints.BranchProvinceCode.name}.

    sortable = "true".

    headerText = "#{bindings." BranchesView1.hints.BranchProvinceCode.label}.

    ID = "c11" >

    < af:inputText value = "#{row.bindings.BranchProvinceCode.inputValue} '"

    label = "#{bindings." BranchesView1.hints.BranchProvinceCode.label}.

    required = "#{bindings." BranchesView1.hints.BranchProvinceCode.mandatory}.

    columns = "#{bindings." BranchesView1.hints.BranchProvinceCode.displayWidth}.

    maximumLength = "#{bindings." BranchesView1.hints.BranchProvinceCode.precision}.

    shortDesc = "#{bindings." BranchesView1.hints.BranchProvinceCode.tooltip}.

    ID = 'it8' >

    < f: validator binding="#{row.bindings.BranchProvinceCode.validator}"/ >

    < af:convertNumber groupingUsed = "false".

    model = ' #{bindings. " BranchesView1.hints.BranchProvinceCode.format}"/ >

    < / af:inputText >

    < / af:column >

    < af:column sortProperty = "#{bindings." BranchesView1.hints.BranchPostalCode.name}.

    sortable = "true".

    headerText = "#{bindings." BranchesView1.hints.BranchPostalCode.label}.

    ID = "c5" >

    < af:inputText value = "#{row.bindings.BranchPostalCode.inputValue} '"

    label = "#{bindings." BranchesView1.hints.BranchPostalCode.label}.

    required = "#{bindings." BranchesView1.hints.BranchPostalCode.mandatory}.

    columns = "#{bindings." BranchesView1.hints.BranchPostalCode.displayWidth}.

    maximumLength = "#{bindings." BranchesView1.hints.BranchPostalCode.precision}.

    shortDesc = "#{bindings." BranchesView1.hints.BranchPostalCode.tooltip}.

    ID = "it7" >

    < f: validator binding="#{row.bindings.BranchPostalCode.validator}"/ >

    < / af:inputText >

    < / af:column >

    < af:column sortProperty = "#{bindings." BranchesView1.hints.BranchTelephone.name}.

    sortable = "true".

    headerText = "#{bindings." BranchesView1.hints.BranchTelephone.label}.

    ID = "c6" >

    < af:inputText value = "#{row.bindings.BranchTelephone.inputValue} '"

    label = "#{bindings." BranchesView1.hints.BranchTelephone.label}.

    required = "#{bindings." BranchesView1.hints.BranchTelephone.mandatory}.

    columns = "#{bindings." BranchesView1.hints.BranchTelephone.displayWidth}.

    maximumLength = "#{bindings." BranchesView1.hints.BranchTelephone.precision}.

    shortDesc = "#{bindings." BranchesView1.hints.BranchTelephone.tooltip}.

    ID = "it3" >

    < f: validator binding="#{row.bindings.BranchTelephone.validator}"/ >

    < / af:inputText >

    < / af:column >

    < af:column sortProperty = "#{bindings." BranchesView1.hints.BranchDateActive.name}.

    sortable = "true".

    headerText = "#{bindings." BranchesView1.hints.BranchDateActive.label}.

    ID = "c10" >

    < af:inputDate value = "#{row.bindings.BranchDateActive.inputValue} '"

    label = "#{bindings." BranchesView1.hints.BranchDateActive.label}.

    required = "#{bindings." BranchesView1.hints.BranchDateActive.mandatory}.

    shortDesc = "#{bindings." BranchesView1.hints.BranchDateActive.tooltip}.

    ID = "id2" >

    < f: validator binding="#{row.bindings.BranchDateActive.validator}"/ >

    < af:convertDateTime pattern = "#{bindings." BranchesView1.hints.BranchDateActive.format}"/ >

    < / af:inputDate >

    < / af:column >

    < af:column sortProperty = "#{bindings." BranchesView1.hints.BranchDateInactive.name}.

    sortable = "true".

    headerText = "#{bindings." BranchesView1.hints.BranchDateInactive.label}.

    ID = "c1" >

    < af:inputDate value = "#{row.bindings.BranchDateInactive.inputValue} '"

    label = "#{bindings." BranchesView1.hints.BranchDateInactive.label}.

    required = "#{bindings." BranchesView1.hints.BranchDateInactive.mandatory}.

    shortDesc = "#{bindings." BranchesView1.hints.BranchDateInactive.tooltip}.

    ID = "id1" >

    < f: validator binding="#{row.bindings.BranchDateInactive.validator}"/ >

    < af:convertDateTime pattern = "#{bindings." BranchesView1.hints.BranchDateInactive.format}"/ >

    < / af:inputDate >

    < / af:column >

    < af:column sortProperty = "#{bindings." BranchesView1.hints.BranchHub.name}.

    sortable = "true".

    headerText = "#{bindings." BranchesView1.hints.BranchHub.label}.

    ID = 'c4' >

    < af:inputText value = "#{row.bindings.BranchHub.inputValue} '"

    label = "#{bindings." BranchesView1.hints.BranchHub.label}.

    required = "#{bindings." BranchesView1.hints.BranchHub.mandatory}.

    columns = "#{bindings." BranchesView1.hints.BranchHub.displayWidth}.

    maximumLength = "#{bindings." BranchesView1.hints.BranchHub.precision}.

    shortDesc = "#{bindings." BranchesView1.hints.BranchHub.tooltip}.

    ID = "it10" >

    < f: validator binding="#{row.bindings.BranchHub.validator}"/ >

    < / af:inputText >

    < / af:column >

    < / af:table >

    < / af:panelCollection >

    < / af:panelHeader >

    <!-id = "af_one_column_stretched"->

    < / f: facet >

    < / af:panelStretchLayout >

    < / jsp:root >

    Go to the pageDef and for related iterator to your table, set ChangeEventPolicy property to the ppr

  • How to match columns from two tables with

    Hello:
    I have two tables as below:

    Table1::(Base Table)
    Country | Prefix | Prefix_Length
    Travel | 001 | 3
    CountryB. 0012 | 4
    PaysC | 00443 | 5
    CountryD | 0091 | 4

    :(Detail Table) table2
    The population | Area | Prefix
    500 | AreaA | 0015921
    1000 | AreaB | 00122
    400. AreaC. 00443743
    300. ALIS | 0091333
    100. AreaA | 001

    I need to match these two tables with prefix columns (whose length is not fixed in the two tables: but it starts with 00 in the two tables). Two different countries the prefix may be similar up to a certain length. Thus, Prefix_Length can be used to determine (exactly) how much time should be taken in the search of Table2.

    Output:
    Country | Prefix | Area | Population
    Travel | 001 | AreaA | 600
    CountryB. 0012 | AreaB | 1000
    PaysC | 00443 | AreaC. 400
    CountryD | 0091 | ALIS | 300

    Please help me with your valuable comments.

    -Tender

    Try this

    with base_table as (
                        select 'CountryA' country,'001' prefix,3 prefix_length from dual union all
                        select 'CountryB','0012',4 from dual union all
                        select 'CountryC','00443',5 from dual union all
                        select 'CountryD','0091',4 from dual
                       ),
       detail_table as (
                        select 10 no_of_call,'0015921' prefix from dual union all
                        select 3,'00122' from dual union all
                        select 50,'00443743' from dual union all
                      select 50,'00443643' from dual union all
                        select 300,'0091333' from dual union all
                        select 60,'001' from dual
                       ) 
    
    SELECT  country,
            prefix,sum(no_of_call)
       FROM (
             select  country,
            b.prefix,no_of_call,
            decode(no_of_call,lead(no_of_call,1,0) over(partition by no_of_call order by b.prefix,no_of_call),'y','n') y_or_no
      from  base_table b,
            detail_table d
      where b.prefix = substr(d.prefix,1,prefix_length))
      where y_or_no !='y'
      group by  country,
            prefix
      order by country,
            prefix;
    

    Published by: Vi on 20 February 2012 01:07

  • ADF: How to fill a column in a table with a specific color

    Hi all
    I want to fill the cells of table with different colors based on the value (for example: 10, 40...) in this cell output text area.
    Help, please.

    Rognard

    Hello

    You can use the same code for the inlinestyle column: but it will color the entire column


    headerText = "#{bindings." EmployeesView1.hints.Salary.label}.
    ID = "c9".
    inlineStyle = "#{yourconAttr > 10?'" background-color: Red;': ' background-color: Orange ;'} ">}"

  • Columns inside the table with 100%

    Here's my problem-/.

    http://img230.imageshack.us/img230/7724/imagemvi.jpg

    I can't make columns of my table fill the space table.

    Hello

    You should take a look at the attribute FY columnStretching: table.

    Hope this helps

    Joseba

  • Pass reference in table 2D with several lines-&gt; Subvi - sees only 1 rank of the number of lines

    What I am doing wrong?

    Of course it is. The Value property. That feed into the size of the array. The output of the size of the table is a table - one element for each dimension of your table.

Maybe you are looking for