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
Dear All,     I need to Calculate the opening and closing stock of the material. If there is any FM for the same just let me know and if not kindly let me know the way out. Regards AmitHi! The closing stock can be found in the MARD table. And the ope [More]
Hi all, In appraisal document, the reviewer can give his comment in the status u201CIn Processu201D and in the Sub Status u201CAnnual Review by Addl Managers/Reviewersu201D in an appraisal document. It is editable when I am trying via web but when I [More]
Hi Gurus of XI, I have an input and according to a flag in it I need to execute 2 mappings (if flag is 1 -> mapping A else mapping B) and hence post an IDOC [mapping A / B uses the same IDOC]. I have a single sender and a single receiver, hence durin [More]
I have an application in which the classpath size has reached its maximum limit. I start my web logic server using perl scripts and the classpath is defined in that script. I want to add an additional path to my classpath but i am not able to do so . [More]
Dear all, I am trying to input the Simplified Chinese Characters in the Oracle Database Ver 9.2 running on a UNIX AIX server. The client application we are using is th MS Access 2003 running on a MS Windows XP English version SP 2 without multi-langu [More]
I bought an open box MB Pro 17" at Best Buy and its missing Iphoto and Garageband, how can I reinstall the operating system and start from scratch, they didn't have the box.Snow Leopard Installation and Setup Guide Snow Leopard: How to Erase and Inst [More]
Hi All, I want to read the query exception data in the background. for eg. a query with exception should be run in the background and if any of its exception rules are hit, the record or relative data should be read and stored. Pls note I do not have [More]
Hello all, I created an image for NetRestore and am having a strange issue. I can netboot to the installer and it seems to go through the process fine, but when the process completes, it gives an error - "invalid argument," reporting that the re [More]
HI, How to create sessions in swing. Is there any technique to create session in swing, Help me, Thanks in advance"How can i get request object in swing" You can't really, as the previous response implied. A swing app with run in a separate JVM [More]
I have a hand sized Iomega external hardrive where I use Time Machine for and it is 250GB. I never keep it on all the time, I just put it on to back up the system every week or so. The last time I tried to do a backup, there wasnt any space left for [More]