Choosing the language from dropdown list
Hi,
I have a Language dropdownlist which does have 2 languages :-
1) English
2) French
When I select English it should display the text in english , else in french. I have done this using
<message resources> tag in struts-config.xml using multiple .properties file. Is there any another way to go it without using <message resources> because i what to make it generic irrespective of the view technology that is been used. Please do clarify. Thanks in advance.
Hi Jansen,
Let the attribute bound to DDKey be Val in Context.
You will be putting key-value to DDKey by
IWDAttributeInfo boutiqueInfo=wdContext.getNodeInfo()..getAttribute(IPrivate<View>.IContextElement.VAL);
ISimpleTypeModifiable stf1=boutiqueInfo.getModifiableSimpleType();
IModifiableSimpleValueSet svs=stf1.getSVServices().getModifiableSimpleValueSet();
To get the text of the dropDown, first get the key of the dropDown selected by
String key=wdContext.currentContextElement.getVal();
Now u can get the value of this key from the SVS variable of DDby Key
String ddValue=svs.getText(key);
The key is case sensitive, so ensure the case also.
U can check the existence of the key by
if(svs.containsKey(key))
and value by
if(svs.containsText(key))
Regards
Fahad Hamsa
Similar Messages
-
Getting the description from dropdown list
hi sdns,
Just a quick check. My WD program have a set of dropdown list (by key) which is derived and populated by a complex series of logic.
Now I need to update a textview of the description of dropdown list I select. I don't want to go through the complex codes again just to retrieve te descriptions but I want to directly access to the valueset to retrieve the description. I tried "gettext()" but it's giving me error.
Anyone kind enough to provide me some snippet of codes to directly access to the selected description of my dropdown list? points will be awarded for useful answers....thanks.
JansenHi Jansen,
Let the attribute bound to DDKey be Val in Context.
You will be putting key-value to DDKey by
IWDAttributeInfo boutiqueInfo=wdContext.getNodeInfo()..getAttribute(IPrivate<View>.IContextElement.VAL);
ISimpleTypeModifiable stf1=boutiqueInfo.getModifiableSimpleType();
IModifiableSimpleValueSet svs=stf1.getSVServices().getModifiableSimpleValueSet();
To get the text of the dropDown, first get the key of the dropDown selected by
String key=wdContext.currentContextElement.getVal();
Now u can get the value of this key from the SVS variable of DDby Key
String ddValue=svs.getText(key);
The key is case sensitive, so ensure the case also.
U can check the existence of the key by
if(svs.containsKey(key))
and value by
if(svs.containsText(key))
Regards
Fahad Hamsa -
Delete the entry from dropdown list in the pop up window in ALV report
Hi All,
I have a requirement in the ALV interactive report ZMM_IMPL .If we enter selection screen parameters its displaying the first screen.If we click on 'Goods Issue' tab ,it display the pop up window for Requirement Pick list with Batch number ,Storage location and Quantity.Here we have F4 option for batch number(MCH1-CHARG) and we could see all batches (with stock and without stock) in the drop down.
Now my requirement is i would need to delete the non stock batches from drop down values.
Ex:we clich F4 in batch number field(CHARG) ,could see 4 batches Test1 ,Test2 ,Test3 and Test4 .Here Test1 ,Test2 are Batch stock and other two are Non stock batches. We could see all these batches (with and without stock) in MCHB table.Now i would need to delete non stock batches(Batch with zero qty (MCHB-CLABS = 0) from drop down.
Any idea on this.
Regards,
RpnHi,
User wants to appear only batches with stock value in the drop down .Here Batches test1, test2 , test3 have stock but test4 has no stock value. Now the requirement is if stock does not exist in any of those batches it should not appear in the drop down and propose batches based on quantity.
Batch stock value can be seen through transaction MB52 and could see only Test1.Test2 and Test3.
They have arleady code in the program for F4 help to Batch number as following,
CLEAR: lips.
REFRESH: gt_lips.
lips-vbeln = f_vbeln.
lips-posnr = f_posnr.
lips-matnr = f_matnr.
lips-werks = f_werks.
lips-lfimg = f_bdmng. "store the requirement quantity for display
lips-pstyv = f_res_del. "use to store RES or DEL "DV1K919143
CALL SCREEN '0100' STARTING AT 10 2.
for the ok code to be BT_SAVE all the validation are complete
IF g_ok_code NE 'BT_SAVE'.
f_answer = 'A'.
ENDIF.
The logic for screen '0100' as follows
PROCESS BEFORE OUTPUT.
*&spwizard: pbo flow logic for tablecontrol 'TC_LIPS'
module TC_LIPS_change_tc_attr.
*&spwizard: module TC_LIPS_change_col_attr.
loop at GT_LIPS
into GS_LIPS
with control TC_LIPS
cursor TC_LIPS-current_line.
module TC_LIPS_get_lines.
*&spwizard: module TC_LIPS_change_field_attr
endloop.
MODULE STATUS_0100.
PROCESS AFTER INPUT.
*&spwizard: pai flow logic for tablecontrol 'TC_LIPS'
loop at GT_LIPS.
chain.
field GS_LIPS-CHARG.
field GS_LIPS-LGORT.
field GS_LIPS-LFIMG.
module TC_LIPS_modify on chain-request.
endchain.
field GS_LIPS-SELKZ
module TC_LIPS_mark on request.
endloop.
module TC_LIPS_user_command.
*&spwizard: module TC_LIPS_change_tc_attr.
*&spwizard: module TC_LIPS_change_col_attr.
MODULE USER_COMMAND_0100.
MODULE USER_COMMAND_EXIT_0100 AT EXIT-COMMAND.
process on value-request.
field gs_lips-charg module lips-charg_values.
Logic for F4 help as following
DATA: mc_object LIKE dd23l-mconame,
help_lips LIKE lips.
DATA: dseltab LIKE dselc OCCURS 10 WITH HEADER LINE.
DATA: lf_shlpname LIKE dd30v-shlpname,
lx_shlp TYPE shlp_descr_t,
ls_interface LIKE ddshiface,
lf_rc LIKE sy-subrc,
lt_retvalues LIKE ddshretval OCCURS 0,
ls_retvalue LIKE ddshretval.
help_lips = lips.
IF NOT help_lips-matnr IS INITIAL.
CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
EXPORTING
input = help_lips-matnr
IMPORTING
output = help_lips-matnr
EXCEPTIONS
length_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
exit. "Ignore conversion errors "50A
ENDIF.
ELSE.
EXIT.
ENDIF.
SET PARAMETER ID 'MAT' FIELD help_lips-matnr.
SET PARAMETER ID 'WRK' FIELD help_lips-werks.
Export parameters to memory to enable search help via classes
CLEAR dseltab.
REFRESH dseltab.
dseltab-fldname = 'MANDT'.
MOVE sy-mandt TO dseltab-fldinh.
APPEND dseltab.
dseltab-fldname = 'MATNR'.
MOVE help_lips-matnr TO dseltab-fldinh.
APPEND dseltab.
dseltab-fldname = 'WERKS'.
MOVE help_lips-werks TO dseltab-fldinh.
APPEND dseltab.
dseltab-fldname = 'CHARG'.
MOVE help_lips-charg TO dseltab-fldinh.
APPEND dseltab.
EXPORT dseltab TO MEMORY ID 'DSELTAB'.
Get description for search help
mc_object = 'MCH1'.
lf_shlpname = mc_object.
CALL FUNCTION 'F4IF_GET_SHLP_DESCR'
EXPORTING
shlpname = lf_shlpname
shlptype = 'SH'
IMPORTING
shlp = lx_shlp
EXCEPTIONS
OTHERS = 1.
Enable value copy from search help to dynpro field
READ TABLE lx_shlp-interface INTO ls_interface
WITH KEY shlpfield = 'CHARG'.
ls_interface-valfield = 'X'.
MODIFY lx_shlp-interface FROM ls_interface INDEX sy-tabix.
Start search help dialog
CALL FUNCTION 'F4IF_START_VALUE_REQUEST'
EXPORTING
shlp = lx_shlp
TABLES
return_values = lt_retvalues
EXCEPTIONS
OTHERS = 1.
IF sy-subrc EQ 0.
READ TABLE lt_retvalues INTO ls_retvalue
WITH KEY fieldname = 'CHARG'.
IF sy-subrc EQ 0.
lips-charg = ls_retvalue-fieldval.
gs_lips-charg = ls_retvalue-fieldval.
ENDIF.
ENDIF.
How to delete entry from F4 help.Any idea?
Regards,
Reddy -
Get the value from dropdown list (selectedIndex) and text field -- not working
Hi All,
I am trying to find and change by the values selected by user using dropdown and text field. Here is the code.
ChangeRevDetails();
function ChangeRevDetails(){
var myDialog = app.dialogs.add({name:"Enter copyright information"});
// var monthlist = col1.dropdowns.add('myList', undefined, myList);
var col1 = myDialog.dialogColumns.add();
var col2 = myDialog.dialogColumns.add();
col1.staticTexts.add({staticLabel:"Month:"});
col1.staticTexts.add({staticLabel:"Year:"});
col1.staticTexts.add({staticLabel:"Rev. no.:"});
var myList = [ "January", "February", "March", "April", "March", "April", "May", "June", "July", "August", "Sepetember", "October", "November", "December" ];
var myMonth = col2.dropdowns.add({stringList:myList, selectedIndex:0, minWidth:100});//{minWidth:100});
var myYear = col2.textEditboxes.add({editContents:"2013", minWidth:100});
var MyRev = col2.textEditboxes.add({minWidth:100});
var RevMonth = (myList [myMonth.selectedIndex]);
var RevYear = myYear.editContents;
var RevNumber = MyRev.editContents;
var RevToReplace1 = RevMonth +", "+ RevYear;
var RevToReplace2 = RevMonth +", "+ RevYear + " Rev. " + RevNumber;
var myResult = myDialog.show();
if(myYear.editContents == "") //entry is ""
alert("Please enter some text into the contents field.");
ChangeRevDetails();
else if(myResult == true) //user entered datas
alert (RevMonth);
alert (RevYear);
alert (RevNumber);
alert (RevToReplace1);
alert (RevToReplace2);
app.findGrepPreferences = NothingEnum.nothing;
app.changeGrepPreferences = NothingEnum.nothing;
// grep find/change
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "[\\l\\u]+?\\s?\\d{4},?\\s+[\\l\\u]+\\.*\\s+\\d+";
app.findGrepPreferences.appliedParagraphStyle = app.activeDocument.paragraphStyleGroups.item("Back page"). paragraphStyles.item("Legal_7/9");
app.changeGrepPreferences.changeTo = RevToReplace1;
app.changeGrepPreferences.appliedParagraphStyle = app.activeDocument.paragraphStyleGroups.item("Back page"). paragraphStyles.item("Legal_7/9");
app.activeDocument.changeGrep();
app.findGrepPreferences = NothingEnum.nothing;
app.changeGrepPreferences = NothingEnum.nothing;
else //implies user clicked cancel
myDialog.destroy();
The problem is, it is not taking the value which the user selects from the dropdown and the text field. It takes the default value as "January" and the year is "2013" as both of these values are given as selectedIndex:0 and editContents:"2013". I have compared the coding with some other working scripts as well, but it is not working. I have added several alert boxes to check the value we get.
Also, the find and change is also not working. Please help me on this. Thanks.
Regards,
Muthuraj. DChange the order for dialogresults:
var myYear = col2.textEditboxes.add({editContents:"2013", minWidth:100});
var MyRev = col2.textEditboxes.add({minWidth:100});
var myResult = myDialog.show();
if(myYear.editContents == "") //entry is ""
alert("Please enter some text into the contents field.");
ChangeRevDetails();
else if(myResult == true) //user entered datas
var RevMonth = (myList [myMonth.selectedIndex]);
var RevYear = myYear.editContents;
var RevNumber = MyRev.editContents;
var RevToReplace1 = RevMonth +", "+ RevYear;
var RevToReplace2 = RevMonth +", "+ RevYear + " Rev. " + RevNumber;
didn't have a look for the find change problem -
Adobe Form Section is Not Showing When Value is Selected from Dropdown List
Hello Experts
We have this issue where an ADOBE FORM is embedded in a WEBDYNPRO APPLICATION.
When selecting a value from the dropdown field in the ADOBE FORM, some particular section in the ADOBE FORM is not shown.
Here's the ADS and NW versions that we were using. We are running on EHP5 landscape.
- ADS - 7.3 SPS 3
- NW 7.3 SPS 3
PS. The same program is working in EHP4 correctly.
Any idea on how to resolve this issue?This is a custom built form, the thing is we just upgraded our system to EHP5 and we are in the test phase. The same form works in system in EHP4.
Based on the dropdown list selection, there are some sections in the form which are hidden previously will be shown now. when you change the country in the dropdown the new sections appear. The sections will not be visible before you select the couuntry from dropdown.
Should I upgrade my Adobe live cycle designer version to a higher one?
Thanks -
Selecting a Role from dropdown list throws error
Hi,
I'm using CRM Web UI 7.0. I'm facing problem selecting a Role from dropdown list in the assignment block Roles in the screen Employee. The problem is that the dropdown list doesn't show any value on clicking and gives an error message "Error on page" at the bottom of page. The roles exist in the system and also I'm able to see them for Accounts screen & in the GUI.
Kindly help.
Regards,
ShailiHi,
Just to add to this issue: WebUI-> Account Management-> Contacts-> Roles-> Edit list. When we try to add a role from dropdown in Firefox, it works fine but same throws an error in Internet Explorer related to some script.
Did someone face similar issue and how was it solved?
Regards,
Shikha -
Please help me to change the language from Danish to swedish i PS CS5
please help me to change the language from Danish to swedish i PS CS5
In the program (interfaces) i can only choose DanishThere is nothing to choose. The language is determined by your serial number and the choice of language during installation. You need to reinstall in that language.
Mylenium -
How can i choose the language for a book on ibookstore
Hi,
I want to search books on ibookstore in different language, for example, i wanna download "aleph" from paulo coelho in french and in english.
I dont find how to set the languages !!! I find itnot convenient at all !
Thanks for your helpHi, thanks for your answer.
In fact, I didn't mean to buy a same book that could be read in english and in french.
I want to buy the french version separatly from the english version.
But I can not find where I can choose the language of the book I'm buying.
I want to buy the book called Aleph. I tried everything: "Aleph eng" (for english) and "Aleph fr" , but all I found was spanish, portuguese, romanian versions, not french nor english.
It is amazing to see an apple apps missing such basic setting ! -
How to setup to trigger an event when choose the value from cookie
Hi,
I define an firepartialaction event for the messageTextinput, this event can be triggered when the user key in the via keyboard. but failed to be triggered when the user choose the value from the cookie. How to setup or program to trigger the event even the user choose the value from the cookie?
Best Regards,
JiangHi,
so the next missing information is what the event is that you expect to fire. If the cookie value is displayed in a list then John is correct and you populate the input field behind the scenes in which case e.g. no ValueChange listener fires or autoSubmit action is issued as you don't update the data through the UI component
Frank -
I want to change the language from bahasa to english on all tabs
i want to change the language from bahasa indonesia to english
If you bought the app in French then you will have to buy it again choosing the Dutch version, if a Dutch version is available. I'm afraid neither iTunes nor the App Store is specific about the language of their products. If the product title is in French it's assumed that the product is in French. They don't bother mentioning whether other languages are available or not . I live in France and I cannot buy English films in English from iTunes You may be interested in this post :
https://discussions.apple.com/message/18027792#18027792 -
How to get the value from select list to text box
Hi,
I have a select list i want to retrieve the value from select list to text box.
How can i do that???
Regards,
Sakthi.Hi Sakthi,
Yo can use the Java script for that..
Dynamically the value will come into text box.
Use the below script.
<script type="text/javascript">
function disFormItems()
var lReturn = $v(here your select list name)
alert(lReturn);
document.getElementById(here your text box name).value =lReturn; }
</script>Cheers,
Shan -
Choose the key from the allowed namespace
Hi All,
I am using SAP HR practice system and I am getting this error "Choose the key from the allowed namespace" while trying to Define Generation rules for Quota type selection in Time Management.
Error message as below; Can some one please guide me how to resolve this.
I also tried saving without clicking on save or green button but by pressing enter nothing worked.
Choose the key from the allowed namespace
Message no. SV019
Diagnosis
You have attempted to create an entry and have used a key which is not in your namespace.
This can cause problems in later upgrades because the entry could be overwritten by an import, or overwrite an existing entry.
Procedure
Check your entry and try to enter a key value from your namespace.
You can display the namespace definition with RDDKOR54.
If you must use the key entered, document your change so that it can be repeated after an upgrade or release change if necessary. If you put the data in a change request, you can export it before an upgrade or release change, and import it again afterwards.
Best Regards
RaskiiRaskii,
When you are trying to clear a warning message in SAP, press enter. That's not intuitive. The natural tendency is to continue to press save.
So the sequence of events is:
- change the data
- press the save button
- receive a warning error message
- press enter, and continue to press enter until you are notified that the change has been saved
This will work if it's truly a warning message.
Regards,
Howard -
Do you recommend iPhoto '11 and can I choose the language at installation?
hi,
I am thinking of buying iLife 11 to upgrade iPhoto. Do you recommend it? I am also buying Snow which I understand I need with iLife 11.
Also, I would buy it in Italy, but need to have it installed in English. Is there an option to choose the language of iLife?
Thanks,
M.Look at the Information pages on
http://www.apple.com/ilife/iphoto/
See if you find the new features compelling. They are all around sharing and presentation rather than core enhancements to the managing and processing of the photos. It's fair to say that not everyone is thrilled with the changes. Personally, I don't find t particularly compelling compared to iPhoto 09.
You can change the language for the OS and all the apps in System Preferences. So, yes, you can have iPhoto in English.
Regards
TD -
Pass the username and password in URL to auto log in the application from SharePoint List
how to Pass the username and password in URL to auto log in the application from SharePoint List
I have a link in my SharePoint list when user try to open the link its asking username and password .i want to put username and password in URL to auto log in into that external URL from sharepoint
please help me it is possibleCheck out
http://serverfault.com/questions/371907/can-you-pass-user-pass-for-http-basic-authentication-in-url-parameters
Kind regards,
Margriet Bruggeman
Lois & Clark IT Services
web site: http://www.loisandclark.eu
blog: http://www.sharepointdragons.com -
DST - Choose the key from the allowed namespace
Hi everyone. I am trying to add the new Timezone setting as per note 919538.
When I do, I get a message "Choose the key from the allowed namespace". Another search in OSS said that this can only be correct with a support pack.
Does anyone else have experience with this or seen this error?
Thanks!Re: DST - Choose the key from the allowed namespace
Posted: Mar 6, 2007 6:36 PM in response to: Galina Savikovsky
Click to reply to this thread Reply
Hi friends,
The problem is , may be you are all trying to click " SAVE" after doing all the entries.
1. Do all the entries
2 Click Enter ( or) that green tick mark on the top left corner next to the place where we put the TCODE.
You will get the transport request for the change you have made
Hope this helps, points are appreciated
Uday
Maybe you are looking for
-
What is the best iTunes alternative for a 4th Generation iPod Touch?
iTunes is the worst music application I have ever used and would love to be able to use a different application to sync music with. I have a really nice computer, but it is taking 10 times longer to sync music than Windows Media Player. I'm beginning
-
ITunes on mac shows stream songs on ipad which are not there
I use iTunes on my MacBook Pro to sync ratings and playlists with my iPad and iPhone. After syncing I like to verify that the total count of songs matches that on the iPad and iPhone. If I look at the number of songs on my Mac, and also look at the
-
I am trying to change the size of an image using setPreferredSize(int width, int height) The API says that if the size specified is less than the minimum width and height, the minimum width and height is used. But they have told that if the width and
-
Failed to fetch a list of all custom record types
Hi, I tried to fetch a list of all custom record types. I tried with below piece of code, but failed with below error message. Can anybody help me to resolve this issue: CustomRecordTypeReadAll_Input cusRecTypeAllIn = new CustomRecordTypeReadAll_Inpu
-
Ok I don't understand why this sign that says "Terms and Policy of App store has changed!" So it tells me to go agree the new terms and policy. After i did that it returns to the App Store where i was before. And only like ten to five seconds it appe