Sorting labels dynamically

i have a combo box filled with dynamically loaded labels, and
in my php script, I call for it to be alphabetical, however it
doesnt pull it in that way.. so, is there a way to
mycombobox.sortItems() to make alphabetical?

ok. The is some .xml script
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<main>
<restart1>
<movieclip1>football_mc</movieclip1>
<movieclip2>pillow_mc</movieclip2>
<movieclipN>casseteRecorder_mc</movieclip6>
</restart1>
</main>
and here is how you get movieclip names

Similar Messages

  • How to change the text of label dynamically

    Hi all,
    I have done a dynpro program.It requires to implement the dynamically display the label text, for example: there is a label, sometimes, we want to display "Purchase Order" and sometimes we want to display "Sales Order". Can anyone tell me how to change the text of label according to my requirements? thanks in advance!

    Hi Wei,
    AS of now you will not be able to change the Text Field ( Label ) dynamically or at runtime. This is a limitation.Refer to this link:
    http://help.sap.com/saphelp_nw04/helpdata/en/e4/2adbef449911d1949c0000e8353423/frameset.htm
    But, there is a way around.
    You can make a text field Visible / Invisible based on your program logic. So, based on what you want, you can process a module which will take care of that.
    Have a look at these DEMO Code. You can have a good idea to implement the logic.
    DEMO_DYNPRO_MODIFY_SCREEN - Demonstration of Dynamic Screen Modifications
    Thanks,
    Samantak.

  • Is it possible to change role's sort priority dynamically?

    Dear repliers,
    I want to implement menu personalization.
    I mean i want user to change their menu structure dynamically in webdynpro java.
    Is there any way or code to do this?
    If it isn't, is there any way to change role's sort priority dynamically in webdynpro java?
    Please let me know if u have any information about it..
    Yours Regards,
    JS Park

    we can change pages/workset/roles sort priority dynamically. But it will affect all users. There only one copy of pages/workset/roles exists.
    The work around could be... You can develop a custom application in which you have predefine set of possible values.
    example :
    role (sort Priority)
    1) employee (100)
    2) Manager (200)
    3) Sales Manager (300)
    Create copy of Each role with different sort priority for all roles
    for eg.
    1) Employee (200)
    2) Employee (300).
    And in your web dynpro application assign roles according to users choice.
    But It would be difficult to maintain roles. Because if you need to perform one change you need to apply them to their copies as well.

  • Reports 6.0 changing label dynamically

    I am using reports 6.0. I want to change reports label dynamically. I want to build the routine which should work for all the reports. This concept I want to use multi-language facility in my application.
    I have tried set_field, set_attr. But it didn't solve my problem . Can any one help me ?

    Madhuri,
    Please try the Reports forum rather then the SCM forum.
    David

  • How can i create n display label dynamically

    Hai, I want to create a label dynamically, meant when i pressed a button once one label generated for the next click of button another label. like this,
    so i need to know how to create and display a label.
    regards

    Hi,
    Armin's solution already answers your question.
    Create a value attributre CreatLabel..of type boolean and set it to false in init.
    Then in the button's action handler ,set it to true.
    And write this code in wdDoModifyView.
    In wdDoModifyView():
    if ( wdContext.currentContextElement().getCreateLabel() ){  /* create new label with automatic ID */  IWDLabel label = (IWDLabel) view.createElement(IWDLabel.class, null);  /* add label to some container */  someContainer.addChild(label);  /* reset creation flag */  wdContext.currentContextElement().setCreateLabel(false);}
    You should not create view element outside wdDoModifyView. So we write this in the wdDoModify view..a nd control when it is executed.. by means of setting CreateLabel value attribute..
    Regards
    Bharathwaj
    Message was edited by: Bharathwaj R

  • Setting label dynamically not working

    Dear All,
    I am successful in creating a List Bean dynamically, with multiple selection set true.
    But wen i call da setLabel() method to set the label dynamically it does not do so.
    It renders the listbean without any label.
    Can anyone give a clue as to thro which other method i can set the prompt.
    help awaited eagerly.
    Thanks,

    hi,
    i tried it but in vain..its nt working..

  • Modifying the Field labels dynamically at runtime.

    Hi,
    Is it possible to change the field labels dynamically at runtime . My
    requirement is when the user has to edit the quantity part ,he  presses  a fn key (F7 in my case ) that is displaying  a new field with the old label (quantity ) and old qnty label should be changed dynamically to '  previous quantity ' .
    Thanks For Your aniticpated responses.
    Message was edited by:
            Khaleel S.Mohammed

    Have you added teh Label as a text field?
    If you have done that, try replacing the label with a Input/Output type field in the display mode by selecting 'Output Only' in the attributes->Program Tab of Screen Painter.
    Now from the program , when the user presses F7, you can code to change the value of the Label (Input / Output field).
    This will work out. Please let me know if you have any issues.
    Regards,
    Anish Thomas

  • Sort a dynamic table

    Hi friends.
    I am currentyl trying to find a way to sort a table which only has dynamic attributes. I do not know the structure type at design and runtime.
    So how can I get a table of the dynamic attributes of a node like get_static_attributes_table( )?
    Any ideas are welcome.
    Cheers,
    Sascha

    Hi Sascha,
       Did you try using
    data : Table type  table

  • Business Graphics UI SimpleSeries Changing Label Dynamically

    Hi guys, I am using the business graphic UI element in one of my WD4A component. My BG has 2 simple series and one category. As I can see, using simple series, the label property cannot be bound against a context node attribute. I have to find a way to set this property dynamically.
    According to this link: click after on the simple series
    [http://help.sap.com/saphelp_nw70/helpdata/EN/ed/258841a79f1609e10000000a155106/frameset.htm|http://help.sap.com/saphelp_nw70/helpdata/EN/ed/258841a79f1609e10000000a155106/frameset.htm]
    It seems we can change the label property dynamically, maybe using the API but how?
    I found the interface IF_WD_BUSIN_GRAPHICS_MTD_HNDL, but I don't know how to use it!
    thanks
    Alex

    Hi Alexandre,
    have a look at the Web Dynpro component WDR_TEST_EVENTS, view BG_SIMPLE_IN_MPANE, method WDDOMODIFYVIEW.
    Here is a snippet for setting additional customizing or data for a business graphics view-element. Call this from method WDDOMODIFYVIEW.
    DATA lr_bg TYPE REF TO cl_wd_business_graphics.
    DATA lr_bg_method_handler TYPE REF TO if_wd_busin_graphics_mtd_hndl.
    DATA lr_add_cust_xml TYPE REF TO if_ixml_document.
    lr_bg ?= ir_view->get_element(  <your viewid of business graphic>  ).
    lr_bg_method_handler ?= lr_bg->_method_handler.
    lr_add_cust_xml =  get_<your additional customizing/data>.
    lr_bg_method_handler->add_direct_customizing(
    i_customizing = lr_add_cust_xml
    Kind regards,
    Silke

  • Sorting of dynamical  created table

    Hi,
    i created a context node for a table uielement and added in wddoinit method some attributes.
    The celleditor vor according columns is a DropDownByKey .
    How can i sort my table by one of this dynamical attributes/columns ?

    Hi ,
          I would like to explain the code in more detail
    DATA: lv_slno type string value 'SLNO',  " SLNO is your column name by which you want to sort
               lo_node type ref to if_wd_context_node.
      FIELD-SYMBOLS :
        <lv_table>  TYPE STANDARD TABLE.
    Get the reference of your table node into lo_node
    lo_node = wd_context->get_child_node(  'ABC' ).  " Assuming ABC is the node name
    Get the data of the node
    lo_node->GET_STATIC_ATTRIBUTES_TABLE(
                                                        IMPORTING TABLE = <lv_table> ).
    Sort the data in the table
    SORT <lv_table> BY (lv_slno) DESCENDING.
    Bind the sorted data again 
    lo_node->bind_table( <lv_table> ).
    I hope it is clear now . Let me know in case of any confusion .
    Regards
    Vivek

  • Datatable multible column sort labels

    How can i change labels of multible column sort panel to another language (Turkish). For example i want to convert "Primary Sort Column:" to "Birincil S&#305;ralama S&uuml;tunu" .
    Thanks for your helps.
    Edited by: m4erler on 15.Tem.2008 13:39

    Generally speaking, keep your localizable strings in a properties file attached to a resource bundle. Then access the strings via the resource bundle. JSF has support for this.
    In you need more details, google for internationalization and localization in Java and JSF. Check the javadoc for the ResourceBundle class, examine the documentation of the <f:loadBundle> tag, the documentation for the <resource-bundle> and <message-bundle> directives in the faces-config.xml, and see section 2.5.2 in the JSF spec.

  • Sorting columns dynamically using Presentation Variables

    Hi,
    I have 4 measures say A,B,C,D , a period dimension and branch name dimension. I would like to select the measure in the prompt and the result should display rank for the selected measure using presentation variables. For eg: If measure-A is selected, the result should be arranged in order by based on "A".
    Is it possible to sort the columns dynamically?
    Kindly help me.
    Regards,
    RB

    Hi RB,
    You can do that, though it's a bit more complicated than a simple SQL statement. For example:
    WITH BASEDATA AS (
    SELECT
      EMPNO,
      ENAME,
      MGR,
      SAL,
      COMM,
      CASE WHEN :P4_SORT_ORDER = 1 THEN
        ROW_NUMBER() OVER (ORDER BY UPPER(ENAME))
      WHEN :P4_SORT_ORDER = 2 THEN
        ROW_NUMBER() OVER (ORDER BY (SELECT NVL(MIN(UPPER(E2.ENAME)),'-Select-') FROM EMP E2 WHERE E2.EMPNO = EMP.MGR))
      WHEN :P4_SORT_ORDER = 3 THEN
        ROW_NUMBER() OVER (ORDER BY (SELECT NVL(MIN(UPPER(E2.ENAME)),'-Select-') FROM EMP E2 WHERE E2.EMPNO = EMP.MGR), UPPER(ENAME))
      WHEN :P4_SORT_ORDER = 4 THEN
        ROW_NUMBER() OVER (ORDER BY UPPER(ENAME) DESC)
      WHEN :P4_SORT_ORDER = 5 THEN
        ROW_NUMBER() OVER (ORDER BY (SELECT NVL(MIN(UPPER(E2.ENAME)),'-Select-') FROM EMP E2 WHERE E2.EMPNO = EMP.MGR) DESC)
      WHEN :P4_SORT_ORDER = 6 THEN
        ROW_NUMBER() OVER (ORDER BY (SELECT NVL(MIN(UPPER(E2.ENAME)),'-Select-') FROM EMP E2 WHERE E2.EMPNO = EMP.MGR) DESC, UPPER(ENAME) DESC)
      END SORTITEM,
      'O' STATUS
    FROM
      EMP
    SELECT
      EMPNO, 
      ENAME,
      MGR,
      SAL,
      COMM
    FROM
      BASEDATA
    ORDER BY
      SORTITEMUsing a CASE statement this assigns a ROW_NUMBER to every record based on its ordering within the selected ORDER BY clause. The output is then sorted by this value.
    Andy

  • How can I sort a dynamically generated table

    I am dynamically populating the columns in a table every time my page is loaded. (see code below)
    This is all working fine, and I am also able to use the built in pagination.
    However, I run into problems as soon as I click on a column header to try sort the table.
    I assume that because the columns are not defined in the JSP (because they are added dynamically), the sort criteria is referring to non-existant columns once the page reloads.
    I get an exception as follows
    Exception Details:  org.apache.jasper.JasperException
      #{currentRow.value['categories.category_id']}Can anyone suggest a solution so that I can sort the data for my dynamically generated table?
    Cheers,
    Ian
    //NOTE: I call populateTable(tableRowGroup1,dynamicRowSetDataProvider) in my prerender code.
    //tableRowGroup1 is defined as an empty (ie no children) row group in the JSP
    private void populateTable(TableRowGroup rowGroup, DataProvider dp) {
        rowGroup.setSourceVar("currentRow");
        try {
            FieldKey[] columnNames = dp.getFieldKeys();    
            for(int i=0; i < columnNames.length; i++) {
                String columnName = columnNames.getFieldId();
    info(i+": columnName");
    rowGroup.getChildren().add(
    createStaticTextColumn(columnName, "#{currentRow.value['"+columnName+"']}")
    } catch (Exception ex) {
    log("Error Description", ex);
    info("Error Description : " + ex);
    return;
    private TableColumn createStaticTextColumn(String heading, String dataField) {
    TableColumn tableColumn = new TableColumn();
    tableColumn.setHeaderText(heading);
    tableColumn.setSort(dataField);
    TextField staticText = new TextField();
    ValueBinding vb = getApplication().createValueBinding(dataField);
    staticText.setValueBinding("text", vb);
    tableColumn.getChildren().add(staticText);
    return tableColumn;

    I'm also having this problem, and I'm sure many more are too. It seems that no one has a solution, but perhaps that makes it even more value able for a sun dev to figure it out. It's surprising that it's so difficult to make dynamically generated tables with JSC.

  • Sorting records dynamically in REF cursor, based upon a dynamic field

    Hi,
    I have a REF CURSOR built by using row type, table type and PIPELINE function. I have opened the ref cursor now. I would like to update a field called 'RANK' based upon 'RATIO' field in the REF CURSOR. i.e order the records in the ref cursor by RATIO field and then update the RANK as 1, 2, 3, 4, ....
    Aim: I want to update a field in the REF CURSOR based upon another numeric field.
    Please help me.
    OPEN sales FOR
    SELECT RANK, ratio
    FROM TABLE (fngetfundholdingsale (in_primarykey, in_flag));
    loop
    fetch sales into sale1;
    exit when sales%notfound;
    --I want to update sale1.rank based upon ratio
    end loop;
    Thanks
    Ashok

    Try to use NDS (Native Dynamic SQL):
    l_order := 'ratio';
    OPEN sales FOR
    'SELECT rank' ||
    '  FROM TABLE (fngetfundholdingsale (:in_primarykey, :in_flag))' ||
    ' ORDER BY ' || l_order
      USING in_primarykey, in_flag;Regards,
    Zlatko

  • Updating labels dynamically for a standard transaction - PR05

    Hi All,
    I have a change to do in PR05 Transaction.
    In PR05 -> After hitting Create button -> Enter From/End date -> Then in line item level Enter Travel Expense Type & Amount and select that row and -> Hit on Infos[Addl. Receipt Info.] button then -> it will show 1/2/3 text boxes in Addnl. Info tab.
    Now my requirement is for these 3 text boxes i need to change the 'Labels'  Like changing Business Purpose to Purpose after checking against one Z-Table entries, changing Location to some other lable and so on...
    How can this be achieved for this Screen in PR05.
    What is the approach would be!
    Thanks in advance.
    Thanks,
    Deep.

    Hi,
    Any Resolution for above posted issue!
    Thanks,
    Deep.

Maybe you are looking for

  • Error while deploying an sda from SDM.

    Hi All Am trying to deploy a sda file from SDM. But am getting this error during the deployment process Caught exception during access of archive ...'the sda archive' java.lang.NullPointerException (message ID: com.sap.sdm.serverext.servertype.inqmy.

  • Question about 'tags' in ecommerce templates?

    I have a client with an Ecommerce section. Now the System email for the invoice is setup fine however the client wanted to add a 'thank you' block of text to the email. No problem. Then they came back and wanted to have the 'thank you' block of text

  • New iPod touch and iPad 2 stopped wireless sync

    There was a time when I could wirelessly sync my iPad to my Windows PC but now it will not sync and my new iPod touch version 5 will not sync either.  Currently, the only way I can sync is via USB and that isn't convenient.  It is downright irritatin

  • First Siebel 8.1 Go Live – Leanings About CC Encryption In 8.1

    Hi All, Wanted to report the findings from our first Siebel 8.1 go live. It was a SIA 7.5 to 8.1 and Oracle 9 to 11g. Overall things went very well. The main issue was some of our queries were slow. These were fixed by using a PPS init.ora setting th

  • Suddenly my past emails won't load. Missing body and headers, just blank. How can I fix this?

    I have email listings, and even double clicking then that opens a new tab is blank. It is affecting emails from April 19 and earlier to all I have in listing back to 2009. I cannot access any of the actual email bodies and headers also do not load. I