Why cannot populate value in nested:select onchange field???
<div class="labelledField">
<nested:select styleId='<%="pvqList.questions"+index.intValue()+".questionDropDown"%>' property="questionDropDown" styleClass="formFieldSelect" tabindex='<%=""+((5*index.intValue())+1)%>' onchange="togglePVQ('customQuestion<%=index.intValue()%>FieldLabelPair','<%=index.intValue()%>');return false;">
<option value=""><cibc:text key="ref.text.app.changePVQStep1.dropdown.selectAQuestion"/></option>
<option value="">--------------------</option>
<option value="CUSTOMQUESTION">Create Custom Question</option>
<option value="">--------------------</option>
</nested:select>
<a href="# tabindex='<%=""+((5*index.intValue())+2)%">' onclick="togglePVQ('customQuestion<%=index.intValue()%>FieldLabelPair','<%=index.intValue()%>');return false;">
try</a>
</div>
Outside nested:select, onclick can correctly populate to onclick="togglePVQ('customQuestion1FieldLabelPair','1');return false;"
but onchange in nested:select cannot populate, it only show :
onchange="togglePVQ('customQuestion<%=index.intValue()%>FieldLabelPair','<%=index.intValue()%>');return false;"
why??? How to solve it??
please help.
Fabio,
1) what settings do you use for Default Value Type and Default Value?
2) which error is raised?
brgds,
Peter
Blog: http://www.oracle-and-apex.com
ApexLib: http://apexlib.oracleapex.info
BuilderPlugin: http://builderplugin.oracleapex.info
Work: http://www.click-click.at and http://www.wirsindapex.at
Similar Messages
-
How to Populate values dynamically in Select Box.
Hi All,
I have few select boxes in my webdynpro application. Right now I am populating them using Harcoded values in the Dictionary. But I dont want to harcode the values in the dictionary, i want pull the values from database tables or text files of EP KM. Just let me know which is the better way to populate the select box without hardcoding & why ?
Thanks in Advance.
Regards,
Aditya MetukulHi Aditya,
Getting values from KM and database is possible
It depends on your requirement
ie if the dropdown should contain details of documents from KM or it should display the details in a table
if it is oracle table see this link
Webdynpro and Oracle
if you want to get data from km see this tutorial
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/tutorial on using knowledge management functions in web dynpro - 26.htm
Hope this helps you
Regards
Rohit
Regards
Rohit -
How to populate values in listbox of a field?
HI all,
My requirement is : i have one filed , for that i have five values,
i want to display those five values in the list box. then i have to select one of them and based on this field i have to display few fields in table control .
here i am able to display the values in listbox but even i select any value , it showing the first vale only !!!!!!
please help me in this regard.This is the way........
DATA: DYNFIELDS TYPE TABLE OF DYNPREAD WITH HEADER LINE.
DATA : L_PSPNR TYPE PROJ-PSPID,
L_WBSE TYPE PRPS-POSID.
PARAMETERS : P_BPO TYPE CKIS-EXTNR
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_BPO.
DATA : BEGIN OF IT_BPO OCCURS 100,
BPO LIKE ZCKIS-BPO,
END OF IT_BPO.
DYNFIELDS-FIELDNAME = 'P_PSPNR'.
APPEND DYNFIELDS.
CLEAR DYNFIELDS.
DYNFIELDS-FIELDNAME = 'P_WBSE'.
APPEND DYNFIELDS.
CLEAR DYNFIELDS.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
DYNAME = SY-CPROG
DYNUMB = SY-DYNNR
TRANSLATE_TO_UPPER = 'X'
TABLES
DYNPFIELDS = DYNFIELDS
EXCEPTIONS
INVALID_ABAPWORKAREA = 1
INVALID_DYNPROFIELD = 2
INVALID_DYNPRONAME = 3
INVALID_DYNPRONUMMER = 4
INVALID_REQUEST = 5
NO_FIELDDESCRIPTION = 6
INVALID_PARAMETER = 7
UNDEFIND_ERROR = 8
DOUBLE_CONVERSION = 9
STEPL_NOT_FOUND = 10
OTHERS = 11.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ELSE.
Rewards if satisfied
Thanks -
Query values in Multi Select form field
I have a table and one of the fields is a multiple select box. It is currently working fine
What I now need to do is create a report based on the individual elements in that field: (This report will really just do a count of the events for ownership purposes)
Example:
Table simplified:
Name | Teams Involved
One | TeamA:TeamB:TeamC:TeamD
Two | TeamC
Three | TeamB:TeamD
Four | TeamA:TeamD
Five | TeamD
Six | TeamA
Seven | TeamA
Eight | TeamB
The Teams Involved are populated from a Multiple Select LOV so the Data will always remain constant in spelling etc...
TeamA
TeamB
TeamC
TeamD
I am trying to create a report that will show me the number of times a team is selected in the Teams Involved column and the results would look like:
TeamA 4
TeamB 3
TeamC 2
TeamD 4
I am not very good with PL/SQL but assuming I might need to do a foreach loop type using the values in the LOV and the LIKE %LOVVALUE% but just not really sure
any assistance would be appreciated.
Thanks in advance
wfsteadmanAs Prabodh pointed out, I'm placing a colon at the beginning and end of the value list before doing the LIKE, so every value in the list is guaranteed to have a colon before and after it.
Of course, this could be a performance issue if your dataset becomes large--you're not going to be able to use an index on this column--in which case you'll want to go to a more normalized solution (a table for your teams, a table for your projects [or whatever], and a reference table in the middle), but then you'll need to worry about parsing your multi-select values via a view with an instead of insert trigger. I do this on my blog for assigning tags to posts; it's not difficult, but APEX--for whatever reason--doesn't expose triggers on views as easily as on tables.
-David -
Default Value for a selection screen field
Hi Experts,
I am having a selection screen with a date field i am defaulting the date field to sy-datum but i also have a option of changing the date field value.
The issue is i have defaulted the date field value in PBO event,so when i change my field value in selection screen every time the defaulted value is appearing instead of my new changed value.
Plzz suggest a solution.Hi ,
Actualy u should set the default value at the time of selection screen, but now from the same logic try to write like
If Date is initial.
data = sy-datum.
endif.
in ur PBO
Try this.
THank
-Anmol
Hi Experts,
I am having a selection screen with a date field i am defaulting the date field to sy-datum but i also have a option of changing the date field value.
The issue is i have defaulted the date field value in PBO event,so when i change my field value in selection screen every time the defaulted value is appearing instead of my new changed value.
Plzz suggest a solution. -
Personalised Value Help in Select-Option field WD ABAP
Hi
I would like to know how I could provide the user with generic value help. I am using the Select Options in a Web Dynpro(ABAP) Application.
Regards
FaaiezHi
The key word here is "generic value help". This means the values that I want to fill the drop down with changes all the time based on various criteria. I need to fill the help values within the ABAP code based on the values in internal tables.
Regards
Faaiez -
To transfer Selection Screen field value from a program to another Program
Hello,
Program Z_ABC having Select Option Field XYZ.
I need to transfer all the values entered on Selection Option Field XYZ to another Program Dialog Z_DIALOG.Hi,
Try to use the function module 'RS_REFRESH_FROM_SELECTOPTIONS'.
For ex:
CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
EXPORTING
curr_report = sy-repid
TABLES
selection_table = it_soptions
EXCEPTIONS
not_found = 1
no_report = 2
OTHERS = 3.
IF sy-subrc <> 0.
EXIT.
ENDIF.
SUBMIT riaufk20 WITH dy_selm = 'D'
WITH SELECTION-TABLE it_soptions
AND RETURN.
Hope it solves your issue.
Regards,
Chenthamarai. -
Auto populate values in the the database table
Hi All,
I have a requirement where user enter values in one of the ZTransaction. This will update a Ztable. So the new requirement is to add two new columns in the fields, which is completed. Now this two new fields are supposed to auto populate values based upon the key field .
The transaction code is defined with Transaction as SM30 and Default values as
Name of the screen field value
Update X
VIEWNAME "table name which the values are updated".
Please let me know how to do this.
Thank you!!Hi Swetha,
I am unsure of what you are trying to accomplish so I will make a few assumption and perhaps you can find some benefit in it.
I suppose you are trying to add new fields to a custom (Z) database table.
If so then use SE11 to add the two new columns.
After this is complete then rebuild the table maintenance by using the following path: SE11-> Utilities->Table Maintenance Generator. (Remember to double check the Recording Routine Radio button.)
If the user needs fields automatically populated then check the following link. It describes how to use table maintenance events. I suppose you need to use Event 01 and Event 05.
http://help.sap.com/saphelp_nw04/helpdata/en/91/ca9f0ea9d111d1a5690000e82deaaa/frameset.htm
Good luck and reward points if helpful,
AK
Moderator message - Asking for points is against the Forum's RoE
Message was edited by: Suhas Saha -
How to extend the IDoc ORDERS05 and populate values?
Hi,
My requirement is to add few fields to the standard IDoc ORDERS05 and populate values to the newly added fields.
Please let me know how to extend the standard IDoc ORDERS05.
Regards,
Balaji. RHi balaji,
you can try to google for SAP R/3 IDoc Cookbook for EDI and Interfaces by Axel Angeli et.al.
Although Axel refers primarily to MATMAS Idoc the technique of extending IDOCs is explained very well.
Also very good is the search function here on SCN, I just found
[Some Experience on IDoc Enhancement|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=%28J2EE3414900%29ID0711317150DB10743789739220747754End?blog=/pub/wlg/8285]
Blogs and Wikis here are the best source for general questions like yours, usually of much more value than forum answers
Regards,
Clemens -
Lock in parameter/select-options field
Hi,
How can we block another user from executing report with the same value of parameter/select-option field entered on screen by user?
for example:
Report ZZZ, parameter field sales org = A, run by user 1.
Another user, say B, attempts to run the report by entering the same sales org = A. In these second execution of the report, I need to display error message saying that user A is running the report then report cant be run by user B.
Do i need to put lock object for these?
thanks alots
AliaNo, there is no mechanism to restrict in that way.
but you can create a Z-table with one column (vkorg)
now make a little change in the report..
1.check if any entry of vkorg is there in that z-table.
if not proceed, else error msg.
2.craete an entry of that vkog in that z-table.
3.Normal processing of this report.
4.at end delete that entry of vkorg from z-table.
thus you can achieve mutual exclusion.
cheers.
Message was edited by: Anid -
Reset a select-person field?
Reset a select-person field?
We have a couple services where depending on the option chosen, a select person field appears and is mandatory. If they select a person, the form fields are populated. But when the customer changes to another option where the select person field is not needed. The problem arises...normally, I would hide the field and clear the vaules. But the value in a select person field is held by the information choosen from the Select Person Popup window.
Any help would be appreciated.
Thanks.Hi Tylor,
Have you used ISF or DDRs in RC 2008 to be able set a Person-type field using a set or look-up? I'm doing some noodling now to try and determine that and saw this article. Looking at your comments above, you seem familiar with the person type fields! Any advice you could give would be appreciated.
I've tried setting the value to the RC database Person ID based on your comments above using DDR but with no luck. We're trying to hook in to a remote Identity Management database to d -
How to populate values in a Listbox parameter in selection screens
I have a parameter(as list box) field in selection screens. And now I want to populate a list from a ztable field values. How to do that.
Thanks in AdvanceHi,
You have to use the FM VRM_SET_VALUES.
Check this example..
TYPE-POOLS: vrm.
PARAMETERS: p_test TYPE char4 AS LISTBOX VISIBLE LENGTH 10.
DATA: t_data TYPE vrm_values.
INITIALIZATION.
DATA: s_data TYPE vrm_value.
<b>***Here you to have to do the select and populate the internal table
***t_data.</b>
s_data-key = 'ABCD'.
s_data-text = 'First four'.
APPEND s_data TO t_data.
s_data-key = 'EFGHI'.
s_data-text = 'Second four'.
APPEND s_data TO t_data.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'P_TEST'
values = t_data
EXCEPTIONS
id_illegal_name = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
START-OF-SELECTION.
WRITE: / p_test.
Thanks,
Naren -
How to populate f4 values to standard pnp selection screen fields
Hi Experts,
my question is how to populate f4 values to standard pnp selection screen field. i am using LDB PNP for a report , it displays several fields with f4 values, i need to remove all the stadard f4 values and want to place my f4 values in the selection screenHi Venkat,
To put ur own values in the F4 help of any field...all u have to do is.
1st fetch all the records that u need to display in F4 help list...in one internal table.
and then use the function module 'F4IF_INT_TABLE_VALUE_REQUEST'
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield =
value_org =
tables
value_tab =
return_tab =
exceptions
parameter_error = 1
no_values_found = 2
others = 3.
where retfield is the field for which u need to give the F4 help.
and valu_tab is the internal table in which u have the list of records to be displayed.
this would do the work...
I dont have the system in front of me...as soon as i have...will try to send a piece of code, to make ur work easy.
Till then hope this helps u...all the best
Regards,
Radhika -
How to populate values into a Listbox on selection screen
Hi All,
Please any one let me know how to populate values (for ex.01,02 and 03) in a list box of selection screen..
Thanks,
VijayTry this code ...
REPORT ZLISTBOX.
TYPE-POOLS: VRM.
TABLES SPFLI.
TABLES SSCRFIELDS.
DATA flag.
DATA: NAME TYPE VRM_ID,
LIST TYPE VRM_VALUES,
VALUE LIKE LINE OF LIST.
PARAMETERS PS_PARM LIKE SPFLI-CARRID AS LISTBOX VISIBLE LENGTH 5
USER-COMMAND fcodex.
data: i_spfli type spfli occurs 0 with header line.
PARAMETERS PQ_PARAM LIKE SPFLI-connid AS LISTBOX VISIBLE LENGTH 15
USER-COMMAND
fcodey.
*DS AS CHECKBOX USER-COMMAND FLAG.
INITIALIZATION.
NAME = 'PS_PARM'.
DATA T TYPE I VALUE 0.
SELECT DISTINCT carrid into corresponding fields of table i_spfli FROM
SPFLI.
loop at i_spfli.
VALUE-KEY = i_spfli-CARRID.
VALUE-TEXT = i_spfli-CARRID.
APPEND VALUE TO LIST.
endloop.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
ID = NAME
VALUES = LIST.
AT SELECTION-SCREEN.
if sy-ucomm eq 'FCODEX'.
REFRESH LIST.
CLEAR LIST.
PQ_PARAM = ' '.
NAME = 'PQ_PARAM'.
SELECT * FROM SPFLI WHERE CARRID = PS_PARM.
VALUE-KEY = SPFLI-connid.
VALUE-TEXT = SPFLI-connid.
APPEND VALUE TO LIST.
ENDSELECT.
endif.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF SY-UCOMM NE 'FCODEX' OR SY-UCOMM NE 'FCODEY'.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
ID = NAME
VALUES = LIST.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
START-OF-SELECTION.
clear i_spfli.
refresh i_spfli.
select * into table i_spfli from spfli where carrid = ps_parm and connid
= pq_param.
loop at i_spfli.
WRITE: / 'CITY FROM:', I_SPFLI-CITYFROM, 'CITY TO :',I_SPFLI-CITYTO,
'DEPARTURE TIME :', I_SPFLI-DEPTIME.
ENDLOOP. -
Why cannot I use hidden or display only item to store value for insert?
hi, Gurus:
I have a question:
I implemented a form with report region in a page, the update works OK, but the add function has a problem:
There is a column, offender_ID, which is a foreign key for another table, it should not be null during insert. However, even I pass the offender ID from master page when user click the create button, and it did shows in the form, it must be a text filed to insert successfully, why cannot I use hidden or display only item to store this value for insert? (If I use hidden or display only item, insert won't be successful, apex reports I tried to insert a null value to offender_ID column.)
Many Thanks in advance.
SamHi,
There is a column, offender_ID, which is a foreign key for another table, it should not be null during insert. However, even I pass the offender ID from master page when user click the create button, and it did shows in the form, it must be a text filed to insert successfully, why cannot I use hidden or display only item to store this value for insert? (If I use hidden or display only item, insert won't be successful, apex reports I tried to insert a null value to offender_ID column.)I think both hidden and display items have attributes that can cause problems because of different ways these items function than non-hidden and non-display-only items function. Display Only items have a "Setting" of "Save Session State" Yes/No? That can be a problem.
Would you do this? Make these items regular items instead and see if you can get those working. Then, we will try to change the fields back to hidden or display only.
Howard
Congratulations. Glad you found the solution.
Edited by: Howard (... in Training) on Apr 11, 2013 10:26 AM
Maybe you are looking for
-
Memory leak in the JVM leading to system oom
Hi, We are running application server using java 1.5, tomcat 5.5 ... The problem is that the JVM is allocating memory continuously. If we look at the JVM memory from JConsole everything is OK the amount of memory allocated in the heap does not grow s
-
Handling internal table with more than 1 million record
Hi All, We are facing dump for storage parameters wrongly set. Basically the dump is due to the internal table having more than 1 million records. We have increased the storage parameter size from 512 to 2048 , still the dump is happening. Please adv
-
Voice Messaging: Cannot enable v8.1 per "accepted ...
Community: I have (2-1/2) issues working in unision, and I need some divine intervention from the Microsoft Godz. Issue 1) Skype "New desktop" windows 8.1 version. I can "enable" Voicemail, but have no ability to configure ring time, greeting, etc.
-
Parameters in selection screnn in webdynpro abap
Hello Gurus, We have a requirement to maintain parameters in selection screnn in webdynpro abap. now we are able to create parameters using wdr_select_options componet usage of method add_parameter_field. we need f4 help also for this parameter. ho
-
Workflow for approving documents: rejected document
Hi expert colleagues, at my client we are implementing the workflow functionality for approving documents (EhP2). I managed quite easily to set-up the basic workflow as described in the documentation. I have one question though, the problem is the fo