Sitemap

Amicuk Programming Answers

On basis of drop down by key values i want to enable and disable ui elements is wda

2015-10-11   Views:5

Advertisement

How to enable and disable ui elements on basis of drop down by key values as i show in screen shot i have 3 values in drop down by key on basis of those values i need to enable and disable ui elements in webdynpro abap kindly reply backHi Sreedhara,

How to enable and disable ui elements on basis of drop down by key values as i show in screen shot i have 3 values in drop down by key on basis of those values i need to enable and disable ui elements in webdynpro abap kindly reply back

The replay answer
Advertisement
Hi Sreedhara,
There are many tutorials on SCN for learning Web Dynpro ABAP. If the following steps don't make sense to you, please do a search for some tutorials and read through the tutorial materials. Hopefully the tutorials will help you to become familiar with some of the basics of Web Dynpro ABAP.
Here is how to enable or disable a UI element upon selection from a DropDownByKey.
In your view context, create a context attribute of type wdy_boolean. For now, let's call this attribute IS_ENABLED
In your view layout, bind the enabled property of the UI element to the context attribute IS_ENABLED.
In your view actions, create an action-- let's call it SET_ENABLED-- and bind this action to the DropDownByKey element's onSelect event in the view layout.
In the event handler method for the SET_ENABLED action, use the Code Wizard to read the value of the DropDownByKey selected value, then use the Code Wizard again to set the value of context attribute IS_ENABLED to either true or false.
Now when a value is selected from the DropDownByKey, the SET_ENABLED action will be triggered and the IS_ENABLED context attribute will be set to either true or false. Since your UI element's enabled property is bound to this true or false value via the context binding, the UI element will change to enabled or disabled.
Good luck!
Cheers,
Amy

Go to See the other 9 answers

On basis of drop down by key values i want to enable and disable ui elements is wda

Category:DefaultRelease time:2015-10-11Views:130

How to enable and disable ui elements on basis of drop down by key values as i show in screen shot i have 3 values in drop down by key on basis of those values i need to enable and disable ui elements in webdynpro abap kindly reply backHi Sreedhara,[More]

Drop Down BY Index Vs Drop Down By Key

Category:DefaultRelease time:2015-10-11Views:130

What is the difference between Drop Down By Index & Drop Down By Key. How Do we retrive What value is selected in a drop down regards NileshHello Nilesh, //Create ISimpleTypeModifiable to fill the dropdownbox //XXX is your Desc field                [More]

We are trying to connect a new WPS printer to our network. We go into Airport utilities and then hit the Base Station drop down to access Add WPS printer. However, when you hover over the Base Station menu, nothing is highlighted. Suggestions?

Category:DefaultRelease time:2015-10-11Views:130

We have tried to add a WPS Canon Pixma-Pro to our Airport Extreme network. However when we are in Utilities and try to access the Base Station drop down menu nothing is highlighted. Therefore we can not click on the Add WPS Printer title. I'm sure it[More]

Size of Drop down by key

Category:DefaultRelease time:-0001-11-30Views:130

Hi, when i built value set for the first time for drop down by key, values( texts ) are displayed correctly, however when it is re-built based on other drop down instead of showing texts it is showing the key value in drop down, however if select dro[More]

Query for Drop Down By key

Category:DefaultRelease time:-0001-11-30Views:130

Hi, Explaining my problem with an example. There is a hotel table where user enter hotel details Like City, Dep Date, Arr Date, No of Days , rate  etc  and these in turn get saved to table say USER_HOTEL_DETAILS  . When user comes to his plan/entered[More]

Restrict the number of visible values in drop down by key?

Category:DefaultRelease time:-0001-11-30Views:130

Hello, Is it possible to restrict the max. number of entries displayed in a drop down by key element? By default i get 10 entries which i would like to limit to 5. Thanks. Regards, VasuHi, If you have a set of default values (which come from the doma[More]

Clear the values in Drop down by key

Category:DefaultRelease time:-0001-11-30Views:130

hi all , i m using drop down by key (Combo box) .. i have populated some values in that .. then i navigate to next view ... from that view i m again navigating back to the previous view .. now the values which was filled needs to be cleared .. i used[More]

Message no.8Z876 No time base defined for the revaluation key -Problem ABAW

Category:DefaultRelease time:-0001-11-30Views:130

Hello, I have a problem... I have a revaluation area (04: in local currency) and a parallel revaluation area (05: in hard currency) and I have to revaluate an asset, but I couldn't with Tx ABAW. The error is : Message no. 8Z876 No time base defined f[More]

Problem with Drop down by key

Category:DefaultRelease time:-0001-11-30Views:130

Hi all,       I Inserted several drop down by key in my view at design time. When I try to run the application it displays an error as java.lang.ClassCastException at com.sap.tc.webdynpro.progmodel.context.Paths.getAttributeInfoFor(Paths.java:202) My[More]

Drop/recreate primary key index

Category:DefaultRelease time:-0001-11-30Views:130

Any suggestions for dropping/recreating a primary key index? The index has to be dropped/recreated and not rebuilt due to ORA-600s. Do I simply disable/re-enable the primary key constraint? The database is 10g. Edited by: nickw2 on Apr 1, 2009 5:06 P[More]

ORA-02266: unique/primary keys in table referenced by enabled foreign keys

Category:DefaultRelease time:-0001-11-30Views:130

Hi, I am trying to delete data from a table by dropping a partition. I have identified all the child tables by running the following command. select 'select count(*) from '||table_name||' where employee_id = 100;' from dba_constraints where constrain[More]

Hot
Am I right in thinking that you need to have a .Mac account in order to publish your website? If this is the case, what would happen if you publish a site whilst on the free trial of .Mac, and then it runs out. Will people still be access the domain, [More]
My iPod wont take a charge. I have tried multiple chargers and each brings me the same outcome.when I plug in the iPod while it is on it comes up charging is not supported with this accessory,when I plug it in while it is off it charges for a while t [More]
Hi friends, One of my client has created a condition record for a pricing condition type long back by mistake. So lot of sale orders have been generated which included that condition record. Now he wants to delete that condition record for all that s [More]
Is there VPN software availbale which I can use in windows system to connect to a mac system?Is this for a corporate environment? I would check with your work's I.T. Dept. and find out what they are using as their VPN Server application; my employer [More]
Hi oracle 10.2.0.1.0 I tried the following code CREATE OR REPLACE PROCEDURE load_lob AS   id         NUMBER;   image1     BLOB;   locator    BFILE;   bfile_len  NUMBER;   bf_desc    VARCHAR2(30);   bf_name    VARCHAR2(30);   bf_dir     VARCHAR2(30); [More]
Hi, I have a fact folder with revenue and target measures. I have two dimensions organisation and hierarchy. Currently my fact is at detail level for both of these dimension sources. For revenue measure this is correct. But for target I need to only [More]
I have made some changes to my website in iWeb, but when I try to publish it, and enter my password, it is not taking it. It has been a long time since I've made any changes. What am I missing here? Thanks.Remember that the FTP password may be differ [More]
RAW files (Red) no longer show their filenames in the Library Grid Compact Cells view (now just shows numbers)! JPGs (Green & Blue) show nothing at all, including ratings and Pick status, and the Develops are gone. This was after having imported a LR [More]
I would like to use IdcCommand to run archive service to export some documents in UCM. I noticed there seems a parameter "aExportQuery" (by searching internet) can be used to create query but I'm not sure what the syntax is for this parameter al [More]
I bought my laptop a couple months ago so I know it's not because my computer is old, but my picture CD won't load or open or anything. It makes a noise like it's going to start up, but still I get nothing. It works on my parents' desktop computer, b [More]