Adding a 'sort by' option to table data in webhelp output

RH8 HTML
Hi all,
Just wondering (again) if its possible to add a sort feature to a table?
currently, I've got multiple topics that look like the following. They are a breakdown of all fields/buttons and their functions
field name
description
example
customer id
description of field
example data to be entered
name
description of field
example data to be entered
customer order no
description of field
example data to be entered
job title
description of field
example data to be entered
this is the order that the fields appear on the user form, I'm wondering if I could add a 'Sort By A-Z' and 'Sort by Appearance' options so the user can view the fields, descriptions, and examples either by the order it appears, or in alphabetical order - all the while the description and example fields moving with the sort.
Just gives a bit more functionality for users so they can find a field quickly if the list is a bit bigger by using an alpha sort
Thanks for any help.

Hi,
Normally, the browser shows a pointer over a hyperlink. You might have the script set up slightly different than Peter.
A quick fix is as following:
Identify the element you want to see a pointer, probably something like TableHeading. In your css, add:
P.TableHeading
Be carefull with this, it may confuse people if they see a mouse cursor they don't expect. Your best bet is still to figure out if you have set the script up exactly as described on Peter's page.
Greet,
Willam
This e-mail is personal. For our full disclaimer, please visit www.centric.eu/disclaimer.

Similar Messages

  • How to sort index_by pl/sql tables data in Oracle 9i Release 9.2.0.1.0 ?

    Hi all,
    I have populated an index_by binary_integer pl/sql table :
    declare
    type rec_ty is record(ligne number,code_enreg number(2),code_enreg_ordered number(2));
         type tab_ty is table of rec_ty index by binary_integer;
         vtab tab_ty;
         i pls_integer := 1;
    begin
    for venreg in(select * from fichier_tempo where num > 0 order by num) loop
              vtab(i).ligne := venreg.num;
              vtab(i).code_enreg := to_number(substr(venreg.texte,7,2));
              i := i + 1;
         end loop;
    end;
    Now I want to sort the code_enreg data of vtab into its code_enreg_ordered field. I must do that because I must verify that each code_enreg data entered are ordered. So if code_enreg is not equal to code_enreg_ordered at a specified index of vtab then I must take a decision in my program code ; I must code something when this disorder happens.
    How to do that ?
    Thank you very much indeed.

    Thank you Jeneesh , it works with a few modifications about the assignement of the pl/sql tables.
    Fantasy > Your blog talks about sorting the pl/sql table through the key. But I want to sort it through the field data. And my field data contains duplicated data. So you did not really reply to my need. Thank you anymore.

  • How to Convert internal table data into text output and send mail in ABAP

    Hi All,
    Good Morning.
    Taking a glance at a code that converts internal table data to an Excel file in ABAP. also checked how to send this excel to mailing list as attachment.
    But thought of doing it without excel.
    I mean, I have an internal table which contains fields of all types (character,integer,date,time). Since it is only around 4 to 5 rows in it (output),why to convert it to excel. not required!!.  Instead I  want to send this output to User's mails as Normal mail body with No attachments.
    Could anybody please suggest me a way as to how to send internal table data as a mail ( not as an excel or PDF etc).
    as of now my findings are, it is quite complex to convert internal table data to email (Text) format. but i believe if there is some way of doing it.
    Best Regards
    Dileep VT

    here's something I have used in the past where we send out information about failed precalculation settings (which are stored in internal table gt_fail)
    notice we use gt_text as "mail body"
    TRY.
    *     -------- create persistent send request ------------------------
           gv_send_request = cl_bcs=>create_persistent( ).
    *     -------- create and set document -------------------------------
    *     create text to be sent
           wa_line = text-001.
           APPEND wa_line TO gt_text.
           CLEAR wa_line.
           APPEND wa_line TO gt_text.
           LOOP AT gt_fail ASSIGNING <fs_fail>.
             MOVE <fs_fail>-retry_count TO gv_count.
             CONCATENATE text-002
                         <fs_fail>-setting_id
                         text-003
                         gv_count
                         INTO wa_line SEPARATED BY space.
             APPEND wa_line TO gt_text.
             CLEAR wa_line.
           ENDLOOP.
           APPEND wa_line TO gt_text.
           wa_line = text-007.
           APPEND wa_line TO gt_text.
    *     create actual document
           gv_document = cl_document_bcs=>create_document(
                           i_type    = 'RAW'
                           i_text    = gt_text
                           i_length  = '12'
                           i_subject = 'Failed Precalculation Settings!' ).
    *     add document to send request
           CALL METHOD gv_send_request->set_document( gv_document ).
    *     --------- set sender -------------------------------------------
           gv_sender = cl_sapuser_bcs=>create( sy-uname ).
           CALL METHOD gv_send_request->set_sender
             EXPORTING
               i_sender = gv_sender.
    *     --------- add recipient (e-mail address) -----------------------
           LOOP AT s_email INTO wa_email.
             MOVE wa_email-low TO gv_email.
             gv_recipient = cl_cam_address_bcs=>create_internet_address(
                                               gv_email ).
             CALL METHOD gv_send_request->add_recipient
               EXPORTING
                 i_recipient = gv_recipient
                 i_express   = 'X'.
           ENDLOOP.
    *     ---------- set to send immediately -----------------------------
           CALL METHOD gv_send_request->set_send_immediately( 'X' ).
    *     ---------- send document ---------------------------------------
           CALL METHOD gv_send_request->send(
             EXPORTING
               i_with_error_screen = 'X'
             RECEIVING
               result              = gv_sent_to_all ).
           IF gv_sent_to_all = 'X'.
             WRITE text-004.
           ENDIF.
           COMMIT WORK.
    *   exception handling
         CATCH cx_bcs INTO gv_bcs_exception.
           WRITE: text-005.
           WRITE: text-006, gv_bcs_exception->error_type.
           EXIT.
       ENDTRY.
    with the following declarations
    * TABLES                                                               *
    TABLES:
       adr6,
       rsr_prec_sett.
    * INTERNAL TABLES & WORK AREAS                                         *
    DATA:
       gt_fail          TYPE SORTED TABLE OF rsr_prec_sett
                             WITH UNIQUE KEY setting_id run_date,
       gt_text          TYPE bcsy_text,
       wa_fail          LIKE LINE OF gt_fail,
       wa_line(90)      TYPE c.
    FIELD-SYMBOLS:
       <fs_fail>        LIKE LINE OF gt_fail.
    * VARIABLES                                                            *
    DATA:
       gv_count(4)      TYPE n,
       gv_send_request  TYPE REF TO cl_bcs,
       gv_document      TYPE REF TO cl_document_bcs,
       gv_sender        TYPE REF TO cl_sapuser_bcs,
       gv_recipient     TYPE REF TO if_recipient_bcs,
       gv_email         TYPE adr6-smtp_addr,
       gv_bcs_exception TYPE REF TO cx_bcs,
       gv_sent_to_all   TYPE os_boolean.
    * SELECTION-SCREEN                                                     *
    SELECT-OPTIONS:
       s_email          FOR adr6-smtp_addr NO INTERVALS MODIF ID sel.
    DATA:
       wa_email         LIKE LINE OF s_email.

  • Production Order Print . table data in print output of order

    Hi SAP Buddies
    Can any one tell me what are the steps required for setting the SFC print output.
    IMG setting for print output.. of SFC papers
    Actually my main purpose is to get TABLE : MARD and Field LGPBE to printed on Goods Issue Slip.
    Warm Regards
    Brijesh Verma

    hi
    IN iMG settings OPK8 you need to set the Script forms,program name, list contorls,and printer specifications. against the lists
    to get your required data you need to edit the program assigend to the Goosde issue slip.
    pl check
    -ashok
    Edited by: Ashok Keerthipati on Dec 24, 2008 10:00 AM

  • I'm actually trying to find the date i visited a site. adding columns allow the order to be sorted but not show a date. Please tell me it there's a way to see t

    I'm actually trying to find the date i visited a site. adding columns allow the order to be sorted but not show a date. Please tell me it there's a way to see the date. the sidebar no longer has the option for date. the most recent only shows the time.

    If you only see the time then that would mean that you see an entry of the current day (today).
    History items from past days should have the date as well in the Most Recent Visit column.
    You should be able to see this changing if you open the last 7 days folder and scroll down.

  • 30EA2 - SQL-Developer 3.0.02 Another Table Data Sort Order Bug

    Although the "30EA1 - SQL-Developer 3.0.02 Table Data Sort Order Bug" still exists in 30EA2, there is a new substantial mistake.
    How to see it:
    Open table1 (Preference "Automatically Freeze Object Viewer Windows" is set). Click data.
    Open table2. Click data.
    Go back to table1. Click Sort. => You see the columns of table2. The is no way to sort table1, before you close the table2 window (tab).
    Edited by: oestreicher1 on 01.12.2010 04:54

    Logged Bug 10358797 - ea2: grid sorter shows wrong columns
    -Raghu

  • Can I sort my Shopping Cart by Date Added?

    I have quite a few songs in my shopping cart and I want to sort them all by the Date I added them to the shopping cart. Currently I can sort by name, price, album, artist, etc... all standard... but I can't see how to add a Date Added sort to the Shopping Cart itself.

    Sorry, but you can't.
    Note that it's not a good idea to use your Shopping Cart for long-term "wish list" storage. There is to strong a possibility that a change to or removal of an item will corrupt your Cart. If you want a "wish list", create a normal playlist and drag the tracks you want to remember into it from the iTunes Store. That will save them for future purchase. Don't leave anything in your Shopping Cart unpurchased for more than a day or two at most.

  • Sort by date added actually sorts by album v1.0.10

    When I try to sort by date added, it sorts it by album for some reason. Squash this bug please.

    Hey gapdude101,
    Just saw your response this evening.  I did a fast search again and I found something that's solved my problem of my iTunes playlists not showing up in the same order on my iPhone or iPad Remote app.  I right-clicked on the playlist in iTunes and selected Copy to Play Order, and I saw the play order on the playlist on my iPhone sync in real time to what I had on the screen in iTunes.  That seems to have solved my problem.  Here's a link to the other article on Apple Support on here where I found this...
    "If you like the way iTunes has shuffled the play order of one of your play lists, you can use the "Copy to Play Order" shortcut menu command to make the shuffled play order the permanent play order."   http://support.apple.com/kb/TA27500?viewlocale=en_US&locale=en_US
    Brian

  • Physical Sort on Table data

    Is there a way to sort the records of a table physically?
    The order by clause does a logical sort on the table data that is temporary.
    Can we sort the records permanently?

    In my environment your query is using a [ INDEX FAST FULL SCAN :|http://download.oracle.com/docs/cd/B19306_01/server.102/b14211/optimops.htm#i52044] which is not guaranteed to follow physical ordering:
    >
    It cannot be used to eliminate a sort operation, because the data is not ordered by the index key. It reads the entire index using multiblock reads, unlike a full index scan, and can be parallelized.
    >
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    CORE     10.2.0.1.0     Production
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    SQL>
    SQL> drop table test_iot;
    Table dropped.
    SQL>
    SQL> create table test_iot(sq number primary key, txt varchar2(20))
      2  organization index;
    Table created.
    SQL>
    SQL> insert into test_iot
      2  select rownum , to_char(rownum,'Fm000000')||'#'||dbms_random.random
      3  from dba_objects where rownum < 1001;
    1000 rows created.
    SQL>
    SQL> exec dbms_stats.gather_table_stats(ownname => user, tabname => 'TEST_IOT', cascade => TRUE);
    PL/SQL procedure successfully completed.
    SQL>
    SQL> explain plan for select * from test_iot;
    Explained.
    SQL> select * from table(dbms_xplan.display);
    PLAN_TABLE_OUTPUT
    Plan hash value: 2167072184
    | Id  | Operation          | Name           | Rows  | Bytes | Cost (%CPU)| Time      |
    |   0 | SELECT STATEMENT     |                |  1000 | 21000 |     3   (0)| 00:00:01 |
    |   1 |  INDEX FAST FULL SCAN| SYS_IOT_TOP_52896 |  1000 | 21000 |     3   (0)| 00:00:01 |
    8 rows selected.Since DBMS_ROWID cannot be used on a IOT, I'm not sure that a SQL query can prove that IOT guarantees physical ordering.

  • How to re-sort Table data like A-Z and Z-A

    Hello Gurus,
      How can i re-sort Table data based on last name or first name, once table filled data from backend(i mean, once executed RFC,  Table will be filled with data records, after that i want to re-sort table).
       Can you provide me code, how to do?
    Thanks
    Venkat.

    Hi Venkat,
    For sorting to table columns, you need to pick up the code from here and add into a java file within your development component.
    http://wiki.sdn.sap.com/wiki/display/Snippets/TableSorterClassfor+WebDynpro
    Then, you can call the constructor of the class and pass the arguments to enable table sorting in your code.
    Refer to following blog for execution
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417100)ID1078501850DB00490474849923920126End?blog=/pub/wlg/3287
    Let me know, if the problem persists.
    Regards,
    Tushar Sinha

  • Help for Adding table data to list

    Dear Folk,
    How can i add table data to a list. I tried following but not successfull
    Populate_List('OTHER.GROUPLIST', 'GROUP_LIST');
    Help me..

    V_RECORDGROUP :=FIND_GROUP(I_RECORDGROUPNAME);
    V_QUERY:='SELECT data FROM tablea';
    V_RECORDGROUP :=CREATE_GROUP_FROM_QUERY(I_RECORDGROUPNAME,V_QUERY);
    V_TEMP:=POPULATE_GROUP(V_RECORDGROUP);
    POPULATE_LIST(I_ITEM_NAME,V_RECORDGROUP);

  • Sort without BY addition & Table Key

    Experts,
    From SAP Help,
    If no explicit sort key is entered using the BY addition, the internal table itab is sorted according to the table key.
    I have code as below,
    data: lt_vkonto type table of VKONT_KK. "Cont Acc No
    "Fetch Cont Acc no against Contract
    select vkonto from ever into table lt_vkonto where vertrag = wa_data-vertrag.
    if sy-subrc eq 0.
    sort lt_vkonto.
    endif.
    As seen above, I have sort statement without BY addition for internal table lt_vkonto which does not have a UNIQUE or NON UNIQUE key.
    Will adding BY addition --> SORT lt_vkonto by vkonto imrpove the performance of sort statement.
    Please share your valuable inputs.
    BR,
    Aspire

    Hi
    I don't know if you'll imporve the performace in your case, you should do some measurement, the problem should be the table key for a standard internal table (like yours) is the set of all CHAR fields.
    In you situation you've only one fields, but probably if the table has several char fields the performance can be improved
    Anyway I suppose it's always better to explicit an option else the system will have to deduct it by itself, so the system will do an additional step: in your case without BY, the system has to deduct the key to be used for the sorting.
    Max

  • Is there a way to sort my songs by import dates?

    Is there a way to sort my songs by import dates? The options i have now is only to sort by names and artist. I want to be able to see the songs i added recently and also play in that order.
    Thank you

    Yes. It's called Date Added. In Song view enable the column by pulling down View > View options and select "Date Added."

  • Enhancement request : Table - Data  -- Filter with multiple lines

    It would be nice when the Filter option in the tables Data tab could contain multiple lines, because :
    In case of a complex where clause on a table (used in a query) it's hard to get an impression of the filter because everything is typed on one single line.
    In case of multiple lines it's also more easy to disable a single clause temporary with a double dash (--) at the start of the line instead of searching in a complex filter where to put /* ...*/
    Eric.

    What I mean is the Filter option when displaying the data (Data tab) of a table. You have the possibility to enter a Sort and a Filter (to reduce the data that is displayed). That Filter option has no possibility to enter multiple lines. So there is no way to 'format' the filter which would be nice in case of complex or large 'where clauses'.
    What would you prefer, this (multiple lines) ?
    AND ( p_peildatum IS NULL
    OR
    TRUNC(p_peildatum) BETWEEN TRUNC(dnm.datum_ingang)
    AND TRUNC(NVL(dnm.datum_einde,p_peildatum))
    AND ( p_ondergrens IS NULL
    OR
    TRUNC(p_ondergrens) <= TRUNC(NVL(dnm.datum_einde,p_ondergrens))
    or this, like it is now (everything on one single line) :
    ( p_peildatum IS NULL OR TRUNC(p_peildatum) BETWEEN TRUNC(dnm.datum_ingang) AND TRUNC(NVL(dnm.datum_einde,p_peildatum)) ) AND ( p_ondergrens IS NULL OR TRUNC(p_ondergrens) <= TRUNC(NVL(dnm.datum_einde,p_ondergrens)) )
    Eric.

  • How to copy table data from onde DB to another DB using clipboard

    HI,
    i copied table data from one DB to another DB, but it displays an error as "policy with check option violation" when inserting the table data.. so how to resolve the proble.. thanks in advance.

    DECLARE
    log_utl_dir VARCHAR2(100) :=('/apps/home/cmsftp/log/gaa');
    CURSOR tb_compy_cur is
    select tb.compy_acronym
    -- QC 158113 - added below
    ,tb.ivr_plan_num
    from tb_fc_compy tb,tb_xop_entitlements te
    where tb.grant_award_accept_flag = 'Y'
    and tb.ivr_plan_num = te.ivr_plan_num
    and te.entitle_name = 'GAA_RECONCILED'
    union all
    select compy_acronym
    -- QC 158113 - added below
    ,tb.ivr_plan_num
    from tb_fc_compy tb
    where tb.res_stock_flag = 'Y'
    --and   (tb.res_auto_lapse_flag = 2 OR
    --tb.res_auto_lapse_flag = 3)
    and exists (select entitle_name from tb_xop_entitlements te
    where tb.ivr_plan_num = te.ivr_plan_num
    and te.entitle_name = 'GAA_RES_FLAG'
    and te.optionee = 'Y'
    and te.psrep = 'Y'
    and te.sponsor = 'Y'
    and te.advisor = 'Y');
    v_xopgrantz_insertcount NUMBER := 0;
    -- QC 158113 - added below
    v_xopgrantz_accpt_count NUMBER := 0;
    v_user_id VARCHAR2(30);
    insert_file_id UTL_FILE.FILE_TYPE;
    insert_log_file varchar2(45) := 'xop_grantz_insertstats.log';
    BEGIN
    DBMS_OUTPUT.PUT_LINE('success1');
    insert_file_id := UTL_FILE.fopen(log_utl_dir,insert_log_file,'w');
    UTL_FILE.put_line(insert_file_id,'Starting the Process at '|| CURRENT_TIMESTAMP);
    UTL_FILE.put_line(insert_file_id,'INSERTING ROWS FOR Companies turned on for GAA_RECONCILE and GAA/RESSTOCK');
    for compy_rec in tb_compy_cur loop
    v_user_id := 'CMS'||compy_rec.compy_acronym||'_USER';
    ctx_set_session.set_user_session(v_user_id);
    dbms_output.put_line ('success2'||''|| v_user_id);
    INSERT into xop_grantz(grant_num,
    user_id,
    last_user_id,
    restrict_grant,
    child_symbol,
    parent_grant_flag,
    bulking_overide_flag,
    exerrestrict_code,
    rounding_method,
    exercisiable_dt,
    def_res_units_flag,
    opt_gain_def_elig_flag,
    opt_gain_deferred_flag,
    opt_gain_deferred_dt,
    opts_accepted,
    lst_updtby_usercd,
    accepted_type,
    GAA_eligible,
    GAA_LST_UPDTBY)
    select g.grant_num,
    v_user_id,
    'GRNTACCPT',
    'N',
    'N',
    (sel ect code
    from tb_xop_exerrestrict_codes
    where cash_allowed = 'Y'
    and cashlesshold_allowed = 'Y'
    and cashlesssell_allowed = 'Y'
    and stockswap_allowed = 'Y'
    and restricted_allowed = 'Y'
    and sar_allowed = 'Y'
    and cashmargin_allowed = 'Y'
    and cashpartial_allowed = 'Y'
    and sarsale_allowed = 'Y'),
    NULL,
    'N',
    'N',
    'N',
    NULL,
    NULL,
    NULL,
    'N',
    NULL,
    NULL
    from grantz g
    where not exists(select 1
    from xop_grantz xg
    where xg.grant_num = g.grant_num);
    v_xopgrantz_insertcount := SQL%ROWCOUNT;
    dbms_output.put_line ('1');
    -- QC158113 - Optimisation fix--starts
    DELETE FROM gt_xop_grant_accpt_type;
    INSERT INTO gt_xop_grant_accpt_type
    SELECT g.grant_num,e.ivr_plan_num,
    pk_xop_grntaccpt.fn_get_accpt_type (v_user_id,
    g.plan_num,
    g.grant_dt,
    g.opt_num,
    g.grant_cd,
    g.plan_type,
    'Y'
    FROM grantz g,tb_xop_entitlements e
    WHERE plan_type IN (2, 4, 5, 7, 8)
    and g.user_id = v_user_id
    and e.ivr_plan_num = compy_rec.ivr_plan_num
    and entitle_name = 'GAA_RES_FLAG' ;
    dbms_output.put_line ('success3');
    v_xopgrantz_accpt_count := SQL%ROWCOUNT;
    UTL_FILE.put_line(insert_file_id,'Inserted count in gt_xop_grant_acceptance '|| v_user_id||v_xopgrantz_accpt_count);
    -- QC158113 - Optimisation fix--ends
    COMMIT;
    UTL_FILE.put_line(insert_file_id,'Inserted count in XOP_GRANTZ for USER_ID '|| v_user_id||v_xopgrantz_insertcount);
    ctx_set_session.set_user_session('');
    dbms_output.put_line ('process completed');
    end loop;
    UTL_FILE.fclose(insert_file_id);
    EXCEPTION
    when others then
    rollback;
    dbms_output.put_line ('Code '||SQLCODE||':'||SQLERRM||' at '||v_user_id||' .pr_xopgrantz_insert');
    pr_xop_log_errors('Code '||SQLCODE||':'||SQLERRM||' at '||v_user_id||' .pr_xopgrantz_insert');
    pr_xop_log_errors('Code '||SQLCODE||':'||SQLERRM||'INSERTING into xop_grantz for ALL grants');
    END;
    i received this error when running the procedure also, so the table gt_xop_grant_accpt_type is not populated
    {Code -28115:ORA-28115: policy with check option violation at CMSFB_USER .pr_xopgrantz_insert}

Maybe you are looking for