Adding/removing rows in a table
Hi,
how can I add/remove rows in a table in adobe acrobat pro? Please help.
It won’t look pretty, but you can manually redact the rows. This can either replace the removed rows with a specific color or you can make the removed spot white/no color.
Similar Messages
-
Adding/removing rows in TABLEVIEW
Hi. I've got a TABLEVIEW in one of my subscreens. But when load itab into that tableview with 'LOOP AT...' tableview appears but I can't add rows to it. I can't delete existing rows too. What should I add to my programm to have possibility of adding/removing rows from my tablewiev? Greetings. P.
Hi Friend,
To add/delete rows in your table view.
You have to add/delete rows from internal table fro where you are displaying values.
You have to write code in PAI..
In LOOP ... ENDLOOP check the OK_CODE if it is ADD (for eg.) you have to add a blank row to internal table by just passing a blank work area.
And if it is DELETE (for eg.) delete the row of that index (TABLEVIEW-CURRENT_LINE)...
for these two excersies you have to readjust lines of tableview...after taking number of lines from internal table (DESCRIBE TABLE INT_EX LINES WS_LINES
TABLEVIEW-LINES = WS_LINES) write this piece of code in Intialization.
Hope it will solve the problem.
Regards
Krishnendu -
How to default the value of a selectOneChoice when adding a row to a table
I have a table where one of the fields is a selectOneChoice. When adding a row to the table, the new row to be added displays the selectoneChoice field blank. I would like to have this field default to a specific value within the selectoneChoice when clicking the add button. Any suggestion on the code I need to add in the backing bean? Thanks in advance.
After some studying I figured out how to do this... code below for anyone interested:
DCIteratorBinding dcib = (DCIteratorBinding) bindings.get("someIterator");
RowSetIterator iter = dcib.getRowSetIterator();
Row newRow = iter.createRow();
newRow.setAttribute("yourFieldName",fieldDefaultValue);
iter.insertRowAtRangeIndex(0, newRow);
iter.closeRowSetIterator(); -
Adding and Removing Rows from a Table
So first time user here so hold on. I am creating a form in Adobe, using the LiveCycle Designer. It has help files on creating a table and having it grow as data is entered. So I create a table and follow the steps but nothing happens. Not sure what I am doing wrong here.
CustomerTable.Row1.instanceManager.addInstance(1);
This is code for my button. It is place in the first data row of the table. I inserted a subform so that I could have to buttons there.
I labeled everything accordingly (my table is called 'CustomerTable'). When I go to previeiw or save it and open as a regular pdf i will not give me more rows to enter information in. Is this syntax wrong or am I just retarded today?
BenPost your question in the LiveCycle Designer forum.
-
Adding/Deleting rows in a Table
I am trying to get a couple of buttons to work in a table to add/delete rows. I have followed the directions in the LiveCycle designer help and it isn't working.
In a test setup the only difference I can see from the help file is my Table is called Table1 and the subform containing the 2 buttons is called Subform1
I have therefore amended the script for the click event for the AddRow to
"Table1.Row1.instanceManager.addInstance(1);"
Any ideas where I am going wrong?
TIA
AntonyHi,
My usecase is that user enters a url with parameters for example in the text box--> http://host:port/employee/all?department=abc&location=india. Now i want to parse this url , get the parameters out and put it in the table so that it is convenient for users to modify these parameters. User has a option to add and delete the parameter in the table. So once all this is done and user clicks on say save i don't need to send this table to server. i just have to make sure that the values added/deleted from the table are in sync with the url. So in the server i get all the parameters from the url and continue.
Since this is only needed on the client side i wanted to know if we can create a table with no values and then say on tabbing out of the url text box call a javascript that takes value from it and adds new rows to the table.
I am using JDEVADF_MAIN_GENERIC_140109.0434.S -
Dynamically adding a row in a table in JSF
Hi All,
I am searching for a control in JSF using which I can dynamically add more than one row in a table. Currently I am handling this in javasript where I have to click on the "Add Row" button to add one more row at the bottom of the table. I want to get rid of javascript.
If anyone knows about such control then please help me.
Thanks in advance.
Regards,
Sakethello Saketh,
here is the code for Create Delete Update code where a row is added for every button click..and the JSF code is at the bottom.. today u r blessed with ocean. :-) have fun!!
package redrose;
import net.sf.hibernate.Session;
import net.sf.hibernate.Transaction;
import net.sf.hibernate.Query;
import javax.faces.model.DataModel;
import javax.faces.model.ListDataModel;
public class RowEntry {
private DataModel datamodel = null;
static Integer sid;
private Medata mdobject = null;
private Medata nm=null;
* @return Returns the newMdobject.
public Medata getNm() {
nm = new Medata();
return nm;
* @param newMdobject The newMdobject to set.
public void setNm(Medata newMdobject) {
this.nm = newMdobject;
* @return Returns the mdobject.
public Medata getMdobject() {
return mdobject;
* @param mdobject The mdobject to set.
public void setMdobject(Medata mdobject) {
this.mdobject = mdobject;
public DataModel getDatamodel()
datamodel = new ListDataModel();
Session hibSession;
try{
hibSession = HibernateSessionFactory.currentSession();
Query q = hibSession.createQuery("FROM Medata");
q.setMaxResults(9999);
datamodel.setWrappedData(q.list());
catch(Exception ex){
System.err.println("%%%% Error GetData %%%%");
ex.printStackTrace();
return datamodel;
* Inserting a new Record by reading from Client
public void insertEntry()
Transaction tx = null;
Session session = null;
try{
session = HibernateSessionFactory.currentSession();
tx = session.beginTransaction();
Medata dbmedata = new Medata();
dbmedata.setEmploy(nm.getEmploy());
session.save(dbmedata);
tx.commit();
session.close();
catch(Exception ex){
System.err.println("%%%% Modify Data %%%%");
ex.printStackTrace();
* Modify data
public void updateEntry()
int a =0;
if (this.datamodel == null) return;
Medata mdupdate = (Medata) this.datamodel.getRowData();
if (mdupdate == null ) return;
Transaction tx = null;
Session session = null;
try{
session = HibernateSessionFactory.currentSession();
tx = session.beginTransaction();
Medata dbmedata = (Medata) session.load(Medata.class,mdupdate.getId());
if (dbmedata != null){ // we have to update the record
dbmedata.setEmploy(mdupdate.getEmploy());
session.update(dbmedata);
else // we have to insert the record
dbmedata = new Medata();
dbmedata.setEmploy(mdupdate.getEmploy());
session.save(dbmedata);
tx.commit();
session.close();
catch(Exception ex){
System.err.println("%%%% Modify Data %%%%");
ex.printStackTrace();
* Delete Data
public void removeEntry()
if (this.datamodel == null) return;
Medata mdupdate = (Medata) this.datamodel.getRowData();
Transaction tx = null;
Session session = null;
try{
session = HibernateSessionFactory.currentSession();
tx = session.beginTransaction();
Medata dbmedata = (Medata) session.load(Medata.class,mdupdate.getId());
if (mdupdate == null ) return;
if (dbmedata != null){ // we have to update the record
session.delete(dbmedata);
tx.commit();
catch(Exception ex){
System.err.println("%%%% Delete Data %%%%");
ex.printStackTrace();
Here starts the JSF code
<%@ page language="java" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSF 'trial.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
<f:view>
<h:form>
<h:dataTable border="3" value="#{bla.all}" var="currentRow">
<h:column>
<f:facet name="header">
<h:outputText value="Employee Name" />
</f:facet>
<h:inputText value="#{currentRow.employ}">
</h:inputText>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Employee Number" />
</f:facet>
<h:inputText value="#{currentRow.id}"></h:inputText>
</h:column>
<h:column>
<f:facet name="header">
</f:facet>
<h:commandButton id="Delete" action="#{bla.insert}" value="Delete"></h:commandButton>
<h:commandButton id="Modify" action="#{bla.modify}" value="Modify"></h:commandButton>
</h:column>
</h:dataTable>
<h:commandButton id="Insert" action="#{bla.insert}" value="Insert"></h:commandButton>
<%--h:outputText value="#{bla.sid}"></h:outputText--%>
</h:form>
</f:view>
</body>
</html>
Faces-config file starts here
<managed-bean>
<description>Inserts a record</description>
<managed-bean-name>bla</managed-bean-name>
<managed-bean-class>redrose.RowEntry</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
-
hi experts ,
i am working on a table and on an action of button i need to add a row. The table has a lots of elements like input fields, dropdown by key, textviews etc. i have created a new row by incresing visible row count on action but the above mentioned elements are not editable . The cardinality of the node bound to table is 1..n and selection is 1....n.
Please suggest me a proper solution.
Thank you.Hi,
Try this code,
IPrivatePopUpMenuView.IProductsElement ele=wdContext.createProductsElement();
ele.setProductId(str1);
ele.setQuantity(str2);
ele.setPrice(str3);
ele.setName(str4);
ele.setDetails("Detailed discription for "+str4);
wdContext.nodeProducts().addElement(ele);
Here str1 str2 are all the value which unwant to add to table.
Regards,
H.V.Swathi -
Adding 10 rows in a table.
Hello,
I need to create a 10 rows in a table by clicking a button. I got it in javascript but i am unable to achieve it in ui5.
can you please help me on this.
Thanks and Regards,
Vicky.try this.
Example
-D -
Adding Additional Rows to a table in subform
I am fairly new to Adobe LiveCycle and would really appreciate some help. I have simple table and would like for the user to click "+" or "-" to manage the number of row. I can't figure out now to complete this...then arrive at a SubTotal.
Hi,
I made your form dynamic, also i added some subforms to make your flowed stuff look good and i added sum script to Totla field.
Form attached.
BR,
Paul Butenko -
Creating a form which allows the adding of rows to a table
Hi there,
I am trying to create a form to get declarations of trusteeships, directorships and large shareholdings of our company's directors, so that we can manage any conflicts of interest. Some directors will have one or two declarations to make; others may have a dozen or so.
I want to create a form for each director to make all of their declarations, but can't see how to create a table, with the ability to add more rows, if you have more declarations to make.
Is there a way t do this?This is not really possible to achieve with a form created in Acrobat. You
can create the fields in advanced and then show/hide them, but you can't
"re-flow" the file on the fly and add more form fields to it, pushing the
rest of the content down the page. For that you would need to use Adobe
LiveCycle Designer, which has a separate forum here. -
Adding one row to a table for displaying calculated amounts
Hi,
My requirement is like this:
We are getting values in the table with the columns
recno rectype amount
1 autofare 100
2 airfare 50
3 busfare 25
4 railfare 10
5 carfare 75
i am getting all the values from backend.
now our requirement is want to calculate amount for reno1,3,5 and row should be displayed as below:
recno rectype amount
1 autofare 100
3 busfare 25
5 carfare 75
amount 200 (here amount is not coming from backend.we need to add amount for recno 1,3 ,5 and iot should be displayed like that)
2 airfare 50
4 railfare 10
amount 60
please suggest how to proceed on this?
Regards,
Anithahi Anitha,
you have to create a separate value node for storing original elements and their subtotals in the order you want them in the table.
For showing totals you can use cell variant in the table to give a different look and feel for the subtotal row.
Add another attribute in the value node for storing the variant name. bind this attribute to selected cell variant of table column.
int subtotal =0;
for(int i =0;i < size;i++)
IPrivate<view>NodeElement dataElement = dataNode.getDataElementAt(i);
IPrivate<view>NodeElement tablelement = wdContext.node<table>().createElement();
wdCopyService.copycorresponding(dataElement, tableElement);
//set cell variant to blank for original rows
tableelement.setSelectedVariant("");
wdContext.node<table>().addElement(tablelement);
//Calculate subtotals and add them in another valuenode
subtotal = subtotal + dataElement.getAmt();
if(i ==3)// give condition at which you need to add subtotal row.
IPrivate<view>NodeElement subtotalelement = wdContext.node<table>().createElement();
subtotalelement.setSubtotal(subtotal);
//set cell variant for subtotal row
subtotalelementsetSelectedVariant("subtotal");
wdContext.node<table>().addElement(tsubtotalelement);
subtotal =0; //reset subtotal
hope this helps!
Monalisa -
Adding a row to a table with a button
Good day all;
I think I have now lost it... ;>))
LifeCycle Designer 8.05
Anyway, If the user of the form requires additional rows to enter infoamtion, I want them to be able to add a row using a button. I have tried using the following
Table"N".Row2.instanceManager.addInstance(1); ="N" is the table name.
I have done this on a couple of other forms but I must be missing something as I am geting the following error in the java Consol
"GeneralError: Operation failed.
XFAObject.addInstance:1:XFA:form1[0]:#subform[0]:#subform[1]:Button1[0]:click
The element [max] has violated its allowable number of occurrences."
The form is saves as a Arcobat 8 Dynamic XML form
I
Page 1 is flowed
Subform is flowed
Would someone be so kind as to point me in the right direction.
Thanks all
ChompThanks Radzmar;
You were correct.... It appears I was only looking at the bindings for the damn table not the row.......
Thanks again -
Temparally remove rows from a ADF table by action event of a jsf page.
Hello Developers,
I needed to temporally remove rows of a ADF table when execute action event of corresponding page.
So in this case my task can describe by following steps,
(1). I created a ADF table using <af:table> on a jsf page.
(2). The data populated using a VO.
(3). Several radio buttons added to the page for temporally remove rows from the table.
This means one radio button check, it responsible to temporally remove rows which contain empty cell values of a identified column.
If I check another radio button it should temporally remove identified data included rows but above removed (empty cell included rows) rows should appear in this event
My ultimate target is temporally remove rows of a table & re call again removed rows another event without again & again query from BC.
Pleas advice me to archive this task very sealy?
(Are there have a way to do this using EL or coding in Manage bean ?)
Thanks in advance..!Hi,
the DCIterator gives you an option to iterate over the fetched rows (the ones you see in the table). You can try call removeAndRetain() on these rows. This will not remove or delete rows but allows you to insert these rows back to the collection.
JavaDocs:
* Removes the row from the collection and then retain it for insertion
* into another location.
* <p>
* This method differs from <code>{@link #remove()}</code> in that
* it just removes the row from the collection. It does not
* remove the underlying Entity row(s) or database row(s).
* <p>
* This method also differs from <code>{@link #removeFromCollection()}</code>
* in that after the row is removed from the collection, it can be inserted
* back into the collection at another location.
void removeAndRetain();
Frank -
Adding row to a table in adobe forms
Hi Experts,
I have requirement in my form.
where i will be adding a row to a table when ever user clicks on the add row button.
pleae let me know how can i achieve this.
Thanks,
Santoshhttps://wiki.sdn.sap.com/wiki/display/ABAP/AdobeFormsfrom+Scratch
-
How to check the number of rows in a table with input data?`
Dear all,
I am having a table ( with declaration of 5 rows during the init ) there's a next button which will add another 5 rows by pressing. Let say the user ony key in 7 rows of data.. how should i track it? coz these data act as input to my bapi function. One of the input field of my bapi is to state how many rows of data that a user had key in. Thank you.I think ur problem is empty records, u dont want to process empty table rows.
m I right?
if yes then just before processing the data / records, check for empty records and remove unwanted rows from the node.
for (int i = 0; i < TableNode.size(); i++)
if all cells of row(i) are empty
remove row(i) from Table Node.
OR if you dont want to remove empty rows from display (screen), then at the time of processing, transfer useful rows to a separate node and process that node.
Best Regards
Deepak
Maybe you are looking for
-
FAQ - Microsoft Operating Systems
How to Downgrade from Windows 8 Pro to Windows 7 Professional Operating System Reinstall Instructions (Update 8-5-2010) Proactive Solutions: Applications and Solutions Dell PC Diagnostics (1-13-2012) Dell Support Center 3.0 Download Dell Driver Downl
-
My computer keeps coming up with a message that i need to restart it
my computer keeps coming up with a message that i have to restart it it never used to happen now it happens nearly every day
-
Is it possible to embed fonts in Keynote theme?
I've created custom theme for Keynote'08 and everything works fine. My theme uses corporate fonts. At the moment the theme is distributed with additional font pack and the user have to install both, but I'd like to simplify the theme installation pro
-
MOBILR FORMAT KEEPS TAKING CONTROL OF MY BROWSER. I HATE MOZILLA (FORMER LOYAL USER)
-
Inherit and POSIX buttons disabled for AFP
When I go in the protocols Pane of the Workgroup Manager, the settings for AFP won't let me chose between POSIX or Inherit behaviour. The buttons are disabled. The Windows setting let me do this though. How can I get control back over those buttons a