Table Creation of new rows in editable mode
Hello,
I'm using Jdev11g.
I create a JSF page with a table, I add a button connected to CreateInsert bindings.
Everything works fine but I want that when a new row is created on the table, the new row must be in editable mode.
Thank's
Hi Max:
According to what you described, it's really wierd. An ADF table is Surrounded by a panelCollection or not doesn't matter in terms of CreateInsert operations, I think. Also each step you said OK doesn't mean that step is 100% problem free towards your final goal. For example, when you drag and drop and ADF table onto a JSF page, you forget to turn on 'row selection', it will be OK, you won't get any error message, but later on when you find that you need to turn it back on, you have to go back to JSF page source, to manually added codes to do so.
The simpliest solution and quickest one is to reinitiate a clean ADF project and do it all over again. It's simple straightforward in my view. Probably don't use PanelCollection first, just drop your ADF table on a form, or af:panelForm, but make sure your table and 'CreateInsert' button is surrounded by a form, otherwise, when you click on 'CreateInsert', nothing will happen. When everything works, then probably back it up and replace your form or af:panelForm with panelCollection. See how it goes.
Thanks,
Alex
Similar Messages
-
Vertical scroll in edit mode and Open a complete row in edit mode
Any help would be greatly appreciated , if someone can share their knowledge/experience on the following two items ..
1. Can you please help on how to implement vertical movement in data grid (Using the up and down arrows to move from an editable cell in one row to the same column in the previous/next row) just like using tab to move in the same row, from one editable cell to the next? Please note we are able to implement the user navigation in editable mode in one single row and the user tabs from left to right and the cells render in edit mode without issues.We are trying to implement this in a vertical fashion to have the datagrid cell rendered in edit mode from one column in one row to the same column in the next row ..We are tryinng to simulate the same user feel when a user navigates in Excel sheet.
2. Is there a way to open a cell in Flex datagrid edit mode by default? I understand that the itemrenderer for that column could be a text input but I don’t always want that cell to be in an edit mode. When the user comes to the screen, it needs to be in an edit mode just as a visual indicator that it can be edited. Once the user finishes editing, the cell can use the default itemrenderer. In other words, how do we fire an edit event on a cell when it is rendered for the first time by default? In nut shell how do you open all fields in the entire row in edit mode (rather opening one cell at a time it in edit mode as the user tabs from left to right )Can anyone help answering the question we have ? Any pointers would be greatly appreciated
-
Creation of new Row in Tree Table
We are creating a new row using CreateListener which is written in Bean, after creating the row, we are adding it to the iterator and the new row is not getting highlighted and focus is not in new row in the table by default. It takes an click to make it editable. 'setActiveRowKey()' method didnot help here which is used in the af:table component to achieve the same.
Any pointers regarding this issue would be helpful..
Thanks,
ShruthiHi Max:
According to what you described, it's really wierd. An ADF table is Surrounded by a panelCollection or not doesn't matter in terms of CreateInsert operations, I think. Also each step you said OK doesn't mean that step is 100% problem free towards your final goal. For example, when you drag and drop and ADF table onto a JSF page, you forget to turn on 'row selection', it will be OK, you won't get any error message, but later on when you find that you need to turn it back on, you have to go back to JSF page source, to manually added codes to do so.
The simpliest solution and quickest one is to reinitiate a clean ADF project and do it all over again. It's simple straightforward in my view. Probably don't use PanelCollection first, just drop your ADF table on a form, or af:panelForm, but make sure your table and 'CreateInsert' button is surrounded by a form, otherwise, when you click on 'CreateInsert', nothing will happen. When everything works, then probably back it up and replace your form or af:panelForm with panelCollection. See how it goes.
Thanks,
Alex -
Af:table new row not editable
Hi, I am trying to insert and edit a new row in table. I have followed the below steps.
1. Dropped a vo as a table (not read-only)
2. surrounded it with a panel collection and in toolbar facet created a toolbar and under which I have dropped createInsert method of
vo as commandToolbarButton.
3. set table's editingMode property to clickToEdit and partialTriggers property to commandToolbarButton's id.
I deployed the application into integrated wls, I clicked on the create button to insert a new row and provided values in all fields then I clicked on some other existing row, now when I clicked on the new row, which was just created, none of the fields/columns are editable.
Have I missed anything here? Can you tell me how to fix this?
Thanks in advanceThanks for your answer.
Your solution is not working but if i put the styleclass instruction in the outputText element, it is working...
Is there any other solution ???... because in this solution, we are obliged to put this EL in each outputText element of the tab.
<af:column sortable="true" headerText="Cat" formatType="text"
sortProperty="cat">
<af:outputText value="#{log.cat}" styleClass="#{(log.prio == 'DEBUG') ? 'bgDebug' : (log.prio == 'WARN' ? 'bgWarn' : '')}"/> </af:column> -
Struts : creation of new row problem.
I have a problem with creation of a new row, using struts.
I've created simple struts browse-edit page. From browse page I go to 'edit-new' page. My object have a primary key - ID. I'm initializing it from sequence in create() method after call to super.create().
So, when I'm forwared to 'edit-new' form from 'browse' form new row created with id taken from sequence. When I go back to 'browse' form by 'update' action it looks that another row created in View object (and onother ID is taken from sequence). Then, if I have right understanding of how it works, all attributes from first created row are copied to the second row. When ID is copied, I've got
java.lang.reflect.InvocationTargetException: oracle.jbo.TooManyObjectsException: JBO-25013: Too many objects match the primary key oracle.jbo.Key[22 ].
oracle.jbo.server.EntityImpl oracle.jbo.server.EntityCache.add(oracle.jbo.server.EntityImpl)
EntityCache.java:361
void oracle.jbo.server.EntityCache.replace(oracle.jbo.server.EntityImpl, oracle.jbo.Key)
EntityCache.java:631
void oracle.jbo.server.EntityImpl.setAttributeValueInternal(int, java.lang.Object)
EntityImpl.java:2048
void oracle.jbo.server.EntityImpl.setAttributeValue(int, java.lang.Object)
EntityImpl.java:1844
void oracle.jbo.server.AttributeDefImpl.set(oracle.jbo.Row, java.lang.Object)
AttributeDefImpl.java:1688
void oracle.jbo.server.EntityImpl.setAttributeInternal(int, java.lang.Object)
EntityImpl.java:823
void cern.ppt.lhc.evm.struts.UnitConversionsImpl.setId(oracle.jbo.domain.Number)
UnitConversionsImpl.java:69
void cern.ppt.lhc.evm.struts.UnitConversionsImpl.setAttrInvokeAccessor(int, java.lang.Object, oracle.jbo.server.AttributeDefImpl)
UnitConversionsImpl.java:154
void oracle.jbo.server.EntityImpl.setAttribute(int, java.lang.Object)
EntityImpl.java:750
void oracle.jbo.server.ViewRowStorage.setAttributeValue(int, java.lang.Object)
ViewRowStorage.java:913
void oracle.jbo.server.ViewRowStorage.setAttributeInternal(int, java.lang.Object)
ViewRowStorage.java:829
void oracle.jbo.server.ViewRowImpl.setAttributeInternal(int, java.lang.Object)
ViewRowImpl.java:984
void oracle.jbo.server.ViewRowImpl.setAttrInvokeAccessor(int, java.lang.Object, oracle.jbo.server.AttributeDefImpl)
ViewRowImpl.java:961
void oracle.jbo.server.ViewRowImpl.setAttribute(int, java.lang.Object)
ViewRowImpl.java:753
void oracle.jbo.html.struts11.BC4JActionForm.setAttribute(oracle.jbo.AttributeDef, java.lang.Object)
BC4JActionForm.java:91
void oracle.jbo.html.struts11.BC4JActionForm.setAttribute(java.lang.String, java.lang.Object)
BC4JActionForm.java:103
void cern.ppt.lhc.evm.struts.UnitConversionsViewForm.setId(java.lang.Object)
UnitConversionsViewForm.java:18
java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])
native code
void org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(java.lang.Object, java.lang.String, java.lang.Object)
PropertyUtils.java:1650
void org.apache.commons.beanutils.PropertyUtils.setNestedProperty(java.lang.Object, java.lang.String, java.lang.Object)
PropertyUtils.java:1545
void org.apache.commons.beanutils.PropertyUtils.setProperty(java.lang.Object, java.lang.String, java.lang.Object)
PropertyUtils.java:1574
void org.apache.commons.beanutils.BeanUtils.setProperty(java.lang.Object, java.lang.String, java.lang.Object)
BeanUtils.java:919
void org.apache.commons.beanutils.BeanUtils.populate(java.lang.Object, java.util.Map)
BeanUtils.java:726
void oracle.jbo.html.struts11.MultipartUtil._populate(java.lang.Object, java.lang.String, java.lang.String, javax.servlet.http.HttpServletRequest)
MultipartUtil.java:194
void oracle.jbo.html.struts11.BC4JRequestProcessor.processPopulate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.apache.struts.action.ActionForm, org.apache.struts.action.ActionMapping)
BC4JRequestProcessor.java:417
void org.apache.struts.action.RequestProcessor.process(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
RequestProcessor.java:246
void org.apache.struts.action.ActionServlet.process(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
ActionServlet.java:1292
void org.apache.struts.action.ActionServlet.doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
ActionServlet.java:510
void javax.servlet.http.HttpServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
HttpServlet.java:760
void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
HttpServlet.java:853
void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
ServletRequestDispatcher.java:724
void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)
ServletRequestDispatcher.java:309
boolean com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.ApplicationServerThread, com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.EvermindHttpServletRequest, com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
HttpRequestHandler.java:767
void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(java.lang.Thread)
HttpRequestHandler.java:259
void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run()
HttpRequestHandler.java:106
void EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run()
PooledExecutor.java:803
void java.lang.Thread.run()
Thread.java:484
If I switch off filleng ID from the sequence everething works. It looks, that it fails, when It's coping ID (it gets two rows with the same ID).
So, my question is - why two rows creating? And is there a way how to solve this problem, without switching off filling ID from a sequence (I really need this)?After reading this I am not sure what the solution is.
I've created a VO that contains 2 EO's that are using sequence and NO trigger. I've tested this in the app module testor and it works. After using the Wizard to build a Struts/BC4J app I get the following when pressing "update" after creating a new record - "JBO-25013: Too many objects match the primary key oracle.jbo.Key[279 ]".
Charles Gayraud suggested changing the method that sets the PK but I'm not sure what to change as there are 2 sections that deal with setting the PK, neither of which match the methods in Charles suggestion. see below
So what is the solution here?
Thanks,
Bill G...
public void setParentId(Number value) {
setAttributeInternal(PARENTID, value);
and
// BG ADD
protected void create(AttributeList attributeList) {
super.create(attributeList);
SequenceImpl s = new SequenceImpl("S_PARENT", getDBTransaction());
setAttribute("ParentId", s.getSequenceNumber());
// ParentImpl.java FULL LISTING
package mypackage27;
import oracle.jbo.AttributeList;
import oracle.jbo.Key;
import oracle.jbo.RowIterator;
import oracle.jbo.domain.Number;
import oracle.jbo.server.AttributeDefImpl;
import oracle.jbo.server.EntityDefImpl;
import oracle.jbo.server.EntityImpl;
// bg add
import oracle.jbo.server.SequenceImpl;
// --- File generated by Oracle Business Components for Java.
public class ParentImpl extends EntityImpl {
protected static final int PARENTID = 0;
protected static final int PARENTDESC = 1;
protected static final int CHILD = 2;
private static EntityDefImpl mDefinitionObject;
* This is the default constructor (do not remove)
public ParentImpl() {
* Retrieves the definition object for this instance class.
public static synchronized EntityDefImpl getDefinitionObject() {
if (mDefinitionObject == null) {
mDefinitionObject = (EntityDefImpl) EntityDefImpl.findDefObject(
"mypackage27.Parent");
return mDefinitionObject;
* Gets the attribute value for ParentId, using the alias name ParentId
public Number getParentId() {
return (Number) getAttributeInternal(PARENTID);
* Sets <code>value</code> as the attribute value for ParentId
public void setParentId(Number value) {
setAttributeInternal(PARENTID, value);
* Gets the attribute value for ParentDesc, using the alias name ParentDesc
public String getParentDesc() {
return (String) getAttributeInternal(PARENTDESC);
* Sets <code>value</code> as the attribute value for ParentDesc
public void setParentDesc(String value) {
setAttributeInternal(PARENTDESC, value);
// Generated method. Do not modify.
protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef)
throws Exception {
switch (index) {
case PARENTID:return getParentId();
case PARENTDESC:return getParentDesc();
case CHILD:return getChild();
default:return super.getAttrInvokeAccessor(index, attrDef);
// Generated method. Do not modify.
protected void setAttrInvokeAccessor(int index, Object value,
AttributeDefImpl attrDef) throws Exception {
switch (index) {
case PARENTID:setParentId((Number) value);
return;
case PARENTDESC:setParentDesc((String) value);
return;
default:super.setAttrInvokeAccessor(index, value, attrDef);
return;
* Gets the associated entity oracle.jbo.RowIterator
public RowIterator getChild() {
return (RowIterator) getAttributeInternal(CHILD);
* Creates a Key object based on given key constituents
public static Key createPrimaryKey(Number parentId) {
return new Key(new Object[] { parentId });
// BG ADD
protected void create(AttributeList attributeList) {
super.create(attributeList);
SequenceImpl s = new SequenceImpl("S_PARENT", getDBTransaction());
setAttribute("ParentId", s.getSequenceNumber()); -
WPC Problem after creation of new Site - no "Edit Page" Link available
Hello,
I have a problem with WebPageComposer (WPC) and Edit Page link.
We are currently on EP 7.01 SP6.
(I have the wpc_editor_role for my user)
I am doing the following:
1) I create a new site, (derived permissions for all folders is wpc_editor_role - Full Control),
2) I Create some article within its Site Content folder
3) I create a new web page in its Web Pages folder
4) assign the article to the web page and publish it
5) add web page within Site Navigation as a new node
6) I used Publish Site Navigation
After clicking on the web page within Web Pages folder it does a preview.
Our older WPC content does display the Edit Page link - the new one does not.
What step am I missing here?
Maybe it is an upgrade issue?
Best Regards, Thomas
P.S.: copying one of our older WPC pages into my new site + renaming it via KM + removing old content + assigning new one does display the correct link after publishing it! Any indeas?Dear Thomas,
It sounds like your are doing all the right actions, I don't think that your missing any step in the process, but please consider the following.
Are you using a custom WPC layout template? The reason I ask is that I have developed a number of WPC custom templates and in some circumstances I have needed to remove/hide the "pageheader" section of the template. This action removed the links from displaying at the top of the page. Try creating and publishing a web page using a SAP standard WPC layout and see if the edit link appears once the page is published.
The editing and preview page views do not display the "edit" link, they only display the other page header links that can be assigned to a page. The edit link is only visible when viewing the page via the portal, not in edit mode. Another question, was the deployment of KMCWPC successful and without error? I have experienced issues where the deployment did not fully complete, causing some subtle issues regarding publishing of WPC content and redeploying KMCWPC fixed the issue. I hope this helps.
Best Regards,
Chris -
How to add one button at top of table that creates new rows each time a user clicks on it?
In the help guide, there is an example of adding buttons to each row - an Add Row and Delete Row button. I am interested in having one button at the top of the table that can add rows.
Hi,
You can create a table with a header row, where you can place your add button in one of its cells.
Then you need a script to create a new row in the buttons click event. In a table named 'Table1' with a row named 'Row1' it looks this way:
Table1._Row1.addInstance() -
Problem with refresh issue in Table Overflow Area for LOV in edit mode
Hi Friends,
I am facing a problem with LOV if i keep this in Table Overflow area,
When i select a Employee name from the List of Value clicking on select button it will not refresh the lov to display the currently selected Employee Name, but if i click on show and hide link of Table overflow the selected employee name will be displayed.
But the if move the same lov item from Table Overflow area to Table layout it works fine.
I tried my best to look into this but i could not, can any one suggest me what i need to do for this refresh issue.
Regards,
RahulHello Rahul,
Strange, it's working for me.
I assume you added Employees as reference entity to your updatable entity in your ViewObject.
Did you uncheck "Key attribute" in EmployeeId of your reference entity?
Anything in the log?
Groeten,
HJH -
To insert a new row in a table control without affecting the other rows
Halo experts,
I have a Table control TCTRL in a program .
The lt_tab contains two cols A and B
In change mode of the transaction Col A is in display mode and Col B is in change mode
When i press the + button to insert a new blank entry .I need a blank row with both col A and col B input enabled w/o affecting the display of above and below rows of table control
In PBO module of subscreen 101
LOOP AT lt_tab WITH CONTROL tctrl.
MODULE tctrl_status.
endloop.
In the user command of 0101
i am writn
When 'INS'.
INSERT INITIAL LINE INTO itab.
Inside MODULE tctrl_status.
IF lt_tab IS INITIAL.
LOOP AT SCREEN.
IF screen-name = 'COLA'.
screen-input = 1.
ENDIF.
ENDLOOP.
MODIFY SCREEN.
endif.
but the problem here is still the Col A is in display mode and Col B is in change mode after output
.Here modify statement is happening but it does not update the TCTRL-COLS-Screen structure for the col A ( which I have set statically while designing the screen ).I dont want to make the entire row in edit mode only the inserted row ( for both Col A and Col B) and the rest shud remain as it is
Thanks
Kalluhi Naveen
I have made my tctrl input disabled for both the columsn and
I have a module before the PBO loop where I set the like
module set_tctrl_status.
IF gv_ok_code NE gc_disp.
LOOP AT tctrl-cols INTO gs_cols.
IF gs_cols-screen-name = 'ColB'.
gs_cols-screen-input = 1.
MODIFY tctrl-cols FROM gs_cols INDEX sy-tabix.
ENDIF.
ENDLOOP.
This is just to set the Col B in edit mode when in change and create status.
But if i press the INS button for that change i am coding inside the loop endloop of the pBO like
if itab is initial.
LOOP AT tctrl-cols INTO gs_cols.
gs_cols-screen-input = 1.
MODIFY tctrl-cols FROM gs_cols INDEX sy-tabix.
endloop.
But the problems i it is setting the enite rows as input enabled . I want tos et only that row inpur enabled -
Table Control in Editable mode
Hello All,
I have created an infotype which has a table control. But all the table control lines are in non-editable mode. I would like to have all the lines in editable mode.
Kindly help out.
Regards,
shailsIf your internal table contains no record and when you are refering to the table control then all the lines will get disabled.
Now you will be knowing the number of lines your table control displays in singe page...say 10 lines.
So initially in the PBO append 10 initial lines to your itab. then set the property lines of the table control to the total lines of internal table.
Now in pbo capture the user command page down and append 10 initial lines to your itab.
Hope you got the idea.
Now if your itab already has some records , then just set the lines as total record count of your internal table.
Also change the property in the screen attributes for each field of the control -
Ctrl+tab is not working in editing mode
I have JcheckBox and JTable in my JPanel. When user clicks or presses F2 to edit any cell value of the JTable a comboBox will appear with possible values. (This comboBox is coming from table CellEditor). When user presses ctrl+tab from the table focus should transfer to JComboBox all time. It is working only when the user presses ctrl+tab from the table cell which is not in editing mode. If the user presses ctrl+tab from the table cell which is in editing mode (i.e. focus is on the ComboBox of the cellEditor) it does not work. Please help me to find the solution.
I give a sample code here for your reference.
public class Frame1 extends JFrame {
public Frame1()
super();
this.setLayout( null );
this.setSize( new Dimension(400, 300) );
JTextField ch = new JTextField();
ch.setVisible(true);
ch.setBounds(10, 10, 10, 10);
this.add(ch, null);
DefaultTableModel tmodel = new DefaultTableModel(3, 1);
tmodel.setValueAt("0 0 1",0,0);
tmodel.setValueAt("1 0 1",1,0);
tmodel.setValueAt("2 0 1",2,0);
JTable custLayersTable = new JTable(tmodel);
custLayersTable.getColumnModel().getColumn(0).
setCellEditor(new ComboEditor());
custLayersTable.setBounds(new Rectangle(40, 40, 280, 145));
custLayersTable.setSurrendersFocusOnKeystroke(true);
this.add(custLayersTable, null);
public static void main(String[] args)
Frame1 a = new Frame1();
a.setVisible(true);
final class ComboEditor extends AbstractCellEditor
implements TableCellEditor
public Component getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int column)
Vector<String> layerValSet = new Vector<String>();
for(int i=0; i<3; i++)
layerValSet.add(row+" "+column+" "+i);
mComboModel = new DefaultComboBoxModel(layerValSet);
mComboModel.setSelectedItem(value);
mEditorComp = new JComboBox(mComboModel);
return mEditorComp;
public Object getCellEditorValue()
return mEditorComp.getSelectedItem();
private DefaultComboBoxModel mComboModel;
private JComboBox mEditorComp;
}Thanks a lot for your reply.
Since the textField is in a different class i could not use the transferFocus API directly. I tried the following code in the keyreleased event of Combo Box but it was not working.
KeyboardFocusManager.getCurrentKeyboardFocusManager().focusNextComponent(
e.getComponent().getParent());
I also tried the following code in stopCellEditing and is not working.
KeyboardFocusManager.getCurrentKeyboardFocusManager().focusNextComponent();
Is there any other way to achieve this? -
Making some rows non-editable in ALV grid
hi
I am using reuse_alv _grid _display to display the output. I want to make some of the rows non-editable based on some conditions. please help.Hi Vijay / Manisha / Murugan
Is this question answered? The link is presently not working.
I have a same requirement. I am using reuse_alv _grid _display to display the output. After click on 'Add row'
button, the alv should add a row in edit mode and remaining all other rows in display mode. Is that possible using reuse_alv _grid _display?
Any kind of inputs regarding this will be damn damn helpful. Thanks. -
Make only the new row in a table editable and other rows display mode.
Hiii all,
I am working on the component GSWISET, there is a table view for substitutes, the requirement is to show all the rows in the table view in display mode. Whenever the user clicks the button (Add employee), a search popup triggers and the user selects an employee from that and it will come as a new row in the table view. Here I need to be able to make only the new row editable and all the other rows in display mode.
Could you please suggest a way to achieve this. Thanks for your time..Hi,
Try with the code below in.htm page
data: lv_displaymode TYPE string.
IF controller->view_group_context->is_view_in_display_mode( controller ) = abap_true.
lv_displaymode = 'X'.
ELSE.
lv_displaymode = ' '.
ENDIF.
if lv_displaymode = 'X'.
<chtmlb:tableExtension tableId = "Substitutes"
layout = "FIXED" >
<chtmlb:configTable actions = "<%= controller->gt_button %>"
id = "Substitutes"
onRowSelection = "select"
selectedRowIndex = "<%= substitutes->SELECTED_INDEX %>"
selectedRowIndexTable = "<%= substitutes->SELECTION_TAB %>"
table = "//Substitutes/Table"
width = "100%"
selectionMode = "<%= substitutes->selection_mode %>"
visibleFirstRow = "<%= substitutes->VISIBLE_FIRST_ROW_INDEX %>"
usage = "ASSIGNMENTBLOCK"
headerText = "<%= controller->gv_header_text %>" />
</chtmlb:tableExtension>
else.
<chtmlb:tableExtension tableId = "Substitutes"
layout = "FIXED" >
<chtmlb:configTable actions = "<%= controller->gt_button %>"
id = "Substitutes"
onRowSelection = "select"
selectedRowIndex = "<%= substitutes->SELECTED_INDEX %>"
selectedRowIndexTable = "<%= substitutes->SELECTION_TAB %>"
table = "//Substitutes/Table"
width = "100%"
selectionMode = "<%= substitutes->selection_mode %>"
allRowsEditable = "TRUE"
visibleFirstRow = "<%= substitutes->VISIBLE_FIRST_ROW_INDEX %>"
usage = "EDITLIST"
headerText = "<%= controller->gv_header_text %>" />
</chtmlb:tableExtension>
endif.
Regards,
Gangadhar.S
Edited by: gangadhar rao on Dec 24, 2010 12:49 PM -
How to add a new row in rich table when a button clicks which isinatemplate
i am new to j developer 11g. i have problem when i click a reset button located in the template
will clear all data from the rich table and it is in a add mode,ie table with only one empty row
Regards
rajesh
Edited by: [email protected] on Mar 10, 2009 11:30 PMHi,
and here is a blog entry about global buttons in templates
http://thepeninsulasedge.com/frank_nimphius/2007/11/23/adf-faces-rc-implementation-strategies-for-global-buttons-in-page-templates/
Frank -
Table in edit Mode with infinite lines ?
Hi,
We are designing an application, where as one of the requirement is to have a table with infinite open lines for user input.
By Default table should be in EDIT mode and user should be able to enter values without the need to click on a line to insert a new row every time he/she wants to input a value.
How can we acheive this requirement in WDA. In classical dynpro it is very easy to do this.. but I am struggling to find a way around for this..
Thanks in advance.
Regards
Rohit ChowdharyHi Rohit,
>My experience with tables that are over 1000 lines, showed performance and
>even stability issues for IE.
I can only emphasize what Phil said. Especially, in your case with an editable table, displaying more than 50 rows at a time (depending on the number of columns) can cause a bad user experience, because the browser needs to handle all the html and javascript we throw at it.
Imho there are two solutions:
(a) Try to use the ALV
(b) In case you would like to use the table ui element, you could add enough empty context elements to the context node where the table binds to, so that a user has always plenty of empty rows available. A toolbar button could provide the user with more initial lines.
Best regards,
Thomas
Maybe you are looking for
-
I dropped my HP Mini 110-3131DX directly on it's spine and ever since it only turns on to show the startup screen and these error messages: HARD DISK ERROR Please run the hard disk test in system diagnostics. Hard Disk 1 (3F1) F2 System Diagnostics
-
I uploaded two albums and put them on my boyfriends ipod it asked for me to upgrade his ipod and i did, them after when I checked to see if the albums had loaded they had, but all his other music had dissapeared, how do I get it back there were thous
-
Script to change fill color based on excel data?
Hi. I'm curious if there is a way to change the fill color of, say a rectangle, in Illustrator based on data in an excel spreadsheet (csv or whatever). For example: say the data in the excel cell is 1 and that corresponds to the rectangle in Illust
-
Exporting a inDesign CS2 File to Illustrator CS2 and Preserving LInks
Hi, I have 3 InDesign CS2 files that have several links which have been modified withing the file. The printer needs these files in Illustrator format with the links preserved, so they can swap images, adjust colors and such. I am having a problem ex
-
Asset Master to be assigned to more than one WBS element
Hi Guys I have a scenario in which a Asset should be assigned to more than one Project, i.e. WBS Element. Is it possible by any way to assign a asset to more than one WBS element. Warm Regards Bala