Changing contents of Report column
Hi,
I am trying to implement basic edit-in-place feature in my report. The way it should work is that when user clicks on any column, the column becomes editable and user then is allowed to changed the text. When the user is done, he clicks on save to save the changes. The changes are then saved to database using AJAX calls and the change is reflected on the page also.
I am able to save the changes to database. but I am not able to change the text in the report column.
The way I am doing it is as follows:
each column in the report is of the form:
< td >< div onclick="somescript" > text < /div > < input type="text" > < /input> < /td >
I toggle the visibility of the div and input tags based on user click.
when user clicks on a column, <div> is hidden and <input> is shown. user changes the text and clicks save. At this time, AJAX calls are made to update the database and <input> is hidden and <div> is shown again.
But before <div> is made visible, I need to change the original text to the new value. Is there any way this text can be changed?
You can see the short example at:
http://apex.oracle.com/pls/otn/f?p=22112:19:152048373623770:::::
I have put some alerts for debugging purposes. Please click "OK" each time to continue.
Message was edited by:
Ketan
Message was edited by:
Ketan
Message was edited by:
Ketan
Hello Ketan,
Please check the following steps . Hope this would help you.
You have to follow the following steps :
1.Create a report , which is updatable.
You can change the report type to SQL Query Updatable report.
2.Go to the report attributes , then click on the edit link of the filed.
3. Make the field 'Display as Text Field '
Report part is done.
In this report region, create two buttons with labels
1) update
2) add row
update you can use to apply changes.
let me explain about add row.
create a process which is of type 'Data Manipulation'.
Make this process run conditional : Say only when add row button is clicked.
Now run the page , the report would display if the query is like
'SELECT id FROM emp'
it would list the ids which exist.
if you press on add row button, one more text box will be added and you can enter some id /data there and press on update ( you have to write process for update ), table would contain the latest data.
This is not exactly what you require.
Here I have used 'ADD ROW ' button to add one text box. and you can add some text there and press update ( you need to create a update process for that particular table )
Your query was based on some link. I think you can change my code as per your requireement.
Any queries , please let me know.
Regards,
Archana Hebbar
Similar Messages
-
Changing Content of a Column in ALV
Hello All,
I just found an approach to solve some of the question posted before but stucked on something else-
I have an ALV using OOP approach. I have a number of buttons that when clicked -a specific event should take place. One is changes to INCOTERM-
If Incotern button is clicked, I called CALL FUNCTION 'POPUP_GET_VALUES' to change the value
Then called BDC which has the changes in I_BDCDATA.
My question is how to use Call transaction method to update the changes in the ALV column from the value in the I_BDCDATA before refreshing the table which activates the changes on the ALV report
Thanks
Edited by: possibility on Oct 19, 2009 5:37 PMThanks Max,
I had that figured out after sending the email out to the forum I have awarded some points to you and Kan.
Edited by: possibility on Oct 20, 2009 4:22 PM -
How can i define the width of report column in report region ?
Hi,
I have report region and i want to have a static width for each column ( not based on column name of column data ), how can i do it ?
Thanks in advance ,
YoelCan you provide more details pls? I am also trying to change widht of report columns and I do not see anywhere in reports atrributes where it allows me to do that...Thanks so much!
-
How to Change the position of Column in ALV report
Hi Follks,
Is is possible to change the position of column in ALV report?.If yes then how?
Basically my requirement is, that user want afacility where , he should be able to change the position
of column aftre he runs the report.
Eg: After running the report , user felt that column 5 should be at position 2 , in that case he should
be able to drag column 5 at position 2 and vice versa.
Please help me, how to solve this issue.
Note : I am using NW 7.0 SP 9
Regards
PG
Edited by: PG on Apr 13, 2009 11:10 AMHI PG,
do below whie filling the filed catlog
wa_fieldcat-fieldname = 'Field1".
wa_fieldcat-COL_POS = '1',
append wa_fieldcat to it_fieldcat.
wa_fieldcat-fieldname = 'Field2".
wa_fieldcat-COL_POS = '2',
wa_fieldcat-fieldname = 'Field3".
wa_fieldcat-COL_POS = '3',
Thanks! -
Change the order of columns in a report
hi all.
i can't change the order of columns in a report not just by altering the select statement. where can i change it?
thanks.hi master
sir i use 6i report i see full report but i culd not found
report region and report attributes
sir please give me step or idea or tree where report region and report attrinutes"
thanking you
aamir -
Can we change the background color of a Standard report "column"?
4.2.1
Theme 24 - Cloudy
Hi There,
I searched this forum and online but did not get a straight forward way to change the color of a standard classic Apex report column. I want the whole columns background color to be blue. I tried some of the suggestions for using span etc, but they did not work.
Was wondering if anyone has a solution for this? would be very helpful!
Thanks,
RyanUse a custom named column report template with <tt><colgroup>/<col></tt> and CSS as in these threads.
Could also be done with JavaScript, but if the entire column is to be coloured (rather than individual cells based on some condition), the template approach will be simpler and have better performance -
Dynamically change the report column name.
Hi All,
I have a report where i am showing data for greater than current week and year and the code of same is below
SELECT
item_number,
SUM
( CASE
WHEN year_week_num = to_number(to_char(sysdate,'IW'))+1 THEN
quantity
END
) plus_1,
SUM
( CASE
WHEN year_week_num = to_number(to_char(sysdate,'IW'))+2 THEN
quantity
END
) plus_2,
SUM
( CASE
WHEN year_week_num = to_number(to_char(sysdate,'IW'))+3 THEN
quantity
END
) plus_3,
SUM
( CASE
WHEN year_week_num = to_number(to_char(sysdate,'IW'))+4 THEN
quantity
END
) plus_4,
SUM
( CASE
WHEN year_week_num = to_number(to_char(sysdate,'IW'))+5 THEN
quantity
END
) plus_5,
SUM
( CASE
WHEN year_week_num = to_number(to_char(sysdate,'IW'))+6 THEN
quantity
END
) plus_6,
SUM
( CASE
WHEN year_week_num = to_number(to_char(sysdate,'IW'))+7 THEN
quantity
END
) plus_7,
SUM
( CASE
WHEN year_week_num = to_number(to_char(sysdate,'IW'))+8 THEN
quantity
END
) plus_8,
SUM
( CASE
WHEN year_week_num = to_number(to_char(sysdate,'IW'))+9 THEN
quantity
END
) plus_9,
SUM
( CASE
WHEN year_week_num = to_number(to_char(sysdate,'IW'))+10 THEN
quantity
END
) plus_10,
SUM
( CASE
WHEN year_week_num = to_number(to_char(sysdate,'IW'))+11 THEN
quantity
END
) plus_11,
SUM
( CASE
WHEN year_week_num = to_number(to_char(sysdate,'IW'))+12 THEN
quantity
END
) plus_12,
SUM
( CASE
WHEN year_week_num = to_number(to_char(sysdate,'IW'))+13 THEN
quantity
END
) plus_13
FROM
( select
re.item_number,
row_gen.year_week_num,
SUM(NVL(re.quantity,0)) OVER(PARTITION BY re.item_number ORDER BY row_gen.year_week_num) quantity,
ROW_NUMBER() OVER(PARTITION BY re.item_number, row_gen.year_week_num ORDER BY NULL) rn
from
( SELECT
to_number(to_char(sysdate,'IW')) + ROWNUM year_week_num
FROM
DUAL
CONNECT BY LEVEL <= 13
) row_gen LEFT OUTER JOIN
( SELECT
le.item_number,
le.quantity,
to_number(to_char(sysdate,'IW'))+1 year_week_num
FROM
BACKLOG_WEEK_WH_AFTR_ATP le
UNION ALL
SELECT
re.item_number,
-re.quantity,
to_number(substr(re.year_week,-2,2)) year_week_num
FROM
BACKLOG_ATP_GT_CW re
) re
PARTITION BY (re.item_number)
ON ( row_gen.year_week_num = re.year_week_num)
WHERE
rn = 1
GROUP BY
item_numberI have a item in the report page from which i am displaying which week this year holds and the code of same is below
In the item source, i have selected source type as sql query return single value. and the current week is returning as "2011-WK30"
select to_char(sysdate,'YYYY"-WK"IW') from dual;Please suggest how i can change the display of column dynamically. I want PLUS_1 to show as 2011-WK31, PLUS_2 to show as 2011-WK32 and so on for this week. When next week will come then the plus_1 should show as 2011-WK32, plus_2 to show as 2011-WK33.
Any help how to do this?
Thanks in advance
RegardsHi,
Go to the Report Attributes, in the Column Attributes section:
1) Use Headings Type as PL/SQL.
2) In the text area Function returning colon delimited headings write a PL/SQL anonymous block returning colon delimited headings.
Hope it helps!
Regards,
Kiran -
How to change the order of report columns
Hi guys,
I am newbie to the Apex 3.2. I am not finding option to resequence the column display. e.g.
My columns shown as Org ID, Create Date, Update Date, Name.
I want to change it to Org ID, Name, Create Date, Update Date.
This in tabular form. Any help would be much appriciated.
Thanks
SushilHello Sushil,
Go to Edit Page XX link at the bottom of the page. In the edit page under the Regions section you will see your tabular form listed. Click on the "Report" link next to your tabular form link. You will see all the report columns with up and down arrow images to the right of the columns. Just click on the images to move the columns as you like and then click on "Apply Changes" button to save the changes. Run your page and you will see the changes.
Thanks,
Machaan
P.S: Please assign correct answer points if this helped you with your problem :) -
Changing the order of report columns
Hi
I am using Application Express 4.1.1.00.23 and have created a report. What I can't seem to alter however is the order of the columns generated by the report.
It's not based on the SQL query because for example the 'Surname' field is 2nd in the select statement but on the report view the Surname column is the last column.
Is there a way of changing the order??Simple, Edit your report page > under region click Report hyper link corresponding to your report.
There you will see list of columns where you can order the report columns using little icons on the far right. remember to click apply changes after re-ordering the columns.
Thanks -
Changing the Variable Settings in Content Tracker report generation page
I am looking out for Changing the Variable Settings for the Performance Optimization Functions in Content Tracker report generation page. Some options which were available in 10g are not in UCM11g. I got the information that Updating Content Tracker should help, but am unable to locate what are the parameters to be set.
Any pointers on this would be really helpful.
Regards,
BharatHi
From Update Component Configuration these are the options listed that can be changed :
Update Component Configuration
SctUrlMaxLength
SctMaxRecentCount
SctTrackContentAccessOnly
SctProxyNameMaxLength
SctSimplifyUserAgent
SctDoNotPopulateAccessLogColumns
SctDoNotArchive
SctPostReductionExec
SctTrackContentAccessOnly should be unchecked and then test to see if the options get listed .
Thanks
Srinath -
Content Tracker Reports Query file modification issue - Custom Report
Hi All,
I was trying to generate a custom report using Content Tracker. I was successful in doing so. However, I found that sometimes it does not pick up the updated query file of Content Tracker reports.
I made a change in my query:
from SELECT * FROM Users to
SELECT dname FROM Users
the change is written on the file but when i generated the report from C.T. UI, it's still showing me the old results having all the columns. Tried bouncing the server as well, but no use.
I also added a new query 24 hrs back (as SELECT count(*) As UsersNum FROM Users), it's still not recognizing it and giving error as Failure of server APACHE bridge: No backend server available for
connection: timed out after 10 seconds or idempotent set to OFF;
and the log says,
Unable to execute service SCT_GET_DOCUMENT_INFO_ADMIN and function sctExecuteQuery.
Unable to create the result set for query '(null)'. SQL statement to execute cannot be empty or null
What could be the resolution of this issue?
I am using UCM 11g + SSXA.Server bounce.
Issue is not file update but some other issue, ongoing in another thread by Me. -
Interactive Report Column Formating '%' symbol
Hi,
I have an intercative report that shows a column displaying a number and and the sysmbol %. The source query is similar to:
SELECT my_number||'%' as display_percentile
FROM dual;
Because of this the interactive report will only show this column as a string type and not number type, therefore my math filtering options are not available. Is there a way that I can display the column as a number type and still have it display as 50%
I am using Application Express 4.1.0.00.32
Thanks in advance.
Edited by: 968358 on 05-Dec-2012 02:09
Edited by: 968358 on 05-Dec-2012 02:10968358 wrote:
Thank you fac586,
Forgive me, I am a newbie at this and I am still at a loss. Where can I change the report column attributes to reflect css and alike. Do I need to do this on the report template or in the column attributes. When I have looked in the column attributes I cant see anywhere other than on the column link.Add a style sheet using the page HTML Header property attribute:
<style>
/* Replace COLUMN_ALIAS with the alias of the % column in your report */
td[headers="COLUMN_ALIAS"]:after {
content: "%";
</style> -
How to change layout of report S_ALR_87012083?
Hi everybody,
How to change layout of report S_ALR_87012083 except change output control at selection screen ?
For example,I need a list that there have vendor no. at every line of open item,and I don't need Total liabilities for every vendor.
Thanks a lot for any help.Hi yu liang,
You can find vendor list having Vendor No. & without showing total liability for every vendor.
after executing the report,
1.You need to select "change layout (ctrl+F8)",
a small window comes, it has two part -> column content & hidden fields.
then u select "Vendor" from hidden field & move it to column content.
2. at column content there is a column named "Total". u need to remove check for your column name "amount".
now select "copy" button or enter. u will find the req. report.
u can save it also by ur name.
hope its helpful to u.......
plz, reward points as a way of thanks if helpful... -
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
------------------------------------------------------------------- -
Passing parameter from interactive report column link to new page
I'm very simply trying to pass the value of the column link to the where clause on the next page.
Interactive Report on P2 has column link fid alias in sql query.
I read somewhere to refer prefix the interactive report column with IR ??
So I have item name P2_FID, value #FID#. Anyway, I've tried a kazillion things.
Created a hidden item with same source value... sigh.
Is there a syntax to refer to a report column link, rather than an item_id in a region where clause?
Is there a simple direct way to do this?
Thanks,
Pamela
-----pls/apex/f?p=163:1:2746459963336955::NO::P2_FID:119Thank you Varad...
Unfortunately, I am still getting no data found. (and there IS data).
a) Do you mean in the link column section of the report attributes? that is done: item 1 name= IR_P2_FID, value = #FID#
b) Do you mean my changing my hidden page item to ir_p2_fid with its source value as #FID# ? also done.
Do I need this hidden item?, and if not how do I refer to link in the where clause of the called page's sql region?
3) Where Fishery_id = :IR_P2_FID
Where Fishery_id = &IR_P2_FID
Thanks again!
Pamela
Maybe you are looking for
-
cant download itunes 10 using windows vista erroe about installation of assembly
-
New AirPort Extreme w/ Time Machine disk crashes every few days
I bought an AirPort Extreme base station about a month ago. It's currently in bridge mode, connected to my U-Verse residential gateway, and has a 1 TB hard drive attached to it that I use for Time Machine backups. The drive is formatted HFS+ and both
-
Missing "Mapping entry" issue in tranferring Cust/Vendor Master Data
Hi All, We are doing a version upgrade in one of our client for SCM APO (SCM 7.0 SPS 8). We are getting an error while transferring customer/ vendor master data (either in foreground or background) that "No location XXXXXXXX exists for mapping entry
-
I have just moved to a mac and im looking for some project management software and was just wondering what the equivalent to ms project on a mac is? i am looking to be as productive as possible with =all my business contacts customer database invoic
-
The French and Arabic dictionaries seem to be not compatible with firefox nightly. I have the latest version: 27.0a1. Will updates be made in the coming future to fix that? Many thanks by advance! A loyal firefox user.