Add data to a repeating table
Hi, is it possible to create a submit button in the middle of the form to add data to a repeating table (That repeating table would add an item to a list).
Hi,
Please refer to the articles related to repeating section from the following link
Repeating Tables and Sections in InfoPath
Please don't forget to mark it as answered, if your problem resolved or helpful.
Similar Messages
-
Hi there, new to infopath. I have 2 sections in my form which are hidden and display based on the department selected. So Department A versus Department B, a section opens for details pertaining to that Department. So in each
section I have similar information requirements, similar but not exactly the same. Now I was able to create hidden fields that will concat the values from both sections in the instances of similar data (i.e. Name, Department location, etc, so if Department
A fills in Name on their section, then someone else submits the same form for Department B I still have one column of metadata in SP to displace the Name regardless of department or section they filled data into). However now I am stuck, I have repeating
tables in both sections and I want to concate the entries to output to the sharepoint list for that cell. However everything I have tried so far only concats the 1st value in the repeating table. Is there a way to take ALL of the data from
two repeating tables and merge them into one column/cell in sharepoint (metadata for the one form entry)??? I want to avoid having to create a excessive "views" of a list in order to accomodate the needs for BOTH departments. I hope
this is clear. Thanks for your help!
from msn forumHi Meera,
I apologise for delay. Anyways you can goto the
following link:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/36f08758-0a01-0010-c291-c03004aeb1af
for details.
Hope this will clear you. However, you further require
any more information then please feel free to mail.
Note:
ty_t_sender, cl_abap_char_utilities DEFINITION LOAD
all these are present in alsmex function group if you
place your function module in this function group then
you'll be able to access these things. Further, like
if you have security options and can't place your code
in this function group then create your own function
group in your own package and copy the contents from
alsmex function group.
Hope that answer your questions.
Regards,
Mirza Ifthekhar Baig. -
How to add data in User Defined table
Hello Experts,
I have design form in screen painter , 3 text boxes and labels, 2 add buttons with uid 1 and 2 , and
i have created tables and fields maually and registered new object i have also mentioned table name and alias in property box with fields i have created with userdefined fields as ex: U_age etc and table @EMP in property box
I am loading this form as xml file to SAP B1 every thing works fine but when i click add button no data is added to table what is the problem
Please suggestHi,
Are you using UDO or not?
If not you have to write code by hand for manage data insert, update, search, and so on...
Regards.
Diego -
Date Controls in repeating table of Infopath 2013 only showing Calendar in first row date controls
I am using SharePoint 2013 and InfoPath 2013.
and using form library which uploaded at server.
I am using repeating table over section . and place Date Controls.
At the run time it is showing first row with START and END
date controls.
when I click INSERT Item it is showing second row with
Date Controls.
It is opening and showing calendar only on first row.
But when I click Date Control button at second row it is not showing or opening calendar.
Yesterday it was working. but today is not working at site.
Although it is working on InfoPath 2013 Preview.Hi John,
Based on your description, my understanding is that the Date Control cannot work correctly in the InfoPath form.
I recommend to re-publish the form to SharePoint and then compare the results.
Please go to the Library setting page of the library where the form is published > click Advanced Settings > click Edit Template in the Document Template > now the form will be opened in InfoPath Designer and then click Quick Publish button in the
top of the menu tab.
Best regards.
Thanks
Victoria Xia
TechNet Community Support -
Add data item from a table to another table
I have two tables, "Model" and "Colour". Fields of Model are "Id", "ModelId" and "ModelName" and fields of Colour are "Id", "ColourId" and "ColourName". These two tables
have one to many relationship. A model must have a colour. One Colour can have many Models.
Say "A" is ColourId with a ColourName "black". An example of ModelId would be "101A", 101 is just model code and A refer to ColourId. ModelId cannot be computed property because that's the value user gonna enter.
What I'm asking is how do I split the ColourId from ModelId and query the related colour item and add it to a record of Model.For advanced query issue, this will be good start.
Advanced LightSwitch: Writing Queries in LightSwitch Code -
Help to add data to a component Table
Hi to all
I do not know how to binding componet Table to a SQL Server data base.... Is possible?
regardsYou may find this article useful about using datatables: [http://balusc.blogspot.com/2006/06/using-datatables.html].
Basically you need to create an independent class following the DAO pattern which interacts with the database. Once you got that working, then use it in the managed bean to create, read, update and delete data. -
Auto add date in a dynamic table
http://www.mediafire.com/?nwmnv42yizg
I have a file here. I would like to make the Colum Day 01 should be auto created when I enter 5, then it will auto create 5 rows with Day 01 --> Day 05.
Also with the Date Selector. I would like to choose a date for 1st row. Then the rest, should be automatically created.
I tried to find the script in forum but no one face to this problem.
Thanks for your help.Here is the updated form..
Few things I corrected.
1) In the Form properties under Preview tab, you selected Preview Type as Print form. I changed it to Interactive.
2) The code in NF1 field I moved it to Exit event from enter event.
3) In the DayNum Calculate event you are not taking the index properly. You are adding rows for Row1. So your reference to Row1 should be like this.
(this.parent.parent.parent.index + 5);
https://acrobat.com/#d=lgd94K0Oh6WniLPrh8QQYw
I did not fully understand your second requirement on the date selection. But if you are thinking to have the same date value displayed in all of the rows then you need to have all the fields with same name and set the binding to Global..
Hope this helps..
Thanks
Srini -
Add datas to UDT using business objects
Hi,
How to add datas to user defined tables using Business Objects.
Regards,
M.Dhivya.Hi,
Check for following provided bt SAP...
Dim ret As Long
d
Private Sub Add_Table_Click()
Dim oUserTablesMD As SAPbobsCOM.UserTablesMD
Set oUserTablesMD = oCompany.GetBusinessObject(oUserTables)
' When adding user tables or fields, use a prefix
' identifying your partner name space. This will
' prevent collisions from different partner add-ons
' SAP's name space prefix is "BE_"
'Set the two mandatory fields
oUserTablesMD.TableName = "T1"
oUserTablesMD.TableDescription = "Table1"
'Add the table (which contains 2 default, mandatory fields, 'Code' and 'Name')
ret = oUserTablesMD.Add
If ret <> 0 Then
oCompany.GetLastError ret, Str
MsgBox Str
Else
MsgBox "Table: " & oUserTablesMD.TableName & " was added successfully"
End If
End Sub
Private Sub Add_UDF_Click()
Dim oUserFieldsMD As SAPbobsCOM.UserFieldsMD
Set oUserFieldsMD = oCompany.GetBusinessObject(oUserFields)
oUserFieldsMD.TableName = "T1"
oUserFieldsMD.Name = "AlbUDF"
oUserFieldsMD.Description = "Albert UDF"
'Add the field to the table
lRetCode = oUserFieldsMD.Add
If lRetCode <> 0 Then
oCompany.GetLastError ret, Str
MsgBox Str
Else
MsgBox "Field: '" & oUserFieldsMD.Name & "' was added successfuly to " & oUserFieldsMD.TableName & " Table"
End If
End Sub
Private Sub Add_Data_Click()
Dim oUserTable As SAPbobsCOM.UserTable
Set oUserTable = oCompany.UserTables.Item(1)
oUserTable.GetByKey ("T1")
'Set default, mandatory fields
oUserTable.Code = "A"
oUserTable.Name = "Albert"
'Set user field
oUserTable.UserFields.Fields.Item("U_AlbUDF").Value = "1"
oUserTable.Add
If ret <> 0 Then
oCompany.GetLastError ret, Str
MsgBox Str
Else
MsgBox "Value to field: '" & oUserTable.UserFields.Fields.Item("U_AlbUDF").Name & "' was updated successfuly to " & oUserTable.TableName & " Table"
End If
End Sub
Hope this helps,
Vasu Natari.
Edited by: vasu natari on Jun 12, 2009 11:21 AM
Edited by: vasu natari on Jun 12, 2009 11:21 AM -
Hi all,
i am facing problem while generating Test Result word document after successful execution of TestStand.
The Problem is :
i want to add rows Formatted as table headings, table headings are repeated when a table spans more than one page(marked as Red).
Example:
Page No. 1
| Test case Number | Test Step number |
| 100 | 100 |
Page No. 2
| Test case Number | Test Step number |
| 200 | 300 |
Test Result word document should generate with Table headings(marked as Red) in every pages of the document, but i am not getting as per above example.
Please through light on this.
Regards,
Susa.Hi Santiago,
Thank you very much for your valuable reply.
i want to generate MS-word report for TestStand after successful testing using MS-word2000.
Test report contains Actual values, Expected values and Pass/Fail status.
In my program i have customized all fields i can able to generate test report which contains Verification engineer name , test mode, test date, start time, end time Actual values, Expected values and Pass/Fail status.etc....
To put all values of test case number, Test step number, Actual values, Expected values and Pass/Fail status in to table for each time, i will
insert a row into table every time values arrives, once the table exceedes its page size it moves to the next page, next page should start with table row header but it start with values of above said parameters.
so i'm not able to repeat table row header for each page.
Please find the attached file for your reference.
Attched file expected.doc : This file contains what i wanted to generate MS-word report. Here table row header "Test Case Number and Test Step Number " is repeated in second page.
Attached file Actual output from source code.doc : This report generated from the source code. Here table row header "Test Case Number and Test Step Number" is not repeated in second page.
Do you know any property to set "repeat as header row at the top of each page" using MS-word ActiveX in CVI/Labwindows.
i think this information is sufficient for you,
Still if you need some information please ask me.
Thanks
Susa.
Attachments:
Actual output from source code.doc 25 KB
expected.doc 26 KB -
I created a repeating table but want to add a "do you really want to delete this row" prompt.
Let me clarify, I created a repeating table which allows users in Adobe Reader to add or delete rows. However, if user inadvertently hits delete, the row and any data is lost with no way to undo. So, I'd like to either add a pop up prompt for user to confirm they want to execute action or create an undu option somewehre else on the form. Can this be done?
Message was edited by: deanotnYes you can do it using app.alert().
var nButton = app.alert({
cMsg: "Warning: This will delete the row and all data in it. \n\nDo you want to continue?",
cTitle: "Delete Row",
nIcon: 1, nType: 2
if (nButton == 4) {
deletion code here
Description of app.alert() options:
http://acrobatusers.com/tutorials/popup_windows_part1 -
Add data to the table in the database with the use of add button
The name of my database is Socrates.
The name of the table in the database is Employees
I want to be able to add data to the database. i am presently working on the add button such that when i enter date into the textfield and press the add button it should automatically register in the table.
The error upon compilation is with this line of code
If (ae.getSource() == jbtnA)// it says that ";" is expected
Below is the entire code
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class Mainpage extends JFrame implements ActionListener
JTextField jFirstName = new JTextField(15);
JTextField jSurname = new JTextField(12);
JTextField jCity = new JTextField(10);
JTextField jCountry = new JTextField(12);
JTextField jSSN = new JTextField(8);
JLabel jFirstLab = new JLabel("First Name");
JLabel jSurnameLab = new JLabel("Surname");
JLabel jCityLab = new JLabel("City");
JLabel jCountryLab = new JLabel("Country");
JLabel jSSNLab = new JLabel("Social Security Number (SSN)");
JButton jbtnA = new JButton ("Add");
JButton jbtnPrv = new JButton ("Previous");
JButton jbtnNt = new JButton ("Next");
JButton jbtnDl= new JButton ("Delete");
JButton jbtnSrch = new JButton ("Search");
public Mainpage (String title)
super (title);
Container cont = getContentPane();
JPanel pane1 = new JPanel();
JPanel pane2 = new JPanel();
JPanel pane3 = new JPanel();
pane1.setLayout (new GridLayout (0,1));
pane2.setLayout (new GridLayout(0,1));
pane3.setLayout (new FlowLayout());
pane1.add(jFirstLab);
pane1.add(jSurnameLab);
pane1.add(jCityLab);
pane1.add(jCountryLab);
pane1.add(jSSNLab);
pane2.add(jFirstName);
pane2.add(jSurname);
pane2.add(jCity);
pane2.add(jCountry);
pane2.add(jSSN);
pane3.add(jbtnA);
pane3.add(jbtnPrv);
pane3.add(jbtnNt);
pane3.add(jbtnDl);
pane3.add(jbtnSrch);
cont.add(pane1, BorderLayout.CENTER);
cont.add(pane2, BorderLayout.LINE_END);
cont.add(pane3, BorderLayout.SOUTH);
jFirstName.addActionListener(this);
jSurname.addActionListener(this);
jCity.addActionListener(this);
jCountry.addActionListener(this);
jSSN.addActionListener(this);
jbtnA.addActionListener(this);
jbtnPrv.addActionListener(this);
jbtnNt.addActionListener(this);
jbtnDl.addActionListener(this);
jbtnSrch.addActionListener(this);
validate();
setVisible(true);
setDefaultCloseOperation(EXIT_ON_CLOSE);
pack();
setResizable(false);
public void actionPerformed(ActionEvent ae)
If (ae.getSource() == jbtnA)
fst = jFirstName.getText();
srn = jSurname.getText();
cty = jCity.getText();
cnty = jCountry.getText();
int sn =
Interger.parseInt(jSSN.getText());
String ad = "Insert into Employees
(Firstname,Surname,City,Country,SSN)" +
"values('"fst"','"srn"','"cty"','"cnty"','"sn"')";
Statement stmt = con.createStatment();
int rowcount = stmt.executeUpdate(ad);
JOptionPane.showMessageDialog("Your
details have been registered");
Statement stmt = con.createStatment();
int rowcount = stmt.executeUpdate(ad);
public static void main (String args[])
Mainpage ObjFr = new Mainpage("Please fill this
registration form");
try
Class.forname("sun.jdbc.odbc.JdbcOdbcDriver");
String plato = "jdbc:odbc:socrates";
Connection con =
DriverManager.getConnection(plato);
catch(SQLException ce)
System.out.println(ce);
}i have restructured the code, but the following line of code is giving error:
String plato = jdbc:odbc:socrates;
the entire code is below:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.sql.*;
public class Mainpage extends JFrame implements ActionListener
JTextField jFirstName = new JTextField(15);
JTextField jSurname = new JTextField(12);
JTextField jCity = new JTextField(10);
JTextField jCountry = new JTextField(12);
JTextField jSSN = new JTextField(8);
JLabel jFirstLab = new JLabel("First Name");
JLabel jSurnameLab = new JLabel("Surname");
JLabel jCityLab = new JLabel("City");
JLabel jCountryLab = new JLabel("Country");
JLabel jSSNLab = new JLabel("Social Security Number (SSN)");
JButton jbtnA = new JButton ("Add");
JButton jbtnPrv = new JButton ("Previous");
JButton jbtnNt = new JButton ("Next");
JButton jbtnDl= new JButton ("Delete");
JButton jbtnSrch = new JButton ("Search");
Statement stmt;
String ad;
public Mainpage (String title)
super (title);
Container cont = getContentPane();
JPanel pane1 = new JPanel();
JPanel pane2 = new JPanel();
JPanel pane3 = new JPanel();
pane1.setLayout (new GridLayout (0,1));
pane2.setLayout (new GridLayout(0,1));
pane3.setLayout (new FlowLayout());
pane1.add(jFirstLab);
pane1.add(jSurnameLab);
pane1.add(jCityLab);
pane1.add(jCountryLab);
pane1.add(jSSNLab);
pane2.add(jFirstName);
pane2.add(jSurname);
pane2.add(jCity);
pane2.add(jCountry);
pane2.add(jSSN);
pane3.add(jbtnA);
pane3.add(jbtnPrv);
pane3.add(jbtnNt);
pane3.add(jbtnDl);
pane3.add(jbtnSrch);
cont.add(pane1, BorderLayout.CENTER);
cont.add(pane2, BorderLayout.LINE_END);
cont.add(pane3, BorderLayout.SOUTH);
jFirstName.addActionListener(this);
jSurname.addActionListener(this);
jCity.addActionListener(this);
jCountry.addActionListener(this);
jSSN.addActionListener(this);
jbtnA.addActionListener(this);
jbtnPrv.addActionListener(this);
jbtnNt.addActionListener(this);
jbtnDl.addActionListener(this);
jbtnSrch.addActionListener(this);
validate();
setVisible(true);
setDefaultCloseOperation(EXIT_ON_CLOSE);
pack();
setResizable(false);
try
Class.forname(sun.jdbc.odbc.JdbcOdbcDriver);
String plato = jdbc:odbc:socrates;
Connection con = DriverManager.getConnection(plato);
stmt = con.createStatment();
catch(SQLException ce)
System.out.println(ce);
catch(ClassNotFoundException ce)
System.out.println(ce);
public void actionPerformed(ActionEvent ae)
try
if(ae.getSource().equals(jbtnA))
fst = jFirstName.getText();
srn = jSurname.getText();
cty = jCity.getText();
cnty = jCountry.getText();
int sn = Interger.parseInt(jSSN.getText());
ad = "Insert into Employees
values('"+fst+"',"+srn+"','"+cty+"','"+cnty+"','"+sn+"')";
stmt.executeUpdate(ad);
JOptionPane.showMessageDialog(this, "Your details have been
registered");
catch(SQLException ce)
System.out.println(ce);
public static void main(String args[])
Mainpage ObjFr = new Mainpage("Please fill this registration form");
} -
How to loop and read repeating table data of infoPath form in Visual studio workflow.
Hi,
I am trying to read info Path form repeating table data in Visual studio workflow.
could anyone elaborate me in brief how to loop through repeating table and read all rows value one by one in workflow.
any help would be more then welcome.
Thanks...Hi Rohan,
According to your description, my understanding is that you want to create a Visual Studio workflow to get data from info path repeating table.
I suggest you can submit Repeating Table to a SharePoint List and then you can create a .NET workflow to read data from the SharePoint List.
Here are some detailed articles for your reference:
Codeless submitting InfoPath repeating table to a SharePoint list
Create a Workflow using Visual Studio 2010
Best Regards
Zhengyu Guo
TechNet Community Support -
How do I add a cell count to the data already in my tables in Numbers '08?
I am using Numbers '08, Mac OS X 10.8.2
I have a spreadsheet with a number of different tables. Each table refers to a style of music and lists songs in that style. I want to count the number of songs in each table (bearing in mind that the first row in each table is a heading and would not be counted). I also want this number to automatically update each time a new song is added or removed. Is there are way of adding this number count into data that is already stored or would I need to start from scratch with a specific table style?Smiley
I would approach this a little differently, but there are more similarities than differences.
I would change the names of the list tables from Table 1, Table 2, etc. to Jazz, Pop, etc.
Column A would have the song number, Column B, the song name.
In Column A, I would write: =IF(LEN(B)>0, ROW()-1 & "."
That's all the programming for the data tables. You can insert and delete and sort to your heart's content.
For the statistics I would have a table named "Summary". In the Summary table you would list the genres in Column A and would calculate the number of songs for each genre in Column B. The calculation of titles per genre would be:
=COUNTA(INDIRECT(A&"::B"))
The calculation for the combined total in the Footer row would be:
=SUM(B)
Here's a screen shot:
As you add genre tables, just add rows to the Summary table and expand the genre list, filling the count formula down.
I suggest that if you want to try my way, that you do it with a little sample table, like the one I used, to see if the formulas all work in Numbers 08. If anything fails, report it and we can try to adapt it to the old program.
Regards,
Jerry -
Add data to table view from input fields in a page
Hi
I am developing a BSP page which will be called from SRM shop transaction. After user enters the line item data, data will be passed back to shop transaction using OCI interface and the page attributes (URL).
(1) How can I add data from input fields to table view on a page on a button click? I am able to add first line but I could not retain first line data when I try to add the second line.
I am able to add multiple lines to table view if I use view and controller by adding to the line data to static attribute of the controller. I cant use the controller and view because I can not set the attribute to Controller automatically.
(2) Is there a way to pass an attribute (URL) to controller from SPRO? Like we pass an attribute to page automatically (Automatic page attribute).
(3) How can I call a controller and view and pass the page attribute to the controller on a button click from a page with out controller?
Thanks
SreenivasI'm trying to test the merge with the following data in a test.txt file:
ZZZZZ114923000004
1234Z400660000001
ZZZZZ114923000010
Getting an error:
SQL> @C:\dataformats\sql\pc12seriesMerge.sql
Directory created.
SP2-0552: Bind variable "17" not declared.
SQL>
here it the pc12seriesMerge.sql file
set serveroutput on
create or replace directory user_dir as 'c:\dataformats\incoming\';
DECLARE
v_filename VARCHAR2(100); -- Data filename
v_file_exists boolean;
v_file_length number;
v_block_size number;
f utl_file.file_type;
s varchar2(200);
lineString varchar(200);
v_account varchar(5);
v_IDN varchar(6);
v_quantity varchar(6);
BEGIN
v_filename := 'TEST.TXT';
DBMS_OUTPUT.PUT_LINE(v_filename); --shows filename
utl_file.fgetattr('USER_DIR', v_filename, v_file_exists, v_file_length ,v_block_size );
IF v_file_exists THEN
dbms_output.put_line('File Exists');
create table ext_table (
account varchar2(5),
idn number(6),
quantity varchar2(6)
organization external (
type oracle_loader
default directory user_dir
access parameters (
records delimited by newline
fields (
account position(1:5) char(5),
idn position(6:11) char(6),
quantity position(12:17) char(6)
location ('test.txt')
reject limit unlimited;
MERGE INTO id_req_stg t
USING (
SELECT account,
idn,
decode(quantity, '-', 0, to_number(quantity)) as quantity
FROM ext_table
) v
ON ( t.account = v.account AND t.idn = v.idn )
WHEN MATCHED THEN
UPDATE SET t.quantity = v.quantity
DELETE WHERE t.quantity = 0
WHEN NOT MATCHED THEN
INSERT (account, idn, quantity)
VALUES (v.account, v.idn, v.quantity);
ELSE
dbms_output.put_line('File Does Not Exist');
END IF; -- file exists
EXCEPTION
WHEN UTL_FILE.ACCESS_DENIED THEN
DBMS_OUTPUT.PUT_LINE('No Access!!!');
WHEN UTL_FILE.INVALID_PATH THEN
DBMS_OUTPUT.PUT_LINE('PATH DOES NOT EXIST');
WHEN others THEN
DBMS_OUTPUT.PUT_LINE('SQLERRM: ' || SQLERRM);
END;
/ -
How to add a running value from external field in a repeating table of SharePoint list
I'me creating an infopath form that will display a SharePoint list. I want to add a link control in a repeating table using the value of the first column per row but I'm getting an issue. the link control displays only the first row. thanks in advance.
Hi,
I found a similar thread posted by you here:
http://social.technet.microsoft.com/Forums/en-US/e1fa36c1-cb5c-456d-ba40-2f26301913d2/how-to-loop-through-each-row-in-a-repeating-table-using-sharepoint-workflows?forum=sharepointgeneralprevious
I suppose both the threads are reuqesting the method to get values from repeating table via workflow, so we can focus on the issue on the other case. If there is more requestment here, let me know.
Regards,
Rebecca Tu
TechNet Community Support
Maybe you are looking for
-
Please help: Application doesn't work after upgrade to Workshop 8 sp2 from sp1
Hi, Our application worked on workshop 8 sp1. After we upgrade system from sp1 to sp2, some of the part doesn't work propertly any more. 1. netui:select seems not bind form data propertly. For drop down list box in forms, although user has chosen som
-
Generating PDF from DA and continue to execute
Hi All, need your help... I have a DA with couple of steps: somewhere in the middle i have to generate PDF report and after that refresh one of the regions on the page well the problem is that after i generate the report using window.location.href =
-
Migrating Certificate Services to Server 2012 in a 2008 R2 AD Domain
We have a Windows 2008 R2 SP1 Active Directory domain. Our Enterprise Certificate server is running on Windows 2003 R2. We'd like to introduce a Windows 2012 server into our existing domain and migrate the Certificate Services to that new box. Are th
-
PDF documents send blank on my Mac Book
When I fill in information on a PDF and save it to my desk top. I send it as an attachment but when it arrives at end user the info is blank
-
Safari freezes after trying to open
I am using an emac with 512MB of ram running OS 10.4.7. Everytime I open safari it is painfully slow and when it does finally open a website, it crashes. If I try to do anything like go to another website or just close the program it crashes. I ran c