Display new row on Entry
Hello all,
I have an application that contains master and details relationship.
The problem is that when I new a record, the child contains no row, the layout of the child group will not be shown.
"No row found" was shown in the page.
I have tried to enable the "Display new row on Entry" to true or when no row found, however, it is not working.
Any suggestion to enable the layout of the child group even it contains no row?
Thanks
Neon,
See this thread for a solution:
Re: Master-detail page with form layout --> insert only --> not in create mode
Steven Davelaar,
JHeadstart Team.
Similar Messages
-
Display 2 rows per entry with ALV Grid
Hi Experts,
I need to display the results of a report with ALV Grid. The Problem is: I need to display the resultdata (some numbers etc..) in one row and then add a second row with the longtext.
The ALV should look somthing like this:
resultdata1 resultdata2 resultdata3
longtext1
resultdata1 resultdata2 resultdata3
longtext1
resultdata1 resultdata2 resultdata3
longtext1
Can anyone of you give me hint on how to do that?
(The row_pos and col_pos ind the fieldcat do not do the trick )
Thanx
Felixhi ,
You can do this
resultdata1 resultdata2 resultdata3
longtext1
resultdata1 resultdata2 resultdata3
longtext1
resultdata1 resultdata2 resultdata3
longtext1
Create two internal table .
one for : resultdata1 resultdata2 resultdata3
second for longtext1
see that both tables have matching primary key .
then can match the data and append in another third table .
regards
Deepak. -
Insert new rows based on user selection on a table display on the screen
Hi..
In my requirement i need to display the line items of a PO# to the user on the screen for specific fields. Each row should also include an additonal checkbox when displayed for the user. When the user checks this check box or clicks on it a new row should be inserted below to that row with the existing data of that row being copied to newly inserted row and allowing the user to make any changes.
The newly inserted row should also include a check box , so that when the user checks it again a new row should get inserted. Finally what ever data user enters on the screen, i should be able to update my internal table with those new values and records.
Appreciate if anyone can guide me on how to proceed on this or any alternative approaches.
Will reward helpful answers.
Thanks.Hi ..
Can you please be more detailed. First I need to know how to create the initial table display for the existing line items and then the techniques for inserting the new rows based on the check marks and finally add those news rows to my existing internal table..
Appreciate ur help.
Thanks. -
Unable to insert new row on service entry
Hello,
We are unable to insert a new row on a Service Entry. The issue appeared after we did a EHP5 upgrade. How can this be fixed, so we can insert a new row under the basic data tab in the service entry?
Thanks!It needs to be adopted over from the PO sub line items. If you have 1 PO line item, and within that line item there are multiple sub line items, then those will be carried over as new line items on the Service entry sheet. If you have just one line item and one sub line item, then it will only be 1 line item on the SES... I dont think you can just add a line item on a SES without reference to a PO (from a standard perspective - although i could be wrong)>
Thats if I understand you correctly.
Thanks -
How to insert date column entry for new row from adf bc tester
Hi,
JDeveloper version 11.1.1.5.0
I have a table with a DATE column. I am trying to insert a new row into the table from the ADF BC Tester. While providing value to the DATE column I am hitting the below error:
(oracle.jbo.domain.DataCreationException) JBO-25009: Cannot create an object of type:oracle.jbo.domain.Date from type:java.lang.String with value:2011/12/06
Please let me know what should be the format to specify date value while inserting entry using BC Tester.
Thanks
RathnamHi,
Check
operation not allowed on java.lang.object -
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 -
=NOW() updates the date and time continuously, I don't want to do that. I just want the date and time in that cell to stay the same after that row is created. Seems like this would be easy, but I can't figure it out.
My preferred scheme is a variant of Barry's proposal 2
create the new row
select the cell in which you want to insert the date
type the shortcut dedicated to one of the four "Insert date" services delivered with WordService from Devon Technologies (FREE)
On a French keyboard, only one of the default shortcuts apply : cmd % which inserts the long date.
But we may edit these shortcuts.
Yvan KOENIG (VALLAURIS, France) mercredi 6 juillet 2011 15:12:16 iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8
Please : Search for questions similar to your own before submitting them to the community
To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer ! -
How do I create a new row on tab out of the last column, last row?
JDev 11.1.2.1.0.
I've seen a few topics on this but none that I think were really very good solutions.
Use Case:
On tab out of the last column in the last row, a new row should be added to the end of the table. Bonus points for setting the focus to the first <af:inputText> of the newly created row.
Complications:
1. I'm having a heck of a time trying to find a function that returns the column's displayed index. Sadly, <column binding>.getDisplayIndex() returns -1 unless the user has manually re-ordered the column.
2. Value Change Listeners only fire if there is a value change. Guess that means I need to do client/server listeners to check each and every <af:inputText> for a tab press?
3. I'm not even going to get into setting the focus. With all the templates, regions, etc. going on, it's dang near impossible.
Any ideas on how to attack this one?
WillHi,
You will need to use the Run Engine Installation Wizard found on the Tools menu. In addition you need to create a installation set for the operator interface.
Look at Chapter 16 Distrubuting TestStand ( chapter 17 for version 2).
Once you have created your installation, install is on your new system.
The serial number etc is part of the process model. When you run the entry point 'Test UUTs' the PreUUT callback is executed which asks the user for the serial number.
Hope this helps
Ray Farmer
Regards
Ray Farmer -
How to create multiple new rows in ADF Table?
Hello,
being new to ADF Faces/BC I managed to display data in an ADF Table and create new entries using the "CreateInsert" operation (one at a time).
Now, the next task is to create multiple new rows at the same time, set some default values and display the new rows in the ADF table. Then the user will enter additional data and commit the new rows.
Where do I step in? In the EntitiyImpl? Can this be handled declaratively or do I have to implement custom method(s) in the AM?
Thanks
GeraldHi John,
I'm still getting the following error
Error(94,144): method getValue() not found in class javax.faces.el.ValueBinding
What should it be casted to?
The code in backing bean is like this..
package view.backing;
//import com.test.model.TestAppModuleImpl;
import javax.faces.component.html.HtmlForm;
import javax.faces.component.html.HtmlPanelGroup;
import javax.faces.context.FacesContext;
import javax.faces.event.ActionEvent;
//import javax.faces.event.FacesListener;
//import oracle.adf.model.BindingContext;
import oracle.adf.model.binding.DCBindingContainer;
import oracle.adf.model.binding.DCIteratorBinding;
import oracle.adf.view.faces.component.core.data.CoreColumn;
import oracle.adf.view.faces.component.core.data.CoreTable;
import oracle.adf.view.faces.component.core.input.CoreInputText;
import oracle.adf.view.faces.component.core.nav.CoreCommandButton;
import oracle.adf.view.faces.component.core.output.CoreMessages;
import oracle.adf.view.faces.component.html.HtmlBody;
import oracle.adf.view.faces.component.html.HtmlHead;
import oracle.adf.view.faces.component.html.HtmlHtml;
import oracle.jbo.ApplicationModule;
import oracle.jbo.Row;
import oracle.jbo.ViewObject;
//import oracle.jbo.server.ViewObjectImpl;
//import view.utils.EL;
public class MultipleInsert1 {
private HtmlHtml html1;
private HtmlHead head1;
private HtmlBody body1;
private CoreMessages messages1;
private HtmlForm form1;
private CoreTable table1;
private CoreColumn column1;
private CoreInputText inputText1;
private CoreColumn column2;
private CoreInputText inputText2;
private CoreCommandButton commandButton1;
private HtmlPanelGroup panelGroup1;
private CoreCommandButton commandButton2;
public void setHtml1(HtmlHtml html1) {
this.html1 = html1;
public void createMultiRows(ActionEvent actionEvent) {
DCBindingContainer dc = (DCBindingContainer) FacesContext.getCurrentInstance().getApplication().createValueBinding("#{bindings}").getValue();
DCIteratorBinding iter = dc.findIteratorBinding("TestView1Iterator");
ViewObject vo = iter.getViewObject();
for (int i=1; i<=5; i++) {
Row newRow = vo.createRow();
newRow.setAttribute("Id", i);
ApplicationModule am = vo.getApplicationModule();
am.getTransaction().commit();
vo.executeQuery();
Do I need to import something else?
Thanks,
Shri. -
Editable ALV Grid: Append new rows
Hi All,
I have developed a report which will displays output in editable ALV grid list. Users can modify the values in output and save. These values will be stored in one custom table.
My requirement is whenever user clicks on '+' mark (Create entries or Append or Copy: Standard toolbar) report should allow to enter new entries and save. How do I capture the selected function code? why becuase i need to display one value from the custom table in that added new row...
Regards,
Ramesh.Hi Ramesh,
please check changed data event.....
please go through the reference link......
https://wiki.sdn.sap.com/wiki/display/Snippets/UpdatingtheInternalTable-AfterEditinALVusingFunctionModules
Regards,
Venkat -
Adding new rows in the input-ready query
Hello everybody!
Could you please advise what setting should be done in the ready for input query to make it possible to add rows in it.
I succeeded in creating input ready queries where it is possible to modify key figure value for the existing records, but I haven't succeeded yet in creating query with input-ready rows.
Thank you in advance,
Kind regrds,
Maria KazakovaHi Gregor!
Thank you.
Of course before posting a question, I've read this help topic attentively.
I created Aggregation level ZPPLAN with characteristics:
Version
Cal. Year/Quarter
Currency
Key figure:
ZSUM_BDG
Query ZPRQUERY3 is based on aggregation level ZPPLAN
Query settings:
Rows:
Version
Cal. Year/Quarter
Currency
Key figure:
ZSUM_BDG
in the key figure properties, tab Planning option "Data can be changed using user entries or planning functions" is selected.
Execution of the query returns the table with input-ready cell and <u><b>empty new rows doesn't present</b></u>.
so could you please advise what else settings should be done for query, to make input ready rows available in the query? so as to make it possible to enter new records in the input ready query?
Following settings are done for the Analysis Grid properties:
tab "General":
- Display sort icons
- Apply formatting
- Allow navigation
- autofit
- Display hierarchi icons
Tab "Clipping":
Full size for horisontal and vertical.
Sorry for so long quetion,
I would be grateful for an answer,
Kind regrds,
Maria Kazakova -
Hi there,
I am a beginner in Visual Basic Express 2010. I have a Point of Sale program that uses DataGridView to display records from an external microsoft access
database using the fillby query.
It works, but it repopulates the same row each time, but i want to be able to display multiple records at the same time, a new row should be filled for
each click of the fillby button.
also I want to be able to delete any records if the customer suddenly decides to not buy an item after it has already been entered.
so actually 2 questions here:
1. how to populate a new row for each click of the fillby button
2. how to delete records from data grid view after an item has been entered
Thanks
VishwasHello,
The FillBy method loads data according to what the results are from the SELECT statement, so if there is one row then you get one row in the DataGridView, have two rows then two rows show up.
Some examples
Form load populates our dataset with all data as it was defined with a plain SELECT statement. Button1 loads via a query I created after the fact to filter on a column, the next button adds a new row to the existing data. When adding a new row it is appended
to the current data displayed and the primary key is a negative value but the new key is shown after pressing the save button on the BindingNavigator or there are other ways to get the new key by manually adding the row to the backend table bypassing the Adapter.
The following article with code shows this but does not address adapters.
Conceptually speaking the code in the second code block shows how to get the new key
Public Class Form1
Private Sub StudentsBindingNavigatorSaveItem_Click(
sender As Object, e As EventArgs) Handles StudentsBindingNavigatorSaveItem.Click
Me.Validate()
Me.StudentsBindingSource.EndEdit()
Me.TableAdapterManager.UpdateAll(Me.MyDataSet)
End Sub
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
'TODO: This line of code loads data into the 'MyDataSet.Students' table. You can move, or remove it, as needed.
Me.StudentsTableAdapter.Fill(Me.MyDataSet.Students)
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Me.StudentsTableAdapter.FillBy(Me.MyDataSet.Students, ComboBox1.Text)
End Sub
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
Me.MyDataSet.Students.AddStudentsRow("Jane", "Adams", "Female")
End Sub
End Class
Get new key taken from
this article.
Public Function AddNewRow(ByVal sender As Customer, ByRef Identfier As Integer) As Boolean
Dim Success As Boolean = True
Try
Using cn As New OleDb.OleDbConnection With {.ConnectionString = Builder.ConnectionString}
Using cmd As New OleDb.OleDbCommand With {.Connection = cn}
cmd.CommandText = InsertStatement
cmd.Parameters.AddWithValue("@CompanyName", sender.CompanyName)
cmd.Parameters.AddWithValue("@ContactName", sender.ContactName)
cmd.Parameters.AddWithValue("@ContactTitle", sender.ContactTitle)
cn.Open()
cmd.ExecuteNonQuery()
cmd.CommandText = "Select @@Identity"
Identfier = CInt(cmd.ExecuteScalar)
End Using
End Using
Catch ex As Exception
Success = False
End Try
Return Success
End Function
In closing I have not given you a solution but hopefully given you some stuff/logic to assist with this issue, if not perhaps I missed what you want conceptually speaking.
Additional resources
http://msdn.microsoft.com/en-us/library/fxsa23t6.aspx
Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem. -
Cannot edit a field that is "Standard Report Column" when new row added
Hi everyone,
I have created a master-detail form from the wizard and within the detail report region source I have used apex_item.xxx API
example;
select C1, C2,
CASE when C2 ='N' then
apex_item.select_list_from_query(3, C3,'select a1 d, a2 r from table1', 'ENABLED', 'NO',null,null, 'f03_#ROWNUM#')
else
apex_item.select_list_from_query(3, C3,'select a1 d, a2 r from table1', 'DISABLED', 'NO',null,null, 'f03_#ROWNUM#')
END C3
from table;
All columns C1,C2,C3 are defined as "Standard Report Columns".
The results allows the column C3 field to be enabled or disabled for input depending on a condition.
The problem is when you hit the default button "Add Row" to add a new row. The row is non-editable and is populated with null values.
What I want is to allow input when a new row is inserted into the multi-row detail form.
Can any one help?
Is there a way to change the Display As field for the new row columns to "text field" from "standard report column" dynamically?I think you will need to use the old way of adding rows instead of the new one. I remember having headaches trying to get it working.
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.apress.com/9781430235125
http://apex.oracle.com/pls/otn/f?p=31517:1
http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
------------------------------------------------------------------- -
NOOB: Simple button to insert a new row...
I have a two column database table.
It is displayed on an interactive report in two columns.
I want to create a new row via button with the values of "new" "new" in the two fields.
I was thinking this should be pretty simple however have not found the right example online to how to achieve this.
Thanks
Rob
Edited by: bostonmacosx on Jun 8, 2012 1:40 PMNormally you would add a "New" button to the IA report and redirect to a form page in which you can add a new record.
So steps are :
1. Create a form on this table so you can add and edit records on this table
2. Create a "New" button on your IA report which redirects to this page.
Regards,
Bas -
Create a new Row in an advanced table in an advanced table
Hi,
I am handling the master detail relationship. For this i have used advanced table in an advanced table. I am facing a problem while creating a new row in the inner advanced table.
I have a Display Sequence column in the inner advanced table. I want to handle the logic for displaying the value of this attribute. As per dev guide i have attached the view link and for handling the Add New row event i am using the below code
OAAdvancedTableBean sublineDetailsTableBean = (OAAdvancedTableBean) webBean.findChildRecursive("SublineAdvTableRN");
OATableFooterBean sublineTableFooterBean = (OATableFooterBean) sublineDetailsTableBean.getFooter();
if (sublineDetailsTableBean.getName().equals(pageContext.getParameter(SOURCE_PARAM))
&& ADD_ROWS_EVENT.equals(pageContext.getParameter(EVENT_PARAM)))
This is working fine. The challenge i am facing is for creating a new row. Below is the code given in dev guide
// get a handle to inner tableOATableBean innerTable =
(OATableBean)webBean.findChildRecursive("InnerTableBean");
// create an enumeratorOAInnerDataObjectEnumerator enum =
new OAInnerDataObjectEnumerator(pageContext, innerTable);
while (enum.hasMoreElements())
RowSet innerRowSet = (RowSet) enum.nextElement();
// get all rows
Row []rowsInRange = innerRowSet.getAllRowsInRange();
for (int i = 0; i < rowsInRange.length; i++)
Row nextRow = (Row) rowsInRange;
// In case you want to add new rows in this RowSet, you can do the same
OARow newRow = (OARow) innerRowSet.createRow();
// initialize value for some attribute and insert the row
newRow.setAttribute("SomeAttr", "SomeValue");
innerRowSet.insertRow(newRow);
The Above code creates a new Row in all the master records.
How do i identify that the add new Row event has been triggered for which master record?
Can any body please help me on this. I am stuck from a long time and am unable to find the appropriate solution.
Thanks in advance
Raj PapdejaHi,
Following is the code written in PFR,
OAAdvancedTableBean sublineDetailsTableBean = (OAAdvancedTableBean) webBean.findChildRecursive("SublineAdvTableRN");
System.out.println("sublineDetailsTableBean::"+sublineDetailsTableBean);
OATableFooterBean sublineTableFooterBean = (OATableFooterBean) sublineDetailsTableBean.getFooter();
System.out.println("lineTableFooterBean::"+sublineTableFooterBean);
if (sublineDetailsTableBean.getName().equals(pageContext.getParameter(SOURCE_PARAM))
&& ADD_ROWS_EVENT.equals(pageContext.getParameter(EVENT_PARAM)))
System.out.println("Inside Add New Row Button Event for the Sub Lines");
strValueParam = (String) pageContext.getParameter(VALUE_PARAM);
System.out.println("strValueParam=>"+strValueParam);
ViewLink vl = am.findViewLink("GEPSCSTaskLineToSublineVL1");
System.out.println("View Link=>"+vl);
if(vl != null)
OAViewObject vo = (OAViewObject) vl.getSource();
if(null != vo)
GEPSCSTaskLineItemsVORowImpl voRow =
(GEPSCSTaskLineItemsVORowImpl) vo.getCurrentRow();
Number LineNo = voRow.getLineNo();
System.out.println("Source Row Line No::"+LineNo);
/*OAViewObject vo = (OAViewObject) am.findViewObject("GEPSCSTaskLineItemsVO1");
GEPSCSTaskLineItemsVORowImpl voRow = (GEPSCSTaskLineItemsVORowImpl) vo.getCurrentRow();
Number LineNo = voRow.getLineNo();
System.out.println("Line No::"+LineNo);*/
// Getting the LineNo as null
/*int intRowCount = vo.getRowCount();
if(intRowCount > 0)
System.out.println("Sublines are already present");
GEPSCSTaskLineItemsVORowImpl tasklineVORow =
(GEPSCSTaskLineItemsVORowImpl)vo.getCurrentRow();
Number lineNo = (Number) tasklineVORow.getLineNo();
System.out.println("LineNo=>"+lineNo);
Number lastLineDispSequence = null;
// Method to set the display sequence
//am.invokeMethod("createNewSublineRow");
// create an enumerator*/
OAInnerDataObjectEnumerator enum =
new OAInnerDataObjectEnumerator(pageContext, sublineDetailsTableBean);
while (enum.hasMoreElements())
RowSet innerRowSet = (RowSet) enum.nextElement();
// get all rows
Row []rowsInRange = innerRowSet.getAllRowsInRange();
intRowCount = rowsInRange.length;
System.out.println("intRowCount=>"+intRowCount);
if(intRowCount == 0)
System.out.println("No Rows present");
OARow newRow = (OARow) innerRowSet.createRow();
// initialize value for some attribute and insert the row
newRow.setAttribute("DisplaySequence", new Number(1));
innerRowSet.insertRow(newRow);
else if(intRowCount > 0)
System.out.println("Rows are already present");
Row nextRow = (Row) rowsInRange[intRowCount-1];
lastLineDispSequence = (Number) nextRow.getAttribute("DisplaySequence");
OARow newRow = (OARow) innerRowSet.createRow();
// initialize value for some attribute and insert the row
newRow.setAttribute("DisplaySequence", new Number(lastLineDispSequence.intValue()+1));
innerRowSet.insertRow(newRow);
break;
When i try to fetch the Line No which is the primary ID of the Parent VO, it always returns me the LineNO of the first Row and not of the parent row for which i have clicked the Add new Subline button of the Child record
Number LineNo = voRow.getLineNo();
System.out.println("Source Row Line No::"+LineNo);
Is there any way to fetch the primary ID of the row for which i have selected the Add new Subline button
Thanks
Raj Papdeja
Maybe you are looking for
-
Smart Album Not Loading Images
I have not seen a discussion (nor Apple support document) that answers my newest Aperture 3 dilemma. First of all, let me say that I am not new to Aperture. I've been using the program since Aperture 2 was introduced. I have successfully used Smart A
-
Unable to install officejet 6100 driver on windows 7
Hi I am unable to install the HP6100 Officejet All in one driver for WIndows 7 enterprise. I keep receiving an error indicating that MSVCR90.dll is missing, but the file is there. Any help would be appreciated.
-
I've been using MDT 2012 and 2012 update 1 with ADK for Windows 8 successfully for years. This week I decided to uninstall those tools, and install ADK for Windows 8.1 and MDT 2013. I'm running Windows 7 x64. Instead of upgrading the current deplo
-
Payment Transfer Prinitng using Z-script
Dear All, I am trying to print Payment transfer form from the transactions FB60 and F110. Here I have taken the Z-copy of the Script form "F110_D_AVIS" and modified the script to my requirement. Then I assigned the Z-form in the FBZP transaction. But
-
Return of thread starting new method
hi, I have an application that runs a thread pool, each thread builds up a linklist. what I need to know is that I Need to get this linklist only when the thread is done and pass it to another method in another object where all of these linklists are