On iprocurement page..How to populate task field dependent on Project lov field value which Project type is "Capital Project Type"
Hi,
I have an requirement on Iprocurement page where in i have to populate task field as CAPL in case my project field contains the project which is of type 'Capital Project Type'.
Please suggest how can we implement this.
Thanks,
Abhishek
try these links:
http://sharepoint.stackexchange.com/questions/103682/autopopulate-form-fields-based-on-selection-in-people-picker-column-using-javasc
http://sharepoint.stackexchange.com/questions/80261/people-picker-not-getting-populated-in-the-sharepoint-site
http://blogs.technet.com/b/anneste/archive/2011/11/02/how-to-create-an-infopath-form-to-auto-populate-data-in-sharepoint-2010.aspx
Similar Messages
-
Check or Uncheck a messageCheckbox field depending on a LOV field value
Dear Gurus,
Please let me know if we can check or uncheck a check box field based on a value in LOV field in a OAF Page. I need to know if we can do this without touching the code in controller, is it possible? Please provide your valuable thoughts.
The requirement is something like say, if X is a value in LOV, we need to check the checkbox else we need to uncheck the checkbox
Thanks in Advance,
AffyYou could try workaround. Not sure whether this is feasible in your case.
You need to modify (add a new column) the LOV query something like this :
select decode(<column_name>, 'X','Y','N') checkbox_value,
from .....
where ....
Make sure that the checkbox checked value = 'Y' and unchecked value = 'N'.
Set this attribute as the return item to the checkbox.
Cheers
AJ -
How to populate one internal table from another using field symbols
Hi Gurus,
I have a problem. I have to populate one internal table (sructure t_otput) from another internal table (sructure t_from) using field symbol.
Structure for from table.
types: begin of t_from,
year(4) type c,
ww(2) type c,
site type marc-werks,
demand type i,
end of t_from.
Structure for output table.
types: begin of t_display,
title(30),
WW1(10),
WW2(10),
WW3(10),
end of t_display.
The from table looks like this:
Year | WW | Site | Demand
2005 | 1 | OR1 | 12.00
2005 | 2 | OR1 | 13.00
2005 | 3 | OR1 | 14.00
The display table which has to be populated should look like this:
Title | WW1 | WW2 | WW3
OR1 | | |
Demand | 12.00 | 13.00 | 14.00
How to populate display table using field symbol?
Please give code snippets
Thanks,
GopalGopal,
Here is the code, however I am not vary clear about the ORG1 and Demand display that you have shown in the display. I am sure with this code it should not be a big deal to tweak in whatever manner you want.
TABLES : marc.
TYPES: BEGIN OF type_display,
title(30),
ww1(10),
ww2(10),
ww3(10),
END OF type_display.
TYPES: BEGIN OF type_from,
year(4) TYPE c,
ww(2) TYPE c,
site TYPE marc-werks,
demand TYPE i,
END OF type_from.
data : t_from type table of type_from,
t_display type table of type_display.
field-symbols : <fs_from> type type_from,
<fs_display> type type_display.
data : wa_from type type_From,
wa_display type type_display.
wa_from-year = '2005'.
wa_from-ww = '1'.
wa_from-site = 'OR1'.
wa_from-demand = '12.00'.
insert wa_from into table t_from.
wa_from-year = '2005'.
wa_from-ww = '2'.
wa_from-site = 'OR1'.
wa_from-demand = '13.00'.
insert wa_from into table t_from.
wa_from-year = '2005'.
wa_from-ww = '3'.
wa_from-site = 'OR1'.
wa_from-demand = '14.00'.
insert wa_from into table t_from.
data : variable(3) type c.
field-symbols : <fs_any> type any.
break-point.
Loop at t_from assigning <fs_from>.
variable = 'WW'.
wa_display-title = <fs_from>-site.
concatenate variable <fs_from>-ww into variable.
assign component variable of structure wa_display to <fs_any>.
<fs_any> = <fs_from>-demand.
endloop.
append wa_display to t_display.
clear wa_display.
loop at t_display assigning <Fs_display>.
write :/ <fs_display>.
endloop.
Note : Please award points if this helps you.
Regards,
Ravi -
How to populate a textarea based on a LOV
Hi,
I have a form based on procedure. The form has many fields, among them there are a LOV field and a text field. I want to populate the text field whenever lov will be changed. Can anybody help me?
Thanks
SumitaI understand your requirement and the tutorial doesn't talk about Association between the views so that you can create a Master-Detail or in DB parlance, a Parent-Child relationship.
I will assume that we are dealing with two entities here: Department and Employees where a particular Department has many Employees and hence a Parent-Child relationship.
Firstly, you need to create an Association between the two Entities - Department and Employees. You can do that by right clicking on the model's entity and then associating the two entities with the appropriate key say, DepartmentId.
Once you have done that, you need to link the two entities in the View section with this Association that you created. Then go to AppModule and make sure that in the Available View Objects: 'EmployeesView' appears under 'DepartmentView' as "EmployeesView via <link you created>". Shuttle the 'DepartmentView' to the right, Data Model and then shuttle
"EmployeesView via <link you created>" to the right, Data Model under 'DepartmentView'.
This will then be reflected in your Data Controls. After that, you simply would have to drag this View into your page as a Master-Detail form...and then when you run this page, any row selected in the Master table, would display the data in the Detail table.
Also, refer to this link: [Master-Detail|http://baigsorcl.blogspot.com/2010/03/creating-master-detail-form-in-adf.html]
Hope this helps. -
Populate text field based on the lov selected value
Hi,
based on the value selected in lov, i want to populate another text field. Below is the code I have written
In PFR:
if(pageContext.isLovEvent())
String lovInputSourceId = pageContext.getParameter(SOURCE_PARAM);
if ("lovCategory".equals(lovInputSourceId))
java.util.Hashtable lovResults = pageContext.getLovResultsFromSession(lovInputSourceId);
if(lovResults!=null)
String value =(String)lovResults.get("lovCategory");
amobj.categorycode(value);
AMImpl code:
public void categorycode(String code) {
sundryCodeVOImpl vobj = getsundryCodeVO1();
vobj.setWhereClause( "lookup_code = "+"'"+code+"'");
vobj.reset();
vobj.executeQuery();
String desc = vobj.first().getAttribute("Description").toString();
String attr = vobj.first().getAttribute("Attribute1").toString();
testEOViewImpl vobj1 = gettestEOView1();
vobj1.getCurrentRow().setAttribute("CodeDescription",desc);
vobj1.getCurrentRow().setAttribute("PurchasingCategoryCd",attr);
vobj1.executeQuery();
With this code, the updated values for the attributes CodeDescription, PurchasingCategoryCd are getting inserted into the database table but they are now showing up in the text fields when a value is selected in lov.
Please tell me what is the mistake I'm doing.
Thanks
SunnyI'm using Lov Map to populate the lov field say field A. But I need to populate another field say field B based on the value selected in field A.
to give an example of my requirement. Consider a view object having attributes col1,col2,col3 and having following data.
col1--col2--col3
1-----a-------x
2-----b------y
3-----c------z
I 'll populate the lov of field A with values in col1. when user selects value 1 in field A. automatically field B should show value 'a'. If user selects value 2 in field A, field B should show value 'b' so on.
Thanks
Sunny -
How to show an error if the user enters a value which is not in the dropdown of a form
Hi All,
I have attached the screenshot below and if we look at the field for claimnumber we have a dropdown which can help the users pick the available claimnumbers, but if someone accidentally types in a claimnumber that is not in the system( which doesnt show
up in the dropdown) the form is accepting that claimnumbers too, but i want to have a error or warning window popup saying that this claimnumber is not valid or something.
Can someone please help me with this?
Thanks.Open the form in design view.
Select the Combo Box.
Set its Limit to List property to Yes.
If the user types a value that does not occur in the list, Access will display a standard error message:
If you want to display a custom message, you can write code in the On Not in List
event of the combo box:
Private Sub ClaimNumber_NotInList(NewData As String, Response As Integer)
' Undo the incorrect item
Me.ClaimNumber.Undo
' Display a custom error message
MsgBox "Please select a claim number from the list!", vbExclamation
' Tell Access not to display the built-in message
Response = acDataErrContinue
End Sub
where ClaimNumber is the name of the combo box.
Regards, Hans Vogelaar (http://www.eileenslounge.com) -
How to populate dynamic internal table according to the field names
Hi ,
Iam having a dynamic internal table <DYN_TABLE> , it has fields like
MATNR MAKTX MEINS BISMT MTART ...
Now my requirement is i need to fill them according to the fieldname from another internal table (static) .
The order of internal table (static) and dynamic internal are not same.
kindly help me.Hi,
Here is the code. Please reward points if helpful.
REPORT z_dynamic.
TYPE-POOLS : abap.
FIELD-SYMBOLS: <dyn_table> TYPE STANDARD TABLE,
<dyn_wa>,
<dyn_field>.
DATA: dy_table TYPE REF TO data,
dy_line TYPE REF TO data,
xfc TYPE lvc_s_fcat,
ifc TYPE lvc_t_fcat.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
PARAMETERS: p_table(30) TYPE c DEFAULT 'T001'.
SELECTION-SCREEN END OF BLOCK b1.
START-OF-SELECTION.
PERFORM get_structure.
PERFORM create_dynamic_itab.
PERFORM get_data.
PERFORM write_out.
*& Form get_structure
text
FORM get_structure.
DATA : idetails TYPE abap_compdescr_tab,
xdetails TYPE abap_compdescr.
DATA : ref_table_des TYPE REF TO cl_abap_structdescr.
Get the structure of the table.
ref_table_des ?=
cl_abap_typedescr=>describe_by_name( p_table ).
idetails[] = ref_table_des->components[].
LOOP AT idetails INTO xdetails.
CLEAR xfc.
xfc-fieldname = xdetails-name .
xfc-datatype = xdetails-type_kind.
xfc-inttype = xdetails-type_kind.
xfc-intlen = xdetails-length.
xfc-decimals = xdetails-decimals.
APPEND xfc TO ifc.
ENDLOOP.
ENDFORM. "get_structure
*& Form create_dynamic_itab
text
FORM create_dynamic_itab.
Create dynamic internal table and assign to FS
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING
it_fieldcatalog = ifc
IMPORTING
ep_table = dy_table.
ASSIGN dy_table->* TO <dyn_table>.
Create dynamic work area and assign to FS
CREATE DATA dy_line LIKE LINE OF <dyn_table>.
ASSIGN dy_line->* TO <dyn_wa>.
ENDFORM. "create_dynamic_itab
*& Form get_data
text
FORM get_data.
Select Data from table.
SELECT * INTO TABLE <dyn_table>
FROM (p_table).
ENDFORM. "get_data
*& Form write_out
text
FORM write_out.
Write out data from table.
LOOP AT <dyn_table> INTO <dyn_wa>.
DO.
ASSIGN COMPONENT sy-index
OF STRUCTURE <dyn_wa> TO <dyn_field>.
IF sy-subrc <> 0.
EXIT.
ENDIF.
IF sy-index = 1.
WRITE:/ <dyn_field>.
ELSE.
WRITE: <dyn_field>.
ENDIF.
ENDDO.
ENDLOOP.
ENDFORM. "write_out -
How to populate right side of Shuttle with display/return values?
Hello,
I know, that the proper way to populate the right side of shuttle is that:
declare
v_list apex_application_global.vc_arr2;
begin
select profile_name return_value
bulk collect
into v_list
from user_profiles
where user_id = :p61_user_id;
return (apex_util.table_to_string (v_list));
end;It is comfortable for the user to see the name of the profile.
However, I need a profile_id as a return value, like I have it on the left side of the shuttle.
The left side of the shuttle is populated with a select list with display/return values, as you know.
I need both sides of the shuttle to return profile_id in order to create a merge.
How is it possible to populate the right side of the Shuttle with display/return values?All you have to do is to use the subset of shuttle query to assign value to the right side shuttle.
http://apex.oracle.com/pls/apex/f?p=50942:95
I have created a dummy page with shuttle query
SELECT ename, empno FROM emp ORDER by 1then I have defined a pl-sql before header process to assign values to shuttle variable
using the code
begin
:P95_SHUTTLE := '7566:219:7900:7782:90';
end;since 90 is not one the result set of the shuttle query it is getting displayed as number, and for others it is displaying the text. Thanks.
--Manish -
In Pages, how does one 'Save As' - I only have the option 'Save' which wipes earlier versions
how can i save a newer version of any document in Pages without losing the earlier version?
What Microsoft so neatly do with either 'Save' or 'Save as"?Brilliant thank you, only on mine it is called alt as I have only just discovered, and lo, as you say, Save As actually appears!
Apple isn't so obstinate after all - but why do they make it so difficult to find their simple solution? I even bought a book about switching (O'Reilly's) and nothing is mentioned about any of this.
I am very grateful to you all, now I have two options! -
BO Webi: How to populate a variable with the set of static values for Graph
Hi All,
I have the data: Order number, Order Date, processing time coming from the SAP Bex query in the below format:
Order No Order Date Processing time (Days)
1 Jan-2011 4
2 Jan-2011 5
3 Feb-2011 6
In BO webi report, I have to report the number of orders which were processed in <1day, <2days, <3days,...<10days in a graphical view. i.e., X-Axis: <1day, <2days, <3days,...<10days(10 static buckets for the processing days)
Y-Axis: Number of Orders.
The graphical output should be like below:
X-Axis: <1day, <2days, <3days,<4days,<5days,<6days,<7days,<8days,<9days,<10days
Y-Axis: 0, 0,0,0,1,2,3,3,3,3 (count(Order No)) (Cumulative count)
I am able to calculate the number of orders individually for each of the 10 buckets. But the problem i am facing is that I am not able to hold the 10 static bucket values in a variable to use it for the x-axis in the Graph, as these 10 static bucket values are not coming from the backend source.
I would like to know if there is way to populate a variable(to use it for the X-Axis in the graph) with the set of 10 static values.
Any help would be highly appreciated.
Thanks,
LeelaHi ,
I think we can use the variable as X-axis in chart.. but Variable Qulaification should be Dimension.
can you try this?.
Using efasion universe
1) Select month and Sold at (unit price) , then run the query
2) create the variable V_Month ==If [Month]=1 Then "Month1" Else "Month2" (Note = Variable Qulaification should be Dimension)
3) Create the variable V_Sum= sum (Sold at (unit price))
4) create another variable V_Cumulative_Sum==[V_Sum]+Previous([V_Sum])
Now add V_Month and V_Cumulative_Sum in table , then convert to chart.. now you can add the variable V_Month as X-axis of the chart.
Hope this will help:)
Thanks
Ponnarasu K -
How to populate list item depending another
hello all,
Am newbie to using Oracle forms 6i i have 3 list items namely CITY_NAME, STATE_NAME ,COUNTRY_NAME and i want to display city_name depending on state_name and display state_name depending on country_name... help meHi
Pls Study , try & Test the following...
http://andreas.weiden.orcl.over-blog.de/article-28957008.html
Hope this helps...
Regards,
Abdetu... -
How to Populate a List item with LOV'S
How to Populate a list of items with Lov's
and then how to dynamically change the Values of one LIST Item
Based on the Value of anothe List item976798 wrote:
--Hello..I want to ask that How to bind a list item with table values? this below code does not populate items from database to list item.Pls any body give me solution.
declare
group_id RecordGroup;
list_id Item:=Find_Item('LST_CLASS');
status number;
begin
group_id:=Create_Group_From_Query('Answer_List','select CLASS_ID,CLASS_NM from CLASS_MSTR');
status:=Populate_Group('Answer_List');
message(to_char(status));
Populate_List(list_id,group_id);
end;Welcome to the Oracle Forums. Please take a few minutes to review the following:
<ul>
<li>Oracle Forums FAQ
<li>Before posting on this forum please read
<li>10 Commandments for the OTN Forums Member
<li>How to ask questions the smart way
</ul>
Following these simple guidelines will ensure you have a positive experience in any forum; not just this one!
Check this link: How to Dynamically Populate a Pop List ?
Hope this helps
Hamid
If someone's response is helpful or correct, please mark it accordingly. -
How to avoid the objects dependency in the packages by standard settings?
Hi,
How to avoid the objects dependency in the packages by standard settings?
Example Scenario -> Our project uses two packages u2018ZZP1u2019 and u2018ZZP2u2019 for developments in the system u2018SN1u2019. We created a domain u2018ZZ_DO_TESTu2019 in the Package u2018ZZP1u2019. Now we have to make sure that the developer should not use or refer domain u2018ZZ_DO_TESTu2019 for the developments in the package u2018ZZP2u2019.
u2026NaddyEvevn i felt that in the CTS at least a warning can be given if the included objects refer to any other object(s) which arre:
1. Local Objects
2. Locked under other requests,
3. Lastly able to detect cyclic dependency as in we had a situation where we had a program locked in request A which calls an FM locked in request B. Now Request B refers to a message which is locked in request A.Since it was a message it gave only requrn code 4 in transport and transport ended with warnings. But if it is some other object then it is going to give compile error in at least one transport and neither can be moved without the other.
Anyways, i will check the BAPI he has mentioned and see if any workaround can be done,
Request: Please keep the post active until we arrive at a good solution,Thanks. -
Dear Experts.
I am new to ABAP and hence trying jmy hands on various ways of peforming a task.
I have a requirement. I want to maintain a database tables through MPP : ZLT_Auftrag (Refer Screen Shot 1: Doubt MPP1) and ZLT_Kunde (Refer Screen Shot2: Doubt MPP2)
The fields of ZLT_Kunde are: K1, K2, K3
The fields of ZLT_Auftrag are: A1, A2, A3, A4, P1 P2 and P3 are related as per the key field "A3" (Here A3 = K2)
I want the User to be able to Maintain this table through the Screen that I had created using MPP. (Plz refer the attached Screen Shot3:Doubt MPP3 of the SCREEN in MPP)
When I populate the Kunde name(K1) in the SCREEN (Can be done by F4 Search help), then on hitting the pushbutton "Get Kunde" the kunde Code (K2) appears . Now from here it can be deleted or even a new Kunde name and code can be saved dirctly to the database table : ZLT_Kunde. (Refer Screen Shoot4: Doubt MPP4)
For Example for Kunde (K1)= BASF, Kunde Code (K2) = BSF, the Auftrag should be all those values from ZLT_Auftrag (where A3 = BSF)
When I try to populate the Auftrag value on the SCREEN then on hitting F4 (already created for table ZLT_Auftrag in se11) then I get all the values of Auftrag (A1) from the table ZLT_Auftrag. (Ply refer Screen Shot 5: Doubt MPP5)
MY REQUIREMENT: Here I want that either through F4 help or through drop down ONLY those values of Auftrag-A1 should appear on the SCREEN which satisfies the condition: A3 = K2
I am unbale to get how to do that.
I need your valuable suggstions.
Regards
ChandanAnd the code of the MPP is:
*& Module Pool SAPMZDEMO_MPOOL_03
PROGRAM SAPMZDEMO_MPOOL_03.
TABLES: ZLT_MITA, ZLT_Kunde, ZLT_Auftrag, Zlt_Stdsatz.
DATA: flg_lock TYPE c,
* indx TYPE i,
* indxk TYPE i,
* indxa TYPE i,
* TCNT TYPE sy-tabix,
lv_msgv1 TYPE sy-msgv1.
*DATA: it_mita TYPE TABLE OF ZLT_mita,
* it_kunde TYPE TABLE OF ZLT_KUNDE,
* it_auftrag TYPE TABLE OF ZLT_AUFTRAG.
*& Module STATUS_9000 OUTPUT
* text
module STATUS_9000 output.
SET PF-STATUS 'ZSTATUS01'.
* SET TITLEBAR 'xxx'.
If flg_lock is Not initial.
LOOP at Screen.
If screen-group1 = 'G1'.
Screen-input = 0.
MODIFY SCREEN.
Endif.
ENDLOOP.
MESSAGE s000(8i) WITH 'Mitarbeiter already locked by user' lv_msgv1.
ENDIF.
endmodule. " STATUS_9000 OUTPUT
*& Module USER_COMMAND_9000 INPUT
* text
module USER_COMMAND_9000 input.
*To Populate Data into Mitarbeiter through Pushbuttons
CASE sy-ucomm.
When 'OK_GET'.
Clear : flg_lock.
IF ZLT_MITA-M1 is NOT INITIAL.
SELECT SINGLE *
FROM ZLT_MITA
Where M1 = ZLT_MITA-M1.
*To create a Lock Object so that when two or more employees are accessing the same data
* at the same time then for the new user the data gets locked and only can been seen in
*display mode
IF sy-subrc = 0.
CALL FUNCTION 'ENQUEUE_EZLT_MITALOCK'
EXPORTING
MODE_ZLT_MITA = 'E'
MANDT = SY-MANDT
M1 = ZLT_MITA-M1
* X_M1 = ' '
* _SCOPE = '2'
* _WAIT = ' '
* _COLLECT = ' '
EXCEPTIONS
FOREIGN_LOCK = 1
SYSTEM_FAILURE = 2
OTHERS = 3
IF sy-subrc <> 0.
flg_lock = 'X'.
lv_msgv1 = sy-msgv1.
ENDIF.
ENDIF.
ELSE.
MESSAGE S000(8i) With 'Enter Mitarbeiter Name'.
ENDIF.
When 'OK_SAVE'.
Modify ZLT_MITA.
IF sy-subrc = 0.
MESSAGE s000(8i) With 'Data Saved'.
ENDIF.
When 'OK_DELETE'.
IF ZLT_MITA-M1 is NOT INITIAL.
DELETE
FROM ZLT_MITA
Where M1 = ZLT_MITA-M1.
IF sy-subrc = 0.
MESSAGE S000(8i) With 'Data deleted'.
ENDIF.
ENDIF.
* When 'OK_FIRST'.
* indx = 1.
* When 'OK_NEXT'.
* indx = indx + 1.
* When 'OK_PREV'.
* indx = indx - 1.
* When 'OK_LAST'.
* Describe Table it_mita lines indx.
*To Populate Data into Kunde through Pushbuttons
When 'OK_GETK'.
IF ZLT_Kunde-K1 is NOT INITIAL.
SELECT SINGLE *
FROM ZLT_Kunde
Where K1 = ZLT_KUNDE-K1.
ELSE.
MESSAGE S000(8i) With 'Enter Kunde Name'.
ENDIF.
When 'OK_SAVEK'.
Modify ZLT_Kunde.
IF sy-subrc = 0.
MESSAGE s000(8i) With 'Data Saved'.
ENDIF.
When 'OK_DELETEK'.
IF ZLT_KUNDE-K1 is NOT INITIAL.
DELETE
FROM ZLT_KUNDE
Where K1 = ZLT_KUNDE-K1.
IF sy-subrc = 0.
MESSAGE S000(8i) With 'Data deleted'.
ENDIF.
ENDIF.
*To Populate Data into Auftrag Through Pushbuttons
When 'OK_GETA'.
IF ZLT_KUnde-K2 is NOT INITIAL.
SELECT SINGLE *
FROM ZLT_Auftrag
Where A3 = ZLT_Kunde-K2.
ELSE.
MESSAGE S000(8i) With 'Enter Kunde Name'.
ENDIF.
When 'OK_SAVEA'.
Modify ZLT_Auftrag.
IF sy-subrc = 0.
MESSAGE s000(8i) With 'Data Saved'.
ENDIF.
When 'OK_DELETEA'.
IF ZLT_Auftrag-A1 is NOT INITIAL.
DELETE
FROM ZLT_Auftrag
Where A1 = ZLT_Auftrag-A1.
IF sy-subrc = 0.
MESSAGE S000(8i) With 'Data deleted'.
ENDIF.
ENDIF.
*To Populate Data into Position Thorugh Pushbuttons
When 'OK_GETP'.
IF ZLT_Auftrag-A2 is NOT INITIAL.
SELECT SINGLE *
FROM ZLT_Auftrag
Where A3 = ZLT_Kunde-K2.
ELSE.
MESSAGE S000(8i) With 'Enter Kunde Name'.
ENDIF.
When 'OK_SAVEP'.
Modify ZLT_Auftrag.
IF sy-subrc = 0.
MESSAGE s000(8i) With 'Data Saved'.
ENDIF.
When 'OK_DELETEP'.
IF ZLT_Auftrag-A1 is NOT INITIAL.
DELETE
FROM ZLT_Auftrag
Where A1 = ZLT_Auftrag-A1.
IF sy-subrc = 0.
MESSAGE S000(8i) With 'Data deleted'.
ENDIF.
ENDIF.
When 'OK_EXIT'.
Leave Program.
When 'OK_CLEAR'.
Clear : ZLT_MITA, ZLT_KUNDE, ZLT_AUFTRAG.
* it_mita, it_kunde, it_auftrag,
CALL FUNCTION 'DEQUEUE_EZLT_MITALOCK'
EXPORTING
MODE_ZLT_MITA = 'E'
MANDT = SY-MANDT
M1 = ZLT_MITA-M1
* X_M1 = ' '
* _SCOPE = '3'
* _SYNCHRON = ' '
* _COLLECT = ' '
ENDCASE.
endmodule. " USER_COMMAND_9000 INPUT
*& Module user_cmd_9000 INPUT
* text
module user_cmd_9000 input.
If sy-ucomm = 'OK_CANCEL'.
LEAVE PROGRAM.
ENDIF.
IF sy-ucomm = 'OK_EXIT'.
LEAVE PROGRAM.
ENDIF.
endmodule. " user_cmd_9000 INPUT -
How do I populate form fields depending on the value of a list box?
Hi,
Can anybody help me out here?
I'm creating a form where I'm needing to populate a number of fields (first name & last name) based on the value of a list box (values are 1,2,3,4,5,6) ie: if 3 is selected 3 sets of the first name and last name fields populate on the page for the user to fill out.
At this stage it is just a prototype site and there is no database running behind it.
Thanks
HaydenThis can only be solved if you have javascript coding skills. Without knowing more about what you want to do and why, I can only show you a skeleton of how your code should look, but consider this form select field -
<select onchange="populateForm()">
When a value is selected from that list, the "onchange" event will fire, and will call the javascript function called populateForm(). You need to define a function by that name somewhere on the page -
<script type="text/javascript">
//<![CDATA[
function populateForm(value) {
if value >0 { document.getElementById("fieldID").style.display='block' }
if value >1 { .... }
etc.
//]]>
</script>
The page itself would need to have ALL the fields already in the form, but with those that are to be revealed set to a style of display:none.
Obviously, this is a skinny skeleton. Each test in the function would reveal a new field on the page by changing its display style from "none" (which is how they should be set in the code) to "block". You would need a separate function for each type of field that might need to be chosen.
If this is well over your head, then I'm afraid you will be out of luck for this particular approach....
Maybe you are looking for
-
4 GB iPod Nano connected to A/C source but not charging
I have resetted my iPod to factory settings and used all other common troubleshooting tips but... My 4GB iPod Nano is connected to an A/C source but does not charge. Oddly enough, the iPod says its charging, but when I disconnect the source, the batt
-
Universal adaptor for OBIEE with JDEdwards as OLTP source
Hi All, we are in the process of implementing OBIEE for procurement and spend analytics with JDE as OLTP source. As you knew this subject area doesnot come with adaptor for JD Edwards in the recent version. Does anyone having idea about creating a un
-
When I try and open Facebook or Youtube on an Apple Macbook. Flash player is up to date, and the website that opens when you click on the link in the message is not Adobe. I've tried clearing history and cookies, and it still does this sometimes.
-
Hi, I have a simple spreadsheet where I'm entering dollar amounts. I'd like to format the cells so that if I type, 1636, the result will be $16.36. I've already got the cells set to currency, but I can't figure out how to get Numbers to auto-add th
-
I have a 4s iPhone and an IMAC OSX 10.9.4. 3 days ago my phone stopped syncing with my iMac. Gives an unknown error 1723. How do I fix? I think I changed a setting, but don't know which one would cause this problem. Thanks for any help.