Tag Values in the partition Table

I get the following information when I use format to print the partition table:
Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 25 129.19MB (26/0/0) 264576
1 swap wu 26 - 51 129.19MB (26/0/0) 264576
2 backup wu 0 - 14086 68.35GB (14087/0/0) 143349312
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 usr wm 52 - 14086 68.10GB (14035/0/0) 142820160
7 unassigned wm 0 0 (0/0/0) 0
I know the possible tag values are unassigned, boot, root, swap, usr, backup, var, home, reserved. However, what does each of these tag value mean? If I assign a tag value of var to a partition does that mean I have to use that partition as a /var?
Thanks,
Paul0al

answer #1 - man -s 1m prtvtoc
answer #2 - no, not at all... once a partition is created, so long as you're trying to use a wm (Read/write Mountable) as a mounted filesystem (once newfsing or mkfsing is done) and not trying to use a wu as a mounted filesystem, you can name the slices anything you want - it's pretty much arbitrary (just used for your own personal sanity)

Similar Messages

  • Using two cursors, one for updating salary values in the emp table

    Using COPIES of the employee and department tables provided by Oracle or using similar taples that provide employee, salary, job and dept in one table and dept number and department name in another table, write the following program. Use the dept table to step through sequentially and bring up the records with the same department from the employee table. Using an IF statement calcuate a new salary based on the job (you decide on the criteria). Update each record on the employee file (this is why you should use copies) with the new salary. In addition, calculate the total salary for each department and create a new table with the department number, the department name and the salary.
    I'm able to update the salary values, but I'm not sure how to insert those updated values into an empty table the way this problem is asking me to.
    Here's my script so far: any help would be greatly appreciated: )
    declare
    v_deptno emp.deptno%type;
    v_job emp.job%type;
    v_sal emp.sal%type;
    v_dname dept.dname%type;
    v_deptsal totalsal.deptsal%type;
    cursor salup_c is
    select job,sal
    from emp,dept
    where emp.deptno = dept.deptno
    for update of sal;
    cursor totdeptsal_c is
    select dname,sal
    from emp,dept
    where emp.deptno = dept.deptno;
    Begin
    open salup_c;
    loop
    fetch salup_c into v_job,v_sal;
    exit when salup_c%notfound;
    if v_job = 'CLERK' then
    v_sal := v_sal + 10;
    else
    if v_job = 'ANALYST' then
    v_sal := v_sal + 20;
    else
    if v_job = 'MANAGER' then
    v_sal := v_sal + 30;
    else
    if v_job = 'PRESIDENT' then
    v_sal := v_sal + 40;
    else v_sal := v_sal + 50;
    end if;
    end if;
    end if;
    end if;
    update emp
    set sal = v_sal
    where current of salup_c;
    open totdeptsal_c;
    v_deptsal := 0;
    loop
    fetch totdeptsal_c into v_dname, v_deptsal;
    exit when totdeptsal_c%notfound;
    v_deptsal := v_deptsal + v_sal;
    insert into totalsal
    values(v_deptno,v_dname,v_deptsal);
    end loop;
    close totdeptsal_c;
    end loop;
    close salup_c;
    end;
    /

    The script is actually inserting some values into the new table but look at what I'm getting
    Here it is: i only want the dept number ,the dept name, and total salary for each department.
    SQL> @ sndprob;
    PL/SQL procedure successfully completed.
    SQL> select * from totalsal;
    DEPTNO DNAME DEPTSAL
    RESEARCH 1620
    SALES 2410
    SALES 2060
    RESEARCH 3785
    SALES 2060
    SALES 3660
    ACCOUNTING 3260
    RESEARCH 3810
    ACCOUNTING 5810
    SALES 2310
    RESEARCH 1910
    DEPTNO DNAME DEPTSAL
    SALES 1760
    RESEARCH 3810
    ACCOUNTING 2110
    RESEARCH 2460
    SALES 3300
    SALES 2900
    RESEARCH 4625
    SALES 2900
    SALES 4500
    ACCOUNTING 4100
    RESEARCH 4650
    DEPTNO DNAME DEPTSAL
    ACCOUNTING 6650
    SALES 3150
    RESEARCH 2750
    SALES 2600
    RESEARCH 4650
    ACCOUNTING 2950
    RESEARCH 2110
    SALES 2950
    SALES 2600
    RESEARCH 4275
    SALES 2550
    DEPTNO DNAME DEPTSAL
    SALES 4150
    ACCOUNTING 3750
    RESEARCH 4300
    ACCOUNTING 6300
    SALES 2800
    RESEARCH 2400
    SALES 2250
    RESEARCH 4300
    ACCOUNTING 2600
    RESEARCH 3815
    SALES 4655
    DEPTNO DNAME DEPTSAL
    SALES 4305
    RESEARCH 6010
    SALES 4255
    SALES 5855
    ACCOUNTING 5455
    RESEARCH 6005
    ACCOUNTING 8005
    SALES 4505
    RESEARCH 4105
    SALES 3955
    RESEARCH 6005
    DEPTNO DNAME DEPTSAL
    ACCOUNTING 4305
    RESEARCH 2110
    SALES 2950
    SALES 2600
    RESEARCH 4305
    SALES 2600
    SALES 4150
    ACCOUNTING 3750
    RESEARCH 4300
    ACCOUNTING 6300
    SALES 2800
    DEPTNO DNAME DEPTSAL
    RESEARCH 2400
    SALES 2250
    RESEARCH 4300
    ACCOUNTING 2600
    RESEARCH 3690
    SALES 4530
    SALES 4180
    RESEARCH 5885
    SALES 4180
    SALES 5760
    ACCOUNTING 5330
    DEPTNO DNAME DEPTSAL
    RESEARCH 5880
    ACCOUNTING 7880
    SALES 4380
    RESEARCH 3980
    SALES 3830
    RESEARCH 5880
    ACCOUNTING 4180
    RESEARCH 3290
    SALES 4130
    SALES 3780
    RESEARCH 5485
    DEPTNO DNAME DEPTSAL
    SALES 3780
    SALES 5360
    ACCOUNTING 4960
    RESEARCH 5480
    ACCOUNTING 7480
    SALES 3980
    RESEARCH 3580
    SALES 3430
    RESEARCH 5480
    ACCOUNTING 3780
    RESEARCH 3830
    DEPTNO DNAME DEPTSAL
    SALES 4670
    SALES 4320
    RESEARCH 6025
    SALES 4320
    SALES 5900
    ACCOUNTING 5500
    RESEARCH 6040
    ACCOUNTING 8020
    SALES 4520
    RESEARCH 4120
    SALES 3970
    DEPTNO DNAME DEPTSAL
    RESEARCH 6020
    ACCOUNTING 4320
    RESEARCH 5850
    SALES 6690
    SALES 6340
    RESEARCH 8045
    SALES 6340
    SALES 7920
    ACCOUNTING 7520
    RESEARCH 8060
    ACCOUNTING 10080
    DEPTNO DNAME DEPTSAL
    SALES 6540
    RESEARCH 6140
    SALES 5990
    RESEARCH 8040
    ACCOUNTING 6340
    RESEARCH 2360
    SALES 3200
    SALES 2850
    RESEARCH 4555
    SALES 2850
    SALES 4430
    DEPTNO DNAME DEPTSAL
    ACCOUNTING 4030
    RESEARCH 4570
    ACCOUNTING 6590
    SALES 3100
    RESEARCH 2650
    SALES 2500
    RESEARCH 4550
    ACCOUNTING 2850
    RESEARCH 1920
    SALES 2760
    SALES 2410
    DEPTNO DNAME DEPTSAL
    RESEARCH 4115
    SALES 2410
    SALES 3990
    ACCOUNTING 3590
    RESEARCH 4130
    ACCOUNTING 6150
    SALES 2660
    RESEARCH 2220
    SALES 2060
    RESEARCH 4110
    ACCOUNTING 2410
    DEPTNO DNAME DEPTSAL
    RESEARCH 1770
    SALES 2610
    SALES 2260
    RESEARCH 3965
    SALES 2260
    SALES 3840
    ACCOUNTING 3440
    RESEARCH 3980
    ACCOUNTING 6000
    SALES 2510
    RESEARCH 2070
    DEPTNO DNAME DEPTSAL
    SALES 1920
    RESEARCH 3960
    ACCOUNTING 2260
    RESEARCH 3830
    SALES 4670
    SALES 4320
    RESEARCH 6025
    SALES 4320
    SALES 5900
    ACCOUNTING 5500
    RESEARCH 6040
    DEPTNO DNAME DEPTSAL
    ACCOUNTING 8060
    SALES 4570
    RESEARCH 4130
    SALES 3980
    RESEARCH 6040
    ACCOUNTING 4320
    RESEARCH 2120
    SALES 2960
    SALES 2610
    RESEARCH 4315
    SALES 2610
    DEPTNO DNAME DEPTSAL
    SALES 4190
    ACCOUNTING 3790
    RESEARCH 4330
    ACCOUNTING 6350
    SALES 2860
    RESEARCH 2420
    SALES 2270
    RESEARCH 4330
    ACCOUNTING 2620
    196 rows selected.

  • How to add field value to the standard table

    Hi,
    How to add field value to the standard table?
    for example:
    when we go to TCODE SE16-> VBAK table -> on the selection screen if we press F4 against VBTYP we get all the available values for that field. How to add a new document Category value to this field so that it shows up in F4 help for that field.

    Hi Asif,
    I don't think it is possible and feasible for adding new field value to the field VBTYP because it is not possible through SPRO.
    If u see the domain of this field VBTYP we have fixed values provided by SAP. There is no value table for this. If u have value table then it will be updated through SPRO. But still if u really want to add some value u can do that by getting access key and add the value in the fixed values of the domain. But of no use other than simply displaying in F4. Because for what ever value u created here there will be no documents in VBAK or any table using this domain.
    Hope this is clear for u.
    Thanks,
    Vinod.

  • Filtering  Unique values in the Hash table

    Hi Friends,
    Could you please tell me I want to Filtering the values in the Hash table.The Values are our own objects.
    E.G
    class Emp
    private String EmpID=null;
    public void setEmpId(String Id)
    EmpId=id;
    public void getEmpId()
    return this.EmpId;
    public static void main(String[] args)
    Hashtable hastab=new Hashtable();
    Emp e1=new Emp();
    e1.setEmpId("A");
    Emp e2=new Emp();
    e2.setEmpId("B");
    Emp e3=new Emp();
    e3.setEmpId("A");
    Emp e4=new Emp();
    e4.setEmpId("C");
    Emp e5=new Emp();
    e5.setEmpId("A");
    hastab.put("1",e1);
    hastab.put("2",e2);
    hastab.put("3",e3);
    hastab.put("4",e4);
    hastab.put("5",e5);
    I want to filter the duplicate values in the Hashtable.
    Thanks in Advance
    Rajesh Kannan

    Could you please tell me how i will Filter duplicate
    valus inside the objectI'm sorry, but I can't read the future.

  • Incorrect value in the dynamic table.

    Hii,
          I am new to abap, i wrote a program which is showing dump  " Incorrect value in the dynamic table." .
       Error in the ABAP Application Program
       The current ABAP program "SAPLKKBL" had to be terminated because it  come across a statement that unfortunately cannot be executed.
    pls help me to solve this issue.
    REPORT  zBLOCKED_ALV.
    *tables: ekko,ekpo.
    type-pools slis.
    parameters porder like ekko-ebeln.
    data:  i_ekko type   table of ekko,
              i_ekpo type   table of ekpo,
             fieldcat type slis_t_fieldcat_alv,
             keyinfo type slis_keyinfo_alv.
      clear keyinfo.
      keyinfo-header01 = 'ebeln'.
      yinfo-item01 = 'ebeln'.
    select * from ekko into table i_ekko where ebeln = porder.
      select * from ekpo into table i_ekpo for all entries in i_ekko
        where ebeln = i_ekko-ebeln.
        CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
          EXPORTING
            I_PROGRAM_NAME               = sy-cprog
            I_INTERNAL_TABNAME           = 'i_ekko'
            I_STRUCTURE_NAME             = 'ekko'
          CHANGING
            CT_FIELDCAT                  = fieldcat.
    refresh fieldcat.
        CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
          EXPORTING
            I_PROGRAM_NAME               = sy-cprog
            I_INTERNAL_TABNAME           = 'i_ekpo'
            I_STRUCTURE_NAME             = 'ekpo'
          CHANGING
            CT_FIELDCAT                  = fieldcat.
    CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
      EXPORTING
        I_CALLBACK_PROGRAM             = sy-cprog
        IT_FIELDCAT                    = fieldcat
        I_TABNAME_HEADER               = 'i_ekko'
        I_TABNAME_ITEM                 = 'i_ekpo'
        IS_KEYINFO                     = keyinfo
      TABLES
        T_OUTTAB_HEADER                = i_ekko
        T_OUTTAB_ITEM                  = i_ekpo.

    Hi,
    You have to pass 'EKKO' and 'EKPO' i.e in caps to the exporting parameter I_STRUCTURE_NAME of the function module
    'REUSE_ALV_FIELDCATALOG_MERGE'.
    I think this would work, if not pls let me know.
    Thanks,
    Radhika

  • Modify the partition table

    Hi,
    Please let me know how to modify the partition table of the disk on to which root is mounted. I want to extend the root space, by modifying the partition table.
    Is there any other way of extending the root disk space?
    Thanks in Advance
    - Sarat.

    Take backup, re-partition, newfs, restore (you are talking about simple root, no mirroring/veritas, right?)

  • Create a query to compare values from the same table

    Suppose you have the below table, same ID's occur for same month as well as different month
    ID Month Value
    226220      201203     100
    1660      201204     200
    26739      201204     1010
    7750     201205     31.1
    I need a query to determine the below laid result
    ID Month Prior_month_value Prior_Month Value
    1234 201203 10 201201 100
    3456 201206 56.1 201204 78
    Please help
    Edited by: Jaguar on Jul 10, 2012 3:00 AM

    As mentioned, you can use the analytical function lag...
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (select 226220 as id, 201203 as mnth, 100 val from dual union all
      2             select 1660, 201204, 200 from dual union all
      3             select 226220, 201204, 1010 from dual union all
      4             select 1660, 201206, 31.1 from dual union all
      5             select 7750, 201205, 60 from dual)
      6  --
      7  -- end of test data
      8  --
      9  select id
    10        ,mnth
    11        ,val
    12        ,lag(mnth) over (partition by id order by mnth) as prev_month
    13        ,lag(val) over (partition by id order by mnth) as prev_val
    14  from t
    15* order by id, mnth
    SQL> /
            ID       MNTH        VAL PREV_MONTH   PREV_VAL
          1660     201204        200
          1660     201206       31.1     201204        200
          7750     201205         60
        226220     201203        100
        226220     201204       1010     201203        100Edit to Add...
    and to filter out just the ones where there is a previous month...
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (select 226220 as id, 201203 as mnth, 100 val from dual union all
      2             select 1660, 201204, 200 from dual union all
      3             select 226220, 201204, 1010 from dual union all
      4             select 1660, 201206, 31.1 from dual union all
      5             select 7750, 201205, 60 from dual)
      6  --
      7  -- end of test data
      8  --
      9  select id, mnth, val, prev_month, prev_val
    10  from (
    11        select id
    12              ,mnth
    13              ,val
    14              ,lag(mnth) over (partition by id order by mnth) as prev_month
    15              ,lag(val) over (partition by id order by mnth) as prev_val
    16        from t
    17       )
    18  where prev_month is not null
    19* order by id, mnth
    SQL> /
            ID       MNTH        VAL PREV_MONTH   PREV_VAL
          1660     201206       31.1     201204        200
        226220     201204       1010     201203        100Edited by: BluShadow on 10-Jul-2012 11:32

  • Resizing the partition table

    Hi Guys,
    I got 800G Volume from Equallogic on Solaris 10. It was created with newfs -T but now I have to expand it to 1.5 TB but somehow Solaris is not getting right
    LUN geometry size. Any comments/suggestions ?
    It is shrinking the size to 136.02 GB rather than expanding to 1.5TB
    Mode sense page(3) reports nsect value as 3000, adjusting it to -1096
    Please help me to solve this.
    Here are my steps
    Expand LUN size from 800G to 1.5 TB on Equallogic
    umount /san/users on Solaris
    bash-3.00# format
    Searching for disks...done
    AVAILABLE DISK SELECTIONS:
    0. c0t0d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
    /pci@1e,600000/pci@0/pci@a/pci@0/pci@8/scsi@1/sd@0,0
    1. c0t1d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
    /pci@1e,600000/pci@0/pci@a/pci@0/pci@8/scsi@1/sd@1,0
    2. c1t6090A038105649B7A7A0F4324C81EE5Bd0 <EQLOGIC-100E-00-4.0 cyl 65533 alt 2 hd 16 sec 1600>
    /scsi_vhci/ssd@g6090a038105649b7a7a0f4324c81ee5b
    Specify disk (enter its number): 2
    selecting c1t6090A038105649B7A7A0F4324C81EE5Bd0
    [disk formatted]
    FORMAT MENU:
    disk - select a disk
    type - select (define) a disk type
    partition - select (define) a partition table
    current - describe the current disk
    format - format and analyze the disk
    repair - repair a defective sector
    label - write label to the disk
    analyze - surface analysis
    defect - defect list management
    backup - search for backup labels
    verify - read and display labels
    save - save new disk/partition definitions
    inquiry - show vendor, product and revision
    volname - set 8-character volume name
    !<cmd> - execute <cmd>, then return
    quit
    format> t
    Mode sense page(3) reports nsect value as 3000, adjusting it to -1096
    AVAILABLE DRIVE TYPES:
    0. Auto configure
    1. Quantum ProDrive 80S
    2. Quantum ProDrive 105S
    3. CDC Wren IV 94171-344
    4. SUN0104
    5. SUN0207
    6. SUN0327
    7. SUN0340
    8. SUN0424
    9. SUN0535
    10. SUN0669
    11. SUN1.0G
    12. SUN1.05
    13. SUN1.3G
    14. SUN2.1G
    15. SUN2.9G
    16. Zip 100
    17. Zip 250
    18. Peerless 10GB
    19. SUN146G
    20. EQLOGIC-100E-00-4.0
    21. other
    Specify disk type (enter its number)[20]: 0
    Mode sense page(3) reports nsect value as 3000, adjusting it to -1096
    c1t6090A038105649B7A7A0F4324C81EE5Bd0: configured with capacity of 136.02GB
    <EQLOGIC-100E-00-4.0 cyl 8608 alt 2 hd 16 sec 64440>
    selecting c1t6090A038105649B7A7A0F4324C81EE5Bd0
    [disk formatted]
    Thanks,
    Farhan

    I think Andreas is referring to fdisk partition 2, not slice 2, as his first image
    indicates.
    It sounds like Andreas was able to expand the size of fdisk partition 1 while
    booting from Live media without corrupting his root file system, if I'm reading
    this correctly. This probably worked because the new partition 1 started in
    the same location.
    In general, I wouldn't recommend this approach. Its like pulling the tablecloth
    and expecting the glass and silverware to remain in tact.
    However, I see some s11 enhancements that might make this more doable
    so I need to investigate.
    Alternative approaches are to attach a larger (spare) disk and detach the smaller
    disk.
    Thanks,
    Cindy

  • When i am retreiving the values from the access table i am getting null val

    hi all,
    I comeacross the following problem,I connected my applet to the Access database with jdbc:odbc driver.
    I am trying to retreive the values from the table.I am getting the result correctly when the same code with using applet it was giving the correct result.
    when I am using an applet program it was giving the null value istead of the actual records.
    can anybody tell me the reason why
    thanks in advance
    and also how to connect the databse in the webserver when i installed my applet in the client side
    please give me some suggestions to do that
    thankyou
    lakshman

    Hi Krishna,
    Can you please copy the code generated by ODI for creating your C$ table ?
    i mean :- create table C$_0Entity ( from the operator log
    Regards,
    Rathish A M

  • Calculating a count of rows where value matches another column value in the same table

    Hi,
    I'm struggling to do something in DAX that seems to me should be super easy (coming from a SQL world)!
    That is to count all rows in column 1 where the value matches the current value for column 1?
    E.g something like this:
    [Col2]=Count of rows in [Col1] where value = this.[Col1]
    Where the results are as in the table below:
    Col1, Col2
    A, 2
    A, 2
    B, 1
    Anyone?
    Martin Laukkanen
    Nearbaseline blog - nearbaseline.com/blog
    Bulk Edit and other Apps - nearbaseline.com/apps

    Thanks, that's perfect! 
    I knew it had to be something so simple, but after spending over an hour banging my head against those exact functions I couldn't get anything working!
    Martin Laukkanen
    Nearbaseline blog - nearbaseline.com/blog
    Bulk Edit and other Apps - nearbaseline.com/apps

  • Can I Use The RTE_ROWKEY or RTE_ROW_ID values in the WB_RT_ERRORS Table?

    Can I use these values in any way to identify the specific row in the table that is generating the error? If not, is there another way to link the row in the WB_RT_ERRORS table to the specific row in the table that generated the error?

    Could you be more clear?

  • Help on fetching values form the Database Tables

    Hi,
    I am working on fetching the values from the Oracle base tables.
    First the order will be submitted by the customer. Depending on the city name he mentioned I need to route the order details to two different queues.
    For example if I(customer) insert a list of values(order details) to a table name "X" with the with city name as "San Jose" I need to fetch the values from this table "X" and route them to a Queue"A".
    And again if I insert a list of values to a table name "X" with the with city name as "Milpitas" I need to fetch the values from the table "X" and route them to a Queue"B".
    How do I do this in ESB. I know how to use Database adapter and MQ adapter to create connections between Table and queue.
    Can any one help me on this.
    Thanks
    Ramana.

    Hi Ramana,
    Your use case may be implemented using Oracle ESB like this:
    - Specify a database adapter for reading from DB, your table X. Select an appropriate polling strategy for this. When you finish the wizard, you should have a DB service and get a Routing Service (RS) "for free". The DB service should already be wired to the RS.
    - Specify queuing services add appropriate routing rules with filters (that are based on the message content) and message transformations in your RS in order to route data to the queue of your choice.
    Hth, Sjoerd

  • XML access to atributes and tag values at the same time

    Hi to everyone,
    I'm making some experiences with Flex, but I already have some experience with Flash and AS3.
    What I'm trying to accomplish, is to make a small application that uses webservices from the Weather Channel. The first part of the application is to ask the user his location. Then the location is sent to the webservice and the system return an XML with the possible matches. The user chooses one, and the weather information is shown.
    I have no problem with the navigation, or passing the results from one stage to another, but I'm having a problem, that I think it has an easy fix, but I can't get a light or answer from what I've seen from these forums or webasites... I suspect it's because the format of the XML that is return.
    For example, my request is this one: http://xoap.weather.com/search/search?where=aveiro
    wich return two possible locations, in this way:
    <search ver="3.0">
         <loc id="BRXX1094" type="1">Aveiro, Brazil</loc>
         <loc id="POXX0006" type="1">Aveiro, Portugal</loc>
    </search>
    Well, I want to display in a Datagrid the "id" attribute, and the "loc" tag value, i.e, "Aveiro, Brazil" and "Aveiro, Portugal".
    I defined the DataGrid like this:
    <mx:DataGrid x="10" y="53" width="365" id="dgLocation" dataProvider="{wSearch.lastResult.loc}" itemClick="callService(event);">
          <mx:columns>
                 <mx:DataGridColumn headerText="Localidade" dataField="loc"/>
                 <mx:DataGridColumn headerText="Referência" dataField="@id"/>
          </mx:columns>
    </mx:DataGrid>
    In the "loc" dataField, doesn't show anything, and the "@id" does display the correct information. Since I only have "loc" tag inside the main root tag, how can I get teir values? With labelFunction? How would you write it to get the information?
    This is my last try:
    private function getLocationName(item:Object, column:DataGridColumn):String{
           var xmlitem:XML=XML(item);
           trace(xmlitem.loc.toXMLString());
           return item.loc;
    Any ideias are welcome. Thanks.

    This seems to work:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
      creationComplete="wSearch.send();">
      <mx:Script>
        <![CDATA[
          import mx.controls.dataGridClasses.DataGridColumn;
          private function getData(item:Object, column:DataGridColumn):String{
            return XML(item).valueOf();
        ]]>
      </mx:Script>
      <mx:HTTPService id="wSearch" url="http://xoap.weather.com/search/search?where=aveiro"
        resultFormat="e4x"/>
      <mx:DataGrid x="10" y="53" width="365" id="dgLocation"
        dataProvider="{wSearch.lastResult.loc}">
        <mx:columns>
          <mx:DataGridColumn headerText="Localidade" labelFunction="getData"/>
          <mx:DataGridColumn headerText="Referência" dataField="@id"/>
        </mx:columns>
      </mx:DataGrid>
    </mx:Application>
    If this post answers your question or helps, please mark it as such.
    Greg Lafrance - Flex 2 and 3 ACE certified
    www.ChikaraDev.com
    Flex / AIR Development, Training, and Support Services

  • Displaying a total sum value in the af:table - footer

    Hello everyone,
    I have seen various threads on how to calculate a summary column based on a af:column in an af:table. I would like the value of this column to be displayed in the af:table -> footer (right undernead the af:column)
    I'm having trouble putting together the pieces. This is the last requirement I have on this page, so hopefully I won't have to start all over.
    Here this what I have:
    I have created my page. (jspx) I did not create the page with a "backing bean". I have seen in various threads that the backing bean can be used to programmatically populate the table.
    This is what I have done so far.
    For the DataModel:
    I have created my entity object, and I have a view assigned to the object. I assigned the view to my Application Module.
    For the UserInterface:
    On the layout, I dragged the instance of the view from the page definition. I created an af:table.
    My questions/train of thought are:
    I didn't create a "backing bean" when I first created my jspx page. From the various threads that I have seen, they all reference this. Can anyone explain how I can do this when the page has already been created? I'm using jdev version 10.1.3.3
    Within the backing bean, I assume this is where I would then create a method that would do the "sum" of my column.
    To display the column:
    I would then create an af:output_text and drag it to theh table footer. The binding section
    If anyone has a prior thread that I haven't found that can point me in the right direction with what I already I would really appreciate it.
    Thanks

    Kuba,
    By creating a managed bean against the page definition, you are able to access the "iterator". The iterator is an object that is based off of hte View object (which the page is build off of)... From there, you can then loop through the rows and add them together to come up with the total sum.
    You can then reference this method in the TEST.java class since it was created as a managed bean.
    I believe I got the gist of it now... Coming from an Oracle Forms perspecitive, it is actually pretty similar. Now I understand what Managed Beans are used for. Thanks again for the great example.
    Danny

  • Render a column based on other column value in the same table

    JDev 11.1.1.6.0
    This may be a silly question but I am stuck
    I need to conditionally render a column say A. Condition is like if the value in the other column B of same table is equal to F. I should render column A only when this condition is satisfied. I have tried the following code:
    <af:column sortProperty="PhoneNumber1"
    sortable="false"
    headerText="#{bindings.A.hints.PhoneNumber1.label}"
    id="c146"
    rendered="#{row.PhoneNumber1ResponseFlag eq 'F'}">
    <af:outputText value="#{row.PhoneNumber1}"
    id="ot130"/>
    </af:column>
    <af:column sortProperty="PhoneNumber1ResponseFlag"
    sortable="false"
    headerText="#{bindings.B.hints.PhoneNumber1ResponseFlag.label}"
    id="c80" rendered="true">
    <af:outputText value="#{row.PhoneNumber1ResponseFlag}"
    id="ot129"/>
    </af:column>
    The data shown in the table for column  PhoneNumber1ResponseFlag is F. Still my condition is not working.

    Timo was saying that it is not possible to render the column in some situations and not in anothers, you will always have to render the column.
    The best way to do this is instead of showing a column with the text ' ', show something meaningfull to the user. This is a DataWarehouse advice to you and may be usefull since you're using ADF in a area that uses DataWarehouse..
    So the code could be something like this (based on Timo's code):
    <af:column sortProperty="PhoneNumber1"
    sortable="false"
    headerText="#{bindings.A.hints.PhoneNumber1.label}"
    id="c146">
    <af:outputText value="#{row.PhoneNumber1ResponseFlag eq 'False.' ? row.PhoneNumber1 : 'No value applied.'"
        id="ot130"/>
    </af:column>
    <af:column sortProperty="PhoneNumber1ResponseFlag"
    sortable="false"
    headerText="#{bindings.B.hints.PhoneNumber1ResponseFlag.label}"
    id="c80">
    <af:outputText value="#{row.PhoneNumber1ResponseFlag}"
        id="ot129"/>
    </af:column>
    Hope that helps,
    Frederico.

Maybe you are looking for

  • F110 - Company Number Error in Scheduled Job.

    Dear Experts, In T code:F110 (Automatic Payment Transaction) the identification is created and variant is saved for the same, now when the payment run is done and when we see the job log in T code: SM37 the Job is getting cancelled and the error come

  • Photoshop CS5 crashing when printing on a mac

    I was wondering if anyone has come across the following problem and can help me out. When sending my a document to print Photoshop closes and I get the following error message. If anyone has seen this before and has any suggestions i would be greatly

  • IMac Sound Disabled Occasionally On Start Up?

    So as the title says when I boot up my iMac, on occasion, it seems to have the "Updating" Status bar, then the mac boots normally, then the sound is disabled. As I said though this dose not happed all the time but when it dose the only way to fix it

  • Why won't this show (same) four pages in the Adobe Reader?

    %PDF-1.6 3 0 obj <</Type /Font /BaseFont /Times-Italic /Subtype /Type1 >> endobj 6 0 obj <</Length 158 >> stream 1 0 0 1 50 200 cm /X1 Do 1 0 0 1 0   200 cm /X1 Do 1 0 0 1 0   200 cm /X1 Do 1 0 0 1 200 -400 cm /X1 Do 1 0 0 1 0 200 cm /X1 Do 1 0 0 1 0

  • HELP!!!! Updating iphone 5s to the lastest IOS 8.1.1 has taken more than 2 hours

    Updating iPhone 5s to IOS 8.1.1 and it is taking almost 2 hours to update. The bar is possibly at 85-90%. I think it has frozen. Please advise.....