How to create a sort priority

Rather than sorting by ascending or descending values, is there a way to create your own priority. For example, what if I wanted to have a military rank column and sort from general -->major-->captain-->private?
Thanks

Hi Arasarhood,
Your tag shows iOS. This is the Numbers for Mac forum for OS X. I don't know how this will work in iOS.
However, here we go for Numbers 3.2 on OS X Mavericks.
You can do a multi-column sort in the Sort & Filter Panel. Add a Column until you get all that you want.
If that sort order is not what you want, drag the sorting rules to a new sort order. Hover the cursor over a rule until you see this:
Three horizontal lines on the left. (The garbage bin on the right is the way to delete a sorting rule).
Regards,
Ian.

Similar Messages

  • How to create a sort of drop down menu at mouse location please?

    Hello,
    I would like to create a sort of drop down menu. When the user right clicks, I would like to create something similar as if you right click in your browser, or right click in this forum text box area (you get "undo", "copy", "paste".. that appears right next to the mouse).
    What Swing class would you use for that please?
    Thank you very much.

    Use a JPopupMenu
    You will need to add a MouseListener that shows it to the component you want to display it on.

  • How to create a sort in Office 365 search filter pane

    Hi,
    I am using Office 365.My first issue is i uploaded an image in Asset Library and searched for that image but i didn't get that image in results.
    Second i added some keyword to that image while uploading  and i searched with those keywords still no luck.
    Third, If i have created a column in of Choice lets say "Selected" and "Rejected"  how could i make this column as a filter option in search result page. Like default search filter for Excel, PDF, Word Document, People.
    Please guide me on this...

    Hi,
    According to your post, my understanding is that you wanted to create a custom refiner in search result page.
    There are two articles about the step and step to add custom refiners in the Refinement Panel of Search Results page for SharePoint Online, you can have a look at them.
    http://blogs.technet.com/b/sharepoint_made_easy/archive/2013/03/19/step-by-step-configuration-to-add-custom-refiners-in-the-refinement-panel-of-search-results-page-for-sharepoint-online.aspx
    http://rikdekker.wordpress.com/2013/12/19/how-to-create-custom-refiners-in-sharepoint-online/
    As this is the forum for SharePoint server, I recommend you can post your question to the forum for SharePoint Online:
    http://community.office365.com/en-us/forums/154.aspx.
    More experts will assist you, then you will get more information relation to SharePoint Online.
    Thank you for your understanding and support.
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • How would I create this sort of effect?

    I have attached an image and I need to know how to create this sort of border around a text....
    If anyone could give an "idiots" guide that would be great!!
    I really have tried but don't seem to be getting anywhere and i'm sure there's an easy shortcut somewhere.

    You can have a stroke that fills in the open spaces within ("the counters") by adding a pathfinder effect to the mix - I wrote up a tutorial here: http://www.illustratorhints.com/2010/05/fill-in-the-counters-on-live-text/
    Actually, that shows your whole question I think - I used offset fills instead of strokes, but the idea is the same.

  • How to create a Dynamic Datatable with sorting functioanlity

    Hi,
    I am new to JSF and need some help can some one please tell me how to create a dynamic datatable with sorting functionality. I am reading data data from a database table and wants to build the datatable dynamically based on the columns returned. I know how to created a datatble with a fixed number of columns but can't figure out how to create a datatable dynamically with sort functionality. Any small example will help.
    Thanks

    Hi,
    Here is what I have so far and can't figure out how to add the sorting functionality. Any help is appreciated.
    Managed Bean:
    private List<MyDto> data ;
        public HtmlDataTable getDataTableOne ()
            if ( dataTableOne == null )
                populateCheckBoxes () ; // Preload.
                populateDynamicDataTableOne () ;
            return dataTableOne ;
        public void populateCheckBoxes ()
            data = new ArrayList<MyDto> () ;
            MyDto myDto1 = new MyDto () ;
            MyDto myDto2 = new MyDto () ;
            MyDto myDto3 = new MyDto () ;
            MyDto myDto4 = new MyDto () ;
            myDto1.setChecked ( true ) ;
            myDto1.setValue ( "myDto1" ) ;
            myDto2.setChecked ( false ) ;
            myDto2.setValue ( "myDto2" ) ;
            myDto3.setChecked ( false ) ;
            myDto3.setValue ( "myDto3" ) ;
            myDto4.setChecked ( true ) ;
            myDto4.setValue ( "myDto4" ) ;
            data.add ( myDto1 ) ;
            data.add ( myDto2 ) ;
            data.add ( myDto3 ) ;
            data.add ( myDto4 ) ;
        public void populateDynamicDataTableOne ()
            dataTableOne = new HtmlDataTable () ;
            UIOutput header = new UIOutput () ;
            header.setValue ( "" ) ;
            UIColumn tableColumn ;
            tableColumn = new UIColumn () ;
            HtmlOutputText textHeader = new HtmlOutputText () ;
            textHeader.setValue ( "" ) ;
            tableColumn.setHeader ( textHeader ) ;
            HtmlSelectBooleanCheckbox tCheckBox = new HtmlSelectBooleanCheckbox () ;
            tCheckBox.setValueBinding ( "value" , FacesContext.getCurrentInstance ().getApplication ().createValueBinding ( "#{row.checked}" ) ) ;
            tableColumn.getChildren ().add ( tCheckBox ) ;
            // Set output.
            UIOutput output = new UIOutput () ;
            ValueBinding myItem = FacesContext.getCurrentInstance ().getApplication ().createValueBinding ( "#{row.value}" ) ;
            output.setValueBinding ( "value" , myItem ) ;
            // Set header (optional).
            UIOutput header2 = new UIOutput () ;
            header2.setValue ( "" ) ;
            UIColumn column = new UIColumn () ;
            column.setHeader ( header2 ) ;
            column.getChildren ().add ( output ) ;
            dataTableOne.getChildren ().add ( tableColumn ) ;
            dataTableOne.getChildren ().add ( column ) ;
    MyDto.java
    public class MyDto
        private Boolean checked;
        private String value;
        public MyDto ()
        public void setChecked ( Boolean checked )
            this.checked = checked;
        public Boolean getChecked ()
            return checked ;
        public void setValue ( String value )
            this.value = value;
        public String getValue ()
            return value ;
    JSP
    <h:dataTable id="table" value="#{myRequestBean.data}" binding="#{myRequestBean.dataTableOne}" var="row" />Thanks

  • Crystal Report. How to create sort field programmatically?

    After updating CrystalReports to version 13.0.10 I noticed a strange feature in Details section. I'm filling in the Subreport Details section from the User Table. Previously the data was displayed in the order it was in the database. Every time I open the report data now it is displayed in a different order. There is a huge amount of crystal report documents and I am not able to change each document. Is it possible to add a new sorting field programmatically? (I found only how to change existing sort fields)

    Hi Aliaksandr,
    I used the top right corner search box on this page and enterred "sort, field, runtime, crystal, sdk, .net" keywords.
    Here are the first three results.
    http://search.sap.com/notes?id=0001201611&boj=/sap/bc/bsp/spn/scn_bosap/notes.do?access=69765F6D6F64653D3939382669765F7361706E6F7465735F6E756D6265723D30303031323031363131
    http://search.sap.com/notes?id=0001638023&boj=/sap/bc/bsp/spn/scn_bosap/notes.do?access=69765F6D6F64653D3939382669765F7361706E6F7465735F6E756D6265723D30303031363338303233
    http://search.sap.com/notes?id=0001613588&boj=/sap/bc/bsp/spn/scn_bosap/notes.do?access=69765F6D6F64653D3939382669765F7361706E6F7465735F6E756D6265723D30303031363133353838
    Complete search is here.
    http://search.sap.com/ui/scn#query=sort%2C+field%2C+runtime%2C+crystal%2C+sdk%2C+.net&startindex=1&filter=scm_a_site%28scm_v_Site11%29&filter=scm_a_modDate%28*%29&timeScope=all
    Please search before posting.
    - Bhushan
    Senior Engineer
    SAP Active Global Support
    Follow us on Twitter
    Got Enhancement ideas? Try the SAP Idea Place
    Getting started and moving ahead with Crystal Reports .NET applications.

  • Setting sort priority to 90.0 by default instead of standard 100.0

    Hai,
    I have requirement in which i have to upload some 100 roles from SAP R/3.  When these 100 roles are imported, it will have sort priority 100.00. I have created a another Iview, that also has sort priority as 100.0 by default.
    When I assign few of the roles and the Iview to a user this Iview is coming in between the roles. I want this Iview to be shown in the extreme right in Second Level Navigation.  This I can do by changing the sort priority of 100 roles to 90.0. My users are not interested in changing 100 roles.
    The below is the approach which I thought of doing but I don't know how to do it, please let me how to achieve this or is there any other way to do it.
    When ever a object,  role, IVIEW is created by default sort priority 100.0 is assigned to those object. I want to set that value to 90.0 So that when ever i create a new object the sort priority has the value 90.0.
    Please let me know how to do this.
    Thanks & Regards,
    H.K.Hayath Basha.

    Hai  Rasmus,
    Thanks for the information.
    If I am going to create  Iview then I can use a template to create Iview.
    I am using Role Upload function in portal to upload roles for SAP R/3, after I upload the role, the uploaded role has sort priory 100.0. I want to have a sort prioriy as 90.0 when ever I upload a role or create a role.
    Please let me know how to do this.
    Regards,
    H.K.Hayath Basha.

  • How to create the Header Menu

    Hi Experts,
    how to create or change the Menu (like in the screenshot) .. how to create something like eWorkflow and the level below?
    Screenshot:
    http://img527.imageshack.us/my.php?image=exba7.jpg
    Thanks in advance
    CC

    HI,
    Refer this link for create and changing the roles:
    http://help.sap.com/saphelp_nw04/helpdata/en/ab/89e641813cc517e10000000a155106/frameset.htm
    Display the roles based on the requirment:
    Change the "Sort Priority" of the role to ' 0 '. you can view that role first in the list (Default value is 100). if u give minimun value then that will be displayed as ist role for the user.
    regards,
    Kathiresan R

  • How 2 creat report for displaying the details of a Delivery Document using

    how to create report for displaying the details of a Delivery Document using the tables LIKP, LIPS
    thank you
    regards,
    jagrut bharatkumar shukla
    points will be rewarded

    HI
    I AM GIVING YOU MY DELIVERY DOCUMENT CODE...MODIFY IT ACCORDING TO YOUR REQUIREMENT
    *& Report  ZDELIVERY                                *
    report  zdelivery  message-id z9bhu          .
    types: begin of t_likp,
               vbeln type likp-vbeln,      "Delivery
               erdat type likp-erdat,      "Date for rec creation
    *           LFDAT TYPE LIKP-LFDAT,      "Delevery Date
    *           WAERK TYPE LIKP-WAERK,      "Currency
               kunnr type likp-kunnr,      "Ship-To Party
               kunag type likp-kunag,      "Sold-to party
               traty type likp-traty,      "Means-of-Transport
           end of t_likp.
    types: begin of t_lips,
               vbeln type lips-vbeln,      "Delivery
               posnr type lips-posnr,      "Delivery item
               matnr type lips-matnr,      "Material Number
               arktx type lips-arktx,      "Short Text for Sales Order Item
               lfimg type lips-lfimg,      "Actual quantity delivered
               netpr type lips-netpr,
    *           MEINS TYPE LIPS-MEINS,      "Base Unit of Measure
               vgbel type lips-vgbel,      "Doc no of the reference document
            end of t_lips.
    types: begin of t_vbpa,
               vbeln type vbpa-vbeln,      "SD DocumenT Number
               posnr type vbpa-posnr,      "Item number
               parvw type vbpa-parvw,      "Partner function
               kunnrb type vbpa-kunnr,      "Customer Number 1
           end of t_vbpa.
    types: begin of t_kna1,
               kunnr type kna1-kunnr,      "Customer Number 1
               name1 type kna1-name1,      "Name 1
               ort01 type kna1-ort01,      "City
               adrnr type kna1-adrnr,      "Address
           end of t_kna1.
    types: begin of t_li_vbpa,
               vbeln type likp-vbeln,      "Delivery
               erdat type likp-erdat,      "Date for rec creation
    *           LFDAT TYPE LIKP-LFDAT,      "Delevery Date
    *           WAERK TYPE LIKP-WAERK,      "Currency
               kunnr type likp-kunnr,      "Ship-To Party
               kunag type likp-kunag,      "Sold-to party
               traty type likp-traty,      "Means-of-Transport
               vbeln1 type lips-vbeln,      "Delivery
               posnr type lips-posnr,      "Delivery item
               matnr type lips-matnr,      "Material Number
               arktx type lips-arktx,      "Short Text for Sales Order Item
               lfimg type lips-lfimg,      "Actual quantity delivered
               netpr type lips-netpr,      "Net Price
    *           MEINS TYPE LIPS-MEINS,      "Base Unit of Measure
               vgbel type lips-vgbel,      "Doc no of the reference document
               vbeln3 type vbpa-vbeln,     "SD DocumenT Number
               parvw type vbpa-parvw,      "Partner function
               kunnrb type vbpa-kunnr,      "Customer Number 1
           end of t_li_vbpa.
    types: begin of t_final,
               vbeln type likp-vbeln,      "Delivery
               erdat type likp-erdat,      "Date for rec creation
               kunnr type likp-kunnr,      "Ship-To Party
               kunag type likp-kunag,      "Sold-to party
               traty type likp-traty,      "Means-of-Transport
               vbeln1 type lips-vbeln,      "Delivery
               posnr type lips-posnr,      "Delivery item
               matnr type lips-matnr,      "Material Number
               arktx type lips-arktx,      "Short Text for Sales Order Item
               lfimg type lips-lfimg,      "Actual quantity delivered
               netpr type lips-netpr,      "Net Price
               vgbel type lips-vgbel,      "Doc no of the reference document
               vbeln3 type vbpa-vbeln,     "SD DocumenT Number
               parvw type vbpa-parvw,      "Partner function
               kunnrb type vbpa-kunnr,     "Customer Number 1
               name1 type kna1-name1,      "Name 1
               ort01 type kna1-ort01,      "City
               adrnr1 type kna1-adrnr,     "Address
               name2 type kna1-name1,      "Name 1
               ort02 type kna1-ort01,      "City
               adrnr2 type kna1-adrnr,     "Address
               name3 type kna1-name1,      "Name 1
               ort03 type kna1-ort01,      "City
               adrnr3 type kna1-adrnr,     "Address
           end of t_final.
    *            D A T A  D E C L A R A T I O N
    *&*********Internal Table Declaration****************&*
    data: it_likp type standard table of t_likp.
    data: it_lips type standard table of t_lips.
    data: it_vbpa type standard table of t_vbpa.
    data: it_kna1 type standard table of t_kna1.
    data: it_li_vbpa type standard table of t_li_vbpa.
    data: it_li_vbpa_temp type standard table of t_li_vbpa.
    data: it_final type standard table of t_final.
    *&*********Work Area Declaration********************&*
    data: wa_likp type t_likp.
    data: wa_lips type t_lips.
    data: wa_vbpa type t_vbpa.
    data: wa_kna1 type t_kna1.
    data: wa_li_vbpa type t_li_vbpa.
    data: wa_li_vbpa_temp type t_li_vbpa.
    data: wa_final type t_final.
    *&*********Data Declaration************************&*
    data: d_vbeln type likp-vbeln.
    data: flag type i value 0.
    *           S E L E C T I O N  S C R E E N   D E C L A R A T I O N
    selection-screen begin of block block2 with frame title text-001.
    select-options: s_vbeln for d_vbeln obligatory.    "Delivery no
    selection-screen end of block block2.
    *            A T  S E L E C T I O N - S C R E E N   E V E N T S
    *AT SELECTION-SCREEN.
    *PERFORM VALIDATE_DATA.
    *            S T A R T   O F  S E L E C T I O N     E V E N T S
    start-of-selection.
    perform fetch_data.
    perform merge_data_kna1.
    *INCLUDE Z9BT_SH_***4_FORMS.
    call function 'OPEN_FORM'
    exporting
    *   APPLICATION                       = 'TX'
    *   ARCHIVE_INDEX                     =
    *   ARCHIVE_PARAMS                    =
        device                            = 'PRINTER'
    *   DIALOG                            = 'X'
    *   FORM                              = ' '
       language                          = sy-langu
    *   OPTIONS                           =
    *   MAIL_SENDER                       =
    *   MAIL_RECIPIENT                    =
    *   MAIL_APPL_OBJECT                  =
    *   RAW_DATA_INTERFACE                = '*'
    *   SPONUMIV                          =
    * IMPORTING
    *   LANGUAGE                          =
    *   NEW_ARCHIVE_PARAMS                =
    *   RESULT                            =
    exceptions
       canceled                          = 1
       device                            = 2
       form                              = 3
       options                           = 4
       unclosed                          = 5
       mail_options                      = 6
       archive_error                     = 7
       invalid_fax_number                = 8
       more_params_needed_in_batch       = 9
       spool_error                       = 10
       codepage                          = 11
       others                            = 12
    if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    sort it_final by vbeln.
    loop at it_final into wa_final.
    call function 'START_FORM'
    exporting
    *   ARCHIVE_INDEX          =
       form                   = 'Z9BT_DELIVERY'
       language               = sy-langu
    *   STARTPAGE              = ' '
    *   PROGRAM                = ' '
    *   MAIL_APPL_OBJECT       =
    * IMPORTING
    *   LANGUAGE               =
    exceptions
       form                   = 1
       format                 = 2
       unended                = 3
       unopened               = 4
       unused                 = 5
       spool_error            = 6
       codepage               = 7
       others                 = 8
    if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    call function 'WRITE_FORM'
    exporting
       element                        = 'ITEM_LIST'
       function                       = 'SET'
       type                           = 'BODY'
       window                         = 'MAIN'
    * IMPORTING
    *   PENDING_LINES                  =
    * EXCEPTIONS
    *   ELEMENT                        = 1
    *   FUNCTION                       = 2
    *   TYPE                           = 3
    *   UNOPENED                       = 4
    *   UNSTARTED                      = 5
    *   WINDOW                         = 6
    *   BAD_PAGEFORMAT_FOR_PRINT       = 7
    *   SPOOL_ERROR                    = 8
    *   CODEPAGE                       = 9
    *   OTHERS                         = 10
    if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    call function 'END_FORM'
    * IMPORTING
    *   RESULT                         =
    exceptions
       unopened                       = 1
       bad_pageformat_for_print       = 2
       spool_error                    = 3
       codepage                       = 4
       others                         = 5
    if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    endloop.
    call function 'CLOSE_FORM'
    * IMPORTING
    *   RESULT                         =
    *   RDI_RESULT                     =
    * TABLES
    *   OTFDATA                        =
    exceptions
       unopened                       = 1
       bad_pageformat_for_print       = 2
       send_error                     = 3
       spool_error                    = 4
       codepage                       = 5
       others                         = 6
    if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    *&      Form  VALIDATE_DATA
    *       text
    *  -->  p1        text
    *  <--  p2        text
    form validate_data .
    select single vbeln into wa_likp-vbeln
                        from likp where vbeln in s_vbeln.
    append wa_likp to it_likp.
    if sy-subrc <> 0.
    flag = 1.
    endif.
    endform.                    " VALIDATE_DATA
    *&      Form  FETCH_DATA
    *       text
    *  -->  p1        text
    *  <--  p2        text
    form fetch_data .
    select a~vbeln
           a~erdat
           a~kunnr
           a~kunag
           a~traty
           b~vbeln
           b~posnr
           b~matnr
           b~arktx
           b~lfimg
           b~netpr
           b~vgbel
           c~vbeln
           c~parvw
           c~kunnr
             into table it_li_vbpa
                    from likp as a
                    left outer join lips as b on a~vbeln = b~vbeln
                    inner join vbpa as c on b~vgbel = c~vbeln
                    where a~vbeln in s_vbeln and
                    c~parvw = 'RE'.
    endform.                    " FETCH_DATA
    *&      Form  MERGE_DATA_KNA1
    *       text
    *  -->  p1        text
    *  <--  p2        text
    form merge_data_kna1 .
    if it_li_vbpa[] is not initial.
    it_li_vbpa_temp[] = it_li_vbpa[].
    sort it_li_vbpa_temp by kunnr.
    delete adjacent duplicates from it_li_vbpa_temp comparing kunnr.
    loop at it_li_vbpa into wa_li_vbpa.
    read table it_li_vbpa_temp into wa_li_vbpa_temp with key kunnr =
    wa_li_vbpa-kunag.
    if sy-subrc <> 0.
    wa_li_vbpa_temp = wa_li_vbpa.
    append wa_li_vbpa_temp to it_li_vbpa_temp.
    endif.
    read table it_li_vbpa_temp into wa_li_vbpa_temp with key kunnr =
    wa_li_vbpa-kunnrb.
    if sy-subrc <> 0.
    wa_li_vbpa_temp = wa_li_vbpa.
    append wa_li_vbpa_temp to it_li_vbpa_temp.
    endif.
    endloop.
    endif.
    if it_li_vbpa_temp[] is not initial.
    select  kunnr
            name1
            ort01
            adrnr into table it_kna1 from kna1
                        for all entries in it_li_vbpa_temp
                        where kunnr = it_li_vbpa_temp-kunnr.
    endif.
    loop at it_li_vbpa into wa_li_vbpa .
    wa_final-vbeln = wa_li_vbpa-vbeln.
    wa_final-erdat = wa_li_vbpa-erdat.
    *it_final-LFART = it_li_vbpa-LFART.
    wa_final-kunnr = wa_li_vbpa-kunnr.
    wa_final-kunag = wa_li_vbpa-kunag.
    *it_final-VSTEL = it_li_vbpa-VSTEL.
    wa_final-traty = wa_li_vbpa-traty.
    wa_final-vbeln1 = wa_li_vbpa-vbeln.
    wa_final-posnr = wa_li_vbpa-posnr.
    wa_final-matnr = wa_li_vbpa-matnr.
    wa_final-arktx = wa_li_vbpa-arktx.
    wa_final-lfimg = wa_li_vbpa-lfimg.
    wa_final-netpr = wa_li_vbpa-netpr.
    *wa_final-GEWEI = it_li_vbpa-GEWEI.
    *it_final-VOLUM = it_li_vbpa-VOLUM.
    *it_final-VOLEH = it_li_vbpa-VOLEH.
    wa_final-vgbel = wa_li_vbpa-vgbel.
    wa_final-vbeln3 = wa_li_vbpa-vbeln.
    *wa_final-PARVW = wa_li_vbpa-PARVW.
    wa_final-kunnrb = wa_li_vbpa-kunnrb.
    read table it_kna1 into wa_kna1 with key kunnr = wa_li_vbpa-kunnr.
    if sy-subrc = 0.
    wa_final-name1 = wa_kna1-name1.
    wa_final-ort01 = wa_kna1-ort01.
    wa_final-adrnr1 = wa_kna1-adrnr.
    endif.
    read table it_kna1 into wa_kna1 with key kunnr = wa_li_vbpa-kunag.
    if sy-subrc = 0.
    wa_final-name2 = wa_kna1-name1.
    wa_final-ort02 = wa_kna1-ort01.
    wa_final-adrnr2 = wa_kna1-adrnr.
    endif.
    read table it_kna1 into wa_kna1 with key kunnr = wa_li_vbpa-kunnrb.
    if sy-subrc = 0.
    wa_final-name3 = wa_kna1-name1.
    wa_final-ort03 = wa_kna1-ort01.
    wa_final-adrnr3 = wa_kna1-adrnr.
    endif.
    append wa_final to it_final.
    clear wa_final.
    endloop.
    endform.

  • How to create an order list??

    Hi.
    I'm using <h:selectManyListbox> to show data.
    I do it using the next code:
    I create the arrayList with values from datatable
    ArrayList<SelectItem> arrayList = new ArrayList<SelectItem>();
    while (result.next()) {
    SelectItem item = new SelectItem();
    item.setValue(result.getString("ID"));
    item.setLabel(result.getString("Description"));
    arrayList.add(item);
    Then I translate to SelectItem[] myListItems using a function:
    myListItems= arrayList2SelectItem(arrayList);
    where I have defined:
    public SelectItem[] arrayList2SelectItem(ArrayList<SelectItem> arrayList) {
              SelectItem[] result = new SelectItem[arrayList.size()];
              arrayList.toArray(result);
              return result;
    But what I want to do is create myListItems sorted.
    I have tried differents ways with treeMap, treeSet, but I can be able to make the transformation like I do in arrayList2SelectItem
    So, my idea is:
    1.- Create a treeMap, so I have the values sorted.
    2.- Translate to SelectItem[] myListItems; (here is where I stopped)
    Does anybody knows how to achieve this??
    Thanks

    Hmmm, I think I have been confused on the subject. (I thought you could do as you say, failed and changed my mind) Now I find it works.. You are correct. 8-)
    e.g.
           Set set = new TreeSet(new Comparator() {
                public int compare(Object o1, Object o2) {
                    return ((byte[]) o1)[0] - ((byte[]) o2)[0];
            set.add(new byte[]{1});
            set.add(new byte[]{2});
            set.add(new byte[]{3});

  • How to display the sort value in the selection screen in the report title

    Dear All,
    How to display the sort value in the selection screen in the report title? I have selected a value in the selection screen for sorting , but i need that values by which i have sorted with in the report title. Can you please throw some light on this!!
    Good day,
    Thanks and regards
    Arun S

    Hi Arun,
    Try this.
    1, Set one dynamic parameter,
    2, Drag and drop that parameter into  your report title.
    3, Pass the value(sort value) dynamically from your application,
    4, Cheers..
    Other wise Try with Dataset, create a dataset and fill thev alue into that.. Then  set the data source from CR designer. and darg and drop that data column into the report.
    Hope this will work,
    Regards,
    Salah
    Edited by: salahudheen muhammed on Mar 25, 2009 11:13 AM

  • How to create a Flex3 project with remote ColdFusion server?

    I have a question related to Flex 3 and ColdFusion that it might be simple to answer but I have been struggling with it for a while.
    How to create a Flex application using Flex Builder 3 that uses ColdFusion, but the ColdFusion server is not installed locally but in a remote server?
    I need to create a Flex application to use with ColdFusion and although this is a simple procedure when we are creating the project in a computer where you have ColdFusion installed locally (as all books shows examples of it), but what if the ColdFusion server is installed in another machine in the network?
    My current situation is the following:
    -          I have Flex Builder 3 install in my PC at work and its workspace is in a folder in the network outside of my PC.
    -          We have a server (ISWEB1) partition in two drives; C, where the ColdFusion 8 is installed and D where all the files the developers work with reside. The ColdFusion installation runs in a server where IIS is used as the web server.
    -          I have the drive D on the server ISWEB1 mapped to one of my letter drives and can access it easily
    -          The drive C on the Server can only be accessed remotely (or through the web to access the ColdFusion admin page) and is not exposed to the network as drive D is.
    My problem is, I need to create a Flex 3 application that uses ColdFusion using remote object access service (CF Flash Remoting) but I wanted to point to the installation version on the server ISWEB1 and not to the one installed locally. The Configure ColdFusion Server screen in the Flex Builder asked me for the location of ColdFusion root folder, Web root, and root URL. There is no way I can point to the server (ISWEB1)where ColdFusion is installed as those fields seem to required a address that points to a local install or a mapping on that local server.
    The work around that could be used is to use the ColdFusion developers edition I have installed locally and use during the creation of the project in Flex Builder, but then I would have to have all the same data sources, mappings, and CFCs in my the local server in order to test, which seems double work. To aggravate that when you try to test the application Flex writes the files to the local server and unless you have everything available locally it would not work properly. I am trying to avoid duplicating the work. Ideally I would like to test the Flex application on the server where the CF is installed and where the Flex Builder workspace is.

    Sort of. I found this article below that helped me to connect to the remote CF server using MXML. It seems that you have to create a regular project in Flex with Aplication Server Type set to None and connect to CF using the endpoint attribute of the RemoteObject MXML tag or via AS.
    http://www.aliaspooryorik.com/blog/index.cfm/e/posts.details/post/200
    However I found out after getting error using the AS3 code to use the endpoint property that
    mx.rpc.remoting.RemoteObject does not support  the "endpoint" property
    whereas mx.rpc.remoting.mxml.RemoteObject does. See link below
    http://www.mail-archive.com/[email protected]/msg101439.html//www.mail-archive.com/[email protected]/msg101439.html
    So I had to change my AS3 code by adding a new channel to my RemoteObject using a code similar to the one on the link below (Note that this code uses PHP, when I instantiate myRemoteObject, I do so informing that the destination is "ColdFusion" [new RemoteObject("ColdFusion")], so no need to set destination as in the code on the link below
    http://tech.groups.yahoo.com/group/flexcoders/message/120115
    I hope that helps you.

  • How to create an incremental key in a Matrialized View created from Union?

    I am trying to create some sort of incremental key in a materialized view that is formed from several Select and Union statements.
    Why? My materialized view has a composite inteligent key of 5 columns. So, when I want to find a particular records, I don't want to have to do a select statement with some many WHERE and AND clauses.
    The ROWNUM I tried didn't work (as I thought) because my Materialized view is made out of several union and each select statement of the UNION generates a new set of incremental numbers.
    I also tried creating a SEQUENCE (I understand the sequence number will keep growing each time I do a refresh ) but it doesn't look like I can create a SEQUENCE on Matrialized View.
    Anyone has any suggestion as how do I create some kind of incremental number in a materilized view created from an Union.
    Thank you.
    H

    I'm assuming that this is a continusation of your earlier message
    Re: Can I create Sequence on Materialized Views?
    It doesn't seem to make sense, as others mentioned in that thread, to try to add this sort of key to a materialized view. Since the key would change every time you refreshed the materialized view, I'm having difficulty understanding how this will simplify your life. Your code would still have to refer to all 5 columns of the composite key since that would be the only constant.
    Justin

  • How to create a custom Hierarchy in IDT 4.0

    Hi All.
    I am trying to create a custom hierarchy objects in the Information Design tool, But I am not able to find it here as same sort like the universe designer in 3.1 or 4.0 . I have found the navigational path but I am not sure how I can use it as a hierarchical objects in my reports, Can anyone please suggest how to create a custom hierarchical dimension in IDT 4.0.
    Thanks,
    Navin

    Custom Hierarchy are called navigation path in IDT. I will suggest to go through the navigation path tutorials below
    http://scn.sap.com/docs/DOC-22087
    Hierarchical objects are no different than any regular objects but they enable the drilling in drill mode in the report and you can create a cascading prompt on top of them..
    If after going through this you still have any specific questions just let us know...

  • How to create a Virtual provider in BI 7.0?

    Hi friends!
    I need create a virtualprovider (with SCM source system), but I find the option 'Create Virtual Provider'  in the context menu only when the infosource is 3.x
    How can I do it in 7.x?
    Thanks in advance!
    Edited by: SSap on Oct 28, 2009 9:11 PM

    1.How can I do it in 7.x?
    In BI7, just right click on any infoarea, and choose create 'virtual provider'. For direct access, you choose Virtual Provider with 'direct access'. There's an option to use the old R/3 infosource. What this means is that you can create an infosource with transfer rules and such, and when you create the virtual infoprovider, it will use the structure in the infosource automatically and the flow of data is automatically link R/3 with the transfer rules and the virtual infoprovider. Note that no update rules exist with this kind of setup.
    In BI7 you have a more flexible approach in that you can create a transformation to configure the 'transfer logic' of your virtual infoprovideralong with start routine, end routine or any other transformation technique visible with using a transformation rule.
    But using BI7 setup, you need to create a sort of 'pseudo' DTP, which doesn't actually do anything, meaning you do not 'execute' it to start a data transfer.
    After all is done, you need to right click on the virtual infoprovider and choose 'Activate Direct Access'. If you use Infosource, go to the Infosource tab, and choose the infosource. If you're using BI7 setup, choose the DTP related to the transformation and save it.
    a virtual infoprovider with direct access is really slow if you have a lot of records transmitting between the remote function calls.
    Hope this helps
    Manjula

Maybe you are looking for

  • How to retrieve data from SQL server?

    I'm thinking this is a request for plug-ins as I'm not aware that Indesign CS3 can hook into a SQL server. Specifically, I'm trying to connect to a data server which has a built-in "SQL Stored Procedure" which will give me access to this database? I'

  • Can I delete the iCloud account an create a new one?

    My dad has kindly passed his ipad on to me but his icloud account is still on it, if i press the "delete account" button will it delete the account and let me create a new one, also will it delete all the files, photos and such like data that is on t

  • BiBeans possible with 8i or 9i

    Hello, Is it possible to use BiBeans with Oracle 8i or 9i database with JDeveloper? Thanks in advance. Cosmos

  • Deserialization error

    Hello all, I have a deserialization problem with a dynamic web service client.The return type that the service returns is a vector object.I am able to see from the soap (using tcpmon) that the service returns the values that i want to be returned by

  • Sending additional information to Receiver Determination

    I have a need to send additional data to the receiver determination so I can use the condition steps to decide which service to call. But this data is not part of the payload. Is it possible to send this via the context object. Can add or modify the