Get values in dropdown field based on f4 help in another field
Hi Experts,
How to Get values in dropdown field based on another field which is F4 Help. If I select one value in f4 help field(ex: 1) I need to get values in dropdown field (ex:a, b, c),If I select another value in f4 help (ex:2) I need to populate different values (ex: d). Can any one please provide sample code that can help more.
Thanks,
Ashok.
Moderation: Kindly search and find the solution, before you post.
Dear Ashok,
You can take help from this program in SAP named BCALV_EDIT_08.
Thanks.
With regards.
Similar Messages
-
Hi all,
I have a requirement where
i need to select a LOV value
and based on that value the field next to it should be generated......
in brief suppose i have a field name EMPLOYEE NO as lov........
as i select the employee number the field next to it assume EMPLOYEE NAME should be retrieved based on the employee number selected..
hope i am clear
waiting for ur responce.....
DEV......Hi,
Assuming you are having two fields on the page. One LOV for empID (ID: empIDV) and messageTextInput for emp Name (ID: empNameV)
1) Create a VO for your LOV having a query like SELECT emp_num, emp_name FROM employees;
2) Create region for LOV using table using wizard based on the VO created above (choose emp_num as messageStyledText and emp_name as formValue). Also make search allowed true for emp_num.
3) Create a LOV map1:
LOV region item: empId
Return item: empIDV
Criteria item: empIDV
4) Create lovMap2:
LOV region item: empName
Return item: empNameV
Also try to implement dependent LOVs : http://sushantsharmaa.blogspot.in/2012/12/10-dependent-lov-in-oaf.html
--Sushant -
Get value from the array based on the HashCode
public static void runJoin(int[][] t1,int[][] t2)
PrintWriter out=null;
int rows = 1000;
int cols = 7;
int [][] myTable3 = new int[rows][cols];
int x = 0;
System.out.print("Running HashJoin:Method loads the "+
"smaller table in the memory and applies a hashing function "+
"to common column and stores it in another table. "+
"The larger table is then read from the file. "+
"The same hashing function is applied to Col n of the table and a matching record in the first table is looked up. A match will create a row in Table 3. ");
//Apply hashing function to smaller table and store it in the memory.
Integer[] It2 = new Integer[t2.length];
int [] hashCodest2 = new int[t2.length];
Hashtable ht = new Hashtable();
for(int i =0; i <t2.length;i++){
It2[i] = new Integer(t2[0]);
hashCodest2[i] = It2[i].hashCode();
ht.put(new Integer(hashCodest2[i]),It2[i]);
//Larger table get hashcodes
Integer It1[] = new Integer[t2.length];
int [] hashCodest1 = new int[t2.length];
for(int j =0; j <t1.length;j++){
It1[j] = new Integer(t1[j][4]);
hashCodest1[j] = It1[j].hashCode(); }
//Based on the hashcode get the value from the Table2;
try{
out = new PrintWriter( new FileOutputStream( "c:\\HashJoinTable.txt" ) );
Enumeration e = ht.keys();
while(e.hasMoreElements())
//How do I get the value from the array based on the HashCode? Do I need to do a loop here???
hashCodes1.get(e.nextElement());
}catch(Exception e){}ok I got it......
//Apply hashing function to smaller table and store it in the memory.
Integer[] It2 = new Integer[t2.length];
int [] hashCodest2 = new int[t2.length];
Hashtable ht = new Hashtable();
for(int i =0; i <t2.length;i++){
It2[i] = new Integer(t2[0]);
hashCodest2[i] = It2[i].hashCode();
ht.put(new Integer(hashCodest2[i]),It2[i]);
//Larger table get hashcodes and compare
Integer It1[] = new Integer[t2.length];
int [] hashCodest1 = new int[t2.length];
Hashtable ht2 = new Hashtable();
for(int j =0; j <t1.length;j++){
It1[j] = new Integer(t1[j][4]);
hashCodest1[j] = It1[j].hashCode();
ht2.put(new Integer(hashCodest1[j]),It1[j]);
//Based on the hashcode get the value from the Table2;
try{
out = new PrintWriter( new FileOutputStream( "c:\\HashJoinTable.txt" ) );
Enumeration e = ht.keys();
Integer t3[] = new Integer[t2.length];
while(e.hasMoreElements())
t3[x] = (Integer) ht2.get(e.nextElement());
x++;
}catch(Exception e){} -
Create a filtered list based on the selection in another field? URGENT HELP NEEDED
Hi,
Hoping someone can help me with something I am working on. i am fairly new to creating forms in acrobat (know how to us the full range of very basic features) but I have now found myself needing some help.
i am producing an order form, and I need to create a filtered dropdown list based on the value selected in another field.
basically, when a user select the company chooses their Business Name from a dropdown list, I would like their deliver address to self populate. In some cases there may be a few options for the company delivery address so in these cases the second option would be a dropdown list of the options available for that company.
i have attached a screenshot, it is the Fields "Business Name" and "delivery Address/Delivery Postcode" that i would like to be linked so that the option in Business Name filtered the options in delivery Address
Hope someone out there has the time to help me with this, i am using Acrobat Pro DC
many Thanks
LeeThis will require a complex, custom-made script. The basic functionality of populating another field based on a selection in a drop-down is not that complicated, but if you want it to also populate other drop-downs (and then presumably use them to populate other fields), it will require a more complex solutions.
This tutorial is relevant for your question: https://acrobatusers.com/tutorials/change_another_field -
Dropdown lists or F4 (input help) on custom field
I created a custom field and would like to either add a dropdown or an F4 input help. I know how to do the input help or the dropdown, but I would like the user to type in their own data on the field if they don't want to select from the list provided.
Does anyone know how to do this.Check out this code.... This module does F4 help for a screen field called P_TRFAR. It gets its values from the data base, you could easily build this internal table in your program without going to the database.
MODULE HELP_ON_TRFAR.
data: begin of help_trfar occurs 0,
trfar type t510a-trfar,
tartx type t510a-tartx,
end of help_trfar.
select * into corresponding fields of table help_trfar
from t510a
where molga = '10'.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield = 'TRFAR'
dynprofield = 'P_TRFAR'
dynpprog = sy-cprog
dynpnr = sy-dynnr
value_org = 'S'
tables
value_tab = help_trfar.
ENDMODULE.
In you flow logic, you need the following line to trigger the help when the user presses F4.
PROCESS ON VALUE-REQUEST.
FIELD P_TRFAR MODULE HELP_TRFAR.
That should be all you need.
Please don't forget to award points accordingly for helpful answers. Thanks.
Regards,
Rich Heilman
Message was edited by: Rich Heilman -
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. -
Activate input for a field depending on the input in another field
Hy gurus,
A have a report with select option.
In the select option I'd like to have the following:
I have a checkbox ,if it is flagged the input for another field should be made possible.
The problem is,to activate it right after I flag the checkbox (without having to press ENTER)
Do you have suggestions?
Thanks,ChristianHi Christian
It's the same, check my sample in the last my answer.
If you want to protect a SELECT-OPTION or more than one parameter it should use the group.
SELECT-OPTIONS: S1 FOR SY-DATUM MODIF ID AAA,
S2 FOR SY-UNAME MODIF ID BBB
PARAMETERS: p1 MODIF ID AAA,
p2 MODIF ID BBB.
PARAMETERS: p_ck AS CHECKBOX USER-COMMAND aaa.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF p_ck = 'X'.
IF screen-group1 = 'AAA'.
screen-input = 0.
MODIFY SCREEN.
ENDIF.
ELSE.
IF screen-group1 = 'BBB'.
screen-input = 0.
MODIFY SCREEN.
ENDIF.
ENDIF.
ENDLOOP.
Max -
The drop down list values want to vary based on the contents of another drop down field
hi,
hi in search page i have two drop down list. i have two tables and one mapping tables. service line and subservice line are tables and i have one mapping table. using rapid application i create one component using mapping table. now in search page i have two drop list. one is servline and another is sub serviceline. in service line i have values like 1,2 k for subservice 3,4.5,6 for one service line ex. for 1 i have two subservice 3,4 and for 2 i have 5,6. now my requirment in if i choose service line 1 in first drop down list, automatically in second drop down list want to contain values 3, 4. before both the drop down list have values.if i chose one value the correponding mapping value want to come in drop down list in same context node.Hi,
This requirement involves defining p-getter for the service type, and the v-getter of you sub type.
Since this involves to populate the values of subtype attribute depending on value of service type, u need a round trip.
This is done in the p-getter of the 1st attribute(service type in your case).
In the v-getter of the 2nd attribute, 1st fetch the current value of attribute 1, then filter the value in the dropdown table according to ur logic.
Ref :Drop down values in table view
Regrads
Anish -
How to get value from a metric based on date, without effecting other colum
Hi
I have 2 metrics say Revenue and Total Revenue and Date Dim
For a selected date in the prompt, Revenue should be shown for that date, where as Total Revenue should be shown for the past 15 days, based on the date in the prompt.
How can I achieve this?
Cheers
Edited by: OBIAS on Feb 28, 2013 4:57 PMSet a presentation variable in the Date Dim prompt, P_DATE.
Within the request, edit the formula for Revenue to be...
FILTER("Revenue" USING ("Date" = @{P_DATE}))
And set the formula for Total Revenue to be something like...
FILTER("Total Revenue" USING ("Date" between TimestampAdd(SQL_TSI_DAY, -15, @{P_DATE}) and @{P_DATE}))
JB -
Prepopulate dropdown list based on selections made in other fields
I wonder if anyone can help?
A form with a radio button group containing two radio buttons "yes" and "no".
Below the radio buttons is a dropdown list that has three items in the list "option A, option B, & option C.
Below that, is another dropdown list, with three items, "10000", "15000" & "20000"
How can I do the following?
When radio button "yes" is selected, and dropdown list "option A is selected, it prepopulates "10000" in the bottom dropdown list
When radio button "yes" is selected, and dropdown list "option B is selected, it prepopulates "15000" in the bottom dropdown list
When radio button "yes" is selected, and dropdown list "option C is selected, it prepopulates "20000" in the bottom dropdown list
Thanks in advance!Hi $Nith$
Just sent you a PM -
Trying to get a value from 1 array based off the ID in another
Something like this.
rankGrade = model.rankArray.RANKABBRIVIATION where
model.rankArray.RANKGRADEID = model.student.RANKGRADEID
Any suggestions?You could use associative arrays, or even better to use XML
with e4x syntax. See these FB3 help topics:
Associative arrays
The E4X approach to XML processing
myXML.item.(menuName=="small fries").@quantity = "2"; -
How to populate a dropdown box based on a selection in another Dropdown box.
I am trying to find out a way to do the following:
I am using coldfusion ....working on a form. The form has
couple of dropdown boxes. Based on the selection on the first
dropdown box another dropdown box needs to get populated with
different options. These options will be coming from a query. I am
trying to find out the Javascript code for doing this.
Thanks in advance.jchopra,
There's a method to doing what you're wanting to do that I've
used extensively.
Basically, within my code, I start by invoking the method
that returns the data for the dropdown lists. Then, I use the
following code to pour the data returned into a javascript array:
var locArray = new Array(#evaluate(locs.recordcount+1)#);
locArray[0] = new Array('','','','','','','','','',);
<cfloop query="locs">
locArray[#locs.CurrentRow#] = new
Array('#JSStringFormat(locationId)#',
'#JSStringFormat(fkyPolicyId)#',
'#JSStringFormat(locationNumber)#',
'#JSStringFormat(description)#',
'#JSStringFormat(address1)#',
'#JSStringFormat(address2)#',
'#JSStringFormat(zipcode)#',
'#JSStringFormat(city)#',
'#JSStringFormat(state)#';
</cfloop>
Then I wrote a javascript function that is assigned to the
first dropdown's onChange() event. When the user changes the value
that is selected within the dropdown, I use javascript to locate
(using the policyid) the corresponding record in the javascript
array and populate and/or select the appropriate value(s) in the
second dropdown.
If the data returned from the method invocation is too large
to use within a javascript array, you may need to limit the results
that are returned.
Hope this makes sense. If not, please let me know.
ds -
Select or update a field based on a column on another row
hi
I have some 5000 rows for the following combination of columns. Each combination has two rows. The only difference between these two rows is an indicator field. If one row for the same combination is having indicator as 'M' the other row for the same combination should ideally have indicator 'R'. But unfortunately the other row's indicator is null.
ie. if the first row for same combination of fields, indicator is 'M. then other one is null which should have been 'R'. If the first row is 'R' then other one is again null which should have been 'M'.
PRODUCT_NO STATE MONTH INDICATOR
1001 CA SEPT M
1001 CA SEPT null
1002 NY OCT R
1002 NY OCT null
Here for the first combination indicator is M and other one is null. But i need to update it to 'R' since other rows is M.
Same way for second combination first row is R second row then should have M as indicator.
Basically it is changing field to a value based on the value in the other rows indicator for the same combination of the above columns.
Please help if anybody has idea to do this in simple steps
ThanksIs this what you are looking for?
WITH TABLE_A AS
SELECT '1001' PRODUCT_NO, 'CA' STATE, 'SEPT' MONTH, 'M' INDICATOR FROM DUAL UNION ALL
SELECT '1001' PRODUCT_NO, 'CA' STATE, 'SEPT' MONTH, null INDICATOR FROM DUAL UNION ALL
SELECT '1002' PRODUCT_NO, 'NY' STATE, 'OCT' MONTH, 'R' INDICATOR FROM DUAL UNION ALL
SELECT '1002' PRODUCT_NO, 'NY' STATE, 'OCT' MONTH, NULL INDICATOR FROM DUAL UNION ALL
SELECT '1003' PRODUCT_NO, 'LA' STATE, 'NOV' MONTH, 'R' INDICATOR FROM DUAL UNION ALL
SELECT '1003' PRODUCT_NO, 'LA' STATE, 'NOV' MONTH, 'M' INDICATOR FROM DUAL
SELECT
PRODUCT_NO,
STATE,
MONTH,
DECODE(A.INDICATOR,NULL,(SELECT DECODE(B.INDICATOR,'R','M','R') FROM TABLE_A B WHERE B.PRODUCT_NO = A.PRODUCT_NO AND B.STATE = A.STATE AND B.MONTH = A.MONTH AND B.INDICATOR IS NOT NULL), A.INDICATOR) INDICATOR
FROM
TABLE_A A -
How do you auto-populate a text field based on entries in other text fields?
I would like to be able to have a text field that populates as "Complete" or "Incomplete" based on whether all the mandatory text fields have been filled out or not.
For example, if the "First Name," "Last Name," and "City" text fields are not filled out, the "completion status" text field will show "Incomplete" and once they are filled out, the "completion status" text field will turn into "Complete."
How would I do this using javascript? I've searched the web for a tutorial, but most of the results seem to be dropdown-centric.
Please point me in the right direction!Try the script below. I put this on the calculate event for Field1
if(FirstName.rawValue == null || LastName.rawValue == null || City.rawValue == null){
Field1.rawValue = "Incomplete"
else
Field1.rawValue = "Complete" -
How do I populate one dropdown list based on the selection in another dropdown list?
I have one dropdown list that has 21 choices. Depending on the selection of those 21 choices, I have another dropdown list that will select a different subset of choices from a pool of 96 choices. How do I get this to happen?
I have one dropdown list that has 21 choices. Depending on the selection of those 21 choices, I have another dropdown list that will select a different subset of choices from a pool of 96 choices. How do I get this to happen?
Maybe you are looking for
-
Why can't I connect to samsung or htc device via Bluetooth?
Why can't I connect to samsung or htc device via Bluetooth? or can't copy any picture or song from my laptop to Iphone 5?
-
Hi Friends, I have a report(rdf) attached to the bank in AP to print the check. When i make the 'Quick Payment' from invoice batch the check is printed in proper format,while selecting whole invoice batch from Payment batch the "Priliminary register"
-
How to revert from Authorization Without an ID to Authorize Adobe ID or Vendor ID?
When I downloaded Adobe Digital Edition, I was given the option to Authorize my purchase with and ID or Without it. I obviously, had no idea what that meant so I went ahead and selected without ID authorization. Turns out I am not able to share my bo
-
Hello everyone, since a long time, I've been experiencing slight font corruption in Gecko powered applications (Firefox/Thunderbird), that were going away when highlighting the culprit characters. Lately I've been getting it, except that it's worse,
-
Infopackage disabled with Backgroung job run
Hello experts I had problem in executing the infopackage in back ground mode also for the previous load of the saem infopackage when iam checking the Process overview of the request it is showing Errors occured. Is there any way to repair the the inf