How to Set Report Region Title Dynamically
I have code working to periodically refresh a Interactive Report on a page. I have the following code in the page header:
<script type="text/javascript">
//automatic reload IRR
function fnc_reloadIRR () {
gReport.search('SEARCH');
window.setTimeout(fnc_reloadIRR, 10000);
// this means the code execution starts after 10 seconds
window.setTimeout(fnc_reloadIRR, 10000);
</script>
This is working great. The title of the report region is "Intraday Color Code Test - &P1_LAST_REFRESH_TIME."
I have a hidden page item named P1_LAST_REFRESH_TIME on the page that contains the last time the report was refreshed. I am struggling with resetting this value when the report region is refreshed. ( May not even need this item!)
To address this, I created an On Demand application process that gets the Last Refreshed string. I then altered the above code like this:
<script type="text/javascript">
//automatic reload IRR
function fnc_reloadIRR () {
var ajaxRequest = new htmldb_Get( null, &APP_ID., 'APPLICATION_PROCESS=SET_LAST_REFRESH_TIME',0);
gReport.search('SEARCH');
window.setTimeout(fnc_reloadIRR, 10000);
ajaxResult = ajaxRequest.get();
// this means the code execution starts after 10 seconds
window.setTimeout(fnc_reloadIRR, 10000);
</script>
Note the addition of the ajaxRequest stuff. This, too, is working. That is, if I check the value in ajaxResult, it does contain the correct, current time. So far so good.
What I can't figure out is how, now, to get a reference to the title attribute of the Interactive Report Region so that I can reset it.
I AM SOOOOO CLOSE. Can anyone fill in this last part of the puzzle for me?
To clarify, I really just need to know how to get a reference to the Report Region's title so that I can set it to the value currently stored in "ajaxResult"
Similar Messages
-
How to format report region titles?
How do I format the report region titles with CSS? Is there a template for the Title lable?
PeteHello,
The Report Template or the Report Region Template?
And yes you can do both.
Example of report template with css.
http://htmldb.oracle.com/pls/otn/f?p=11933:7
Carl
Message was edited by:
Carl Backstrom -
How to set a Caption/title in ALv
Hi frnds,
Can you tell me how to set a caption/title to a ALV grid.
Regards
Anujhi
try like this
DATA: i_title_kna1 TYPE lvc_title VALUE 'FIRST LIST DISPLAYED',
i_title_vbak TYPE lvc_title VALUE 'SECOND LIST DISPLAYED'.
populate additional paramete as follows.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
i_callback_pf_status_set = 'PF_STATUS_SET'
i_callback_user_command = 'USER_COMMAND'
i_callback_top_of_page = 'TOP-OF-PAGE'
i_grid_title = i_title_kna1
is_layout = wa_layout
it_fieldcat = it_fieldcat
it_events = it_events
TABLES
t_outtab = it_kna1.
or if you want top of page
populate the events table and use alv_commentary_write
wa_listheader-typ = 'H'.
wa_listheader-info = 'Customer Details'.
APPEND wa_listheader TO it_listheader.
CLEAR wa_listheader.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = it_listheader
i_logo = 'EDSLOGO'
I_END_OF_LIST_GRID =
I_ALV_FORM =
REFRESH it_listheader.
try the below code u will get a clear picture
report zalv no standard page heading.
TYPE-POOLS : slis.
TABLES: kna1.
TYPES : BEGIN OF ty_kna1 ,
kunnr LIKE kna1-kunnr,
name1 LIKE kna1-name1,
land1 LIKE kna1-land1,
END OF ty_kna1.
DATA: it_kna1 TYPE TABLE OF ty_kna1.
DATA : it_fieldcat TYPE slis_t_fieldcat_alv,
wa_fieldcat TYPE slis_fieldcat_alv.
DATA : wa_layout TYPE slis_layout_alv .
DATA : it_events TYPE slis_t_event ,
wa_events TYPE slis_alv_event.
DATA : it_listheader TYPE slis_t_listheader,
wa_listheader TYPE slis_listheader,
it1_listheader TYPE slis_t_listheader,
wa1_listheader TYPE slis_listheader.
DATA: i_title_kna1 TYPE lvc_title VALUE 'FIRST LIST DISPLAYED'.
INITIALIZATION.
PERFORM getevents using it_events.
PERFORM desinlayout.
START-OF-SELECTION.
PERFORM desinfieldcat.
PERFORM datafetching.
PERFORM display.
*& Form desinfieldcat
text
--> p1 text
<-- p2 text
FORM desinfieldcat .
wa_fieldcat-row_pos = 1.
wa_fieldcat-col_pos = 1.
wa_fieldcat-fieldname = 'KUNNR'.
wa_fieldcat-seltext_l = 'Cust Num'.
wa_fieldcat-datatype = 'CHAR'.
wa_fieldcat-outputlen = 10.
wa_fieldcat-tabname = 'IT_KNA1'.
wa_fieldcat-key = 'X'.
wa_fieldcat-hotspot = 'X'.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-row_pos = 2.
wa_fieldcat-col_pos = 2.
wa_fieldcat-fieldname = 'NAME1'.
wa_fieldcat-seltext_l = 'Name'.
wa_fieldcat-datatype = 'CHAR'.
wa_fieldcat-outputlen = 35.
wa_fieldcat-tabname = 'IT_KNA1'.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
wa_fieldcat-row_pos = 3.
wa_fieldcat-col_pos = 3.
wa_fieldcat-fieldname = 'LAND1'.
wa_fieldcat-seltext_l = 'Country'.
wa_fieldcat-datatype = 'CHAR'.
wa_fieldcat-outputlen = 10.
wa_fieldcat-tabname = 'IT_KNA1'.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
ENDFORM. " desinfieldcat
*& Form datafetching
text
--> p1 text
<-- p2 text
FORM datafetching .
SELECT kunnr name1 land1
FROM kna1
INTO TABLE it_kna1
UP TO 30 ROWS.
ENDFORM. " datafetching
*& Form display
text
--> p1 text
<-- p2 text
FORM display .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
I_GRID_TITLE = i_title_kna1
is_layout = wa_layout
it_fieldcat = it_fieldcat
it_events = it_events
TABLES
t_outtab = it_kna1.
ENDFORM. " display
*& Form desinlayout
text
--> p1 text
<-- p2 text
FORM desinlayout .
wa_layout-zebra = 'X'.
wa_layout-colwidth_optimize = 'X'.
*wa_layout-edit = 'X'.
ENDFORM. " desinlayout
*& Form getevents
text
--> p1 text
<-- p2 text
FORM getevents using p_it_events type slis_t_event.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
I_LIST_TYPE = 0
IMPORTING
et_events = p_it_events
EXCEPTIONS
list_type_wrong = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
READ TABLE p_it_events INTO wa_events WITH KEY name = 'TOP_OF_PAGE'.
wa_events-form = 'TOP_OF_PAGE'.
MODIFY it_events FROM wa_events TRANSPORTING form WHERE name = wa_events-name.
ENDFORM. " getevents
*& Form populatevents
text
--> p1 text
<-- p2 text
FORM populatevents .
READ TABLE it_events INTO wa_events WITH KEY name = 'TOP_OF_PAGE'.
wa_events-form = 'TOP_OF_PAGE'.
MODIFY it_events FROM wa_events TRANSPORTING form WHERE name = wa_events-name.
ENDFORM. " populatevents
*& Form top-of-page
text
FORM TOP_OF_PAGE.
wa_listheader-typ = 'H'.
wa_listheader-info = 'Customer Details'.
APPEND wa_listheader TO it_listheader.
CLEAR wa_listheader.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = it_listheader
i_logo = 'EDSLOGO'
REFRESH it_listheader.
ENDFORM. "top-of-page
REWARD IF HELPFUL
PRASANTH -
How to set Srilanka region?
How to set Srilanka region?
really worry for sms delivery report an call waiting not display in iphone.Backup Your Data (Specially Apps)
General --> Reset --> Reset All Settings
And Then It Will Give You a Chance To Choose 'Sri Lanka" as Region.
So There You Go
But Remember To Backup Your Data -
How to change report region fields in read only mode?
How to change report region fields in read only mode?
skud.add the following javascript fuction to page header(or Javascript function and variables section)
function disableItems(pRegionStaticId,pDisableFlag) {
$('#'+pRegionStaticId).find('[name^=f]').each( function(){ /* matches fxx */
if( $(this).attr('name').match(/f[0-9][0-9]/) ){
return $(this);
}).attr('disabled',pDisableFlag);
pRegionStaticId is the region's static Id+
Note that this code specifically disables only application arrays. Disabled items are not available after submission (and hence are different from readonly) . But any page javascript can modify disabled or readonly items(client side), so you must check at the server side to validate the data.
You can disable items using
disableItems('MY_REGION_ID' ,true);and enable them by passing false
disableItems('MY_REGION_ID' ,false); -
How to set reports server environment
Hi..
Now Oracle 9iAS r1 (reports60) was installed on Linux, Unix and NT for testing.
I typed like below in web browser .
http://IP:Port/dev60cgi/rwcgi60/showenv?server=ServerName
then Oracle Reports environment variants(REPORTS_PATH, REPORTS... so on..) did not set . except PATH, LI_LIBRARY_PATH and ORACLE_HOME variants like below..
====================================================
Oracle Reports Server CGI60 Environment Variables:PATH /home/ora9iasr1/product/9.0.1/Apache/perl/bin:/home/ora9iasr1/product/9.0.1/bin:/usr/kerberos/bin:.:/usr/local/bin:/usr/java/jdk1.3.1_07/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/ora9iasr1/bin
LD_LIBRARY_PATH /home/ora9iasr1/product/9.0.1/6iserver/lib
ORACLE_HOME /home/ora9iasr1/product/9.0.1/6iserver
ORACLE_PATH undefined
REPORTS60_PATH undefined
REPORTS60_TMP undefined
REPORTS60_CGIMAP undefined
==============================
I can set it with editing registery on Windows.
But thought I set it with export option at .bash_profile, reports60.sh and reports_server on Unix platform, it did not affected.
Please let me know how to set reports environment on Unix.
regards..
Ryu,The reports CGI is started from script rwcgi60. Did you set those env variables in rwcgi60? Or did rwcgi60 call reports60.sh to set env variables? Please check.
-Jeff -
Display records returned for a query in the Report Region Title
Hi,
Is there any variable set that can be referenced to indicate how many records have been returned for a specific query. I have several hide/show regions dealing with various reports, and I would like to add a little info into the region title to display how many records there were returned for the report in this region.
Thx in Advance,
cliffHi,
addendum
These are simple sql queries BTW. I've seen posts alluding to the SQL%ROWCOUNT when using cursors. Is there any variable we can reference when using a simple sql query?
thx
cliff -
How to schedule report filtered by dynamic date based on the date the Agent runs
Hello
I have a question about delivering report using OBIEE agent.
If i am running an agent today to deliver report A, can I get report A based on Last Monday's date or any dynamic dates?
For example, say today is Dec 18th 2013 and my agent is running according to how I set the schedule. Now the deliver content will have report A being delivered. Now report A has a date column, normally this column is filtered by current date. But if it's delivered through agents to various users, Report A's data should be the previous Monday, so in this case Dec 9th 2013. When this agent is run again said on Dec 27th 2013, then report A should be filtered by Dec 16th 2013, which is the previous monday of Dec 27th.
Can something like this be achieved in OBIEE 11G?
Thanks in advance.Yala,
Not a straight forward way
1) Let the report run through Agent with Current Date filter
2) once it ran for the first time you can see IBOT name/last run time(LAST_RUNTIME_TS) in S_NQ_JOB
Create a repository variable 'last_run_agent' using below sql to get max(LAST_RUNTIME_TS)
select max(LAST_RUNTIME_TS) from s_nq_job where name = 'AGENT_NAME';
Edit the analysis report with current date filter and modify the filter condition accordingly to filter on newly created repository variable
Thanks,
Saichand -
How to retrieve report region source statement programmatically?
Hi all,
I have several report regions in an apex application each
of type "PL/SQL function body returning SQL query"
and of same structure like:
bq. declare \\ stmt varchar2(32767); \\ ... \\ begin \\ /* some stuff preparing sql query string */ \\ stmt := 'select' || ' a,b,c' || 'from table'; \\ return stmt; \\ end;
Now I need to retrieve the region source returned sql statement programmatically.
The region source is stored in apex view "apex_application_page_regions.region_source".
But what is the best way to retrieve the SQL statement value, by executing
the anonymous pl/sql block OR how does it work in apex internally?
An "execute immediate +region_source+ ... " approach does not work due to PLS-00372.
Any hints?
Regards,
MatthiasDear Matthias,
an interesting problem you raise here. The solution is to create a function from the region source, call that function and then do something useful with the result.
Let's suppose your region source is :
declare v_text varchar2(100); begin return(''select * from emp''); end;
- put this text instead of the first declare
declare
v_statement varchar2(4000) := '
declare
function test return varchar2 is
- put this code behind the source:
begin
dbms_output.put_line(test);
end;';
begin
execute immediate v_statement;
end;
Now you have created a anonymous PL/SQL block that can be performed. The whole code looks like:
declare
v_statement varchar2(4000) := '
declare
function test return varchar2 is
begin return(''select * from emp''); end;
begin
dbms_output.put_line(test);
end;';
begin
execute immediate v_statement;
end;
Instead of the put_line you might set a package variable, so that you can use the result in another way,
good luck, DickDral -
How to change a region title based upon the input parameter?
Hi All,
I need to change the region's title dynamically based on the value of a select list in another region.
Can anyone help me in this?
Regards,
Sakthi.Hi,
You can use &P1_ITEM_NAME. (including the & and the .) in a region title - this string will be replaced by the value from the page item called P1_ITEM_NAME, so change the name to suit your page item
Andy -
How to set report output to session variable
Hi,
Is there any way to set report output to session variable . If my report returns 1 row and 1 column.
I have a dashboard prompt where i am selecting Name , but i want to find out the ID of that name .
that ID i want to pass to a column Fx , to achieve this i created a intermediate report and i got the ID. Now my problem is how do i set this ID in session variable .
Please help if anyone knows...Did you read this:
how to set session / presentation variable in repository variable
Dashboard prompt on Month Name but report filter on month ID:
Re: Dashboard prompt on Month Name but report filter on month ID needed
If you have dashboard prompt (name) then you may have only one report that is filtered by name but show id or not show id but use id in the function. Or two reports like in the solution in the second link above and the second report has id in the function and filter by id from the first report. You don't need to set this ID in session variable for this example.
Please close your previous threads if they are answered.
Regards
Goran
http://108obiee.blogspot.com -
How to set background image in Dynamic Shell Layout
Experts,
Using dynamic shell layout, how can we create a skin like this http://www.2shared.com/photo/OqXfb5jq/layoutissue.html
Issues :
1)Need to set the background to the page - How to set it in dynamic shell layout.
2)Panel box color to be changed
please advice
thnks
jdev 11.1.2.1Color goes UNDER the background image. Just set it.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"StarPilot06" <[email protected]> wrote in
message
news:eqqve6$341$[email protected]..
>I am trying somethign that seems tricky to me...
>
> The image I am using I faded to a solid color on the
bottom half. I set
> the
> background image to to left and NO REPEAT but when the
cell grows with
> content
> and it stretched beyond the image it goes blank
underneath. How do I set
> a
> background color without going over the background
image?
>
> I need them both to be background because I want to use
text over both.
>
> Any ideaS?
> -
Hi,
I have a page with three report regions. Two (with column 1 and 2) on the region 4, and one in region 5 (with column 1).
The report in region 5 starts 3 or 4 characters earlier on the page then the first report of region 4.
How to get a correct outline (same starting point for displaying the region) ?
Hope I made my self clear.
Any reaction will be appreciated, in advance.
LeoHello,
If you can put an example on apex.oracle.com it will be much easier to help you out. Layout issues are really hard to debug if you can't see them.
Carl -
How to set the charset encoding dynamically in JSP
Is there any way to set the charset encoding dynamically in a JSP
page?
we are using weblogic 6.1 on HP unix.
is there some way we can set the charset dynamically in the page directive
<%@ page contentType="text/html;charset=Shift_JIS" %>
and in MAET tag
<meta http-equiv="Content-Type" content="text/html" charset="Shift_JIS">
Saurabh AgarwalDear Saurabh,
I guess it is possible. Here is an example I have made some time ago :
In my html page :
<form name="form1" METHOD=POST Action=Lang ENCTYPE="application/x-www-form-urlencoded" >
<p>
<select name="code" size="1">
<option value="big5">Chinese</option>
<option value="ISO-2022-KR">Korean</option>
<option value="x-euc-jp">Japanese</option>
<option value="ISO-8859-1">Spanish</option>
<option value="ISO-8859-5">Russian</option>
<option value="ISO-8859-7">Greek</option>
<option value="ISO-8859-6">Arabic</option>
<option value="ISO-8859-9">French</option>
<option value="ISO-8559-1">German</option>
<option value="ISO-8859-4">Swedish</option>
<option value="ISO-8859-8">Hebrew</option>
<option value="ISO-8859-9">Turkish</option>
</select>
</p>
<p>
<textarea name="entree_text"></textarea>
<input type="submit" name="Submit" value="Submit" >
</p></form>
and in my jsp :
// Must set the content type first
res.setContentType("text/html");
code = req.getParameter("code");
example = req.getParameter("entree_text");
PrintWriter out = res.getWriter();
// The Servlet send to the Browser the informations to format the language type
out.println("<html><head><title>Hello World!</title><meta http-equiv=\"Content-Type\" content=\"text/html; charset="+code+"\"></head>");
// System recover the general Character encoding
String reqchar = req.getCharacterEncoding();
out.println("<body><h1>Hello MultiLingual World!</h1>");
out.println("You have defined an ISO of : "+code);
out.println("<BR>This is the code of the page that is displayed in this page<BR>");
out.println("<BR>");
out.println("<BR>");
out.println("Character encoding of the page is : "+reqchar);
out.println("<BR>This is the character code in the Servlet");
out.println("<BR>");
out.println("<BR>");
out.println("<BR>");
out.println("You have typed : "+example);
out.println("<BR>");
out.println("");
out.println("</body></html>");
I think starting from this example it is surely easy to modify dynamically the jsp.
The other possibility would be to use the Weblogic Commerce and the LOCALIZE function, so that you'll have an automatic redirection to the right jsp-encoding depending on the customer's language.
Feel free to reply on the forum for any related issue.
Best regards
Nohmenn BABAI
BEA EMEA Technical Support Engineer
"Saurabh" <[email protected]> a écrit dans le message de news: [email protected]...
Is there any way to set the charset encoding dynamically in a JSP
page?
we are using weblogic 6.1 on HP unix.
is there some way we can set the charset dynamically in the page directive
<%@ page contentType="text/html;charset=Shift_JIS" %>
and in MAET tag
<meta http-equiv="Content-Type" content="text/html" charset="Shift_JIS">
Saurabh Agarwal[att1.html] -
How to set the region in system preferences?
Hi all. I just bought my macbook pro with retina. I choose the country as United States when I set up the mac. After that it asks me whether to transfer documents from another PC. So I transfered my documents to the new mac. There are some Chinese documents.
Now calendar displays the dates in Chinese instead of English. I tried to set the region to US in system preferences and restart the system, but it always change back to "Chinese" in the region tag.
How can I make my mac into a pure English one?
Thanks a lot!Open autoexec.bat in texteditor. This is an example from my autoexec, win me. Running resin
SET CLASSPATH=c:\jdk1.3.1_01\bin\;c:\andreas\resin\bin\jsdk23.jar;c:\Jimi\JimiProClasses.zip;
SET PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;c:\jdk1.3.1_01\bin\;c:\andreas\resin\bin\jsdk23.jar;c:\Jimi\JimiProClasses.zip;C:\Program\MtsAndreas
Maybe you are looking for
-
my laptop broke had to get a new on had like 60 songs how can i get them back i sould not have to pay again????? please answer my ?
-
SAFARI 4.1.1 crashes when accepting a security certificate
I used to do my banking online for the last 6 years until last week, when I reset my safari (all boxes except for my Bookmarks' history). I also removed a single database I had in storage under the security tab of my preferences. After last week, whe
-
Conflicting app, nokia asha 210
i am using nokia asha 210 and after i upgrade the mail app, the phone is showing "conflicting application" every time i switched on my phone and every time i tried to open other application such as whatsapp (which is the only one working after the up
-
CE7.1 SP3/SP4 Application service - complex return type
Hi all, can anybody tell me how to create an operation with a complex return type (collection) within an application service.I can't find it in the documentation! I would appreciate helpful answers. BR, Martin
-
Hello! I have a page composed of a region and jsff according to this doc; http://docs.oracle.com/cd/E12839_01/web.1111/b31974/web_getstarted.htm#BABBHGJA any backing beans for page fragments or declarative components should use BackingBean scope The