netui:sellect , optionsDataSource, and ordered data

Presenting ordered data using <netui:select> with optionsDataSource is funky. It expects data in the optionsDataSource Map exactly backwards from what it "should".
Because of this, you cannot use a TreeMap to sort the display text, and pass it to <netui:select> since it expects the display text to be in the "values" part of the map instead of the "keys".
The only workaround I've found is to put your data in a TreeMap for sorting, then iterate through the keys and copy the sorted data into a LinkedHashMap (which preserves order) while swapping the keys and values.
For example, if you used TreeMap in the <netui:select> sample code below, it will present the list ordered by the HEX "submit values", not the text seen by the user.
public HashMap _hashMap = new HashMap();
protected void onCreate()
_hashMap.put("#ff3333", "red");
_hashMap.put("#3333ff", "blue");
_hashMap.put("#33ff33", "green");
Phil

This probably happens because the your actionForm.decoderModel has a value that is not present as one of the entry(key) in the hashMap. Are you modifying the values in the hashMap by any chance?
          regards
          deepak

Similar Messages

  • Regarding Goods issue date and order date.

    Hi All,
    Could you please tell me from where we can fetch Goods issue date and Order date.
    Waiting for your reply.

    Preeti,
    Goods issue date/order date of what ?
    Goods can be issued in a number of ways, in reference to many types of documents.  In each case, the GI date and order date are found in different places.
    Please elaborate your request.
    Best Regards,
    DB49

  • I have order number and order date with me want to down load adobe creative cloud can you advise how to go about it

    i have order number and order date with me want to down load abode creative cloud on my desktop pls can you advise me how to go about it pls

    Creative Cloud Help / Creative Cloud for desktop
    https://helpx.adobe.com/creative-cloud/help/creative-cloud-desktop.html
    Creative Cloud Help / Sign out, Sign in | Creative Cloud desktop app
    http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html
    Creative Cloud Help / Install, update, or uninstall apps
    http://helpx.adobe.com/creative-cloud/help/install-apps.html
    Installing Creative Cloud Apps
    http://tv.adobe.com/watch/cs6-creative-cloud-feature-tour-for-video/installing-desktop-app s-from-creative-cloud/

  • Reason for deviation  in invoice date and order date

    hi all,
    i want to know the field and table name for reason for deviation.
    suppose the difference in invoice date and order date is 7 days.
    how can i find the reason for this difference.
    thanks in advance

    Dear bala
    Obviously there will be a difference between sale order date and billing date in real time scenarios. However, if you want to capture, you have to maintain the relevant text in billing (Goto --> Header --> Header texts).
    thanks
    G. Lakshmipathi

  • HT201272 My Invoice #**** and Order # **** date: 13/05/2012

    As I'm a new user of Apple Products and its Apps, I made a lots of purchase but i update my Iphone and some of my Purchased Apps is missing after that update. I search for that Apps in Apps store but couldn't find it. Suggest what to do. My Invoice #**** and Order # **** date: 13/05/2012 and most important thing that i paid in Dollars.
    <Edited By Host>

    You are not talking to Apple support but to fellow users.
    It's possible some of the apps are not compatible or no longer available.
    If you can find the invoice click the Report a Problem link or go to:
    https://expresslane.apple.com/
    and raise an issue via itunes store support links.
    AC

  • Grouping and ordering data

    I want to use grouped data from a query column. At the
    moment I can output and group the data using cfifs dependant
    on months and years. How can I find recordcounts and use the
    variables #doct07# #dnov07# #ddec07# #djan08# #dfeb08# #dmar08# so
    they keep the values in the cfoutput query? TIA
    <cfquery name="qrysales">
    SELECT clientinfo.visit
    FROM clientinfo
    order by clientinfo.visit
    </cfquery>
    <cfoutput query="qrysales">
    <cfset datesbymonth=(month(qrysales.visit))>
    <!--- 2007 entries --->
    <cfif qrysales.visit contains "2007">
    <cfif datesbymonth eq 10>
    <cfset doct07=#datesbymonth#>
    #doct07#
    <cfelseif datesbymonth eq 11>
    <cfset dnov07=#datesbymonth#>
    #dnov07#
    <cfelseif datesbymonth eq 12>
    <cfset ddec07=#datesbymonth#>
    #ddec07#</cfif>
    <!--- 2008 entries --->
    <cfelseif qrysales.visit contains "2008">
    <cfif datesbymonth eq 1>
    <cfset djan08=#datesbymonth#>
    #djan08#
    <cfelseif datesbymonth eq 2>
    <cfset dfeb08=#datesbymonth#>
    #dfeb08#
    <cfelseif datesbymonth eq 3>
    <cfset dmar08=#datesbymonth#>
    #dmar08#
    </cfif>
    </cfif>
    </cfoutput>

    See attached screen shot:
    To understand how the optional grouping works look at the attached
    example. I put some print lines on two charts that write out to a file.
    You will need to change the location. In that example my data comes
    in like:
    sourcedata[0][0] = 10;
    sourcedata[0][1] = "Chris Kwai";
    sourcedata[0][2] = 232;
    sourcedata[1][0] = 10;
    sourcedata[1][1] = "Ice Bella";
    sourcedata[1][2] = 291;
    sourcedata[2][0] = 10;
    sourcedata[2][1] = "Nola Dicci";
    sourcedata[2][2] = 567;
    sourcedata[3][0] = 11;
    sourcedata[3][1] = "Chris Kwai";
    sourcedata[3][2] = 312;
    sourcedata[4][0] = 11;
    sourcedata[4][1] = "Ice Bella";
    sourcedata[4][2] = 614;
    sourcedata[5][0] = 11;
    sourcedata[5][1] = "Nola Dicci";
    sourcedata[5][2] = 212;
    So for 3 users I have 10 and 11 value. If I do not optionally group my
    chart (But I group sum on x-axis) gets two sets of data one for the
    category and one for the summed values for each user.
    Series Data <undefined>
    Chris Kwai
    Ice Bella
    Nola Dicci
    Series Data <undefined>
    544.0
    905.0
    779.0
    If I use optional grouping I get three sets of data. One for the
    category and then one for each optional group (ie 10 and 11):
    Series Data <undefined>
    Chris Kwai
    Ice Bella
    Nola Dicci
    Series Data for month 10
    232.0
    291.0
    567.0
    Series Data for month 11
    312.0
    614.0
    212.0
    This will then draw two bars (10 and 11) for each user.
    Does this make sense?
    Jason
    On 10/26/2011 11:12 AM, Kevin Williams wrote:
    > Jason,
    >
    > Thank you for the quick response! Any chance you can send me a screen
    > shot of the group sort icon? I'm sorry, but I for the life of me, I
    > don't see it (I'm sure it's staring me straight in the face!).
    >
    > Also, I'm apparently misunderstanding the optional grouping field--I
    > there any documentation you can point me to on what it does (teach me to
    > fish)?

  • HOW to retrieve PURCHASE ORDER DATA from archieve file and print a report

    Dear all
    1) I have retrieve purchase order data from archived files.
    2)  print purchase order data and created pdf file.
    VIJ.............
    Moderator message - Please ask a specific question - post locked
    Edited by: Rob Burbank on Apr 28, 2009 12:00 PM

    Dear all
    1) I have retrieve purchase order data from archived files.
    2)  print purchase order data and created pdf file.
    VIJ.............
    Moderator message - Please ask a specific question - post locked
    Edited by: Rob Burbank on Apr 28, 2009 12:00 PM

  • Table for  the PO Date and Stock Transfer Order Date of a material no

    Hello Everyone!
    I am having a requirement where I want both the Purchase Order Date and Stock Transfer Order Date of a perticular material no.
    On the basis of difference of these two dates I want to find out the period for which the material was present in supplying plant.
    I am not getting the table through which I can get these two dates for a material.
    Please help me out.
    Its urgent.

    hi,
    see these tables:
         EKKO – Purchase Order Header Table
         EKPO – Purchase Order Item  Table
         EKBE – PO History table.
    reward if its useful

  • Creation of Z reports for client adding two more column that is Purcahse order and delivery dates with Internal order wise

    HI Experts,
    Can any one help me to add two more column for standard report that is purchase order and delivery dates for Internal order wise.
    But here problem is when i checked with ABAP team they said there is no standard functional module to add two column.
    Please note below :
    Selection criteria is: 1) controlling area
                                  2) Fiscal Year
                                  3) From date and To date
                                  4) Plan Version
                                  5) Order Group.
    My client suggested : S_ALR_87012993 this tcode to run, but we suggested with S_ALR_87013019 as in this tcode we can get all the details
    That is required output fields, as it is showing all details but on yearly basis, he wants this to be period wise and also Abap team is not able to find standard functional module in the second tcode as well.
    Out Put fields to Pop up
    1) Orders.
    2) Budget
    3) Actual
    4) commitment
    5) Alloted
    6) Available
    These are two additional column
    7)Purchase order
    8) Delivery date.
    Require your help to know which all tables are included to extract above out put fields please help me.
    Thanks in Advance.
    Regards,
    Sudesh

    Hi Preeti,
    Thanks for reply, can you please let me know is there any other way to show the output fields.
    As my client is very specific to run the report on period wise, i also tried to execute the standard tcode S_ALR_87013019 and were we are getting all the required outputs to pop up but this is on year wise, but we can also check by period basis by clicking on order number and actual period basis where we can see period basis.
    Also one more question,what is the commitment table which is popping up in this, please advise.
    Thanks in advance.
    Regards,
    Sudesh

  • SNP Planned order start and end dates are not calculated correctly

    Hello SNP Guru's
    The SNP planned orders generated after the Heuristics run, have a start and end date based on the Activity Duration (Fixed), while the resource consumption is based on the Bucket Consumption (Variable), which is correct.
    The Activity Duration (Fixed) is based on the BOM Base Quantity. So if the Activity Duration = 1 day, and if the order quantity is more than a day, the start and end dates, still shows as 1 day. So no matter what is the order quantity, the start and end dates is always = 1 day.
    Does anyone have any experience in implementing any code to change the start and end dates on SNP Planned Order?
    Seems like it should work as standard.
    Am i missing something?
    Thanks,
    Mangesh

    Dear Mangesh,
    SNP is a infinite planning tool. If you have defined fixed duration to be 1 DAY in the activity, no matter how many quantity you input for your planned order, the order will last for one day. If the resourced is overloaded, you then run capacity levelling to
    banlance the capacity. What your expected beahavior happens in PPDS planning.
    Claire

  • Copy data customer PO and PO date field from quotation to sales order

    Hi Friends,
    Can you please let me know what copy control settings I need to maintain in order to copy customer PO# and PO date field data in quotation to sales order.
    All the data is getting copied from quotation to sales order when I create sales order with reference to quotation but the customer PO no. and PO date is not getting copied.
    Can anyone please help.
    Regards,
    Wasim.

    HI
    Not sure if this is possible via Customization or not but you can try the user-exits or Routines for the Sales Order program for this
    You need to change the include FV45C102 (assuming you have copied standard order and the copy controls). ABAP team should be able to make changes to this routine and achieve your requirement.
    In VTAA, after choosing the Source and Target order type and choosing the right Quatation item, check the routine for 'Bus.data/item compl.' and it will be what has been mentioned above.
    Please check &Revert
    Thanks&Regards
    Raghu.k

  • How to header and item data of sales order using bapi interface

    hi friends,
       i am geetha, i having a problem like how to upload sales oder header and item data through va01 tcode using BAPI FUNCTION MODULES.
    i need bapi function modules for header adn item data  and brief explation on that , how to pass importing and tables  parameters to get exact output .
    regards
    geetha.

    Use : BAPI_SALESORDER_CREATEFROMDAT2
    Sales order: Create Sales Order
    Functionality
    You can use this method to create sales orders.
    You must enter at least sales order header data (via ORDER_HEADER_IN structure) and partner data (via the ORDER_PARTNERS table) as input parameters.
    Enter the item data via the ORDER_ITEMS_IN table. You can allocate item numbers manually, by filling in the relevant fields, or the system does it, according to the settings for Customizing, by leaving the relevant fields blank.
    If you have configurable items, you must enter the configuration data in the ORDER_CFGS_REF, ORDER_CFGS_INST, ORDER_CFGS_PART_OF and ORDER_CFGS_VALUE tables.
    Credit cards can be transferred via the BAPICCARD structure, on the one hand, data for card identification, on the other, data for a transaction which has taken place in an external system.
    Once you have created the sales order successfully, you will receive the document number (SALESDOCUMENT field). Any errors that may occur will be announced via the RETURN parameter.
    If no sales area has been created in the sales order header, then the system creates the sales area from the sold-to party or ship-to party, who has been entered in the partner table. If a clear sales area cannot be created, you will receive a system message, and the sales order will not be created.
    Notes
    1. Mandatory entries:
    ORDER_HEADER_IN : DOC_TYPE     Sales document type
                       SALES_ORG    Sales organization
                       DISTR_CHAN   Distribution channel
                       DIVISION     Division
    ORDER_PARTNERS..: PARTN_ROLE   Partner role, SP sold-to party
                       PARTN_NUMB   Customer number
    ORDER_ITEMS_IN..: MATERIAL     Material number
    2. Ship-to party:
    If no ship-to party is entered, use the following: Ship-to party =
    sold-to party.
    3. Commit control:
    The BAPI does not have a database commit. This means that the relevant application must leave the commit, in order that can be carried out on on the database. The BAPI BAPI_TRANSACTION_COMMIT is available for this.
    4. German key words:
    The following key words must be entered in German, independantly of
    the logon language:
    DOC_TYPE     Sales document type, for example: TA for standard order
    PARTN_ROLE   Partner role, for example: WE for ship-to party
    Further information
    You can find further information in the OSS. The note 93091 contains general information on the BAPIs in SD.
    Parameters
    SALESDOCUMENTIN
    ORDER_HEADER_IN
    ORDER_HEADER_INX
    SENDER
    BINARY_RELATIONSHIPTYPE
    INT_NUMBER_ASSIGNMENT
    BEHAVE_WHEN_ERROR
    LOGIC_SWITCH
    TESTRUN
    CONVERT
    SALESDOCUMENT
    RETURN
    ORDER_ITEMS_IN
    ORDER_ITEMS_INX
    ORDER_PARTNERS
    ORDER_SCHEDULES_IN
    ORDER_SCHEDULES_INX
    ORDER_CONDITIONS_IN
    ORDER_CONDITIONS_INX
    ORDER_CFGS_REF
    ORDER_CFGS_INST
    ORDER_CFGS_PART_OF
    ORDER_CFGS_VALUE
    ORDER_CFGS_BLOB
    ORDER_CFGS_VK
    ORDER_CFGS_REFINST
    ORDER_CCARD
    ORDER_TEXT
    ORDER_KEYS
    EXTENSIONIN
    PARTNERADDRESSES
    Exceptions
    Function Group
    2032

  • BAPI for Create PO from Sales Order Data and POST GR from PO created

    Dear,
             Can u help me how to create BAPI for Purchase Order creation from sales order Data
              what the bapi to Post GR from the PO created.
    Regards,
    Manoj

    Hello Manoj what you have to do to create PO from PR is that
    1) Use   BAPISDORDER_GETDETAILEDLIST (pass sales order number in sales_document table) and then get PR (Purchase requisition number from this BAPI.
    2) Use  BAPI_REQUISITION_GETDETAIL to get PR items
    3) Use BAPI_PO_CREATE1 to craete PO from PR then.
    to create goods movement you can use
    BAPI_GOODSMVT_CREATE
    REWARDS IF USEFUL.

  • Req. delivery date and Delivery date should be same in a sales order

    Hi experts,
    We need a customization for getting Requested delivery date, Material Availability date and Delivery date should be same.
    Example if I keep request delivery date as 12/12/2012, system should consider same dates for MAD and Delivery and confirm the requested quantity.
    How to achieve this customization..
    Thanks,
    Bala.

    system should consider same dates for MAD and Delivery and confirm the requested quantity
    What you are going to achieve by this?  Hope you know the concept of MAD and confirmed quantity fields.  Let us assume, if stock is not there for a material for which sale order is created, can you let me know, you want the system still to confirm the quantity? You can post the goods issue only if system confirms the quantity in schedule line which is possible, only if stock is made available.  If client asks something which is not possible in SAP, think in a logical way how SAP works and convince them accordingly. 
    G. Lakshmipathi

  • Contract Start and End Dates in Sales Order

    Hi
    I have a situation where a service item is bundled with a deliverable item. The order is as follows
    Line Item    Mat                                                                 Qty            Higher Level Item               
    10              Item No.1 (Physical Item)                                  1             
    20              Item No.2 (Service Item)                                    1               10
    For the deliverable item 10 , Revenue is recognized immediately. For the Service item no.20 , revenue needs to be recognized over a period of 1 Year (It is a 1 year service contract).
    The whole order is created via BAPI from an external 3rd party order capture system.
    In order to do revenue recognition properly for service items , SAP I believe has 2 options
    1. Based on Billing plan dates
    2. Based on contract start dates
    Since order with both the line items need to produce 1 invoice, I cannot use billing plan . The only other option is to use contract start and end dates. I have enabled contract data at the sales order level. So when I enter the contract start and end dates manually at the line item level and set the item category to recognize revenue based on contract start and end dates based on time-based revenue recognition it is working fine.
    But I need a way to automate the population of contract start and end dates at the line item level. My ABAP guy is not able to find a user exit that can change the XVEDA or any VEDA structure in any of the user exits.
    I guess the SAP SD gurus out there would have definitely dealt with a situation of product bundling (Service and non-service items in the same sales order with one billing document , but seperate revenue recognition for service and non-service items)
    Please help.
    Thnx
    Siva

    Hi Siva,
    Kindly let me know what criteria you want to give for automatic population of start date of contract...
    Standard SAP comes with a few baseline dates for contract start date and we can control this from customization itself. 
    01     Today's date
    02     Contract start date
    04     Acceptance date
    05     Installation date
    06     Date contract signed
    07     Billing date/Invoice date
    08     CntrctStDate+contract duration
    09     Contract end date
    If you have some criteria which is not covered here, then let me know and i will try to provide some help then.
    Thanks
    Kapil Sharma

Maybe you are looking for

  • Slow performanc​e - Windows 7

    it was real shock when start using this product ( Lenovo T540p ) which was expected to have high speed performance being one of latest versiones ( T540P / i7 -8GB RAM ) specialy, and sorry to say - compairing with other brand beeing using for last fi

  • Possible to DECOMPOSE a fcp sequence like in AVID?

    A quick question.... How simple is it to decompose the video of a sequence and then re-digitize the material? I'm an Avid editor making the switch and I'm still a little hazy about fcp media management. If I load my project at lo-rez (offline photo j

  • Photo Booth Effects have vertical green lines

    Can anybody explain why some of my photo booth effects have vertical green lines running through them and how it can be corrected/removed?! Looking at the files they all begin with "dts" /Users/audio3/Desktop/Photo 7.jpg

  • Security issues with Lion

    Anyone know what the real deal is with OS X Lion security.  I've heard lots of things about how the recent Blackhat conference in Las Vegas said that Apple's security was not as good as Windows 7's.  Anyone know anything about this?  Thanks in advanc

  • IPhone using Mac Mini's internet connection sharing, stops loading webpages

    Bought an iPhone 1 hour ago. I'm sharing my internet connection to my iBook and MacBook from my Mac Mini. Works fine. Can't connect using the iPhone. It will detect the network, it will show full network reception, but it will only load webpages for