Keep the value of previously entered record on Submit Action in Infopath
Hi,
I am using SharePoint 2010 list. I have customized a list form using the out of box functionality.
I have requirement that when user clicks on the “Submit” button, the form should preserve the field values so for the second record, user does not
need to enter all the fields as some of the fields might be common for both the records.
To serve this purpose, in Button properties
I selected “Submit” as an Action
In Submit options, under “Advanced” I selected “Leave the form open” after submit.
After filling the field values, when I click on “submit”, the first record has been submitted correctly to list and it kept the form open with the
same field values of first record. So after changing some field values when I tried to send the second record, instead of entering second record as a new record, it updated the first record.
Which are the other settings I need to make to achieve this?
Thanks,
Patav.
You need to set the submit options to "open a new, blank form" for it to open a new form, but this of course won't have the same data. So, you'll need to use a rule that immediately queries back to the list to get the data of the most recent
ID and then populate the fields. That's kind of tedious, though.
I have been researching this for some time all around the web and you sir are the one of the closest to answering my question.
I actually need this tedious task to work. I have been told by other coworkers in my office that Access has this capability, but I'm trying to stay away from Access as much as possible. If I need to do some coding, that is fine too.
A little info:
I am building an inventory database using hardware from different schools, with multiple buildings and classrooms. I have cascading dropdowns School->Building->Classroom and text boxes such as Serial # and Software. Since I have multiple pieces of
hardware (monitors, desktops, laptops, and other) there are multiple systems that are the exact same, the only difference is the "Serial #". Everything works as it should for the current form, but as we are entering thousands of records, it'd be
nice to only have to change the Serial # until a new School/Building/Classroom is presented.
Could I kindly ask that you explain how to do this, and give an example using my outline? Or direct me to a link that has already answered this. Thank you!
(I tried adding a picture, but I'm not verified yet)
Similar Messages
-
How remove the values which are entered in filter attributes of VO
Hi,
On top of one VO we are performing search using bind variables.
To refine the search we have added filterable="true".
Now when we perform seach and then we have filtered using one column we got result and we proceeded.
When we come to this screen again when i perform search with the bindvariable and click on search then the previously applied filter is also getting applied
becuase the value in that filter is still there.
So How can i remove the value which is entered in filter attribute of the VO programatically.
Please help me.
Regards
Gayazwould this help you:
http://adfscopes.blogspot.com/2011/03/programatically-clearing-filter.html -
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! -
Dynamically creating a Record Group based on Previously entered Record Grou
Forms [32 Bit] Version 10.1.2.3.0 (Production)
Hi,
I know how to dynamically create a record group based on a query and putting the code in When new form instance.
My query is. I have a form which has multiple Record Groups and the user wants to dynamically create subsequent groups based on previous groups.
For example
I have a record group with selects a Location,
when the user selects the Location from a list of values
the 2nd record group called 'Cost Centres' will have to filter out only those with the locations selected above.
How can I populate the 2nd record group at run-time when I do not know what site the user will select?
If I simply populate in when new form instance as in location and just select everything, the list of values populates.
CC field is a LIST ITEM and the list style is a POP LIST, it is not required.
I have put the code in the Location field in the when-list-changed trigger.
I am getting this error:
frm-41337: cannot populate the list from the record group
here is the code:
DECLARE
v_recsql Varchar2(1000); -- The SQL for creating the Record Group.
v_recgrp RecordGroup; -- Record Group
v_status Number; -- Return Value of Populate_Group function.
c_where VARCHAR2(1000);
BEGIN
IF :location = '1' THEN
c_where := ' substr(cost_centre,1,2) in (''01'',''02'')';
ELSIF :location = '2' THEN
c_where := ' substr(cost_centre,1,2) in (''02'',''03'')';
ELSIF :location = '3' THEN
c_where := ' substr(cost_centre,1,2) in (''01'',''11'',''07'')';
ELSE
c_where := ' 1=1'; --EVERYTHING
END IF;
v_recsql := 'SELECT cost_centre, description FROM cost_centres where '||c_where;
-- Create the Record Group
v_recgrp := CREATE_GROUP_FROM_QUERY('v_recgrp', v_recsql);
IF NOT ID_NULL(v_recgrp)
THEN -- No Error, record group has been successfully created.
-- Populate Record Group
v_status := POPULATE_GROUP('v_recgrp');
IF v_status = 0
THEN -- No Error. Record Group has been Populated.
POPULATE_LIST('block.CC', 'v_recgrp');
END IF; -- IF v_status = 0
-- Delete the Record Group as it is no longer needed.
DELETE_GROUP('v_recgrp');
END IF; -- IF NOT ID_NULL(v_recgrp)
END;thanks for your assistance.Hi,
Once record status gets change for block you can not populate/repopulate the list item. Keep those list items as non-database item with different names and create different items as database orignal items. Than assign the values in WHEN-LIST-CHANGE trigger to the actual database items.
-Ammad -
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 -
Remove the duplicate rows but keep the most recent and oldest records
I have a Product table, some products have duplicate rows(same productID). I want to keep the most recent and the oldest records based on ETL load date (or min and max productKey), delete others. How to do this in a simple way?
ProductKey | ProductID |ETL_Load_Date
1001 | 501 | 2014-01-01
1002 | 501 | 2014-01-02
1003 | 501 | 2014-01-03
1011 | 502 | 2014-01-01
1012 | 502 | 2014-01-02
1013 | 502 | 2014-01-03declare @table table (ProductKey int, ProductID int, ETL_Load_Date date)
insert @table (ProductKey, ProductID, ETL_Load_Date)
values
( 1001 , 501 , '2014-01-01' ), ( 1002 , 501 , '2014-01-02' ),
( 1003 , 501 , '2014-01-03' ), ( 1011 , 502 , '2014-01-01' ),
( 1012 , 502 , '2014-01-02' ), ( 1013 , 502 , '2014-01-03' )
SELECT *
FROM @table t
INNER JOIN (
SELECT MIN(etl_load_date) min_load_date, MAX(etl_load_date) max_load_date, ProductID
FROM @table
GROUP BY ProductID
) m
ON t.ProductID = m.ProductID
AND t.ETL_Load_Date IN (min_load_date,max_load_date)
This will show both the min and max load dates, for each ProductID
Thanks to Saeid for posting some test objects. -
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. -
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> -
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"). -
Can you edit previously entered records ?
Hi I have a problem that I need to solve with my form.
I need to enter various fields on my form - the first field is in an email address and I want this to be a unique key field
and once entered then if its entered again I want to be able to pull back the whole record of information to allow all the previously eneterd fields to be edited and re-saved.
Can that be achieved ?
Thanks
MikeI am referring to edit not deleting.
its simple – it means you initially enter a record using the form with say the following information,
email : [email protected]
name : mickey mouse
address : Disneyland Florida
and you save that information.
then if you realize you made a mistake and want to edit the information you input but you don’t want to delete the whole record – then you re-visit the form – enter the email address and the rest of the fields populate automatically allowing you to edit say name from Mickey Mouse to Donald Duck and allows you to resave..
does that explain it ? -
How to repeat a previously entered record 10 times
Hi,
I am using BC4J and JClient. My users want a feature where they can insert a record and then want to repeat the same record n times with the primary key value changed using a prefix. For example, BSM_MGMG_01, BSM_MGMG_02 and so on. I am putting a button on the same panel which can then open a dialog box asking for the prefix and how many times they want the record repeated. Alternatively I can just put a button which will repeat the record one at a time. That's nto problem.
Any idea how this can be done quickly? How can I use the VO to do this?Dear Shailesh,
Thanks for your help. I tried it and it works, except that I can' get the navBar activate the green commit arrow. It remains unactivated even tough the rest of the screen shows the new 10 rows. I can commit using menu but in production environment, there is only navBar but no menu. How can I notify navBar that rows have been updated and the green arrow should light up?
I am trying various methods associated with navBar, but still no luck.
With regards,
Mahendra -
Multiple print for pdf form retains the value from previous!
Hello All,
We have developed Adobe Print Forms for our business requirements.
When we try to print these forms from the direct transaction, it prints fine. But when we try to select multiple forms to be printed with one transaction, the pdf form generated has data from all the selection!
Eg: Form printed properly for Delivery Note through transaction VL02N.
The same form when we try to print for multiple deliveries from transaction VL71, i retains the data and prints one huge form having all delivery data!!
Please help us out in this issue and let us know what is tha we are missing in this process!
Thanks a lot for your time and help.
GauravHi ,
i think that the problems comes form the data you give to the form, do you make a refresh of internal table before populated them ...
regards -
Pre-populating a date/time column with the value entered in the last added item
I have a list with a column called "expected finish date". Whenever the user adds the very first item in a list, he/she should have to enter a value for this column.
I want to make all new item entries to pre-poplate this field with the value entered in the previously added item. This way, he/she wont have to re-enter the date every time (which rarely changes). How can this be done?could create a second list ("state") with column ("default finish date")...
create a workflow on main list... if column is blank/empty, pull from second list... otherwise, update second list with the value that was entered.
Or, customize the form (InfoPath or JavaScript)
Scott Brickey
MCTS, MCPD, MCITP
www.sbrickey.com
Strategic Data Systems - for all your SharePoint needs
Maybe you are looking for
-
IPad Air with iOS 8.02 freezes and blue screen appears. What should be done ? Why is this happening ?
-
Secutiry error in windows vista gadgets
Hi everybody, I'm trying to add a flash into a microsoft windows vista sidebar gadget and I get the following security error : SecurityError: Error #2060: Security sandbox violation : caller ExternalInterface http://test_server/player/widget.swf cann
-
Install iPhoto 6 on an ibook, 700 MHz PowerPC G3
Can I install iPhoto 6 on my laptop?
-
I want to use my iPhone 3GS just as an ipod, not a phone. No sym card. New iOS5 won't allow. What do I do? Can I do a hard reset?
-
Item Validation Organization is not Appearing in LOV in profile options
Dear All, Item Validation Organization is not Appearing in LOV of the Profile options. OE: Item Validation Organization QP : Item Validation Organization Regards, John