Problems showing Values in a DROPDOWNBYINDEX

Hello together,
I've got a problem of showing values in a Drop Down  Box.
I've got 1 Dropdown box, 1 button and a text field. In the text field i'm wirting a carrid for example AC.
If i press the button in the Drop down box should show the name to the corresponding carrid for example Air Canada.
this is my code till yet. But i don't see what's missing.
Maybe anybody can help?
  Data: context_node type ref to if_wd_context_node.
  Data: it_carriers TYPE STANDARD TABLE OF scarr,
        wa_carriers LIKE LINE OF it_carriers,
        wa_carrid(3) TYPE c.
  context_node = wd_context->get_child_node( 'DROPDOWN_CARRIERS' ).
  context_node->get_attribute( exporting Name = 'CARRID' importing value = wa_carrid ).
  select * from scarr
    INTO wa_carriers
    WHERE carrid = wa_carrid.
    APPEND wa_carriers TO it_carriers.
  ENDSELECT.
  context_node = wd_context->get_child_node( name = 'CARRID').
  context_node->BIND_TABLE( new_items = it_carriers ).

Get the selected row by using code wizard and use the values of the structure whereever you want. Refer to the below code:
Suppose I have a Node NODE_OUTPUT and binded with my table UI element. We need to get the selected row (ls_node_output) in my Button UI event handler method as below:
    DATA lo_nd_node_output TYPE REF TO if_wd_context_node.
    DATA lo_el_node_output TYPE REF TO if_wd_context_element.
    DATA ls_node_output TYPE wd_this->element_node_output.
  navigate from <CONTEXT> to <NODE_OUTPUT> via lead selection
    lo_nd_node_output = wd_context->get_child_node( name = wd_this->wdctx_node_output ).
  get element via lead selection
    lo_el_node_output = lo_nd_node_output->get_element( ).
  get all declared attributes
    lo_el_node_output->get_static_attributes(
      IMPORTING
        static_attributes = ls_node_output ).

Similar Messages

  • Problem showing values for JProgressBar!!

    Hi there!!
    I'm having two classes,one named TestProgressBar which contains a JProgressBar whose values I want to increment for every specific calculated value and the second named showTable which defines the table model for a table structure I'm showing in the frame of TestProgressBar.In fact I'm trying to load the values of an in-class defined array into the table but I want to do it in a way that after every line shown in the table my JProgressBar increments the percentage of lines shown,,e.g I have 4 rows to populate and after 1 line has been shown in the table,the percentage out of 4 lines checked becomes 25%,,so I want the JProgressBar to show 25%,,then come back,,show the second line in the table and increment the JProgressBar to the next calculated percentage,,which in this case wud be 50%...I'm attaching my code for the two classes here,,
    /////////////////TestProgressBar/////////////////////////////////
    import javax.swing.JTable;
    public class TestProgressBar extends javax.swing.JFrame implements Runnable{
        static int rowsCheckedPercentage;
        static int noOfRows;
        static int currentRowNumber;
        int[] arr={1,2,3,4};
        /** Creates new form TestProgressBar */
        public TestProgressBar() {
            initComponents();
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        // <editor-fold defaultstate="collapsed" desc=" Generated Code ">                         
        private void initComponents() {
            jScrollPane1 = new javax.swing.JScrollPane();
            jButton1 = new javax.swing.JButton();
            jProgressBar1 = new javax.swing.JProgressBar();
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            jButton1.setText("Click");
            jButton1.addMouseListener(new java.awt.event.MouseAdapter() {
                public void mouseClicked(java.awt.event.MouseEvent evt) {
                    jButton1_Clicked(evt);
            jProgressBar1.setStringPainted(true);
            org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
            getContentPane().setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(layout.createSequentialGroup()
                    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                        .add(layout.createSequentialGroup()
                            .add(198, 198, 198)
                            .add(jButton1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 98, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                        .add(layout.createSequentialGroup()
                            .addContainerGap()
                            .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 470, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                        .add(layout.createSequentialGroup()
                            .addContainerGap()
                            .add(jProgressBar1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 470, Short.MAX_VALUE)))
                    .addContainerGap())
            layout.setVerticalGroup(
                layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()
                    .add(41, 41, 41)
                    .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 220, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(16, 16, 16)
                    .add(jProgressBar1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 30, Short.MAX_VALUE)
                    .add(jButton1)
                    .addContainerGap())
            pack();
        }// </editor-fold>                       
        private void jButton1_Clicked(java.awt.event.MouseEvent evt) {                                 
            run();
         * @param args the command line arguments
        public void run()
            showTable tableModel=new showTable();
             table=new JTable(tableModel);
             System.out.println("No. of rows"+table.getRowCount());
             noOfRows=table.getRowCount();
             for (int i=0;i<arr.length;i++)
                table.setValueAt(arr,i,0);
    table.setValueAt(arr[i],i,1);
    table.setValueAt(arr[i],i,2);
    table.setValueAt(arr[i],i,3);
    currentRowNumber=i;
    try
    Thread.sleep(2000);
    new Thread(new thread2()).start();
    catch (InterruptedException ex)
    ex.printStackTrace();
    jScrollPane1.setViewportView(table);
    public static void main(String args[]) {
    java.awt.EventQueue.invokeLater(new Runnable() {
    public void run() {
    new TestProgressBar().setVisible(true);
    public class thread2 implements Runnable{
    public void run()
    System.out.println("Thread for JProgressBar");
    rowsCheckedPercentage=(currentRowNumber+1)*100/noOfRows;
    System.out.println("**Percentage checked "+rowsCheckedPercentage);
    jProgressBar1.setValue(rowsCheckedPercentage);
    jProgressBar1.repaint();
    // Variables declaration - do not modify
    private javax.swing.JButton jButton1;
    private javax.swing.JProgressBar jProgressBar1;
    private javax.swing.JScrollPane jScrollPane1;
    // End of variables declaration
    private javax.swing.JTable table;
    //////////////showTable//////
    * showTable.java
    * Created on May 28, 2007, 3:37 PM
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    * @author Kamran
    import javax.swing.table.*;
    public class showTable extends AbstractTableModel{
        public showTable()
        /** Creates a new instance of showReults */
        private String[] columnNames = {"Col1","Col2","Col3", "Col4"};
        private Object[][] data = {
        public int getColumnCount() {
            return columnNames.length;
        public int getRowCount() {
            return data.length;
        public String getColumnName(int col) {
            return columnNames[col];
        public Object getValueAt(int row, int col) {
            return data[row][col];
        public Class getColumnClass(int c) {
            return getValueAt(0, c).getClass();
         * Don't need to implement this method unless your table's
         * editable.
        public boolean isCellEditable(int row, int col) {
            //Note that the data/cell address is constant,
            //no matter where the cell appears onscreen.
                return false;
         * Don't need to implement this method unless your table's
         * data can change.
        public void setValueAt(Object value, int row, int col) {
            data[row][col] = value;
            fireTableCellUpdated(row, col);
    }One more problem associated with it is that the first percentage values being shown in the console is 50% not 25%,,don't get what's the problem for it,,though this values when calculated inside the JProgressBar's run() method gives me right values,,i.e 25,50,75,100..
    Can anybody please help??Thanks in advance,,,,,

    Project definition values appear fine as expected in CN41 .
    Is that mean that you have created a new custom fields for project definition using an exit? Are you able to view those fields in CN41 report?  Please confirm. 
    Because, there is a thread available now, where a user is not able to see project definition custom fields in CN41 report. You reply may help him.

  • Problem showing BI report in SAP CRM 7.0

    Problem showing BI report in SAP CRM 7.0
    We are facing a problem in our SAP CRM, when we show a BI report in the fact sheet we can see the report correctly.
    But when we click on the match code of the query, (in order to choose a value from the help) the popup does not appear and we got the error u201Caccess denied     popup_ie6.jsu201D
    Any help?
    Thank you in advance.

    Hi,
    Please check the service patch for BW.
    In our S/m it is working Fine.
    SAP_BW     701     0003     SAPKW70103     SAP Business Warehouse
    BI_CONT     704     0003     SAPK-70403INBICONT     Business Intelligence Content
    Regards,
    Lokesh.

  • Proper showing value of a column type chart in BI 7.0

    Hi,
    I am in BI 7.0.  I created a Web template with column type chart.  I want to show the column value only when users move the cursor on top of the column.
    The problem is when system showing value also show the category/serious and category description.  Is there any way to show value only?
    Thanks for your help,
    Frank

    Hi Wond,
    Thanks for your quick response. 
    Your solution is for BW 3.5 or BI 7.0?  I remember with BW 3.5, WAD has chart property and option.  But, I don’t think BI 7.0 has chart option.  I am with BI 7.0.  I clicked on property and nothing happens.  I don’t know is my system setup issue or other.  When I modify chart property, I have to use Edit -> Wizard or Refine.
    Any other solution?
    Regards,
    Frank

  • Formula in Excel Sheet shows #VALUE!.

    Hi,
    I have 11gr2 Forms/Reports with Windows Server 2008 64-bit.
    I have Excel sheet imported from Oracle Reports with destype=enhancedspreadsheet.
    Problem is in my Excel sheet, that when I add formula to multiply two columns, it shows #VALUE! error, which is actually occurs
    when we multiply a text column with number column.
    Although values in columns in number format (like 8600.000,45.000), it assumes these as text column and when
    I re-enter same values in columns manually, formula column shows result without any error.
    Is there any settings in REPORTS to avoid this error ?
    Thanks with Regards.
    Bhatt.

    Tom,
    This may seem like a stupid comment but have you checked to see if the excel formulas were put into the layout in the layout definitions screen and not in the layout while executing the layout?  Also does the layout have dynamic columns? 
    For example, if I have 12 Dynamic columns for the periods of the year based on a variable it would only show up in the layout definition screen as 1 data column but would be 12 columns on executing the layout and thus the Excel Formula need to be in the 13th column rather than the 2nd column
    Hope this helps,
    Mary

  • Why in FI doc. show value 909 but in table BSEG-DMBTR show 9.09 ?

    hello everyone .
    I have problem
    in FI document (transaction code FB03) system show value 909
    but in BSEG it's show 9.09
    and i use this value to show in report .
    it's show 9.09 .
    could you tell me why this happen ?
    what should i do to fix this problem ?
    please help.

    Hi
    There are some currencies which will not always use 2 decimals, they can be 3, 4 or even none. Since the data element used for storing this field is 2 decimals, internally the amount will be stored after converting the amount to 2 decimals.
    But when the same amount is displayed in any screen or reports it will use the currency key associated with the amount and does the conversion as per table TCURX and displays them.
    So this is not any problem, you do not have to worry. But whenever you are using these amount fields always add the currency addition for any purpose be it ALV, list output etc. so that you will not have any issue.
    Regards
    Ran ganath

  • Problem : writing values to table continously

    i am using for loop to write values to table. N=10 is set for the loop. now table is showing values after 10 iterations of the loop but i want to take value of each itration. actually i am measuring resistivity at different temperature using agilent 34970A DA unit. temperature is increaing contineously and returning values. so i want to keep record of each and every step. i am attaching VI with this post. hopefully you will get my problem.. thanks
    Attachments:
    TESTING VI.zip ‏154 KB

    A lot of your code looks pretty odd and unusual, but if you want to update the table with each iteration of the FOR loop, you could do it as in the attached VI. (sorry, I don't have your hardware, so I am generating random values).
    What is the purpose of the sequence frames with 0ms wait in the main VI? They don't really seem to do anything useful.
    Al indicators except for the table in the main VI should be numerics. You can set the display format to anything you want.
    Do you really need to log to file from within each subVI? Maybe loggin the entire row in the main VI would be more useful.
    Your x10 followed by /10 is useless.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    testing_viMOD.vi ‏16 KB

  • Show value in "customer" field of FAGLB03

    Hi Experts,
    we have a requirement to Show value in "customer" field of FAGLB03 for all sales related transactions.
    Your support is appreciated.
    Thanks

    solution has been implemented using badi FAGL_ITEMS_CH_DATA

  • How to show value of COUNT_QUERY in a text Item?

    please tell me how to show value of COUNT_QUERY in a text Item?

    If you look a bit further down the thread Rosario posted, you might find the method DanielLiang posted to be easier to implement for you.
    you can use calculation:
    example :
    Database Data Block: block1 ( Query All Records : Yes )
    not Database Data Block : block2 (Single Record : Yes)
    block2 has a text item (number) ,it calculation property :
    calculation mode : summary
    summary function : count
    summarized block : block1
    summarized item : item1(block1's item)

  • Need to create a report to show values for a particular date range

    I have to create a report, out of which I need two columns : << Customer Value Variance and Churn Score Variance >> to show values only for a custom date range, which will be entered via a dashboard prompt.
    These generic date columns are not present and cannot be added. I have to make use of Pres variables
    What I have currently done is:
    1) Created a prompt with 2 different date columns and passing those values into variables vStartDate and vEndDate. (I don't actually need those 2 column which I have selelcted, but I have taken those so that I can prompt the values in calendar format and pass onto the variables)
    2) Created report with necessary columns, with 2 extra columns (hidden) as vStart Date Column and vEnd Date Column which take the values from the presentation variables defined in the prompt. I have created these columns as then I can reference these in the two required columns if necessary.
    I am already facing error in report after doing this and I am confused how to proceed. Any suggestions?
    Thanks.

    Yes, but it only has one generic Date column, no start date and end date. I can't use that twice in the prompt. Although I can specify it to be 'between', but I'm not sure I can pass values to both variables like that.
    Currently I have used Campaign Start Date and Campaign End Date to enter values in calender format to the variables.

  • Req: to show values of a poplist dependent on values of another poplist

    Hi,
    I have a requirement to show values of a poplist(poplist2) based on the values selected from another poplist(poplist1).
    Ex : when A is selected from poplist1 , poplist2 should show 1 and 2 as values. When B,C are selected from poplist1, poplist2 should show 1 as value.
    i am using Jdev version JDeveloper10.1.3.1
    Please help in acheiving this requirement.
    Thanks,
    Pavan.

    Do you use ADF?
    if yes, you should have a master-detail relation in the DataControl.
    and then in the first combo put autosubmit=true and in the second combo put partialtrigger to the first

  • Flash 2D Bar CHarts suddenly showing Values

    Hi,
    We have just upgraded to Version 3.1.2 and we have seen a strange change in our Flash Horizontal 2D Column (percent) charts.
    The charts used to work fine but now we see Value Text being displayed over the bars. I cannot find anyway of removing these values from display.
    We have a Series 1 simple query that counts the number of items where signed_flag = 'Y' and the number of items where signed_flag = 'N'. This therefore shows two stacked bars that total 100%. Everything was fine, but now the charts are showing the text 'Singed Off, 25%' and 'Not Signed Off, 75%' over the bars (and over the labels).
    I cannot find a way to hide this text. If I open the Chart Attributes and look at the Display Settings the 'Show Values' check box is empty but grayed out. I cannot change this. I have also tried changing the font settings for every available item and this has no affect either - the text is displayed in the same size/colour etc. whatever I do.
    Can anyone help? Is this a 3.1.2 bug or has something changed at macromedia?
    All assistance is gratefully received.
    Martin

    Hi Martin,
    Thanks for posting the metalink number. For others that run into the same issue here's MetaLink's Solution:
    1. Download and unzip the 3.1 installation medium:
    http://www.oracle.com/technology/products/database/application_express/download.html
    2. Find the /apex31/images/flashchart/Stacked2DColumn.swf file.
    3. In the directory where the 3.1.1 images reside, find the /images/flashchart/Stacked2DColumn.swf file.
    a. Rename the original file (Stacked2DColumn.swf_orig)
    b. Replace the 3.1.1 version of <directory name/images/flashchart/Stacked2DColumn.swf with
    the 3.1 version of Stacked2DColumn.swf into this directory.
    Martin
    [http://apex-smb.blogspot.com/]

  • Problem showing atf in air 3.4 captativeruntime

    Hi,
    I can't show atf images in my captative runtime version of a game for android, but yes in the non captative runtime version .
    What can be wrong?
    It is possible that the air bundled  version was not 3.4 version?
    Edit: NativeApplication.nativeApplication.runtimeVersion  = 3.4.0.2540  so the air version is correct for atf images support.
    I forget to mention that i using starling ,but hte captative version only show flash native elements like the textfield i used to trace the air version
    The atf images are there because i can start the game if i touch the play button where is supposed it to be.
    Thanks

    http://forum.starling-framework.org/topic/problem-showing-atf-in-air-34-captativeruntime
    "I compressed the png's with "png2atf -c -i starling-atf.png -o starling.atf" so in all available formats and it Works! .
    So is like the captative air 3.4 version can't handle the ETC compression?

  • DB02 is not showing values

    hi
    recently we upgraded from 4.6c to ECC6.0, DB02 is showing values as below
    DB Name       PP8        Started       13.04.2008
    DB Server     p690db                   00:37:55
    DB Release    10.2.0.2.0
          Name         DEFAULT                               Filling degree:
    DB system:        ORA
    Size:                     0.00 GB                       Total size:                   0.00 GB
    Free Size:                0.00 GB                       Total free size:              0.00 GB
    Used:                        0 %                        Total used:                      0 %
          Total number               0
    Maximum size:                0.00 MB  ()
    Maximum # segments:             0     ()
          Total number               0
    Maximum size:                0.00 MB  ()
    Minimum free space:          0.00 MB  ()
                               Tables              Indexes               Others                Total
    please suggest me how to get values

    Hi,
    Refer to note 731831- Transaction DB02 always shows 0 as the number of tables.
    Regards,
    Maheswaran

  • On my iPad mini, my inbox number count is over 500 even though the inbox. Is empty. All accounts do this on my iPad but all my other device are fine. Problem showed up two weeks ago???

    On my iPad mini, my inbox number count is over 500 even though the inbox. Is empty. All accounts do this on my iPad but all my other device are fine. Problem showed up two weeks ago???

    Hi Peter,
    Thanks for participating in the Apple Support Communities.
    It sounds like the Mail app on your iPad mini is showing that you have over 500 unread email messages, but your inbox is actually empty.
    There are several steps I'd use to troubleshoot this situation.
    First, restart your iPad to see if it clears up the symtom:
    Restart or reset your iPhone, iPad, or iPod touch - Apple Support
    Press and hold the Sleep/Wake button until the red slider appears.
    Drag the slider to turn your device completely off.
    After the device turns off, press and hold the Sleep/Wake button again until you see the Apple logo.
    If this doesn't correct the behavior, try removing and re-adding the affected email accounts next:
    Get help with Mail on iPhone, iPad, and iPod touch - Apple Support
    Delete the affected email account from your device.
    Tap Settings > Mail, Contacts, Calendars.
    Tap the affected email account.
    Tap Delete Account.
    Add your account again.
    If the same thing happens after re-adding the account, you may need to use the steps below to reinstall iOS. You may want to back up your iPad to iTunes before completing this step.
    Make sure that you have iTunes 12 or later on your computer.
    Put your device in recovery mode.
    When you get the option to restore or update, select Update. This will reinstall iOS without erasing your data.
    From:
    If your iPhone, iPad, or iPod touch doesn't respond or doesn't turn on - Apple Support
    All the best,
    Jeremy

Maybe you are looking for