Filtering based on the value in a Input Box?
Is it possible to filter a gallery based on something I enter into an input box?
If so what is the syntax for the command I need?
Right now I am trying Filter(UF_Football_Roster, Number =) and then I have no idea what to put after the equals sign.
Thanks for the help!
Hi Philip,
Yes. Assuming Number is a column in the table_UF_Football_Roster, and assuming you added an input text visual named InputText1, here is the syntax:
Filter(UF_Football_Roster, Number = InputText1!Text)
If the value in the Number column are stored as numbers you may need to use the function
Value:
Filter(UF_Football_Roster, Number = Value(InputText1!Text))
Similar Messages
-
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.... -
Read the value of user input variable during calculation of virtual char
Hello
Virtual characteristics is populated in custom BAPI based on values specified by user in the variable screen.
How to read the value of user input variable outside the user exit for custom variables?
The one way is to create faked user exit variable, read the value of user input variable in corresponding FM and insert it into table. Then value of this variable will be derived from the table.
Thanksno answer
-
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 -
Is there an easy way to filter a 2-d array based on the values of two of the fields?
Is there an easy way to filter a 2-d array based on the values of one of the fields. In my attached VI the output array has the following format:
TimeStamp Ident Frame Type Bytes Data
10:57:07.621 3AD00016 CAN Data Frame 8 0000000000000000
10:57:07.622 3AD00017 CAN Data Frame 8 000005E000000000
10:57:07.624 3AD00018 CAN Data Frame 8 0000000003300000
10:57:07.625 2DC00000 CAN Data Frame 8 0000000000000000
10:57:07.626 3AD00019 CAN Data Frame 4 0000030000000000
I would like to delete any rows that do not have an "Ident" between the values of 3AD00000 and 3AD0001E. So for the above data the fourth row would be deleted. The only way I can see to do it is to form a 1-d array. Is there a better approach?
Thank you.
Solved!
Go to Solution.
Attachments:
CMM_SN_MULTI.vi 20 KBHi chuck72352,
after you have sorted your data, you can use the InRange Function. Combined with a "search 1D Array" you'll get the range you really want.
Mike
Attachments:
ArraySubset.PNG 25 KB -
How to get the value of an input text in a table
all,
i have an adf table component on my jsf page and i added an input text component to one of the table columns. how do i access the value of that input text in my backing bean? normally, i would just do a getValue(), but because the input text is in the table i'm assuming it has to be treated as an array somehow.
any help would be appreciated,
paul
btw. jdev 10.1.3Frank,
I found a solution to fetching the column values. I created a transient attribute on my view object and bound my column to the transient attribute. Then I used this post from Duncan Mills
http://groundside.com/blog/DuncanMills.php?title=adf_validation_context_in_a_jsf_table&more=1&c=1&tb=1&pb=1
to get to the data by looping through the table rows.
However, I'd still like to use the value from this transient attribute in logic to populate some other columns in the table. I
for example, here's the content of what's submitted:
name phone transient
==== ===== =======
paul null 555
mary null 444
In my backing bean I'd like to get the rows from the table and read the value of the transient attribute, pass it through a function, and set the value of the column phone to some value for each row. Then have that processed to update the db. Is this possible?
Thanks,
Paul -
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 -
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 -
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 -
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 -
Setting the Link Group Name in Deep Link based on the value of a column
Using Jdeveloper 11g, Jheadstart 11g
Is it possible to override the link group name in deep linking. For example can I conditionally set that field based on the value of the item.
Regards
Edited by: aliegeh on Jul 25, 2010 8:35 AM
Edited by: aliegeh on Jul 25, 2010 8:43 AMThanks for the suggestion.
Here is what I am trying to do:
I have a table with one visible column that has the following entries:
1. Create
2. Modify
3. Verify
4. Approve
5. View
If the user clicks on row 1 (Create) then the link group name should be "CreateEmployees" to create new employees
If the user clicks on row 3 (Verify) then the link group name should be "MaintainEmployees" for verification and so on.
(This is role based and each role will have access to one or more of the rows in the tabler)
It basically mimics a work-flow type of scenario.
I tried to modify the template and looked at the line:
action="$JHS.facesConfigGenerator.addItemGroupLinkTaskFlowCall((${JHS.Current.item})}" but got stuck there.
Is there a way to change "JSH.current.item" in the template to read the group link name from another column say by using #if statements.
One way I also tried was to introduce a column for each action such as CreateAction, VerifyAction etc which kind of agrees with your suggestion but the drawback is the need to modify the table if another task is required.
Regards
Edited by: aliegeh on Jul 25, 2010 8:36 AM
Edited by: aliegeh on Jul 25, 2010 8:42 AM -
Assign Task to a specific user based on the value of DDL from the form
Hello,
Can any one please advise me on how to assign a task to a specific user based on the value of the drop down list from the form. E.g. user fills the form and before they submit the form they have to select one of the name from the drop down list so the form can go to that person for approval.
Thanks in advance,
HanI got it works now by using the xpath expression (in workbench) to assign to the selected user from the DDL in the form.
-
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. -
Accessing the value of a text box input
how do i access the value of a text box on a jsp page..
eg:if the page name is Test.jsp and it has a text box named text.....You're mixing JSP and JavaScript. If you're staying within the same page, e.g. no get/post to another JSP, and you need to update values of a text field within a form, use pure JavaScript, such as:
<form name="fred">
<input type="text" name="USERID" size="15" onBlur="document.fred.PASS.value=document.fred.USERID.value;"><br>
<input type="text" name="PASS" size="15"><br>
</form>
This will change the value of the PASS field to the same as the USERID field, which is what I think you were trying to do.
Not to be rude, but in the interest of keeping the Java forum pure, I would look towards a JavaScipt forum if you wish to use pure JavaScript (http://freewarejava.com/cgi-bin/forumdisplay.cgi?action=topics&number=1&SUBMIT=Go)
bRi
Maybe you are looking for
-
How can i compare two databases and their tables
i have a text.txt file then i will insert it into db_header and db_details db_header has tbl_pcountheader with fld_Rack_No(char) PK and fld_DateAdded(date) PK db_details has tbl_pcountdetails with fld_Rack_No(char) PK, fld_Barcode(char) PK and fld_Qu
-
Need to restart iTunes after each CD import... what's up with that ?
Having an issue with my new Toshiba laptop, after bringing my library in from my HTPC(now gone) and finding atleast one song on each album cut short, i've decided to start from scratch and re-import my 350 odd CD collection. But i'm having an issue..
-
Quota warning message not working
I have Quota warning messages turned on to be sent daily to users using over 90% of their limit. To test it I've had an account filled to 95% for a few days and no message yet. Anyone else having problems with this? Anyone have any suggestions what m
-
Sequential Execution of database statements in ABAP
Hi, I want to update some rows of table(userdefined) purchase order and my requirement is to change the status of that table after i clicked on that particular record. Can we do that eventhandling type of things in ABAP. My table structure is
-
I am trying to run memory profiling for a flex application. But when I run the profiler, it does not open up the window for me to select options to do profiling on. I followed a link on http://stackoverflow.com/questions/2354891/flex-profiler-doesnt-