Fill several fields based on selection in (some kind of) LOV
In an application for registration of visitors I have to realize following functionality:
- in the screen for insert of visits select an employee who will receive the visit from a (some kimnd of) List of Values
- not only his name must then be filled in, but also the values for his email adress, phone number and room number out of the lookup table must be placed in the insert form. (it is denormalized, because the inserting user must be able to deviate from this.)
The LOV's that Portal provides only make it possible to return only **one** value.
Does anyone have an example how to realize something like this?
Check the following link , you may get an idea to solve your problem
mapping an EO to a view ?
-Krishnamurthy
Similar Messages
-
Automatically fill input fields based on selection from dynamic drop down
Hi All,
I tried to search before posting, but i cannot find appropriate thread (maybe wrong keyword).
My scenario:
1. In my offline interactive form, I have:
a. Material Number --> drop down field with "Allow Custom Text Entry" ticked
b. 1 execution button to call web service
c. Material Group - Input Field (Read Only)
2. User will enter material number with wild card character (eg: ABC*).
User will then click the execution button.
Web Service in result will return all materials that match the entered material number.
Dynamic binding will do the magic to generate the drop down list.
3. Beside material number, web service will also return material description and material group.
Below is the illustration:
Material Description Material Group
ABC Material ABC GRP01
ABCDE Material ABCDE GRP02
--- so far so good ---
My requirement:
Every time user select material from the drop down list, i want to auto-populate field "Material Group" (which value is also returned by web service).
I know i need to put the script on event change of the drop down field.
But i don't know how to read internal table returned by web service.
Hope someone can enlighten me.
Thanks in Advance !!!Solved after reading:
1. /people/juergen.hauser2/blog/2007/09/03/accessing-data-nodes-in-sap-interactive-forms
2. Chapter 7 of Live Cycle Designer Scripting Basics
(http://help.adobe.com/en_US/livecycle/9.0/LiveCycle_Designer_Scripting_Basics.pdf)
Thanks. -
How Do I: Fill a read-only field based on selections from 2 DDlists?
Follow-up from issue:
http://forums.adobe.com/message/2417876#2417876
I have 2 drop-down lists... "Department" and "SubDepartment"
The selection in DDlist "Department" spawns a unique list in DDlist "SubDepartment"
I select the proper items from both DDlists.
When I do this, I want read-only text field "NameOnIDBadge" to be populated with a pre-defined entry.
Example:
In "Department" DDlist, select item "Finance & Administration"
In "SubDepartment" DDlist, select item "Food Service" from the list that appears
THEN:
In read-only text field "NameOnIDBadge" the following predefined read-only text appears: "Contract Food Serv."
(Thanks to Paul, I already know how to make the selection in DDlist "Department" affect the selection list in DDlist "SubDepartment"
but I don't know how to make the selection of both DDlists create a new pre-defined entry in a text field.)
I have attached a mockup of the file I am working with...I tried that but a few things went wrong.
1. After I select "Food Service" in the second "SubDepartment" DDlist, a Javascript error message pops up (see attached), and I have to click it to make it go away. Then the text "Contract Food Serv" appears in the text box.
2. If I select a different value in the Department DDlist, the rawtext still remains in place... it should clear out.
3. The raw text seems to be based on the selection of the SubDepartment DDlist only. However, I need specific raw text to be generated based on the combination of BOTH DDlists. (It could happen that a totally different Department DDlist could have the same item in its corresponding SubDepartment DDlist. In that case, the rawtext would be completely different.)
Correct example:
Department DDlist = Finance & Administration
SubDepartment DDlist = Food Service
NameOnIDBadge = Contract Food Serv <-- CORRECT
Incorrect example:
Department DDlist = Clinical Services
SubDepartment DDlist = Food Service
NameOnIDBadge = Contract Food Serv <-- INCORRECT (it might be something else) -
Populate field based on selection from another field?
I'm using a Data Connection with a SQL query that returns two fields (StNameFull and ADDRKEY). I have a drop-down list called "Address" with the list items dynamically bound to StNameFull, so the user can select the address.
What I'm trying to do is populate the second field "Key" with the corresponding record, based on the selection made from the drop-down list.
Is it possible to script this so that when the Address is selected the Key will automatically fill in with the key that matches the address selcted?
I currently have "Key" as a text field bound to ADDRKEY, but not sure how to have it check what was selected in "Address"
Thanks so much,
- KevinYes it is possible but you will have to write some script to do it. You wil also have to ge the DataConenction to execute a SQL statement. There is a good blog on this topic at this location:
http://forms.stefcameron.com/2006/09/29/selecting-specific-database-records/
Paul -
How to store the AccountID of a user in a field based on selection of name in a different dropdown
When our form is first loaded we store the current users name in the "username" field.
I have a “VPApprover” drop down field which is doing a look-up to a secondary list where we have two columns, Approver Name and Department. The Name column is a person column and I currently have the “username” displayed in the view
When a user is creating a new request they need to select a VP Approver
What I want to do is when the user selects an Approver, store the Approvers “username” aka "AccountID" from the secondary list in the vpusername field on the form. Then on future editing of the form, I’ll compare the “username” field to the
“vpusername” field and if they are the same display an “Approve/Deny” drop-down.
I've tried selecting different Fields from the Approver secondary list, but can't seem to get the field on the form to update correctly based on the drop-down selection. I have a rule set on the Drop-down field to set the vpusername field.. The Condition
is currently “If vpApprov is not blank” ..
When I get to the Value part, I can't figure out how to "grab" the AccountID of the VP Approver selected and store it in the field on the form. The fields I see in the secondary list under person are "DisplayName", "AccountID",
and "AccountType".
Thanks in advance for any help you can give me!!
Shane Meisner
SharePoint Solutions ArchitectHi,
From your description, my understanding is that you want to store account id to a filed based on a lookup column.
You could accomplish your requirement with Workflow, you could create your workflow with these steps below:
Create a local variables.
Use Set Workflow Variable action to set value to the variable.
Use Set Field in Current Item action to set value to the column(Please refer to the screenshot below).
And the screenshot below is the list15 and result in my environment.
Best Regards,
Vincent Han
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Fill in fields based on response in another field.
Is there a way to use one field to automatically fill in another field? For example, I have two fields (Project Name & Project Address). Project Name is a pull down menu. Can I have Project Address automatically fill in based on their choice of Project Name?
Thanks,
MikeCheck the following link , you may get an idea to solve your problem
mapping an EO to a view ?
-Krishnamurthy -
Automatically fill in field based on data from table rows
hello,
Users in our organization currently have to complete a number of different forms when an accident occurs. I am creating a .pdf that combines these fomrs into one, with the first portion being a data input section where the user inputs the data and then this populates other sections (pages of the form) that can later be saved and printed.
The data input section contains subforms with tables. The tables have a row that has "add new item" and "delete this item" buttons. The rows have dropdown list fields.
I would like to create a field that will be automatically filled in with the values from the dropdown lists, including the values from the new rows that are added using the 'add new item' button.
Any assistance in this regard would be most appreciated. This is my first time on a forum, so I apologize if I have not been clear.
Thank you.This is pretty complicated. You'll have to use scripting for this and I'll tell you how I'd approach this with JavaScript.
First of all you need to decide at what point you want to populate this field with the drop down selections. I think you have two options.
Option 1 - Automatically calculate this field each time a user makes a drop-down selection. It's possible that a user will enter data and then change a drop down value so you'll have to account for this.
Option 2 - Create an update button that users click to calculate this field. There is still a risk that users will change the value in the drop down after clicking update, so you would want to use scripting to lock those fields (e.g. make them protected) when the update button is clicked. You could then change the caption of this same button or have a second button that when clicked would unlock those drop down fields.
The other thing you need to do is figure out how to calculate this field. It seems to me you would probably build a string together that mixes text with the drop-down values. So your JavaScript would look something like this:
calculatedField.rawValue = "The accident occurred on " + table.row1.date.rawValue + ". It was witnessed by " + table.row1.witness1.rawValue +
" and " + table.row1.witness2.rawValue + ".";
When you're in the LC Designer JavaScript editor, hold control for the relative path to those fields and control + shift for the absolute path and then click on the fields whose values you want to access.
I hope this points you in the right direction! -
How to get input fields based on selection
Hi
i have dropdown which cointains 1 to 10 numbers,as soon as we select 2 in dropdown 2 input fields should be displayed.can u please help me in solving this problem
thanks
kishoreHI,
1:Add one child TransparentContainer to RootContainer with id TransparentContainer1
2:Take one attribute of type integer in context
3:When dropdown selected set the selected value to this attribute like
wdContext.currentcontextElement().set<value>(wdContext.current<DDNode>Element().get<DDValue>);
4:And in do modify view Method, put following code
IWDTransparentContainer tc=(IWDTransparentContainer)view.getElement("TransparentContainer1");
if(tc!=null)
tc.destroyAllChildren();
int number=wdContext.currentContextElement().getNumber();
IWDNodeInfo info=wdContext.getNodeInfo();
if(!(wdContext.isEmpty()))
wdContext.getContext().reset(false);
for(int i=0;i<number;i++)
IWDInputField inp=(IWDInputField)view.createElement(IWDInputField.class,"inp"+i);
info.addAttribute("val"+i,"com.sap.dictionary.double");
inp.bindValue("val"+i);
tc.addChild(inp);
Regards
LakshmiNarayana -
Fill a field dynamically when selecting or entering another field
Dear Experts,
We have a customer developed screen program, we have a requirement to populate a value of a screen field when another
field is selected using f4 or keyed in directly. how can this be achieved.
Thanks.Pierre,
try with badi:
BADI_MIRO_SPLT_ADD Append additional fields of ACCVS to ACCIT
method:
BADI_MIRO_SPLT_ADD
your code somthing like this if <yourfield> ne ' ' and <field2> ne ' ' .
field3 = <update value>.
endif. -
Filling a field in Infoset(LDB-PNPCE) from it001 but want to fil from ztabl
Hello All,
I have created a Infoset query with LDB (PNPCE) .
In infoset query has one field called description is filling from standard LDB PNPCE under orgnizational unit(it001).
This description field from Standard LDB pnpce ---infotype0001and now i want to fill this field based on Ztable .
How to achive this .Please help me.
Thank you
best regadrs
TrupthiHi,
Change in standard field is not the best practice.
You can write program in adhoc query
instead of changing logic in that , create a new field and write a small code and fetch data from Ztable which u r planing.
steps to create that are given below.
Go to Sq02 - enter your infoset and click on change
Select additional fields of particular infotype where you want to create additional field
Select extras button in the menu and click on create
Select the option and Enter the name of the field, Select Additional field and click on Continue
Enter the data required data.Click on Continue.
New field created .
Select the field and click on code button
enter code and generate program.
Regards,
Naveen -
Dynamic selection list based on selection screen values ?
I have a requirement which I can't solve in one step in a selection screen
first field I have to select the contract like you do with me33k
in the second field I have to select the position of the contract filled in at the first field ?
if the position is selected I have to fill other fields in the selection screen and block them for altering the information entered by the position selected
anybody got some sample on how to do this ??
kind regards
arthur de smidtI really don't understand why it's not working. after input of the parameter field debugging doesn't start when is it evaluated ??
I want the screen modified at every change of p_contr.
SELECTION-SCREEN: BEGIN OF BLOCK s01 WITH FRAME TITLE text-s01.
parameters: p_bukrs like ekko-bukrs MEMORY ID BUK obligatory,
P_WERKS like EKPO-WERKS MEMORY ID WRK OBLIGATORY,
p_ekorg like ekko-ekorg MEMORY ID EKO obligatory,
P_EKGRP like EKKO-EKGRP MEMORY ID EKG OBLIGATORY.
SELECTION-SCREEN: END OF BLOCK s01.
SELECTION-SCREEN: BEGIN OF BLOCK s05 WITH FRAME TITLE text-s05.
parameters: p_contr AS CHECKBOX USER-COMMAND contr,
p_konnr like EKKO-ebeln MATCHCODE OBJECT MEKK ,
P_KTPNR like EKPO-ktpnr.
SELECTION-SCREEN: END OF BLOCK s05.
SELECTION-SCREEN: BEGIN OF BLOCK s02 WITH FRAME TITLE text-s02.
parameters: p_lifnr like ekko-lifnr modif id CTR,
p_EVERK like EKKO-VERKF," obligatory,
p_afnam type zafnam,
p_uwkenm like EKPO-TXZ01,
P_IHRAN like EKKO-IHRAN DEFAULT SY-DATUM,
P_KDATB like EKKO-KDATB," obligatory,
P_KDATE like EKKO-KDATE," obligatory,
p_cntVU LIKE RP50G-PERNR OBLIGATORY
MATCHCODE OBJECT PREM,
p_advies type lifnr.
SELECTION-SCREEN: END OF BLOCK s02.
SELECTION-SCREEN: BEGIN OF BLOCK s03 WITH FRAME TITLE text-s03.
SELECTION-SCREEN PUSHBUTTON /1(17) WERK USER-COMMAND WERK.
parameters: P_TXZ01 like EKPO-TXZ01 obligatory,
* p_txt9 type tline,
P_MATKL like EKPO-MATKL DEFAULT 'DNST-02' OBLIGATORY.
selection-screen begin of line.
SELECTION-SCREEN COMMENT 1(31) TEXT-001 FOR FIELD p_menge.
parameters: P_MENGE like EKPO-MENGE DEFAULT '1' OBLIGATORY,
P_MEINS like EKPO-MEINS DEFAULT 'ST' OBLIGATORY.
selection-screen end of line.
selection-screen begin of line.
SELECTION-SCREEN COMMENT 1(31) TEXT-002 FOR FIELD p_netpr.
parameters: P_NETPR like EKPO-NETPR obligatory,
P_EPEIN like EKPO-BPRME DEFAULT 'ST' OBLIGATORY.
SELECTION-SCREEN POSITION 55.
parameters: p_schpr like ekpo-schpr.
selection-screen end of line.
parameters: p_saknr like mepoaccounting-sakto obligatory,
p_aufnr like mepoaccounting-aufnr obligatory.
SELECTION-SCREEN: END OF BLOCK s03.
initialization.
clear h_exit.
set pf-status 'STANDAARD'.
move 'Werkomschrijving' to WERK.
at selection-screen on p_contr.
loop at screen.
if p_contr = 'X'.
if screen-group1 = 'CTR'.
screen-input = 0.
screen-active = 0.
screen-required = 0.
modify screen.
else.
screen-input = 0.
screen-active = 1.
screen-required = 1.
modify screen.
endif.
endif.
endloop.
at selection-screen on exit-command.
case sy-ucomm.
when '&F03' or '&F015' or '&F12'.
leave program.
endcase.
at selection-screen on block S01.
case sy-ucomm.
when 'ONLI'.
type_doc = 'B'.
when 'ONLI1'.
type_doc = 'O'.
endcase.
perform checks_org.
at selection-screen on block S02.
perform checks_lev.
at selection-screen on block s03.
check sy-ucomm(4) eq 'ONLI'.
perform checks_werk.
at selection-screen.
case sy-ucomm.
when 'WERK'.
perform lange_omschrijving.
when 'SPOS'.
CALL FUNCTION 'RS_VARIANT_SAVE_FROM_SELSCREEN'
EXPORTING
CURR_REPORT = 'ZBESTELLING'.
endcase.
start-of-selection. -
Disabling a field based on value of three dff fields
Hi,
I am trying to disable a dff field based on the value of three dff LOV fields. User selects the value of these three dff from lov. I am using the below code in processRequest method of the controller but its nt giving me desired result. Kindly help me.
Code:-
OAMessageLovInputBean selectedSiteUseDetailDFF1 = (OAMessageLovInputBean)paramOAWebBean.findIndexedChild("SiteUseDetailDFF1");
OAMessageLovInputBean selectedSiteUseDetailDFF2 = (OAMessageLovInputBean)paramOAWebBean.findIndexedChild("SiteUseDetailDFF2");
OAMessageLovInputBean selectedSiteUseDetailDFF3 = (OAMessageLovInputBean)paramOAWebBean.findIndexedChild("SiteUseDetailDFF3");
OAMessageLovInputBean selectedSiteUseDetailDFF4 = (OAMessageLovInputBean)paramOAWebBean.findIndexedChild("SiteUseDetailDFF4"); --want to disable this
String contextVal = null;
String lobVal = null;
String atmVal = null;
String defVal = "ATM Data Fields";
String defLobVal = "ATM";
String defAtmVal = "ENV";
if (selectedSiteUseDetailDFF1!= null && selectedSiteUseDetailDFF2!= null && selectedSiteUseDetailDFF3!= null)
contextVal = selectedSiteUseDetailDFF1.getText(paramOAPageContext);
lobVal = selectedSiteUseDetailDFF2.getText(paramOAPageContext);
atmVal = selectedSiteUseDetailDFF3.getText(paramOAPageContext);
if(contextVal == defVal && lobVal == defLobVal && atmVal == defAtmVal)
selectedSiteUseDetailDFF4.setDisabled(true);
Regards,
RajeevRajeev,
Can you try printing the below value to check whether it's returning the expected value. let me know if its returning the screen value.
contextVal = selectedSiteUseDetailDFF1.getText(paramOAPageContext);
lobVal = selectedSiteUseDetailDFF2.getText(paramOAPageContext);
atmVal = selectedSiteUseDetailDFF3.getText(paramOAPageContext);
Regards,
Gyan -
Setting the value of a field based on a dropdown list
I am using the latest production release of JHeadstart 10.1.3.0.91. I am trying to set the value of a field based on selecting the value of another field (drop down list). The drop down list field has the following attributes set autoSubmit="true" immediate="true" valueChangeListener="#{jhsPageLifecycle.updateModelValue}".
The other field has the partialtrigger set to the first field. ie "depends on" selection from JHeadStart file. The value of the second field is set in the setter of the VO RowImpl java file.
The value of that field is only populated on the screen if it is set to disabled="true". This seems a bit bizzare behaviour. Can you explain why it cannot set the value of the field when it is not disabled.Worked out that if i set the "Clear/Refresh value" attribute on the field that i want updated then it will work ok
Alan -
How to display F4 values in one field based on other field selection
Hi All,
How to hide a UI element (i.e Link to action) highlited for Normal User and display the same to super user.
Component Name : /SAPSRM/WDC_DODC_SC_GAF_C
2.Can i know how to display the entries in supplier field based on Product category selection.
Right now all the entries are getting displayed in the supplier field.
I want to display only entries based on Product category.
Search Help Name : BBP_BUPA_CLL_PARTNER
Component Name : /SAPSRM/WDC_DODC_SC_I_LIM
How to enhance the web dynpro component with the filtered values.
Regards,
Krish.Hi Ashvin,
Thanks for the document. In the search help there is a standard FM which is getting executed.
Can i enhance that FM or should i copy and edit.
BBP_F4IF_SHLP_EXIT_CLL_PARTNER
If i creata a Z FM and make changes how to pass that values to my standard Component View UI Element.
If not then suggest me some alternative.
Regards,
Krish -
Auto populate fields based on dropdown selection
New to forms and needing some insight
Is there a way to auto populate a series of fields based on the selection of a dropdown box
for instance;
chosing a customer's name from a dropdown box would auto populate the address, city,state zip etc...Yes, but not easy and you do not want to have a large number of items.
Programming List and Combo fields in Acrobat and LiveCycle forms - Part 1 by Thom Parker
Maybe you are looking for
-
Getting clipped graphics when painting in response to mouse event
Can anyone tell me how to get a graphics object with the clipping region set appropriately when painting in response to a mouse action rather than in paintComponent where the system provides the Graphics object? The issue is that a graphical componen
-
External firewire Hard drive running utilities on it.
How do I take advantage of using fsck -y in the terminal in an external Hard drive. If i do a restart using cmd S keys I will boot back into main Hard drive. And what other codes can I use like fsck -yf. G5 Mac OS X (10.4.5)
-
Problem in JNDI Lookup of Deployable Proxy from the logon par file
Hi, I have customized the Logon par file and have a functionality to call a webservice when the Password Reset happens. <b>from the ResetPassword.jsp , SAPMLogonLogic.java is getting called ,and there is a method called performResetPassword().</b> I
-
Is there a possibility to retreve Data from the OPC Server with the XML Interface
Is there a possibility to connect a OPC/DA server with the help of the XML interface with Labview? I need to retrieve Data from a OPC Server running on Linux, so i got no Dcom System an I need to use XML. The server is running and with OPC client-too
-
How to limit operator swapping the discrete job seqence in shopfloor
Our planner prioritize and sequence the jobs released to the shopfloor and posted to dispatch board. The current issue is, operator can easily swap the sequence in the dispatch board and we are unable to achieve the priority & sequence set by planner