Can we populate UI Element Dropdownbykey at run time

Hi All,
Can we populate UI Element dropdownbykey at run time, I am able to populate R/3 data in inputfield type UI element, but how to populate it in dropdownbykey UI element, is it possible??
Thanks in advance

Hi Amit,
Yes we can populate dropdownbykey UI element at run time using data from the R/3. For doing this, try to understand the below given code:
empCode - Which you bind to the DropDownByKey.
IContextElement contextElement = wdContext.currentContextElement();
IWDNodeInfo nodeInfo = wdContext.getNodeInfo();
IWDAttributeInfo dateAttributeInfo = nodeInfo.getAttribute(contextElement.empCode);
IModifiableSimpleValueSet dropValueSet = dateAttributeInfo.getModifiableSimpleType().getSVServices().getModifiableSimpleValueSet();
String empCodeTxt=null;
//Gives the Size of the List, which is coming from Model
int nodeLength = wdContext.node<BAPIList>().size();
for (int i = 0; i < nodeLength; i++) {
// Gives the Value, which you want to show in Drop Down List Box..
empCodeTxt=String.valueOf(((IPrivate<viewname>.I<BAPIList>Element)(wdContext.node<BAPIList>().getElementAt(i))).get<Parameter>());
dropValueSet.put(empCodeTxt, empCodeTxt);
This piece of code has been taken from the following thread:
https://forums.sdn.sap.com/thread.jspa?threadID=215743&tstart=0
Bye
Ankur

Similar Messages

  • How can i update data in JTable at run time ?

    i am trying to build a client/server architecture for conducting quizzes & online tests.. My client will return a object to the server after the test is over, which contains details about the participant, his score and other details. i am putting the incoming object to an Vector. I'll create a new thread each time for the incoming connection and insert the object to the Vector.. Now, please tell me tat, how can i update my table automatically at run time so tat, my table is updated whenever a new object is entered into vector..
    here is my code for the table..
    public class MyTableModel extends AbstractTableModel {
        String columNames[] = { "ID", "NAME", "COLLEGE", "SCORE", "CELL" };
        /** Creates a new instance of MyTableModel */
        public MyTableModel() {
            Main.List = new Vector();
            SetDefaultData();
        public int getRowCount() {
            return Main.List == null ? 0 : Main.List.size();
        public int getColumnCount() {
            return columNames.length;
        public String getColumnName(int column) {
            return columNames[column];
        public boolean isCellEditable(int row,int col) {
            return false;
        public Object getValueAt(int rowindex, int columnindex) {
            if(rowindex < 0 || rowindex >= getRowCount())
                return "";
            Student row = (Student)Main.List.elementAt(rowindex);
            switch (columnindex)
                case 0 : return row.id;
                case 1 : return row.name;
                case 2 : return row.college;
                case 3 : return row.score;
                case 4 : return row.cell;
            return "";
        public String getTitle() {
            return "Student Table";
        private void SetDefaultData() {
            Main.List.removeAllElements();
            Main.List.addElement(new Student("CS041","Keerthivasan M","MNM",95,"9884326321"));
            Main.List.addElement(new Student("CS012","Arun M","MNM",90,"9884825780"));
            Main.List.addElement(new Student("CS019","Balaji S","MNM",79,"9841742068"));
            Main.List.addElement(new Student("CS005","Anand R","MNM",89,"9884130727"));
            Main.List.addElement(new Student("CS045","Manish J","MNM",55,"9841624625"));
            Main.List.addElement(new Student("CS013","Mangal S","MNM",5,"9841961742"));
    }

    In the future Swing related questions should be posted in the Swing forum.
    how can i update my table automatically at run time so tat, my table is
    updated whenever a new object is entered into vector..You don't update the Vector directly. You should be creating a method in your TableModel, called "addRow(...)". This method will do two things:
    a) add the Student object to the Vector
    b) invoke the fireTableRowsInserted(..) method of AbstractTableModel. This will cause the table to be repainted.

  • How can i see Log information of Report Run Time?

    Hi Gurus,
    How can i see Log information of Report Run Time?, till now i am counted report run time manually. Is there any way i can see the workbook running time in log information?.
    Thanks & Regards
    Vikram

    There could be a few things -
    At one time, you needed to run a separate script to create the tables. I'm not sure that is still the case. If you check the Administrators guide, look into the chapter that deals with the EUL Status Workbooks.
    If you are not logged on as the eul owner, you may not have select privileges, or you may need to qualify the table with the schema (if there is no synonym) - select * from <eul_owner>.EUL5_QPP_STATS;
    If you are on 4i, the table is EUL4_QPP_STATS

  • Can I Disable the Menu at report run time

    Dear All,
    I have windows Environment with Oracle 8i and Report 6i
    Can I Disable the Menu at report run time.
    user not able to generate other formats (HTML,PDF etc) of my report.
    awaiting with advance Thanks

    Hello,
    There are some parameters to disable some "feature" :
    DISABLEFILE
    Description
    DISABLEFILE specifies whether to disable the File->Generate to File menu in the Runtime Previewer.
    Syntax
    [DISABLEFILE=]YES
    Search for disable* in the Reports 6i online help for more details ..
    Regards

  • How can I use undo and redo with run time menu?

    Hi..I try to built my own menu for graphic programming. How can I use undo and redo in labview with run time menu?

    filozof-
    During runtime, by default, LabVIEW has undo/redo data changes under the edit menu. This will undo/redo changes made to controls during runtime. If you want a more extensive undo/redo (custom for your application), you are going to have to do quite a few things
    1) Create a custom runtime menu (Edit>>RunTime Menu) and place your own undo/redo controls on it
    2) Keep an action history in your program
    3) Catch the Shortcut menu event for your custom undo/redo controls
    4) Reverse the last action in your histroy when you catch the event
    This method would allow you undo entire operations (like resize, move, or whatever kind of functionality you are building into your application) unstead of just undoing data changes.
    Xaq

  • Can I change a process flow at run time??

    Hello everybody,
    I work in Oracle BPMS 11.1.1.5. I need to change a process flow at run time due to changes in the business logic, I mean add, delete and modify tasks, navigation flow, etc. I know business rules can be modified using Oracle BPM Composer, but I couldn't find the way to modify the process flow. I have seen other BPMS, like BizAgi, for ex. that can do that. Do Oracle BPMS have that functionality? Please I need it a lot!!!!
    Regards and thanks in advance,
    isabelbernely

    Hi
    As JonPetter mentioned, you can get this and preferably get only from Support. I hope you have some license if you going to prod with this. Use that and if possible talk to your sales guy and create a support account. Then request the feature pack. The thing is, if we put it in some public shared location, it is the violation of using the oracle product. Unless someone takes risks they may upload but still its not advisable.
    Sorry
    Ravi Jegga

  • Can we create items dynamically or at run time?

    Hello expert,
    can we create some item dynamically at some button click?
    Thanks
    yash

    yash_08031983 wrote:
    Hello expert,
    can we create some item dynamically at some button click?Hello, yash
    You can not create items at run time. But you can manage them at run time by setting Visible property programatically.
    Hope this helps..
    Hamid

  • Need an option to populate the calculated percentage during run time

    Hi All,
    I have a requirement in reporting , My report out put contains two key figures based on condition it will populate exceptions (green, yellow, Red) .Now i want calcuate Miss percantage (Marked in Red color in expection)
    This Miss percentage to be calculated as per below logic during run time , percentage should populate in out put.
    total no of records in report out put / Miss records (which marked red color in out put)*100
    Regards
    Murali.K

    Hi Murali,
    You need to create three CKF.
    For calculating Red color count, create a CKF and use the Alert level condition which you have used in Exception.
    For Example if your Alert level for red is Value LT 20.
    then "Missed Record CKF" will have ( VALUE < 20) boolean calculation. Hope you aware about it.
    after that create another "Total record CKF" which calculate the number of records by simply keeping 1.
    Then under the third CKF used, SUMGT(Missed Record) / SUMGT(Total Record) * 100.
    Regards,
    Ashish

  • Can I supply MAX with a FP2000 run time system to a client

    I find no option to download it from the NI web site. I think that this software will be useful in trying to install a FP 2000 system.

    MAX also installs with NI FieldPoint, which you will need to have on any computer you are distributing a FieldPoint application to. You will also need the LabVIEW Run-time Engine, both of which are downloads on the drivers and updates page.
    Ames

  • Can I get Photoshop Elements 6 to run on Mac OSX Mavericks?

    First of all, do you know if PSE 6 is even compatible to run on Mavericks?
    But secondly, if it isn't, is there any way it CAN be run?
    I have an installation disk, but I keep getting error messages saying "required resources are missing", I never had it installed on the machine before so I can't uninstall any previous files.
    I have a Macbook Pro 15-inch, Mid 2012, Software: OS X 10.9 (13A603)
    Thanks!

    compatibility, http://roaringapps.com/apps:table

  • How can I download Photoshop Elements 5 that runs without activation server?

    I bought PS elements 5 years ago and need to install it on a new computer now, but cannot activate it. What can I do?

    Please see- http://forums.adobe.com/thread/723867
    You may need to contact customer support and check with them.
    Thanks
    Andaleeb

  • I can't get Photoshop (Elements 12) to run on my (new) Windows 8 computer?

    Just what I said above.  I bought Photoshop in December (2013) and now I can't work with it and I'm really frustrated.

    There is no way to "download the phone OS".  It's stored in ROM, and when a Hard Reset occurs, the device is wiped and the OS is reloaded from ROM.
    Since you have an AT&T Centro, there are no OS updates to install either.  
    WyreNut
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • Help please - how can i change a file extension at run time

    hi all
    i have a question about file created on the run. for instance, if i need to create a file initially with a an extension of '.in'. and there are some processes writing data to it, and after the file is written. i need to change it to some thing like '.out'. is it possible to do this? can u please provide some samples if you have any solution or suggestion. thanks.

    do u have the links of these tutorials?IO tutorials...
    http://java.sun.com/docs/books/tutorial/essential/io/index.html

  • Why can't I increment a control at run time?

    Check out this VI.
    It is just an array of DBL's that I want to be able to use to specify how long a series of Time Zones should be.
    I can edit a value at edit time,
    but I can not change it when the VI is running!
    Maybe I am just brain dead today.
    Does this thing mis-behave for others or just me?
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction
    Solved!
    Go to Solution.
    Attachments:
    Why_No_Click.vi ‏16 KB

    I must have checked for the disabled state 5 times before I posted! I even checked for property nodes that where setting it (in the original app).
    Yep, Brain Dead!
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How can i assign view page name at run time in task flow

    Hi,
    jdev 11.1.2.3.0
    I have a requirement to get view page (jsff page) dynamically.
    Ex: I have TF in that i have two views i.e view1 and view2. in view1  there is one inputtext and button in inputtext i will give the name of the page, In view2 that particular page should be displayed.
    Input Text                 View2
    Employee                Employee Page
    Department              Department Page
    How can i implement this ?
    Thanks,
    Nitesh

    Use a router in your task flow and point to the page you want to display according to the value entered in the input text.
    A sample on how to use this technique can be found here http://tompeez.wordpress.com/2011/11/27/jdev-11-1-2-1-0-using-router-to-conditionally-set-navigation-target/
    Timo

Maybe you are looking for

  • Partitioned nested table error while dropping one partition

    All, I created a partitioned table which is also a nested table as you can see below. I got FK constraint error while attempting to drop a partition, however, I could not find the FK in order to disable it since it's underlying table emp_list_p which

  • Wrong approver for shopping cart

    Hi Friends, I've found something very strange in my SRM system for Shopping cart approveal process. One of my SC is waiting for approaval by a approver who is assigned to different plant  and he has got nothing to do with this SC. The SC's basic data

  • File- Xi- File & RFC scenario

    Hi guys,   I have a scenario where file is picked up from one file system(A) and is put in   file system(B) .   Now there is R/3 system which will pick up the files from file system(B)   by a already developed abap program.   But the problem is R3 do

  • Lunch video stream uri in wp8.1 with media player

    hello every one, i have a problem with opening the default media player, to play a video (a stream uri from youtube) in widows phone 8.1 when i was write to windows phone 8.0 i used MediaPlayerLauncher mediaPlayerLauncher = new MediaPlayerLauncher();

  • I've been deleted

    After participating in Apple Discussions for years and even attaining level 2 status, I'm now apparently a nonentity. This took place during the latest forum upgrade. My previous posts are now listed as "by user: Guest". Any suggestions are how to be