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
Hello, I would be grateful if someone comes with ideas on the following problem I'm currently facing. I have a table with XMLTYPE data type column: sql-->desc ACFBNK_STMT008 RECID     NOT NULL     VARCHAR2(200) XMLRECORD XMLTYPE I have a view V_ACFBN [More]
Hi, i really need help... I think i by accident deleted the "download manager" i´m not shore what the program is called in English ( Swedish : filhämtaren), but its symbol looks like a grey little box and when you download a file it appears on a [More]
I just bought an iPod touch 5th gen today, and everything is great except for the fact that I can't put any of my songs from my computer on it!!! :( my computer is an iMac OS X 10.5.8 and I can't update my iTunes to the software needed to sync with m [More]
I installed 10.8.2 and it seem to go well except at end an error message reading 'Error SpeechSynthesisServer.app damaged or incomplete'. What should I do about this and what apps would be impacted?Triple-click anywhere in the line below to select it [More]
Hello Dears  , .. How can I hid or Remove line item from customer line items which displayed in report (FBL5N) Thanks for advance .Thanks all . put my business is : Month 7 - > number range 1    Month 8 - > number range 2 there is some thing wrong  [More]
Dear friends , I have to delete my three control files for testing purpose in ORacle 10g .Before Deleting , I take a backup with control file and spfile using following way : script : run allocate channel t1 type disk; backup format 'df_%t_%s_%p' (da [More]
This is my scenario: 1. I'm Using SCCM 2012 R2 w/MDT2013 to deploy Windows 7x64 image that contains 4 languages already injected into the .wim file. 2. The UDI is configured so that users can choose language, time, keyboard and time zone. 3. The imag [More]
How to assign a logical system to a client in RFC? Regards, pandu.Hi, Use following Transaction code - SALE -> Node - Sending and Receiving System           -> Logical System                 -> Assign Client to Logical System. Enjoy SAP. Pankaj S [More]
Hi, I have a Windows 2008 R2 server running Routing and Remote access and users are using PPTP VPN's to connect to our network. I have been asked to find logs for the following for connections in to our server Username used for connection Computer Na [More]
I am trying to run a simple command using API.DataWindow.Utilities.mShellAndWait, however I am experiencing the following error in FDM web. Strangely, I do not see the same error when the command is run from FDM Workbench: Error: File not found At Li [More]