Add row in report FBL1N
Hi Gurus,
I have requirement to add rows in report FBL1N in order to display all item per document ( like in document overview ) in the same screen.
I applied note 112312 to display offset a/c (BTE with FM LINE_ITEMS_GET_GKONT) but partialy resolve my pb that is one item is displayed.
I would like to know how to do this, if i have to use BADIs (such BADI FI_ITEMS_MENUE01 ) and witch one or clone de STD or customazing.
Thanks in advance.
Ok,
trx FB1N, after selection give me :
DocumentNo Type Doc..Date Offst.acct
5300029134 TL 22.05.2007 600819 => one account per document
5300034345 TL 07.06.2007 600819
5300038636 TL 21.06.2007 600819
5300038637 TL 21.06.2007 600819
4200014129 FA 28.02.2007 40811030
4200012196 FA 31.03.2007 40811030
4200013351 FA 31.03.2007 60640000
details of fisrt document (n° 5300029134) give 4 line items :
Itm PK Account Account short text Amount
1 25 600819 LYRECO 20,524.36
2 39 600819 LYRECO 20,524.36-
3 50 51110040 BN att FGX LCR n.D. 20,524.36-
4 40 51119800 En cours E à P 20,524.36
my requirement is to display 3 account ( 600819, 51110040 and 51119800) given in details of document in column Offst.acct when excute FBL1N in stead of one. like this :
DocumentNo Type Doc..Date Offst.acct
5300029134 TL 22.05.2007 600819
5300029134 TL 22.05.2007 51110040
5300029134 TL 22.05.2007 51119800
5300034345 TL 07.06.2007 600819
5300038636 TL 21.06.2007 600819
5300038637 TL 21.06.2007 600819
4200014129 FA 28.02.2007 40811030
4200012196 FA 31.03.2007 40811030
4200013351 FA 31.03.2007 60640000
I hope that is more clear,thanks fo your patience.
Similar Messages
-
Problems with updatable Report - add rows
Hello,
I've an updatable report with about 650 rows.
When I press the button "add rows" there is no empty row displayed.
Is there a limit of rows for the updatable report?
The report row limit is 1000 and the rows per page are 50.
Thanks in advance
UlrikeHello Aiman,
First ensure that your app is not pointing to .NET framework 4.0 client install. I believe you are talking about VS2010 and CR4VS2010.
You need to go to properties of the project --> 'Application' tab --> Target framework --> select frame work 4.0.
You should be able to see the viewer in reporting section. Note # 1529493 have the details. Check:
http://social.msdn.microsoft.com/Forums/en-US/winforms/thread/f64f7c55-bbda-42f9-9d6e-a3c1e8f56300
Hope it helps!
Thanks.
Edited by: A G on Nov 24, 2010 8:37 PM -
Number of currently displayed rows in report with pagination?
Maybe I'm thinking to complicated, but ...
In my report I use the HTMLDB_ITEM.CHECKBOX function in order to display a checkbox for each row:
HTMLDB_ITEM.CHECKBOX(1,"ID",NULL,:P311_ASSIGNED,':') " "
Some of the checkboxes are selected depending on whether there is an entry for them in a database table.
As the report returns hundreds of rows, I use pagination (e.g. 15 rows per page).
After checking/unchecking the checkboxes and submitting the page by clicking the save button, I want to do the following: For each row CURRENTLY DISPLAYED on the screen (1) check, whether its checkbox is currently checked or not (2a) If it is checked and there is not yet an entry -> add row to the db table (2b) If it is unchecked and there is an entry in the db table -> remove row from db table.
How can I, on the server side, find out which rows (row ids) are currently displayed (using pagination), so that I check each of the currently displayed row ids for their existence in the database table? Is there any item stored on the server side, which tells me the row number of the first row currently displayed? Is there an item I can refer to, which tells me the amount of rows, which are displayed on one page?
Your help would be very much appreciated!
KonradHi Konrad,
I will jump in. :-) Just have a few minutes before a meeting.
I think you don't have to make it that complicated, where you have to know the current pagination.
1) Your HTMLDB_ITEM.CHECKBOX has to contain as checked value #ROWNUM# as the row selector would do it.
2) You have to create a hidden item where you store your customer id
3) create another hidden item where you store if the customer has already the assignment
4) In your process you are now able to loop through your arrays.
DECLARE
vRowNumber BINARY_INTEGER;
vFound BOOLEAN;
BEGIN
-- insert new event assignments
FOR ii IN 1 .. WWV_Flow.g_f01.COUNT -- your checkbox
LOOP
vRowNumber := WWV_Flow.g_f01(ii);
-- no assignment yet?
IF WWV_Flow.g_f03(vRowNumber) IS NULL -- your hidden field where you store if you have an assmnt
THEN
INSERT INTO xxx VALUES (WWV_Flow.g_f02(vRowNumber)); -- your customer id
END IF;
END LOOP;
-- delete old event assignments
FOR ii IN 1 .. WWV_Flow.g_f03.COUNT -- your hidden field where you store if you have an assmnt
LOOP
-- only if the event was already assigned
IF WWV_Flow.g_f03(ii) IS NOT NULL
THEN
vFound := FALSE;
FOR jj IN 1 .. WWV_Flow.g_f01.COUNT -- your checkbox
LOOP
-- is the event still checked?
IF WWV_Flow.g_f01(jj) = ii
THEN
vFound := TRUE;
EXIT;
END IF;
END LOOP;
IF NOT vFound
THEN
DELETE xxx WHERE CUSTOMER_ID = WWV_Flow.g_f02(ii);
END IF;
END IF;
END LOOP;
END LOOP;Haven't tested the code, but I think it should show the idea.
Hope that helps
Patrick
Check out my APEX-blog: http://inside-apex.blogspot.com -
How to get Total of Manually added row in Report
Hi everyone,
I have a Input Schedule where user can add a row to the existing oneu2019s. The account member ID which is added to the existing entry manually should be able to display total of the account memberu2019s Rate X Quantity in the report. I have put Y in the Insert Member of EvDRE expansion on Account dimension and datasource dimension. User chooses the account and manual from datasource. The problem that I face in the report is u2013 datasourcetotal which is the hierarchy in datasource dimension is doing total (datasourcetotal) after every Upload and Manual entry. The reason why I chose datasource to do this task is that there is comment addition in every account row and comment for the manual entry need not be overwritten for the same account, so manual entry will segregate the comment in report display for the same account.
In my datasource dimension it is like this u2013
ID | Hierarchy
Manual | Datasourcetotal
Upload | Datasourcetotal
Datasourcetotal
Before Range and After Range with SUM and SUB functions I believe cannot work in my situation as user can add rows anywhere in the EvDRE layout.
Is there anyway that I can restrict Upload to display total in the report, whereas only total from Manual is displayed.
Also if there is any other way to display dynamic row total in the reports aside from what I have tried above that will be wonderful , my mental faculties are not giving me any creative help, also I have looked around on SDN for anyone else facing the issue u2013 none found.
Any pointers will be highly appreciated.
Regards,
Ben RamosHi,
Evsub() function along with After Key range should help you adding the data from manually inserted data and displaying in your report.
Please check my info on steps for how to implement evsub funtion in a report.
BPC REPORTING
In addition to what i have mentioned there for your case include Y for insert member in the member expansion range for Accout Dimension.
Hope this helps,
Regards,
G.Vijaya Kumar -
Add row not working when creating tabular form manually
Hi friends,
I am trying to create a manual tabular form( with the help of Denes's example). When adding a new row by clicking
the add button new row is added and i can enter data in that row. This works fine when there is only one page.
Now i have 30 rows in 2 pages. Now when i tried to add a new row by pressing the add button nothing is happening.
In my add button i have given redirect to the same page and request as ADD and the report query is as below.
SELECT apex_item.checkbox (1,
EQUIPMENT_ID,
'onclick="highlight_row(this,' || ROWNUM || ')"',
NULL,
'f01_' || LPAD (ROWNUM, 4, '0')
)Tick,
EQUIPMENT_ID,
apex_item.hidden (2,EQUIPMENT_ID)
||apex_item.text (3,
EQUIPMENT_ROLE,
80,
100,
'style="width:170px"',
'f03_' || LPAD (ROWNUM, 4, '0')
)|| apex_item.hidden (4, wwv_flow_item.md5(EQUIPMENT_ID,EQUIPMENT_ROLE,EQUIPMENT_VERSION,
SNMP_PORT,RO_COMMUNITY_STRING ,RW_COMMUNITY_STRING,COMMISIONED_STATE,CUSTOMER_ID,
SITE_ID
))EQUIPMENT_ROLE,
apex_item.text (5,
EQUIPMENT_VERSION,
80,
100,
'style="width:170px"',
'f05_' || LPAD (ROWNUM, 4, '0')
) EQUIPMENT_VERSION,
apex_item.text (6,
SNMP_PORT,
80,
100,
'style="width:170px"',
'f06_' || LPAD (ROWNUM, 4, '0')
) SNMP_PORT,
apex_item.text (7,
RO_COMMUNITY_STRING,
80,
100,
'style="width:170px"',
'f07_' || LPAD (ROWNUM, 4, '0')
) RO_COMMUNITY_STRING,
apex_item.text (8,
RW_COMMUNITY_STRING,
80,
100,
'style="width:170px" ',
'f08_' || LPAD (ROWNUM, 4, '0')
) RW_COMMUNITY_STRING,
apex_item.text (9,
COMMISIONED_STATE,
80,
100,
'style="width:170px" ',
'f09_' || LPAD (ROWNUM, 4, '0')
) COMMISIONED_STATE,
apex_item.text (10,
CUSTOMER_ID,
80,
100,
'style="width:170px" ',
'f10_' || LPAD (ROWNUM, 4, '0')
) CUSTOMER_ID,
apex_item.text (11,
SITE_ID,
80,
100,
'style="width:170px"',
'f11_' || LPAD (ROWNUM, 4, '0')
) SITE_ID
FROM EQUIPMENTS_FEAT_MVIEW
UNION ALL
SELECT apex_item.checkbox
(1,
NULL,
'onclick="highlight_row(this,' || ROWNUM || ')"',
NULL,
'f1_' || LPAD (9900 + LEVEL, 4, '0')
) delete_checkbox,
NULL,
apex_item.hidden (2, NULL)
||apex_item.text (3,
NULL,
80,
100,
'style="width:170px"',
'f3_' || LPAD (9900 + LEVEL, 4, '0')
) || apex_item.hidden (4, NULL)EQUIPMENT_ROLE ,
apex_item.text (5,
NULL,
80,
100,
'style="width:170px"',
'f05_' || LPAD (9900 + LEVEL, 4, '0')
)EQUIPMENT_VERSION,
apex_item.text (6,
NULL,
80,
100,
'style="width:170px"',
'f06_' || LPAD (9900 + LEVEL, 4, '0')
)SNMP_PORT,
apex_item.text (7,
NULL,
80,
100,
'style="width:170px"',
'f07_' || LPAD (9900 + LEVEL, 4, '0')
) RO_COMMUNITY_STRING,
apex_item.text (8,
NULL,
80,
100,
'style="width:170px"',
'f08_' || LPAD (9900 + LEVEL, 4, '0')
)RW_COMMUNITY_STRING,
apex_item.text (9,
NULL,
80,
100,
'style="width:170px"',
'f09_' || LPAD (9900 + LEVEL, 4, '0')
)COMMISIONED_STATE,
apex_item.text (10,
NULL,
80,
100,
'style="width:170px"',
'f10_' || LPAD (9900 + LEVEL, 4, '0')
)CUSTOMER_ID,
apex_item.text (11,
NULL,
80,
100,
'style="width:170px"',
'f11_' || LPAD (9900 + LEVEL, 4, '0')
)SITE_ID
FROM DUAL
WHERE :request = 'ADD'
CONNECT BY LEVEL <= 1How can i solve this problem . Please help,
Thanks,
JeevHi,
The blank row that you get from your second select statement would appear at the end of the report. Put that statement first and it should be at the top of the first page
Andy -
Is there a way to add rows to a table in a fillable PDF?
I have created a fillable form, but the table I've created only has 9 rows. I'd like to be able to expand the rows on demand. If they're needed, then the user could add rows to the table as needed. It's an expense form, so the rows need to be there when there are multiple expenses, but not there when there are only a few expenses. Any/all help is appreciated. Thanks!
here's more background infomation... I have some audits setup on my database for one of my users. Every quarter I have an automated job that runs that creates a usage/statics report for this person using data in aud$. at the end of the job I export the aud$ table and truncate it. However last quarter I found that there was a mistake in my report and my export did not run properly thus my audit data was gone. i also have full datapump exports that run daily but found that aud$ was not there. so that is why I thought I'd like to include sys.aud$ in the full datapump exports.
i understand why other sys tables would be left out of a full export but aud$ data cannot be reproduced so to me it makes sense to include it in a full export.
don't worry, we run our true backups using rman which is eventually how I got the aud$ data back by creating a copy of my database up until the time of the truncate. however this was quite time consuming. -
Hi,
i want to add row selector in my reports. as we do in sql command promt.
i want to create select list with values like 500,1000,2000,6000 and so on. if i choose 500 in select list it show 500 records in report,if i choose 1000 then show 1000 rows in report.how can i do this.
is it possible? if it is then how can i do this.
Thanks & Regards
nishaIn the Report pagination Settings( report Attributes ->pagination" ) , there is a field by the name "*Number of Rows (Item)*" , Choose your item there.
-
Clone Rows - Tabular form - Client side add rows
Hello all,
I feel in love with this particular Tabular form, http://htmldb.oracle.com/pls/otn/f?p=24317:49 because of the Capabilities it has to create a "clone row".
a very advance feature I like a lot.
The trouble is when I go under >Report> and select which columns I would like to view, some will be hidden with default values.
the default values I would like to keep hidden are: a Time Stamp, and :APP_USER.
So when the user decides to clone a row the first original row will stay intact with all the information including the hidden values, but as for the cloned rows the hidden values are missing.
Is there something missing in the javascript that permits this from happening?
Please Help.
<script type="text/javascript">
var g_this;
function fn_delete(pThis)
var l_tr=$x_UpTill(pThis,'TR');
l_tr.parentNode.removeChild(l_tr);
function fn_CloneRow(pThis){
g_this=pThis;
l_tr=$x_UpTill(pThis,'TR');
l_table=$x_UpTill(l_tr,'TABLE');
l_tbody=$x_UpTill(l_tr,'TBODY');
l_clone=l_tr.cloneNode(true);
html_RowHighlight(l_clone,"D0D0E0");
l_inputs=l_clone.getElementsByTagName('input');
for (var j=0;j<l_inputs.length;j++) {
l_this=l_inputs[j];
if (l_this.type=="hidden") l_this.value="";
if (l_this.name=="fcs") l_this.value="zzzz";
if (l_this.type=="checkbox") l_this.parentNode.removeChild(l_this);
// Change Clone functionality to Delete
var l_img=l_clone.getElementsByTagName('img')[0];
l_img.src="/i/delete.gif";
if (document.all) l_img.onclick=function(){fn_delete(this)};
else l_img.setAttribute("onclick","fn_delete(this)");
l_tbody.insertBefore(l_clone,l_tr.nextSibling?l_tr.nextSibling:l_tr);
</script>I have't looked at the specific clone-row sample code you mentioned in your post, but just wanted to point out that we've introduced client-side add-row functionality in APEX 4.0, so if you're using this code to add new rows on the client-side, then using the built-in functionality might be easier. Of course if you actually want to get a copy of an existing row, that might not be sufficient. As for the MRU process, the way APEX identifies new rows is by looking at the primary key or ROWID column value, which needs to be NULL. APEX also looks at the apex_application.g_fcud array, which holds information for each row on whether to do an create, update or delete. This array was introduced in APEX 4.0, and that's what could potentially be causing your example to fail after the upgrade.
Regards,
Marc -
Can't add row to sorted tabular form
I have a very basic tabular form created using the wizard. The only significant change I made was to the sort order. When I click on the add row button, the new blank row is created at the top of the table. When the number of rows in the table grew beyond the page size (10), the blank row seems to be created at the top, but the form goes to the last page of data so the blank row is never displayed.
If I remove the ordering then the blank row is added at the bottom and the automatic navigation to the last page shows the blank row.
How can I modify this behaviour - either add the blank row at the end, or display the first page when adding rows.
Table Structure
dt_id (populated by trigger)
dt_date
dt_meal_type varchar2
dt_food varchar2
Sort order is (dt_date desc, dt_meal_type)
Apex 2.1.0.00.39 on XEVikas,
I've had a look at your javascript idea. It took a little bit of figuring out but I think I understand it. I had to modify it a bit so that it cleared the values (I'm not trying to clone anything - I just want a blank record).
After spending a whole morning on this I still have 2 fairly serious outstanding issues:
a) When I enter some values into my new blank record and hit Submit nothing seems to be saved and the record just seems to get lost (I suspect I have cleared out some important hidden fields or something)
b) It doesn't work if the table is blank and I am trying to enter the very first record.
I'm sure it's possible to fix these issues but I am no javascript expert and I have come to the conclusion that it just isn't worth investing any more time.
The benefit of Application Express to me is that it is a simple declarative development environment. There are many things I need to be concerned about and javascript just isn't one of them.
Whilst I wait for the tabular forms functionality to mature, I think I will go back to the good old report + Edit button style.
Thanks,
Alastair
PS. Here is the script I added to the region header (I removed everything I didn't understand and added it back in as and when I needed it):
<script>
function addRow()
var col = html_GetElement('NAME'); // NAME is just an arbitrary column in my table
var tab = html_CascadeUpTill(col,'TABLE');
var row1 = tab.rows[1];
var clone = row1.cloneNode(true);
var elements = clone.getElementsByTagName('input');
for (var j=0;j<elements.length;j++) elements[j].value="";
myNewRow = tab.insertRow(tab.rows.length);
myNewClone = myNewRow.replaceNode(clone);
</script> -
Adding The Rows in Report!
Hi All,
I have one issue that , i have a editable report and problem here is when i press ADD ROW button the new row is getting added up at the top but i need this row to be added in the bottom, can any body please help me to sort this Problem
ThanksHi,
Thanks For ur Reply, I didn't use Order By in select statements, i Have a sort option selected in for one column in report attributes.
Thanks, -
"Add Row" in Details. Displayed "Rows" disapear.
I've created an application using the Master Detail form.
I would like to "add" new rows, by inserting a new blank row in my Master Form. Currently it goes to the second page and gives me an input form. I'd like to add the new record directly to the Master Report. Can this be done (since the report is "tecnically" not a form?
Also, when adding a "Row" to my "Details" form, I get a new "blank" row, but the rest of the tabular form, that was displayed before hitting the "Add Row" button.
Any ideas?
Thanks,
leonhardtk.Hi,
your question is not clear and thus hard to answer.
I have 'Create form' with Application table from a VO. initially Createform should display the template of VO in Application table to insert new rows only.
What does the sentence above mean? You create an ADF form from a View Object (this I understand). But what do you mean by +"template of VO in Application table"+ ?
but when I click on 'Add Row' in Application table..the new entry is not coming
Thought you were using an ADF form? (see how confusing your question is ?)
Maybe this helps anyway: If you create new rows in a table, you don't use the Create but CreateInsert operation
Frank -
Change font of a cell in add Table to Report
Hello,
Is there a way to change the font of an individual cell in the add table to report VI?
Also is it posible to change the column width of a selected column?
Thanks
DanHi Dan,
i think to get what you want you can only use a html report. There you have to create your own "HTML Report Table Row.vi" with the font tags for each cell.
Mike -
How to add hyperlink to report total
Hi,
I have a report and the last row display report total ( using apex default feature - checking the sum check box).
My last row look similar as show below
report total | 10 | 20 | 30 | 0 | 100|
My requirement to to add hyper link to the nos. 10 , 20 , 30 , 0 , 100 in the report total.
Any help will be highly appreciated.
Thanks in advanceHi WinSilver,
Thanks for the response.
I added following in region footer
<a href="http://google.com>10</ a>
But there is no chnage on the screen.
Also , my report total is automatically create by the report... I have just checked the SUM check box next to column name in column attribute to get the some of the column...
How to incorporate the report total value instead of manually typing 10 between <a> < / a > -
3.1 Bug - Add row not working if Sort Nulls defautls to first.
In some situations when you click "Add" to add a new row of a tabular form you are not provided a blank row, although you can see the row count is incremented in the lower right corner.
This occurs if the setting of Sort Nulls first/last is allowed to default in the region attributes. By default nulls are sorted first. If your tabular form has a sort on any column and you try to add a row, the new row sorts to the top. If you have more than a screens worth of rows your blank row is not visible because APEX places focus to the last page of the result set. A work around is to go to the region's Report Attributes tab and look for "Sort Nulls" and set it to last.
But even if you do this you may still run into problems. For example if you sort on a column that has a lot of null values, your blank row may still not appear as the last row and so may not be visible.
I'm wondering if this is a know issue and if there are plans to correct.
I mentioned the bug to David Peake when he was out here this week, but I didn't realize what was causing the weird behavior. Too bad I couldn't get his opinion about the cause.
Thanks!
KenI'm seeing something that might be related to this, might not. I've setup a tabular form (Apex 3.1.0.00.9) and added a select list (Select list with submit) to help control the number or rows displayed.
Let's say I select 30 rows to be displayed. Then I click the Add Row button. I'm getting my new empty row at the bottom of the list of records, however I'm only seeing 5 rows of data displayed above my new empty row, rather than the complete list of records (I only have 15 rows in the table right now).
Another oddity is that the the pagination shown in the pagination select list shows "row(s) 1-15 of 16" even though the report is showing only 5 rows of data. It's almost as if some pagination value has been cached and not updating.
Anyone got any ideas?
Earl -
Add row not working if more than 5 records are displayed on the screen
Hello all,
Does anyone know why the add row button on an sql updateable report would stop inserting a blank row for data entry when more than 5 records have been entered into the form? I can insert up to 5 records. After that, a blank row is no longer supplied by the button. Odd. Have any ideas?
Any assistance would be greatly appreciated!!!
MichelleYou're welcome, Michelle!
The "Maximum Row Count" setting determines the maximum number of rows Apex will, or could, retrieve for a report. In your original settings, this was only 15, so matched the numbers of rows on a page - therefore, you would (A) only have one page of records and (B) never see a "New Row" as that would be record number 16 (or something higher than 15), which Apex would ignore!
One thing to note, though, is that some of the pagination schemes (the ones with a "Z" in the description) will count the full number of records available every time the report is loaded - for small tables, this is not an issue but for large tables, you may want to use one of the other schemes.
Andy
Maybe you are looking for
-
Open quantity in credit memo and debit memo
Dear Friends, I am facing one problem in billing cycle. I am creating credit memo directly with ref to invoice(With out cr memo request). I am describing scenario below. I have created Invoice 8012003 with one item with 10 quantity, after that I am
-
Hitting 'Save' in EditForm opens PDF document
I created a custom document library that stores scans of invoices as PDF-A documents. The library has a custom content type with some custom fields and the list's schema also links to a custom EditForm.aspx. In the EditForm I am using a JavaScript fu
-
Reg Batch in delivery some items are not showing gross weight please help
please give me your help in Deliveries some items are not showing gross weight please give me some help
-
Pantone color not included in Illustrator?
Hello, I am looking for a Pantone color close to #303030. Every converter I found gives me Pantone 29 as the closest match which is #332E2E but in Adobe Illustrator I can't find this Pantone. I am not sure how to be sure of a Pantone color close to #
-
Automated Unit Tests / TEST-INF/testrun.xml
Hello! Regarding to the originial question here Re: Automated Unit Tests through NWDI / Purpose of testrun.xml I'll try to ask this question again: Is it possible to run jUnit-Tests automatically during the build (cbs)? A very promising looking file