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
I've installed FCP6 on my PowerMac (PPC G4 DP 1.25GHz), and when I run it, I get a warning ("...installed graphics card does not support the opengl features recommended...") and the program ends. The graphics card is the ATI Radeon 9000 Pro (64M [More]
Declare @cmd varchar(300) Set @cmd= 'bcp "SELECT definition + char(13) + ''GO'' FROM test.sys.sql_modules s INNER JOIN test.sys.procedures p ON [s].[object_id] = [p].[object_id]   WHERE p.name LIKE ''create%''" queryout "V:\SQLBackups\SP_sc [More]
I´ve got a new iPod nano 6th as an exchange unit. It works fine till i connected it with iTunes under Win7. First, the iPod appears in iTunes and a window was opened, i think, to accept the license rules. Unfortunetly i was distracted for about 5 min [More]
hello when i was in the midddle of an ios7 downlad and it was almost done and my itunes just stopped and whn i plugged my phone back in it said connect to itunes and htne i plugged it in and it said errorResolve specific iTunes update and restore err [More]
Hey guys, I just installed Windows on Bootcamp on my Macbook Air 13, and after the installation, when I press option to switch the OS, no Macintosh HD appears, I dont know whats going on. I created a 18 GB partition, but no Mac Hd appears. if you guy [More]
Hi i dont have calendar year/month with FIAP cube. i need below requirement i can add at cube , in report i need write customer exir or any other possibilities are there. User can change the report to select a different time view, e.g. the position a [More]
Hi ,       I am having one query.We have Organization Object(O), Position (S) and Job (c). These all go in Logical Tables.For Ex. T527X for OU. I want to get the Physical table structure where these Tables and objects are stored and want to know abou [More]
I have installed Jdev Studio 11.1.3.0 along with SOA suite 11.1.3.0 and XE database to run SOA 11G on my machine which runs on Windows Vista OS.I have successfully able to start the Weblogic server and it is in <RUNNING> state.Now I tried to start s [More]
Hi All, I have to create two characteristics A and B for maintaining in the classification view of the material master. Some of the sample values for these parameters are as given below. for A -  1) -6-4/6-4/8 2) 0,27kg/m2 3) 7X10 4) 8x5,9 5) 16O-8 6 [More]
hi Gurus, 1.Here my client wants customised hierarchy(say "soldprod") created in sap crm 7.0 to be assigned to application "sale" instead of R3prodhier which is standard, and then he wants ECC products to be migrated as product categor [More]