Keep the value after a event
I am designing a page .on its left i place some condition for searching and a button named search. on its right one table for result.
when i click the search button ,it trigger a event which do a searching according to those conditions.Then ,the table display result.
but,those condition which is in the textinput,choice,...disappear.
I want to keep these value .
Please help me!
I don't understand, both questions seem to be about saving selected state, which Attila answered nicely. You can save and bind to the selected value as a page property.
Did I misunderstand, do you have another question?
Here's a working example from a page, which looks almost exactly like Attila's post:
the ui nodes:
<bc4j:rootAppModuleScope name="EmpAppModule" >
<contents>
<header text="Search" >
<contents>
<form name="search" >
<contents>
<inlineMessage prompt="Search" vAlign="middle" >
<contents>
<bc4j:viewObjectScope name="EmpView" >
<contents>
<flowLayout>
<contents>
<choice name="attrName"
data:selectedValue="attrName@ctrl:page"
shortDesc="Search Column">
<contents>
<bc4j:region automatic="true" >
<bc4j:attrStamp>
<option>
<boundAttribute name="text" >
<bc4j:attrDefProperty name="name" />
</boundAttribute>
<boundAttribute name="value" >
<bc4j:attrDefProperty name="name" />
</boundAttribute>
</option>
</bc4j:attrStamp>
</bc4j:region>
</contents>
</choice>
<textInput name="attrValue" columns="20"
data:text="attrValue@ctrl:page"
shortDesc="Search"/>
</contents>
</flowLayout>
</contents>
</bc4j:viewObjectScope>
</contents>
<end>
<submitButton text="Go" ctrl:event="search" />
</end>
</inlineMessage>
</contents>
</form>
</contents>
</header>
and the event handler
<event name="search" >
<!-- using the ApplicationModule causes it to be checked out from the
ApplicationPool. It is released using stateful mode. -->
<bc4j:findRootAppModule name="EmpAppModule" >
<!-- establish the ViewObject scope -->
<bc4j:findViewObject name="EmpView" >
<!-- search for the view criteria -->
<bc4j:findByExample>
<bc4j:exampleRow ignoreCase="true" >
<bc4j:exampleAttribute comparison="equals" >
<bc4j:nameBinding><bc4j:parameter name="attrName" /></bc4j:nameBinding>
<bc4j:valueBinding><bc4j:parameter name="attrValue" /></bc4j:valueBinding>
</bc4j:exampleAttribute>
</bc4j:exampleRow>
</bc4j:findByExample>
<bc4j:executeQuery/>
<!-- store the current search criteria as page properties -->
<bc4j:setPageProperty name="attrName" >
<bc4j:parameter name="attrName" />
</bc4j:setPageProperty>
<bc4j:setPageProperty name="attrValue" >
<bc4j:parameter name="attrValue" />
</bc4j:setPageProperty>
</bc4j:findViewObject>
</bc4j:findRootAppModule>
</event>
Similar Messages
-
How to delete formula from cells and keep the values in Excel VBA
Hi,
In my Excel I have 15 columns. In column F which has a formula (INDEX MATCH), it has contains "RECEIVED" and "INTRANSIT". I need to filter the column F for all "RECEIVED" and then remove the formula from cells and
retain or keep the values that are already in the cells. something tricky and i'm not sure on how to work on this in Excel VBA.
Below is my initla VBA code:
I already have the codes on how to filter. kindly please help me on how to do this. thank you in advance.
Sub test_Click()
Dim wb As Workbook
Dim ws As Worksheet
Dim rng As Range
Dim lrow As Long
Set wb = ThisWorkbook
Set ws = wb.Sheets("Intransit_")
Application.ScreenUpdating = False
ws.AutoFilterMode = False
With ws
lrow = .Range("F" & Rows.Count).End(xlUp).Row
Set rng = .Range("A1:R" & lrow)
Debug.Print rng.Address
rng.AutoFilter Field:=6, Criteria1:="RECEIVED"
End With
Application.creenUpdting = True
End SubSolved.
Sub test_Click()
Dim wb As Workbook
Dim ws As Worksheet
Dim rng As Range
Dim lrow As Long
Dim rRec As Range
Dim btField As Byte
Set wb = ThisWorkbook
Set ws = wb.Sheets("Intransit_")
btField = 6
Application.ScreenUpdating = False
ws.AutoFilterMode = False
With ws
lrow = .Range("F" & Rows.Count).End(xlUp).Row
Set rng = .Range("A1:R" & lrow)
With rng
.AutoFilter Field:=btField, Criteria1:="RECEIVED"
On Error Resume Next
Set rRec = .SpecialCells(xlCellTypeVisible)
On Error GoTo 0
End With
.AutoFilterMode = False
If Not rRec Is Nothing Then
With rRec
.Columns(btField).Value = .Columns(6).Value
End With
End If
End With
Application.ScreenUpdating = True
End Sub -
Make sure that your bean is implementing the serializable interface and that
you are accessing the bean from the session with the same name.
Bryan
"Sandeep Suri" <[email protected]> wrote in message
news:[email protected]..
Hi, I have quick question about use of USEBEAN tag in SP2. When I
specify a scope of SESSION for the java bean, it does not keep the
values that I set for variable in the bean persistent.Thanks,Sonny
Try our New Web Based Forum at http://softwareforum.sun.com
Includes Access to our Product Knowledge Base! -
How to recieve the value in subscribe event??
Hi, I have to pass selected data in publish event and recieve the value in subscribe event..
e.g:-publish event----
data : {
context : evt.getSource().getBindingContext(),
selectedValue : model [
evt.getSource().getBindingContext()Hi Kelvin,
I suppose you select one list item and you want to pass that selected list item to another view.
Follow these steps:
1. Create a variables like "var selectedListItem,bindingContext,itemTitle;"
2. Your list( I suppose you are using StandardListItem) must have an evenhandler for list "select" event like following:
<List id="yourList"
select="onListSelect"
mode="SingleSelectMaster"
items="{/yourbindingpath}">
<items>
<StandardListItem
title="{titleBinding}" />
</items>
</List>
3. Create "onListSelect" event handler in your view controller which will give you selected item. Store that value in variable "selectedListItem" and pass it to your publish method.
onListSelect : function(oEvent){
bindingContext= oEvent.getSource().getBindingContext();
itemTitle= listItem.getTitle();
Regards,
Rauf -
Keep login value after validation
Hi,
i'm learning Dreamweaver and doing a login page.
Is it possible, when I submit my Login Form, to keep the
value I entered in the login texfield and display a error message?
Ex: Form method="post"
If it's valid, redirect to page x
If not, redirect to the same form, display the message"
Invalid password" and keep the wonrg value in the Login field.
thanks,
RoslineHi,
yes of course,
can you post the link, or the source code where is the
problem,
T -
Cannot get the value after space
i am doing my double module project for my degree course and i am also a newbie in JSP. Hope there is someone can help me to solve this problem. Now, i set the value of a radio button to "don't smoke", "smoke lightly", and "smoke heavily". Then i use request.getParameter ("smoking behavior") to get the value selected by the user, but the result is only "don't" or "smoke", which the character after spacing will be not be retrieved. I dun know how to solve it, so can any expert here help me to solve this problem? Thanks for helping.
You can't use spaces in passed parameters; either give your options numerical values that you can translate on the receiving end, or do an URLEncoder.encode() on the values before submitting them. If you encode them, you'll do an URLDecoder.decode() on them on the receiving end.
URLEncoder.encode("don't smoke") = "don%27+smoke"
URLDecoder.decode("don%27+smoke") = "don't smoke" -
Keeping the values in Request bean across more than 2 pages
Hi...,
I have created a Bean with request scope & want to access it across 3 different pages.
From the 1st page once I submit the values , I do a forward (redirect=no) to the second page where I can print the values . From the 2nd page I then do a forward to the 3rd page (redirect=no) & I loose the values.
How do I keep the request bean active across multiple pages. But I don't want to make it session as this is a form to enter values & our users might open multiple forms as the same time.
Regards,
PraveenHi....Balu,
We are having a issue when using ajax on top of JSF . Setting the variable hidden is somehow not working.
Secondly, what is requestMap & where can I find the information.
Regards,
Praveen -
Checkboxes that keep their value after a refresh
Hi
I am trying to work with Checkboxes in an HTML region which will make another region appear or disappear when they are checked or unchecked. As I understand it I need to submit the page to make regions appear or disappear - but when I do this by default the checkbox forgets its value.
My checkbox is based on the static love: STATIC2:;Y which should make it ticked when the value is 'Y' and unticked when it is 'N'. I have set its default value to Y.
I have read online about how to make a checkbox remember its value by putting a computation on it that will set the value of the checkbox to 'N' when it is null. Unfortunately when I refresh the page - if the checkbox is ticked then everything is fine (as it was before) - but if it is unticked then I suddenly get two checkboxes - both of which are ticked and one of which has an 'N' after it.
Does anyone have any idea what I'm doing wrong? It's driving me mad trying to achieve something that that I'd expect to just work without any effort.
I am using Apex 4.1.1.00.23
Thanks
Danuser5476823 wrote:
HiWelcome to the forum: please read the FAQ and forum sticky threads (if you haven't done so already)), and update your forum profile with a real handle instead of "user5476823".
When you have a problem you'll get a faster, more effective response by including as much relevant information as possible upfront. This should include:
<li>Full APEX version
<li>Full DB/version/edition/host OS
<li>Web server architecture (EPG, OHS or APEX listener/host OS)
<li>Browser(s) and version(s) used
<li>Theme
<li>Template(s)
<li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
With APEX we're also fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues, which we can then see at first hand.
I am trying to work with Checkboxes in an HTML region which will make another region appear or disappear when they are checked or unchecked. As I understand it I need to submit the page to make regions appear or disappear - but when I do this by default the checkbox forgets its value.
My checkbox is based on the static love: STATIC2:;Y which should make it ticked when the value is 'Y' and unticked when it is 'N'. I have set its default value to Y.
I have read online about how to make a checkbox remember its value by putting a computation on it that will set the value of the checkbox to 'N' when it is null. Unfortunately when I refresh the page - if the checkbox is ticked then everything is fine (as it was before) - but if it is unticked then I suddenly get two checkboxes - both of which are ticked and one of which has an 'N' after it.
Does anyone have any idea what I'm doing wrong? It's driving me mad trying to achieve something that that I'd expect to just work without any effort.Don't set the checkbox value to "N". Leave the default as null, and check that the value is "Y" or null as necessary.
APEX checkboxes probably don't work in the way you expect: a checkbox is displayed for each value in the LOV. With the checkbox item LOV Display Extra Values property set to Yes, extra values that are not included in the LOV definition—like your "N" default—will be displayed as additional checkboxes.
See +{message:id=10738376}+ for a similar situation. -
How to keep the cellEditor after remove/add table columns
The cellEditor/render will be invalid after fireTableStructureChange event. How to make the cellEditor work properly as before the structure changed?
After a fireTableStructureChange event the TableColumnModel is recreated and the default renderers and editors are used. If you are using custom renderers or editors you need to reinstall them for the appropriate column.
-
How can i keep the values of inputfile collection,which is in a table
HI
I am using Jdev 11g,ADF Faces rich
I have a table, which contains 3 coulmns one of them are belongs to uploadedfile(inputfile) and other are string type. I have a Managed bean(session) which take care of values of table
public class FileSession {
private ArrayList files= new ArrayList();
// HashMap fileMap=new HashMap();
public void setFiles(ArrayList files) {
this.files = files;
ArrayList str=new ArrayList();
UploadedFile file=null;
str.add(file);
files.add(str);
public ArrayList getFiles() {
return files;
when i press add new row to the table the values in the input file is been disappear.
i have tried with code its works
private ArrayList<UploadedFile[]> files= new ArrayList<UploadedFile[]>();
but my need is to create multiple datatype in that ArrayList.
Edited by: vipin k raghav on Apr 6, 2009 4:20 AM
Edited by: vipin k raghav on Apr 6, 2009 4:25 AMHi user,
As long as youhave access to the linux sever from your windows server, you're good to go. Open your admin tool, go to File --> Open --> Offline.
The Open window pops up. On the "File Name" field, enter the path of rpd file in the linux server (Ex: \\Server_Name\local\MyRpd.rpd). Select the file, and voilà!
I hope this helps.
J. -
Do I need to keep the .dmg after installing an application ?
I drag the dmg to the application folder and do the install, do I need to keep the .dmg afterward? as i`m doubling up on files and filesize,
No, unless you're running the application straight off the dmg.
(75180) -
HSGetValues - how do you keep the values?
We wrote one of our first reports using HSGETVALUE, which our consultants showed us, however, now the user of the report does not like it. They claim the data disappears each time they open the report and they do not want to refresh upon each opening. Any suggestions other than re-writing the report using standard Smartview method.
Thanks!The breaking of links to HSTbar does do a value copy for HSGetValue, but I think what they may be looking for are values that can be refreshed or not refreshed when the file is opened. I think the only option you would have outside of VBA to refresh the sheet would be to convert these reports to Ad-Hoc style reports as opposed to formula driven reports. This would provide the ability to have basically a value copied report when openned but a user can select refresh if they want to.
The downfall of the value copied reports is that once it is completed, you can no longer go back to the formula's without rebuilding them. VBA could be used to achieve this, but it could be a painful process.
The downfall to the Ad-hoc style reports are the formatting requirements, which could be very difficult for the users to get used to.
Regards
JTF -
How does Java keep the value from temporary variable?
Hello all:
I have a Question for Java Assignment operator.
Object v1;
Object v2;
v1 = v2; // Java assignment by reference if I understand correctly
///// for example:
import java.io.*;
import java.util.*;
public class TestOne {
Vector v1;
public void changeV() {
Vector v2 = new Vector();
v2.addElement(new Integer(10));
v2.addElement(new Integer(11));
v2.addElement(new Integer(12));
v1 = v2;
public TestOne() {
changeV();
System.out.println(v1.size());
System.out.println("0: " + v1.elementAt(0));
System.out.println("1: " + v1.elementAt(1));
System.out.println("2: " + v1.elementAt(2));
public static void main(String[] args) {
new TestOne();
// Output from Screen
bash-3.00$ java TestOne
3
0: 10
1: 11
2: 12
If I understand correctly, " v1 = v2; " is assigned by reference.
So the question is when function 'changeV' return, why v1 still holds the
values from v2 which has been destroyed?
Thank you
-danielfirstly, the assignment is by-value, not by-reference.
the value the variables hold is a thingy called "reference." (In other languages such as C or C++ it might be called "pointer.") So "v1 = v2" always copies the value of v2 to v1.
secondly, the vector object that is created in the changeV method, is created on the heap, that is, in dynamic memory. The variable v2 holds only a reference to it. So when the method returns, only the reference is destroyed, not the actual object.
The object is automatically destroyed when there are no more reachable references to it (it is "garbage collected"). -
Is there a way to keep the time for an event on the left of the box in month view?
For example, when I type in "5:00 PM Basketball Game," iCal automatically changes the event to "Basketball Game." I only use month view so that wasn't helpful for me. I only recently discovered the "show event times" option in preferences so now the time shows up in month view, but on the right in faded text. Is there anything I can do in Terminal to keep it from automatically changing it? I'm old-fashioned I guess.
I realize it's nitpicky but I'd appreciate a solution. Thanks!I should note that the time stays on the left of the event name when I re-enter the text (which I had to do all the time before I found the "show event times" button) so I feel like there's a way.
-
How to capture the values after applying filter in ALV.
Hi,
I have an ALV in my application with 10 projects displayed. Out of those 10 projects, 5 projects have banking as industry.
when you filter the ALV based on industry banking I get 5 projects .In run time how can I capture only these 5 projects. when I debugged and saw the ALV table node is holding 10 prj not 5 prj.
How can read only those 5 values. Kindly help me out with sample code.
Thanks,
PriyaHi,
The class name is correct - CL_SALV_WD_FIELD. When you refer the model object(CL_SALV_WD_CONFIG_TABLE-IF_SALV_WD_FIELD_SETTINGS) this will return the field for which
you have applied filter by passing the field name.
Before you try out this approach, check the ALV event ON_CELL_ACTION fro that column name to capture the filtering value. Based on this loop at the table where field eq <<filerting value>> and get the filtered records.
As you have get_static_attributes_table it deosnot return the filtered values.
Regards,
Lekha.
Maybe you are looking for
-
I locked myself out of my iphone 4. i am currently connected to itunes and i need to restore my phone. can anyone help me please been trying since 930am uhhhhhh
-
how to I get my ipod connected to wifi for the first time..it's an ipod tougch 2010 version, refurbished
-
Creating Bookmarkable URLs - two or more parameters
I followed the tutorial "Creating Bookmarkable URLs" and I was able to pass 1 parameter OK with values from a database. I don't know the syntax for multiple parameters, though, when using the IDE Design view. I really would like to have bookmarkable
-
How to Model the Latest Relation in 1:M Relationship in OBIEE?
Hi all, We have one to many relationship in our oltp system. Let's suppose one service request and many service request activities. For service request activities there are huge data. One requirement is user wants to see the only latest activity of t
-
Creating photo orbs...
Hello everyone, does anyone know how to make a photo orb? I understand it is not something you can do in iPhoto, but I am searching for some advice. Thanks