F4 help based on the Value in other field
Hello
I have a requirement in which there are two fields say field1 and field 2 in an ALV grid (in which new data can be entered). The F4 help of field 2 should be based on the value the user enters on field1.I have checked out the BC_ALV* programs but there are no clear help .
I have tried setting the parameter id of the first field value and then get that parameter id on_f4 event of the second field.But where can i set the parameter id of the first field . on_f4 of first field does not have its value and there is no event after_f4 . There is a parameter e_afterf4 in data change event but to tirgger that there shud be some event right.
Moreover If at all i get the first field value , i can use FM F4_int_table_value_request to show the refined f4 in field 2 . But I am passing the a field symbol table in my grids set table for first display . what can i pass as parameters here to the FM F4_int_table_value_request?
hello Kallu ,
gt_f4_wa-getbefore = 'X'. --->refreshing layout before F4
gt_f4_wa-chngeafter = 'X'--> refreshing layout after f4.
see the sample code of F4...no need to pass dynpro details.....
*---locals.
data: lt_return type table of ddshretval,
ls_return type ddshretval,
begin of lt_kostl occurs 0,
kokrs type kokrs,
datbi type datbi,
bukrs type bukrs,
prctr type prctr,
end of lt_kostl,
ls_f4 type lvc_s_modi.
field-symbols: <ls_wa> type any,
<t_f4> type lvc_t_modi.
*---get defalut values.
refresh lt_kostl.
select kokrs
kostl as prctr
datbi
bukrs
from csks
into corresponding fields of table lt_kostl
where kokrs eq g_kokrs
and datbi ge sy-datum
and bukrs eq yfit_00049-bukrs.
*---call fm to display int values.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield = 'YFIT_00050-PRCTR'
window_title = 'Profit Center list'
value_org = 'S'
display = space
tables
value_tab = lt_kostl
return_tab = lt_return
exceptions
parameter_error = 1
no_values_found = 2
others = 3.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
else.
read table lt_return into ls_return
with key fieldname = 'F0004'.
if sy-subrc eq 0.
assign er_event_data->m_data->* to <t_f4>.
ls_f4-fieldname = e_fieldname.
ls_f4-row_id = es_row_no-row_id.
ls_f4-value = ls_return-fieldval.
ls_f4-error = space.
ls_f4-tabix = space.
ls_f4-style = space.
ls_f4-style2 = space.
ls_f4-style3 = space.
ls_f4-style4 = space.
append ls_f4 to <t_f4>.
endif.
endif.
er_event_data->m_event_handled = 'X'.
regards
Prabhu
Similar Messages
-
ADF Table cell color based on the value in that field
Dear All,
I want to create a table for our new application which contains a table used to represent the data in a chart format or matrix format,
and each cell of the table should be filled with a colour out of three colors, based on the value belongs to which range eg:(1-8 ->green, 9-20 - yellow etc),
I dont know how to implement this. Please help...
RanjithCheck this out.
How to highlight ADF table row based on column value?
-Arun -
I'm using Javascript to set the actions. I need to hide a text field if the value of a field in another sub-form is null.
- tried checking the value of the other field for null - doesn't work
- tried setting a variable str2 where I know the value of the other field is available then checking that variable when I initialize the text field - doesn't work
What am I missing?Hi.
Try this in the originating sub form referring to the text field (X).
if (this.rawValue = 1)
X.presence = "visible";
else if (this.rawValue = null)
X.presence = "hidden"; -
Input field validation in a Table based on the value of other column
Hi all
I have a table with 2 columns. column1 is of text view and column2 is Input field.
The user should not be allowed to enter a value in the column2 ( input field) greater than the value populated in column1(textview).
So for Eg; if the column1 is populated with value 100, The user should not be able to enter a number greater than 100 in the column2 input field.
Please let me how this can be achieved.
I appreciate the help.
ThanksHi,
Let me make sure u r working with table control.
First u have to create a event(VALIDATE) to do the validation.
Inside the event,
1. First get the current index where user has pointed the curson
2. Once u get the index read the internal table with index value.
3. Now u can compare the col1 and col2 values and populate the error message.
1. DATA : lo_elt TYPE REF TO if_wd_context_element,
l_index type i.
lo_elt = wdevent->get_context_element( name = 'CONTEXT_ELEMENT' ).
CALL METHOD LO_ELT->GET_INDEX( RECEIVING MY_INDEX = l_index.
above code should be written inside the event.
Thanks, -
Sorting an ArrayList based on the value of a field in one of the objects.
Hi,
I have the following problem:
A server app returns an array list of simple objects with a bunch of fields.
One of these fields is an int.
How do I go about sorting the list based on the size of the int?
Thanks in advance!Thanks a lot.
The Comparator solution is actually ridiculously simple.....
public class MyComparator implements Comparator {
public int compare(Object o1, Object o2) {
if (Integer.parseInt(((ZMData)o1).getAantalposts())>Integer.parseInt(((ZMData)o2).getAantalposts())) {
return 1;
if (Integer.parseInt(((ZMData)o1).getAantalposts())<Integer.parseInt(((ZMData)o2).getAantalposts())) {
return -1;
return 0;
}Thanks again. -
Filter data based on the value of sorce field in mapping
Hi,
I have a scenario (IDOC to file) where i have to move data to target file, only when one of the source fields has particuler value. Otherwise skip the record, no need to write into output file.
Please let me know how to handle it in mapping, without BPM.Karthik,
Ofcourse there is no need of BPM, You can use the IF without Else function in your mapping with using Equals function.
Example:
Field1 ---> Equals (Particualr Value) -
> IF -
> Then -
> pass it to Target field.
Since there is no Else option, therefore whenever condition will fail, nothing will be passed to the target field.
Regards,
Sarvesh -
Fields required based on a value in another field
Hi,
I am looking to have fields required (Annual Revenues and # of Employees) based on the value of another field (Ownership). Basically, if the value is Public the user is required to enter the Annual Revenue and Employees fields. I thought about using dynamic layouts but the only key field for Accounts is Account Type.
Thanks,
CarynHi Caryn!
I think it is not possible for making #Employees and Revenues required depending on Ownership(as it is a look up field).. it should be possible if you want to do it on any other criteria other than ownership by just renaming the Account Type, Disable all the values of Account Tyope add new values to Pick List and make it driving picklist upon your requirements..
If you require Account Type, create a custom picklist "Account-Type" and add the values. -
Autopopulate data in listitem based on the value of data in other itemlist
Hi,
In my project there is requirement of populating the data in based on the value populated in other list item.
For ex in list box item we select value 'PE' then in second list box based value of PE should be populated.If we select other value for ex 'PA' then in second list other valu is populated.So how can we populate the data in second itemlist based on the value selected in the first listitemHello,
<p>In this article, you can find a dialog sample that does that (section : 2.4.2)</p>
Francois -
Plot a chart dynamically based on the values selected
Hi All,
I have some requirement like this i want to plot a chart . The chart should change dynamically based on target_name and date. What type of UI should I use ? I tried using multiselect or shuttle for choosing the target_name and date picker tool for date once i choose all this the chart should appear. Can I have a custom button called submit so once all the values are entered it plots chart ? Please help me out with our ideas.
Thanks in AdvanceHi,
Using the dependent value sets you can govern the values which can be selected based on a specific value selected in a particular segment. Example if Country name is selected in segment 1 then specific states names as per the country selected can be displayed in segment 2.
As per the requirement described you want to enable different fields based on the value selected in segment1, currently there is no standard mechanism available to enable/disable fields based on a value and you will have to do an extension/customization to meet this requirement.
Thanks,
Sanjay -
SSIS - Loop through files from a file path based on the value in the variable
Experts,
I have a requirement where I'll be loading multiple files in to a SQL server table and archive the files when loaded. However, the challenge is , the file path should be dynamic based on the value of a variable (say, @ProductName).
For example: If I am running the package for variable @ProductName="Product", the file path would be "\\....\Src\Product", in that case the ForEachLoop will loop through all the files in that folder, load them to the table and Archive
the files to the "\\....\Src\Product\Archive" folder.
Similarly, if the @ProductName="Product_NCP", the foreachloop container should loop through files in the "\\....\Src\Product_NCP" folder, load them to the table and archive them to the ""\\....\Src\Product_NCP\Archive"
folder.
Any suggestions? I should be able to run the package manually just by passing the "@Product" value, create Archive folder if it doesn't exist, load the data and archive the files.Yes
1. Have a variable inside SSIS to get folder path. Set path based on your rule using an expression
like
(@[User::ProductName] == "Product" ? "\\....\Src\Product" : (@[User::ProductName] == "Product_NCP" ? \\....\Src\Product_NCP:..))
similary archive
(@[User::ProductName] == "Product" ? "\\....\Src\Product\Archive" : (@[User::ProductName] == "Product_NCP" ? "\\....\Src\Product_NCP\Archive" :..))
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page -
Count the number of rows based on the values!!!
Hi all,
What I am using:
I am working with a multidimensional database in Visual Studio 2010 using its Data source view and calculation member and dimension usage.
What I want to do:
I have a fact table that has five columns(leg(s),hand(s), Head and body,overall) that shows the category of how severe the injury is. Let say for the records all columns never have an empty value(no injury is stated with 'No injury' ) . These five columns
are connected with a dimension that has all the available values (Category A-E of injury).The overall has the most severe from the other four columns. I want to create a bar chart with five different measure
values, one for each column, and count the values in those columns.
For example : I have a slicer in the excel and a bar chart and the slicer has all the values of the Category of the injury ( Cat a,Cat B, Cat C, ... Cat E, No injury ) and when i select one of them, lets say
Cat C, the bar chart should update and show how many Cat C each measurement column has.
Example FACT table:
ID LEG HAND HEAD BODY OVERALL
1 No A No No A
2 No D C C C
3 E C D A A
4 E E B C B
So if i selected C the bar chart will count (Leg = 0, Hand = 1, Head = 1, body = 2 and Overall = 1).
Any ideas ?
Thanks for the help and the time :)Hi DBtheoN,
According to your description, you want to create a chart on excel worksheet to count the rows based on the value, right? If in this case, I am afraid this issue is related to Office forum, I am not the expert of Office, you can post the issue on the corresponding
forum.
However, this requirement can be done easily on SQL Server Reporting Services. You can using the expression below to count the rows.
=COUNT(IIF(Fields!LEG.Value=Parameters!TYPE.Value,1,NOTHING))
Regards,
Charlie Liao
TechNet Community Support -
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 -
Creation of a new record based on the value of a picklist
Hi,
My requirement is whenever i select a picklist value in Opportunity record type based on the value selected a new opprtunity record should get created and get assigned to a role or A User otherwise a lead should get created and should be assigned to a Role or A User.
Can I achieve this in OnDemand?
Kindly help. This is urgent..
Thanks in Advance.Can I achieve this in OnDemand?I think you can better try one of the Oracle CRM On Demand forums @ http://forums.oracle.com/forums/category.jspa?categoryID=162
instead of the Oracle SQL and PL/SQL forum.
This is urgent..The forums are relying on volunteers and it is weekend for most of us now.
If it is really that urgent, call Oracle Support. -
How to Visible/Hide an Item based on the value of another Item
Hi
I need to visible and hide a textitem based on the value of another item.This form has 3 blocks, and the both item is in the first Master Block.
My code is:
if :RECORDTYPE=7 then
Set_Item_Property('BLOCK.ITEM',VISIBLE,PROPERTY_TRUE);
Set_Item_Property('BLOCK.ITEM',ENABLED,PROPERTY_TRUE);
ELSE
Set_Item_Property('BLOCK.ITEM',VISIBLE,PROPERTY_FALSE);
Set_Item_Property('BLOCK.ITEM',ENABLED,PROPERTY_FALSE);
:BLOCK.ITEM:=NULL;
end if;
I wrote the code in the Validate Trigger, but not working when moving Next Record & Previous Record
Thanks in advance
RizlyRead the 'Propagation of Property Changes' section towards the end of the page for Set_Item_Property in the online help. I'm not sure what you mean by locking automatically but perhaps it's because of this.
You should also ensure the item you're setting to invisible is not the current item (check :system.cursor_item and go to a different item if necessary). -
Change value of another field based on the value of selectOneRadio
Hello
I need to display one of two city fields based on the value of a radio group. If the value of the radio group is "Yes", then display the non mandatory city field, if the value is "No", then display mandatory city field. Please can someone help me? The code is below
<af:subform id="contactForm3" default="true">
<af:panelForm binding="#{processScope.backing_regDetails.contactPanel3}">
<af:selectOneRadio binding="#{processScope.backing_regDetails.radio1}"
labelAndAccessKey="#{MatrixResource['ContactDetails.inBoroughQuestion']}"
layout="horizontal"
valuePassThru="true"
required="true"
onchange="javascript.refresh;" >
<f:selectItems value="#{processScope.backing_regDetails.items}" />
</af:selectOneRadio>
<af:inputText onchange="javascript:document.forms[0].elements['contactForm3:locationId'].value='0';"
labelAndAccessKey="#{MatrixCommon['Label.SAO']}"
binding="#{processScope.backing_regDetails.houseNameText}"
maximumLength="240"/>
<af:inputText required="true"
onchange="javascript:document.forms[0].elements['contactForm3:locationId'].value=0;"
maximumLength="240"
label="#{MatrixCommon['Label.PAO']}"
binding="#{processScope.backing_regDetails.numberStreetText}"/>
<af:inputText onchange="javascript:document.forms[0].elements['contactForm3:locationId'].value='0';"
maximumLength="240"
labelAndAccessKey="#{MatrixCommon['Label.District']}"
binding="#{processScope.backing_regDetails.districtText}"/>
<af:inputText maximumLength="60"
rendered="#{!backing_regDetails.radio1}"
onchange="javascript:document.forms[0].elements['contactForm3:locationId'].value='0';"
labelAndAccessKey="#{MatrixCommon['Label.TownCity']}"
required="true"
binding="#{processScope.backing_regDetails.cityText}"/>
<af:inputText maximumLength="60"
rendered="#{backing_regDetails.radio1}"
onchange="javascript:document.forms[0].elements['contactForm3:locationId'].value='0';"
labelAndAccessKey="#{MatrixCommon['Label.TownCity']}"
required="false"
binding="#{processScope.backing_regDetails.cityText}"/>
<af:inputText maximumLength="60"
onchange="javascript:document.forms[0].elements['contactForm3:locationId'].value='0';"
labelAndAccessKey="#{MatrixCommon['Label.County']}"
binding="#{processScope.backing_regDetails.countyText}"/>
<af:inputText columns="7"
onchange="javascript:document.forms[0].elements['contactForm3:locationId'].value=0;"
labelAndAccessKey="#{MatrixCommon['Label.Postcode']}"
binding="#{processScope.backing_regDetails.postcodeText}"/>
<af:selectOneChoice onchange="javascript:document.forms[0].elements['contactForm3:locationId'].value=0;"
binding="#{processScope.backing_regDetails.countrySelect}"
value="#{processScope.backing_regDetails.enteredAddress.countryId}"
labelAndAccessKey="#{MatrixCommon['Label.Country']}">
<f:selectItems value="#{backing_regComponents.countryChoiceList}"/>
</af:selectOneChoice>
<af:inputHidden value="#{processScope.backing_regDetails.enteredAddress.locationId}"
binding="#{processScope.backing_regDetails.locationIdHidden}"
id="locationId"/>
</af:panelForm>
</af:subform>Edited by: aademola on Nov 13, 2008 7:35 AM
Edited by: aademola on Nov 13, 2008 7:42 AMHi,
you should be able to apply this example to your 10.1.3 project
see 4.3.2 of http://download.oracle.com/docs/cd/E12839_01/web.1111/b31973/af_lifecycle.htm#CIAHCFJF
Frank
Maybe you are looking for
-
Error selecting oultine in Business Rules v11.1.1
Hi Experts, essbase version: 11.1.1 I have created a new app in Essbase, and when I want to select this outline when I create a Business Rules, i receive this message: Error connecting to Essbase server SERVER/DATABASE Detail:com/hyperion/cp/clients/
-
Server7 update 6 with nsapi mod-jk 1.2.28
I have webserver 7 confiugred iwth mod_jk 1.2.28 a nametrans event like this nametrans fn="assign-name" from="/myapp" name="myapp" <Object name="myapp"> ObjectType fn="force-type" type="text/plain" Service fn="jk_service" worker="myappworker" </Objec
-
Report for to calculate export sales
Hi, My client wants to calculate the export sales for the previous fiscal year. Is there any report which can provide me this data? Regards
-
Hi i have an iMac mid-2010 i installed the new mavericks update HATE IT! and i just bought a new printer and only works with 10.4 10.5 10.6 i cant remember what was the version of my mac, but i need to format to get back as it was when i fist took
-
Colors In Adobe Illustrator Print Muddy or Desaturated
I am trying to figure out why Illustrator CS4 prints colors muddy or desaturated, but if I print a webpage from Internet Explorer it looks fine. What should I check to correct my output to my Dell 3100cn.