How to display Description for Selected Value instead of ID
Hi i have a problem i want to display a description on a combo box list of values instead of the ID when i want to use ir for a formlayout or af:query for estethic
because i have found this links:
http://vikasadflovdevelop-adf-lov.blogspot.com/2012/06/v-behaviorurldefaultvmlo.html?showComment=1389196282800
https://blogs.oracle.com/adf/entry/combo_lov_how_to_display
The Incident Archive: ADF: LOV Description instead of code
but none of them really works or i dont how to do it anyone can helpme please
i'm new on ADF and jdeveloper
Hey user,
If i'm understanding it right, you want to show the values instead of the id, which is very usefull. If that is the case, try this website:
ADF Tutorial: How to implement dependent list of values | Oralublog - Oralution's Blog
That looks like yours but it explains a little better. Probably you forgot to go to the UIhints part...
Hope that helps,
Frederico.
Similar Messages
-
How to display my input history values on Filename filed (selection screen)
Hi All,
Please let me know how to display my input history values under the field of selection screen.
I created Zprogram as below.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
PARAMETERS: P_FILE TYPE RLGRAP-FILENAME OBLIGATORY.
SELECTION-SCREEN END OF BLOCK B1.
I displayed a selection screen of my Zprogram, my cursor put on P_FILE field, and enter BACKSPACE key,
so it doesn't display my input history values.
Of course I've selected Local Data History 'ON' of my GUI option,
so it's displayed my input history values on any other fields.
If you know why, please let me know.
Regards,
Rie.In the GUI options, there is also a setting for the maximum length of fields for storing the history, maybe it is set to small, as your selection field is length 128.
Alternatively you can switch to a STRING, I have observed that the history is displayed after the first letter is being entered (maybe dependent on GUI version, who knows...)
Thomas -
How does APEX check for null values in Text Fields on the forms?
Hello all,
How does APEX check for null values in Text Fields on the forms? This might sound trivial but I have a problem with a PL/SQL Validation that I have written.
I have one select list (P108_CLUSTER_ID) and one Text field (P108_PRIVATE_IP). I made P108_CLUSTER_ID to return null value when nothing is selected and assumed P108_PRIVATE_IP to return null value too when nothign is entered in the text field.
All that I need is to validate if P108_PRIVATE_IP is entered when a P108_CLUSTER_ID is selected. i.e it is mandatory to enter Private IP when a cluster is seelcted and following is my Pl/SQL code
Declare
v_valid boolean;
Begin
IF :P108_CLUSTER_ID is NULL and :P108_PRIVATE_IP is NULL THEN
v_valid := TRUE;
ELSIF :P108_CLUSTER_ID is NOT NULL and :P108_PRIVATE_IP is NOT NULL THEN
v_valid := TRUE;
ELSIF :P108_CLUSTER_ID is NOT NULL and :P108_PRIVATE_IP is NULL THEN
v_valid := FALSE;
ELSIF :P108_CLUSTER_ID is NULL and :P108_PRIVATE_IP is NOT NULL THEN
v_valid := FALSE;
END IF;
return v_valid;
END;
My problem is it is returning FALSE for all the cases.It works fine in SQL Command though..When I tried to Debug and use Firebug, I found that Text fields are not stored a null by default but as empty strings "" . Now I tried modifying my PL/SQL to check Private_IP against an empty string. But doesn't help. Can someone please tell me how I need to proceed.
ThanksSee SQL report for LIKE SEARCH I have just explained how Select list return value works..
Cheers,
Hari -
How to do validations for select-options
Hi gurus,
can you suggest me
how to do validations for select-options
Thanks&ragards,
Kals.HI,
TABLES: BKPF.
TYPES: BEGIN OF TY_BKPF,
BUKRS TYPE BUKRS, "COMPANY CODE
GJAHR TYPE GJAHR, "FISCAL YEAR
MONAT TYPE MONAT, "FISCAL PERIOD
DATA: T_BKPF TYPE TABLE OF TY_BKPF,
W_BKPF TYPE TY_BKPF.
SELECTION-SCREEN : BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS: S_CODE FOR BKPF-BUKRS,
S_YEAR FOR BKPF-GJAHR,
S_PERIOD FOR BKPF-MONAT.
SELECTION-SCREEN: END OF BLOCK B1.
AT SELECTION-SCREEN *
IF S_CODE IS INITIAL OR S_YEAR IS INITIAL OR S_PERIOD IS INITIAL.
MESSAGE E000(0) WITH 'ENTER VLAUES'.
ENDIF.
SELECT SINGLE * FROM BKPF WHERE BUKRS IN S_CODE.
IF SY-SUBRC <> 0.
MESSAGE E000(0) WITH 'ENTER VALID VALUES'.
ENDIF.
reward if useful
thanks and regards -
How to create variant for selection screen which is in subscreen
Hi,
How to create variant for selection screen which is in subscreen in a module pool program?
it is very urgent.
Thanks in advance.Hi,
You can create the 'Parameter Transaction' so that whenever you run the particular transaction it will run with the initial value given when the Tcode was created and hence you can skip the initial screen of the module pool program.
To create Parameter transaction from SE93 you have to choose the last option i.e Parameter Transaction.
Regards
Sudheer -
How to get the previoulsy selected value in a combobox
How to get the previoulsy selected value in a combobox. i WANT the current and the previously selected value of the combobox.
Just add to combobox ItemListener. When item is changing in itemStateChanged arrives 2 events. ItemEvent.DESELECTED and ItemEvent.SELECTED with corresponding item's values. Just write something like this:
comboBox.addItemListener(new ItemListener() {
Object prevValue;
public void itemStateChanged(ItemEvent e) {
if (e.getStateChange() == ItemEvent.SELECTED) {
//do what you need with prevValue here
} else {
prevValue = e.getItem();
}); -
How to use offset for select-option parameter ?
Hi experts
could anybody please let me know how to use offset for select-option parameter. i can able to use offset for table fields, variabiles and all , but don't know how to use for parameters.
following is my code
SELECT-OPTIONS: s_prctr FOR vbsegs-prctr OBLIGATORY.
here "prctr" length is 10.
i'm using two tables 1. vbsegd-bupla
2. vbsegs-prctr
here prctr+6(4) = bupla.
"Bupla" length is 4
SELECT belnr gjahr bukrs bupla sgtxt buzei FROM vbsegd INTO CORRESPONDING FIELDS OF TABLE it_vbsegd FOR ALL ENTRIES IN it_vbkpf
WHERE belnr = it_vbkpf-belnr
AND gjahr = it_vbkpf-gjahr
AND bukrs = it_vbkpf-bukrs
AND bupla IN s_prctr.
the above statement is not working as prctr and bupla lenths are different. here i want to use offset.
SELECT belnr gjahr bukrs prctr sgtxt buzei FROM vbsegs INTO CORRESPONDING FIELDS OF TABLE it_vbsegs FOR ALL ENTRIES IN it_vbkpf
WHERE belnr = it_vbkpf-belnr
AND gjahr = it_vbkpf-gjahr
AND bukrs = it_vbkpf-bukrs
AND prctr IN s_prctr.
this is working as prctr and s_prctr lengths are equal.
could anybody please help me out in this.
Thanks in advance.
regards
satishBelow code will work for you.
SELECT-OPTIONS: s_prctr FOR vbsegs-prctr OBLIGATORY.
RANGES: s_bupla FOR vbsegd-bupla.
s_bupla[] = s_prctr[].
DELETE ADJACENT DUPLICATES FROM s_bupla.
SELECT belnr gjahr bukrs bupla sgtxt buzei FROM vbsegd INTO CORRESPONDING FIELDS OF TABLE it_vbsegd FOR ALL ENTRIES IN it_vbkpf
WHERE belnr = it_vbkpf-belnr
AND gjahr = it_vbkpf-gjahr
AND bukrs = it_vbkpf-bukrs
AND bupla IN s_bupla. -
Display comma for numeric values
Hi,
I want to display comma for numeric values.I know we can use strlen and concatenate, but any one can give me an example.
Ex: 1,234 and 12,234 , 1,22,500 ( iam expecting)
Thanks,
Veeruit depends on ur data...
if it is currency then u can use
WRITE.... CURRENCY...
if it is qty then u can use
WRITE....UNIT....
or u simply pass it to a packed field and it will take the default decimal settings of the user profile...
Reward points if helpful -
How do I read the selected value of a comboBox?
I need to send the selected value of a comboBox in an HTTPService request. How do I read the selected value (not label or item or index) from the comboBox?
> (not label or item or index)
I suspect 'item' is what you need actually. Specifically the 'selectedItem' property which returns the whole of the selected object from your dataprovider. From that you can then extract the selected object's properties.
e.g. selectedValue = myComboBox.selectedItem.value;
The example in tour-de-flex shows this - note: 'data' in that example is i think what you call 'value'.
http://tourdeflex.adobe.com/flex4.0/ComboBox/sample.html (right-click to view source)
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/spark/components/suppor tClasses/ListBase.html#selectedItem
hth
Paul Evans
http://www.creative-cognition.co.uk/
http://blog.creacog.co.uk/ -
How to display struts form list values?
HI,
How to display struts form list values?
I am having master and child data.
I can set list values master and child in action class.
How to display the master and child data in struts jsp form.
<logic:iterate id="result" name="listofEmployees" >
<td ><bean:write name="result" property="id"/></td>
<td ><bean:write name="result" property="name"/></td>
<td > <bean:write name="result" property="list"/> </td>
</tr>
</logic:iterate>Here I am displaying master data succesfully.
How to iterate values of <td ><bean:write name="result" property="list"/></td>in action class i added bean class to this list.
how to iterate this list with java bean and display my child data
Thanks
saiStruts 1 or 2?
I guess 2 'cause you're just talking about Action, without mentioning the Form.
In STRUTS 1 it goes like this: forward to the page and use logic:iterate tag. Don't know about STRUTS 2, but It shouldn't be too different.
bye. -
How to move ' 0 ' for repeated values
Hi Experts,
Please advice how to move zero or ' ' to a field if the values are repeating.
As per my requirement I need to fetch finished goods from mseg-matnr and raw materials from
resb-matnr where baugr eq mseg-matnr and I need to display
ebeln for the corresponding finished goods.
But when Iam displaying it I will sort out the finished goods (matnr) , rawmaterial so that
raw material and finished goods wont repeat as there are many ebeln for each matnr.
Now my problem is with the values of the corresponding rawmaterials as they connot be sorted
as per the raw material. So please advice how to move ' ' or zero to those values which are repeating.
LOOP AT IT_FIN_GOODS.
MOVE-CORRESPONDING IT_FIN_GOODS TO IT_FINAL.
LOOP AT IT_RAW_MAT WHERE EBELN EQ IT_FIN_GOODS-EBELN
AND EBELP EQ IT_FIN_GOODS-EBELP
AND BAUGR EQ IT_FIN_GOODS-MATNR.
MOVE IT_RAW_MAT-CON_KGS TO IT_FINAL-CON_KGS.
MOVE IT_RAW_MAT-STLNR TO IT_FINAL-STLNR.
MOVE IT_RAW_MAT-NORMS TO IT_FINAL-NORMS.
MOVE IT_RAW_MAT-MATNR TO IT_FINAL-IDNRK.
MOVE IT_RAW_MAT-SHKZG TO IT_FINAL-SHKZG.
MOVE IT_RAW_MAT-MEINS TO IT_FINAL-MEINS.
APPEND IT_FINAL.
CLEAR: IT_FINAL-WEMNG.
ENDLOOP.
ENDLOOP.
SORT IT_FINAL BY MATNR IDNRK EBELN LIFNR.
DELETE ADJACENT DUPLICATES FROM IT_FINAL COMPARING MATNR IDNRK EBELN LIFNR
SELECT * FROM MSEG AS A INNER JOIN MKPF AS B ON A~MBLNR EQ B~MBLNR
AND A~MJAHR EQ B~MJAHR
INTO CORRESPONDING FIELDS OF TABLE IT_OPEN FOR ALL ENTRIES IN IT_FINAL
WHERE A~MATNR EQ IT_FINAL-IDNRK
AND A~LIFNR EQ IT_FINAL-LIFNR
AND A~WERKS EQ IT_FINAL-WERKS
AND A~BWART IN ('541','542','543','544').
SORT IT_FINAL BY IDNRK.
LOOP AT IT_FINAL.
LOOP AT IT_OPEN WHERE MATNR EQ IT_FINAL-IDNRK
AND LIFNR EQ IT_FINAL-LIFNR
AND WERKS EQ IT_FINAL-WERKS
AND BUDAT IN O_DATE.
IF ( IT_OPEN-SHKZG = 'S' AND IT_OPEN-BWART = '541' )
OR ( IT_OPEN-SHKZG = 'H' AND IT_OPEN-BWART = '542' )
OR ( IT_OPEN-SHKZG = 'H' AND IT_OPEN-BWART = '543' )
OR ( IT_OPEN-SHKZG = 'S' AND IT_OPEN-BWART = '544' ).
IF IT_OPEN-SHKZG = 'H'.
IT_OPEN-MENGE = IT_OPEN-MENGE * -1.
ENDIF.
OBAL = OBAL + IT_OPEN-MENGE.
ENDIF.
ENDLOOP.
LOOP AT IT_OPEN WHERE MATNR = IT_FINAL-IDNRK
AND WERKS = IT_FINAL-WERKS
AND LIFNR = IT_FINAL-LIFNR
AND BUDAT IN BUDAT.
IF ( IT_OPEN-SHKZG = 'S' AND IT_OPEN-BWART = '541' ).
M541 = M541 + IT_OPEN-MENGE.
ELSEIF ( IT_OPEN-SHKZG = 'H' AND IT_OPEN-BWART = '542' ).
M542 = M542 + IT_OPEN-MENGE.
ELSEIF ( IT_OPEN-SHKZG = 'H' AND IT_OPEN-BWART = '543' ).
M543 = M543 + IT_OPEN-MENGE.
ELSEIF ( IT_OPEN-SHKZG = 'S' AND IT_OPEN-BWART = '544' ).
M544 = M544 + IT_OPEN-MENGE.
ENDIF.
ENDLOOP.
MOVE M541 TO IT_FINAL-M541.
MOVE M542 TO IT_FINAL-M542.
MOVE M543 TO IT_FINAL-M543.
MOVE M544 TO IT_FINAL-M544.
MOVE OBAL TO IT_FINAL-OBAL.
MODIFY IT_FINAL.
CLEAR: OBAL,M541, M542, M543, M544,IT_OPEN, IT_FINAL.
ENDLOOP.
Please advice how to move 0 or ' ' to OBAL,M541, M542, M543, M544
Thanks
Karthik.
Edited by: Karthik R on Mar 17, 2009 7:51 PMhi ,
MOVE M541 TO IT_FINAL-M541.
MOVE M542 TO IT_FINAL-M542.
MOVE M543 TO IT_FINAL-M543.
MOVE M544 TO IT_FINAL-M544.
MOVE OBAL TO IT_FINAL-OBAL.
MODIFY IT_FINAL.
hi if you want to move leading space's to fields M541,M542,M543,M544.
instead of above code try this..
WRITE M541 TO IT_FINAL-M541 RIGHT-JUSTIFIED.
WRITE M542 TO IT_FINAL-M542 RIGHT-JUSTIFIED.
WRITE M543 TO IT_FINAL-M543 RIGHT-JUSTIFIED.
WRITE M544 TO IT_FINAL-M544 RIGHT-JUSTIFIED.
WRITE OBAL TO IT_FINAL-OBAL RIGHT-JUSTIFIED.
MODIFY IT_FINAL. -
How to display our own selected data in a search help using a exit
Hello,
I had created a Search Help Exit to restrict the values to be displayed in the search help. This code was written under the event 'DISP' in the exit. But it is not giving the desired result. So I want to replace the RECORD_TAB of the exit with my own selected data. For this I had written code for selection under the event 'SELECT'. But when I try to overwrite RECORD_TAB with this, this create errors.
What should I do to overwrite the values of the RECORD_TAB field with my own values?
Regards,
AbijithHi,
This is how we implemented the code modify the values in search help exit.
Check if display process button is pressed
IF callcontrol-step = 'DISP'.
Read the parameter ID for company code.
GET PARAMETER ID 'BUK' FIELD lv_bukrs.
IF sy-subrc EQ 0.
lwa_bukrs-sign = 'I'.
lwa_bukrs-option = 'EQ'.
lwa_bukrs-low = lv_bukrs.
APPEND lwa_bukrs TO lr_bukrs.
ENDIF.
Check if any entry is made in Test account/Testity account name
LOOP AT shlp-selopt INTO lwa_selopt.
CASE lwa_selopt-shlpfield.
WHEN 'ZZTEST'.
lwa_roy-sign = lwa_selopt-sign.
lwa_roy-option = lwa_selopt-option.
lwa_roy-low = lwa_selopt-low.
APPEND lwa_roy TO lr_roy.
WHEN 'ZZTEST_NAME'.
lwa_roy_name-sign = lwa_selopt-sign.
lwa_roy_name-option = lwa_selopt-option.
lwa_roy_name-low = lwa_selopt-low.
APPEND lwa_roy_name TO lr_roy_name.
ENDCASE.
ENDLOOP.
Get customer in entered for a company code
SELECT kunnr
bukrs
FROM knb1
INTO TABLE lt_knb1
WHERE kunnr IN lr_roy
AND bukrs IN lr_bukrs.
IF sy-subrc EQ 0.
SORT lt_knb1 BY kunnr.
Get customer name for the customer.
SELECT kunnr
name1
FROM kna1
INTO TABLE lt_kna1
FOR ALL ENTRIES IN lt_knb1
WHERE kunnr EQ lt_knb1-kunnr
AND mcod1 IN lr_roy_name.
IF sy-subrc EQ 0.
SORT lt_kna1 BY kunnr.
ENDIF.
ENDIF.
Get Values for Testty account selected by standard search help
CALL FUNCTION 'F4UT_PARAMETER_VALUE_GET'
EXPORTING
parameter = 'Ztest'
fieldname = 'Ztest' " Reference to search help parameter
TABLES
shlp_tab = shlp_tab " Reference to field of Seatinfo
record_tab = record_tab
results_tab = lt_test_help
CHANGING
shlp = shlp
callcontrol = callcontrol.
Get Values for Testty account Name selected by standard search help
CALL FUNCTION 'F4UT_PARAMETER_VALUE_GET'
EXPORTING
parameter = 'Ztest1'
fieldname = 'Ztest1' " Reference to search help parameter
TABLES
shlp_tab = shlp_tab " Reference to field of Seatinfo
record_tab = record_tab
results_tab = lt_roy_help
CHANGING
shlp = shlp
callcontrol = callcontrol.
LOOP AT lt_knb1 INTO lwa_knb1.
CLEAR lwa_kna1.
READ TABLE lt_kna1
INTO lwa_kna1
WITH KEY kunnr = lwa_knb1-kunnr
BINARY SEARCH.
IF sy-subrc EQ 0.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = lwa_kna1-kunnr
IMPORTING
output = lv_kunnr.
lwa_roy_help-ztest1 = lv_kunnr.
lwa_roy_help-ztest = lwa_kna1-name1.
APPEND lwa_roy_help TO lt_roy_help .
ENDIF.
ENDLOOP.
SORT lt_ztest_help.
DELETE ADJACENT DUPLICATES FROM lt_roy_help COMPARING ZTEST1.
Finally transport the computed numbers into the search help data.
CALL FUNCTION 'F4UT_PARAMETER_RESULTS_PUT'
EXPORTING
parameter = 'ZTEST1'
fieldname = 'ZTEST1'" Reference to search help parameter
TABLES
shlp_tab = shlp_tab " Reference to field of Seatinfo
record_tab = record_tab
source_tab = lt_roy_help
CHANGING
shlp = shlp
callcontrol = callcontrol.
Finally transport the computed numbers into the search help data.
CALL FUNCTION 'F4UT_PARAMETER_RESULTS_PUT'
EXPORTING
parameter = 'ZTEST''
fieldname = 'ZTEST'' " Reference to search help parameter
TABLES
shlp_tab = shlp_tab " Reference to field of Seatinfo
record_tab = record_tab
source_tab = lt_roy_help
CHANGING
shlp = shlp
callcontrol = callcontrol.
ENDIF.
Nabheet -
How to display attributes for a CHAR in the Excel file (BEx)?
Hi all,
I knew that I can display attributes for a CHAR (ex: attributes - address, phone#, zip code for CHAR-Customer) when I run Web- based report. But I cannot find this function after I export the file to Excel. In the context menu for excel file, I only see 'select filter'(but no display attribute values), drilldown, properties (for query). Is it something that I cannot have in the excel file for the BEx report?
Thanks
J.Hi Bhanu,
In fact, I found that I can move IOs in the 'rows', 'column', and 'free CHARs' and so do end user by using 'local view'. That means every one can change the query definition, right?
For your last question, that was what I want to know. How can I prevent 'end users' change those query definitions? Is it about 'role' setting, right? But I am not the one to do 'role' setting.
Thanks for help. (I will asign points when the SDN system works)
J. -
Description for Formula Values in Structure
Hello All,
I want to change the description of the formula values in my Structure (i want to add the Month that is used in the formula to the description so that the description becomes more dynamic). Can any one of you please suggest a way. This is required quickly so please respond ASAP and ALSO LET ME KNOW HOW TO REWARD POINTS I WILL DO IT AS SOON AS I GET MY ANSWER.
Thanks,Hi,
To use a text variable on 0CALMONTH, 0CALMONTH need not be in Fomula as you mentioned.
as you said,you have variable on 0CALMONTH and you wanted to see entered 0CALMONTH value in formulas.Right?
From the context menu of formula>Edit->click on 'Select text variables'->a window will pop up which shows all existing text variables->(you can use any existing text variable of 0CALMANTH,ok..for time being we will go with new text variable) go to starting point of the text variables window>double cilck on "New" node->provide Tech name and description for text variables and select 'processing by' as 'Replacement path'->next->select Characterstic ' 0CALMONTH'->next->select 'replace variable' with "KEY" or "TEXT">next>Finish.
Use this Text variable in your formulas.
Pl dont foget to assign points if it helps.
Thanks -
How to display details for all figures at once
Hello all,
I have a report that shows the number of different notifications per month. The user enters a month and a twelve months timeline (counted back from the entered month) is displayed with the number of different notifications for each month. Additionally I have created another query that shows the details for the first one.
However I wanted to know whether it is possible to get the details for all displayed figures at once?
Currently it is only possible to display the details for one single row (which means one single month from the timeline) or single values. Is it possible that the user can click on any figure (or that he has an additional button) and gets all details?
Or elsewise how can I transfer only the user-chosen month from the first query to a detail query and not the one that he selects from the displayed values.
I hope you can help me with this.
Best Regards
Fabian
Edited by: Björn Rose on Mar 12, 2008 11:29 AMHello Fabian,
You can use User Exit to get the User Selected value and Choose only the month from that and pass it to the other query. The user exit has to be written in the reciving query.
Thanks
Chandran
Maybe you are looking for
-
Payroll processing for Mid month Joinees and Separated Employees
Hi Folks, I have the following queries with regard to separation and Joining. 1.In Legacy , people who are joining after 17 of the current month is getting paid in the next month. Our Payroll Period is from 1 to 31st . Is it possible to stop Payment
-
I'm taking over a simple website from someone who was using DreamWeaver. I see that any large blocks of text on the website are images. I was told that this is because there was a "kerning"(?) problem when they went to type text directly into a layer
-
ODD on my Satellite C70D-A-11E wont read DVDs anymore
ODD on my Satellite C70D-A-11E (05.2014) wont to read DVDs anymore. It doesn't matter which one I try it simply doesn't work. Latest driver is installed. Message was edited: posting has been translated
-
Problem while inserting Date/Time in Oracle Database
Hai, i want to insert the date and time in a date column. here, i am using java.sql.Date and java.sql.Time to assign the date in Prepared Statement. PreparedStatement psmt=con.prepareStatement("insert into test(ex_date) values(?)"); java.util.Calenda
-
Ffmpeg record screencast without encoding on the fly.
does anyone know how which option to use to allow encoding after the initial recording, like recordmydesktop does? or is it even possible? so far i have tried -preset ultrafast or -codec:v rawvideo. this is the code from https://trac.ffmpeg.org/wiki/