Resizing the SQL report in APEX

Hi,
I am using SQL Report, it has just 2 columns and three buttons.
But the report size width is full, extends fulls screen.
I am using Theme 9, Underlined
Template: Reports Region Alternative 1
I verified another application which I have done some months back, a report there has the same settings, but the display is perfect, it just occupies 40% of the screen, unlike the current report which is 100% wide :-|
Please let me know what changes can be done.

Hi,
The right solution for this problem was, I resized the report region:
Edit Region->Attributes->Region Attributes->style="width:400px"
This resolved the issue.
Thanks for all your suggestions.

Similar Messages

  • Create Simple Printable SQL Reports in APEX 3.2 Without a Print Server

    Oracle Apex 3.2
    Oracle 11g
    OHS
    I thought I'd post an answer on how to get a printable SQL report in Oracle Apex without having to configure a print server. I'm sure that similar things have been posted in various other places, but I found the documentation for using custom row templates (to create a printable report) to be incomplete at best. For my needs, I was not looking for an awe inspiring report printout, but rather simple directory information printouts. For example, if you wanted a printable report to look like this:
    =================================
    CURRENT ACTIVE EMPLOYEES REPORT
    =================================
    First Name: Bob                  Employee ID: 0000000000
    Last Name: Swarts              Company Credit Card Number: 0000-0000-0000-0000
    Middle Initial: F                  Social Security Number: 000-00-0000
    First Name: Sue                  Employee ID: 1111111111
    Last Name: Johnson           Company Credit Card Number: 1111-1111-1111-1111
    Middle Initial: G                 Social Security Number: 111-11-1111
    etc.....In MS Access, doing this is very easy. From what I understand, this is also very easy to do this using PDF software with a print server. However, if you are like me, you don't want to waste time and money by obtaining and configuring a print server (even if it is free). However, never fear because you can create simple reports like this with relatively minimalistic effort; and you can do so without having to configure a print server.
    1.) Create a new page
    2.) Create a new sql query report region on the page
    3.) Make your query just as you would normally.
    For this example the query would be:
    select first_name, employee_id, last_name, company_credit_card_number, middle_initial, social_security_number from employee_table4.) Go to "Shared Components"
    5.) Under "User Interface" click on "Templates"
    6.) Click on the "Create" button
    7.) Select "Report"
    8.) Select "From Scratch"
    9.) For the "Template Class," choose one of the "custom" classes. For the "Template Type," choose "Named Column"
    10.) Click the "Create" button
    11.) Now that you created a custom row template, go back to "Shared Components" and then to "Templates"
    12.) Find your custom template and click on it
    CUSTOM TEMPLATE HOW TO
    1.) In the "Row Template 1" textbox, you are going to create some custom css that will display the data on the page. The css to make the report look like the report above would be:
    <div style = text-align: justify">
    <table>
    <tr>
    <td style = "width: 200px"><b>First Name: #1#</b></td>
    <td style = "width: 225px">&nbsp</td>
    <td style = "width: 215px"><b>Employee Id: #2#</b></td>
    <tr>
    <td style = "width: 200px">Last Name: #3#</td>
    <td style = "width: 225px">&nbsp</td>
    <td style = "width: 215px">Company Credit Card Number: #4#</td>
    <tr>
    <td style = "width: 200px">MI: #5#</td>
    <td style = "width: 225px">&nbsp</td>
    <td style = "width: 215px">Social Security Number: <b>#6#</b></td>
    </tr>
    </table>
    <p style = "page-break-after: always">----------------------------------------------------------------</p>
    </div>
    {code}
    As you probably figured out, the numbers between the two pound signs ("#") are substitution strings for the variables in your select query in the SQL report.  As you have also probably noticed, the "page-break-after: always" line will always make it so that only one report is shown on a page.  To fix this, we will need to use logic and row template 2.
    2.)  For the "Row Template 1 Condition," select "Use Based on PL/SQL Expression" from the select list.
    3.)  In the textbox for the row template 1 expression enter in the following:  {code}substr('#rownum#',-1) = 0 or substr('#rownum#',-1) = 5{code}
    ***** This condition will make sure that this template is applied when the last digit in the row number is either a "0" or a "5."  So, only 5 reports will be displayed per page.
    4.)  Now go down to "Row Template 2" and enter in the following in the textbox:
    {code}
    <div style = text-align: justify">
    <table>
    <tr>
    <td style = "width: 200px"><b>First Name: #1#</b></td>
    <td style = "width: 225px">&nbsp</td>
    <td style = "width: 215px"><b>Employee Id: #2#</b></td>
    <tr>
    <td style = "width: 200px">Last Name: #3#</td>
    <td style = "width: 225px">&nbsp</td>
    <td style = "width: 215px">Company Credit Card Number: #4#</td>
    <tr>
    <td style = "width: 200px">MI: #5#</td>
    <td style = "width: 225px">&nbsp</td>
    <td style = "width: 215px">Social Security Number: <b>#6#</b></td>
    </tr>
    </table>
    <p>----------------------------------------------------------------</p>
    </div>look familiar? that is because it exactly the same code as above, except without the page-break-after piece.
    5.) For the "Row Template 2 Condition," select "Use Based on PL/SQL Expression" from the select list.
    6.) In the textbox for the row template 2 expression enter in the following: substr('#rownum#',-1) != 0 or substr('#rownum#',-1) != 5***** This condition will make sure that this template is applied when the last digit in the row number IS NOT a "0" or a "5."
    7.) Scroll down to column headings and enter this in the textbox for the "Column Heading Template": OMIT
    8.) Click the "Apply Changes" button
    9.) Now go back to your application and the page you want to apply the custom report to
    10.) On the report, click on the report tab
    11.) Scroll down to "Layout and Pagination"
    12.) Click on the "Report Template" select list
    13.) Select your custom template
    14.) Click the "Apply Changes" button and run the page
    Try printing the report, if it does not print correctly, try it in Opera, Safari, Internet Explorer, Firefox, and Google Chrome. Please note that it is my understanding that only Firefox does not understand the css "page-break-after: always"
    If needed, add some css to the page to hide tabs and other items when you print.
    ~Andrew Schulltz

    DOH. Too much copy/paste.
    In my code, I was setting an application variable to contain the email address I was retrieving from AD. Once commented out, it worked fine.
              IF l_attr_name = 'mail' THEN
                 APEX_UTIL.SET_SESSION_STATE('F111_USER_EMAIL',l_vals(i));
              END IF;

  • Window.open function in java script used to open the BI report from APEX

    Hi,
    I have some oracle reports now which I converted to BI publisher and the reports are now in BI publisher.
    My question is
    To open the BI report from APEX using a button the following code i have written
    window.open
    ('http://bipubdvserver/xmlpserver/testreport/testreport.xdo?_xpf=&_xpt=1&p_dept_no=&deptno',"mywindow");
    I want to pass the parameter deptID dynamically to call the BI report.
    But when I click on the button it is showing the file open/save dialog box without accepting the parameter and finally showing the blank pdf.
    but I want to enter the parameter value dynamically that is when click on button it should allow me to enter the deptno eg. 10 then should show the data related to dept 10 in pdf..
    how to accomplish this could you please help me.
    thanks very much in advance.

    i got this please ignore the post.

  • How to find if the SQL Reporting services are stand alone or clustered ?

    Hi All,
    Can any one tell me how do i find if the SQL Reporting services are stand alone or clustered ?
    As there are no other SQL features installed on the server except for reporting.
    Is there any GUI or CLI command to check this ?
    Gautam.75801

    Hello,
    Do not open cluster administrator since SSRS cannot take advantage of Windows Clustering Services.
    You need see if the Network Load Balancing manager (NLB) (windows feature) is installed on the SSRS computer and open
    it to see if a NLB cluster has been configured.
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Https: access to the SQL report SQL2012

    Hi,
    I just successfully bind the https to the SQL reporting, however, I cannot access the report Manager or reports thereafter although I am sure I provide the correct user name/password (even tried Administrator), after 3 attampts, a blank page is shown...
    Please help on how to fix it...
    Event log also thrown out the error message .. (event id 110)
    The value for UrlRoot in RSReportServer.config is not valid. The default value will be used instead.

    -------Details--------
    System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation
    procedure.
       at System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest asyncRequest, Exception exception)
       at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest)
       at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult)
       at System.Net.TlsStream.CallProcessAuthentication(Object state)
       at System.Threading.ExecutionContext.runTryCode(Object userData)
       at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result)
       at System.Net.TlsStream.Write(Byte[] buffer, Int32 offset, Int32 size)
       at System.Net.PooledStream.Write(Byte[] buffer, Int32 offset, Int32 size)
       at System.Net.ConnectStream.WriteHeaders(Boolean async)
       --- End of inner exception stack trace ---
       at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request)
       at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request)
       at Microsoft.ReportingServices.UI.Global.RSWebServiceWrapper.GetWebResponse(WebRequest request)
       at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
       at Microsoft.SqlServer.ReportingServices2010.ReportingService2010.ListItemTypes()
       at Microsoft.SqlServer.ReportingServices2010.RSConnection2010.<ListItemTypes>b__10f()
       at Microsoft.SqlServer.ReportingServices2010.RSConnection2010.SoapMethodWrapper`1.ExecuteMethod(Boolean setConnectionProtocol)
       at Microsoft.SqlServer.ReportingServices2010.RSConnection2010.ListItemTypes()
       at Microsoft.ReportingServices.UI.Global.SecureAllAPI()
       at Microsoft.ReportingServices.UI.ReportingPage.EnsureHttpsLevel()
       at Microsoft.ReportingServices.UI.ReportingPage.ReportingPage_Init(Object sender, EventArgs args)
       at System.EventHandler.Invoke(Object sender, EventArgs e)
       at System.Web.UI.Control.OnInit(EventArgs e)
       at System.Web.UI.Page.OnInit(EventArgs e)
       at System.Web.UI.Control.InitRecursive(Control namingContainer)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    appdomainmanager!ReportManager_0-1!c30!03/11/2015-16:43:25:: e ERROR: Remote certificate error RemoteCertificateNameMismatch encountered for url
    https://aaa.xxx.yyy/ReportServer_SQLEXPRESS/ReportService2010.asmx.
    ui!ReportManager_0-1!c30!03/11/2015-16:43:25:: e ERROR: System.Threading.ThreadAbortException: Thread was being aborted.
       at System.Threading.Thread.AbortInternal()
       at System.Threading.Thread.Abort(Object stateInfo)
       at System.Web.HttpResponse.End()
       at System.Web.HttpServerUtility.Transfer(String path, Boolean preserveForm)
       at Microsoft.ReportingServices.UI.ReportingPage.ShowErrorPage(String errMsg)
    library!WindowsService_0!748!03/11/2015-16:44:32:: i INFO: Call to CleanBatch()
    library!WindowsService_0!748!03/11/2015-16:44:32:: i INFO: Cleaned 0 batch records, 0 policies, 0 sessions, 0 cache entries, 0 snapshots, 0 chunks, 0 running jobs, 0 persisted streams, 0 segments, 0 segment mappings, 0 edit sessions.
    library!WindowsService_0!748!03/11/2015-16:44:32:: i INFO: Call to CleanBatch() ends
    Indeed, this is a testing VM that I P2V from the live server which domain name is aaa.xxx.yyy but I already changed the host file and now I accessing this VM is using
    https://project.bbb.ccc/. Not sure why it still hardcoded as aaa.xxx.yyy.
    Would this generated the problem...

  • Question about the interavtive Reports in APEX 3.1

    Hi,
    I have tested the nice interactive reports feature on the evaluation instance of APEX 3.1
    I hope the new APEX 3.1 will be released soon.
    Is the SQL-Query stored in the apex tables, if I save my customized report? For example I have a report and I create a new feature. Then I guess the APEX generates a new SQL feature and when I store the report with the filter, the SQL-Query must be stored, too...
    Will that SQL be stored in the APEX tables, so I can select it over the apex-views?
    That would be very nice. So that the user of an application can create their own reports and download it with scotts example: http://spendolini.blogspot.com/2006/04/custom-export-to-csv.html
    Will that be possible and should I wait for the APEX 3.1 would be released or must I build an own solution?
    Thank you,
    Tim

    Hey Marco,
    I can`t find a view that is named like "APEX_APPLICATION_PAGE_IR%". Is it not available on the evaluation instance.
    I don`t want to use the build-in CSV download, becaus I want to export thousands of data sets. I got this already to work with APEX 3.0 and I get the sql from the application views. The procedure which creates the file runs a few hours and after that it is inserted into a table from which the user can download the file. In the procedure there happens a few other things, which are very import, so I have to create my custom solution.
    And for that I thought it would be very very very cool if I can get the sql behind the interactive report with the filters ant those things.
    Don`t you think that would be possible? I guess the APEX create a SQL although, or am I wrong?
    Thank you,
    Tim

  • How to update the sql report column create using Htmldb_item

    Hi,
    I have a updateable sql report,which consist of htmldb_item like
    htmldb_item.hidden(1,a.id) "ID",
    htmldb_item.display_and_save(2,a.question,2,100) "Question",
    htmldb_item.text(3,b.answer,20,1000) "Answer"
    now in the report 'answer' coloumn i have made updateable,but my question is how to create the valdiation on the answer coloumn of the report.
    As i been to page source and for all the record of the answer coloumn the array id is f03, so how to identify the particular 'answer' on the report and give the validation for them...
    Thanks

    Validations in Apex are designed to operate upon individual page items that you have defined on the page, not tabular form elements.
    Search the forum for other techniques you can use
    http://forums.oracle.com/forums/search.jspa?objID=f137&q=tabular+form+validate+declaratively+javascript

  • Hierarchy indentation problem in the sql report region

    I've the following sql statement in sql report region. it works fine by bringing the all the users reporting to a manager correctly. In the sample user table below manager/id are in parent/child relationship.
    select id from user_table start with upper(id)=upper(:p332_person_short_id) connect by prior id = manager
    user1
    user2
    user3
    where user2 and user3 are reporting to user1.
    But I want to give some indentation between the user levels to show the hierarchy clearly in the report as below
    user1
    user2
    user3
    I tried with the following statment. It does indent the users correctly but in hierarchy is reversed.
    select LPAD(' ',6*(Level-1))|| id "User" from user_table start with upper(id)=upper(:p332_person_short_id) connect by prior id = manager
    the output is
    user2
    user3
    user1
    Any help is appreciated.

    I think padding with blanks will not work in HTML. You will have to pad with " ".
    So, something like this should work:
    select replace(lpad('@',6*(level-1),'@'),'@','&amp;nbsp;')||id "User" from ....
    Hope that helps
    Jochen

  • Partially refresh the sql report region by clicking the region selector tab

    Hi,
    In my page i have a region display selector tab. This region selector tab contain show all,booking,service,.. etc. when i click the booking tab,sql report region will appear. My intention is when i click the booking tab i want to refresh that region partially to display the record according to sql query in that region source of report region.
    how to do this?
    skud.

    KevinFitz wrote:
    The report region being displayed is conditional on P2_QUERY item being NOT NULL. I assume the region not appearing is because the Action for the Select List Item is set to None and so P2_QUERY is always NULL.
    No, the region is not appearing because it is conditional on P2_QUERY being NOT NULL. This means that the report region never exists on the page shown in the browser, so it can't be dynamically refreshed. (Dynamic refresh doesn't evaluate region conditions, and it only re-renders the report content, not the entire region.)
    Remove the condition on the report region, check the refresh is working, then reconsider exactly what the requirements here are. If you want the region to appear only when P2_QUERY has a value, and you want it to be refreshed without submitting and re-rendering the page, then the region needs to be hidden rather than conditionally rendered, and shown via a dynamic action when P2_QUERY gets a value.
    I tried adding an additional Set Value True Action for the DA event but got an error as listed above,
    All irrelevant if Page Items to Submit on the region is used properly.

  • Passing parameters to the SQL Report from a text box in jsp

    Hi All,
    I want to dynamically generate the SQL Server Reporting Services by passing the query parameter from the url like this :
    "http://localhost/Reports/Pages/Report.aspx?ItemPath=%2fDashboardReports%2fHorse_Profile&rs:Command=Render&rs:HorseID=117415"
    Where horseid id my parameter which is needed by report to generate the required data.
    This query paramter value is picked from the text box on my jsp page.
    But my problem is when i go to this url it says the message
    "The 'HorseID' parameter is missing a value ".
    I have done a lot of search on this topic. Everybody says that we can pass the values from the url like i am using. But still its not working.
    Any body has any idea please give me some idea.
    Regards.

    If you receive a picture via email or text message in ios 7 and when you press the action icon to save the picture and you do not get the option to save to your camera roll. Press and hold on the the image and you will get an overlay pop up to save the image. I have no idea why some attachments don't have option in action menu to save in the camera roll but by experimentation and earned frustration I found the above to work in certain situations.
    Be well and have fun and feel rewarded in your frustrations. For without challenges, life would be an utter bore.

  • Is there any way to hook into the SQL report pagination process?

    I have a SQL report (based on EMP) with a radiogroup row selector.
    The scenario 1 and 2 are in place
    1) When the employee row radio group is clicked the P900007_JOB the text item is populated with the JOB for the employee.
    2) When the page is initially displayed or submitted via the button the first row’s radio group is programmatically clicked and therefore populates the additional job information in P900007_JOB
    Info (radio Group) Employee No Name
    (+) 7369 SMITH
    () 7499 ALLEN
    () 7521 WARD
    P900007_JOB CLERK
    1-3 Next>
    Once the report has been displayed and the next or previous pagination is used then none of the radio groups will be selected and the data in the P900007_JOB text item will still display the job of the last selected employee row.
    What I require is on pagination some sort of mechanism to either
    a) Call the page_init() that should then set the first row as selected and populate the text item via the programmatic click. (preferred option)
    b) OR blank out the additional text item P900007_JOB.
    Is there any way to hook into the pagination process?
    I have a work around – Set the ‘Enable Partial Page Refresh’ to ‘No’ but this means a full refresh every time the pagination is used.
    Details of my page
    Report Region (Based on EMP table) – radio group as a row selector
    select     APEX_ITEM.RADIOGROUP(1,EMPNO,'X21',null) CHECKRG, EMPNO,
         ENAME,
         JOB
    from     EMP
    Report Attributes -
    Report template :- P900007_ROWTEMPLATE (custom template see later)
    Report Attributes Substitution :- id="emp_report" (used in page_init see later)
    Enable Partial Page Refresh :- Yes
    Columns – All columns are selected as show but job is left out of the template below.
    P900007_JOB - Text item in report region (disabled does not save state). Populated with the employees job when the radio group is clicked.
    Control region :- HTML region that just holds a button <GO> just to submit the page and redirect back to the same page.
    P900007_ROWTEMPLATE (named column row template)
    Row template 1
    <tr style="cursor: hand; cursor: pointer;" onmouseover="row_mouse_over(this, 1)" onmouseout="row_mouse_out(this, 1)" #HIGHLIGHT_ROW# ">
    <td class="t15data" onclick="selectRow('#JOB#');">#CHECKRG# </td>
    <td class="t15data">#EMPNO# </td>
    <td class="t15data">#ENAME# </td>
    </tr>
    Before rows
    <table class="t15standard" summary="" #REPORT_ATTRIBUTES# id="report_#REGION_STATIC_ID#" >
    <th class="t15header" #ALIGNMENT# >Info</th>
    <th class="t15header" #ALIGNMENT# >Employee Number</th>
    <th class="t15header" #ALIGNMENT# >Name</th>
    After Rows
    <tr>
    <td colspan="99" class="t15afterrows">
    <span class="left">#EXTERNAL_LINK##CSV_LINK#</span>
    <table style="float:right;text-align:right;" summary="pagination">
    #PAGINATION#</table>
    </td>
    </tr>
    </table>
    *Javascript in page Header*
    <script src="#WORKSPACE_IMAGES#apex_show_hide_region.js" type="text/javascript"></script>
    <script language="JavaScript" type="text/javascript">
    <!--
    function selectRow(pJob)
    /* console.log('pete got here!'+pJob)*/
    $x('P900007_JOB').value =pJob;
    /* Start Page init*/
    function *page_init*()
    /* Used to set radio groups on reports */
    /*console.log('START pete got here!');*/
    var is_checked = false;
    var l_check = $x_FormItems($x('emp_report'), 'radio');
    /*Loop and set flag if checked*/
    for(var i=0,len=l_check.length;i<len;i++)
    if(l_check.checked){
    is_checked = true;
    /*end loop*/
    /*If none checked force a click*/
    if(!is_checked){
    /*no longer need as doing click below*/
    l_check[0].checked=true;
    /*Force a click on the first radio group - extra details should then be
    populated*/
    var l_click = l_check[0].click();
    /* console.log('END pete got here!');*/
    /*END page_init*/
    // -->
    </script>
    *Application shared component.* – This fires a DB packaged procedure when the page is loaded.
    P330_PART_NO_HIST
    Process Point On load after Body region
    Process Text show_hide_memory.part_no_history_details();
    *Packaged Procedure* – This kicks off the page_init javascript in the header (earlier) to click on the radio group in the first row.
    PROCEDURE part_no_history_details AS
    BEGIN
    htp.prn('<script type="text/javascript">' || CHR(10));
    htp.prn('<!--' || CHR(10));
    htp.prn('page_init();'|| CHR(10));
    htp.prn('//-->' || CHR(10));
    htp.prn('</script>' || CHR(10));
    END part_no_history_details;
    Thanks Pete
    Edited by: Pete @ LSC on 26-Jan-2010 06:56

    Anybody any ideas? Should I be looking down the route of using my own pagination buttons and adding my code to this?
    There seems to be a routine $a_report that I can use for the pagination but I am finding it difficult to get the current first and last record values that I would need to pass. I've seen references to below in the form but when I'm using partial refresh they do not seem to change.
    wwv_flow.g_flow_current_min_row
    wwv_flow.g_flow_current_max_rows
    wwv_flow.g_flow_current_rows_fetched
    wwv_flow.g_request
    Thanks Pete

  • Master detail relation in the sql report

    HI All
    I am using Oracle 10g and have a requirement where I need to generate the output in the following format
    Deptno 10
    Empno Ename
    1 ----------A
    2 ----------B
    Deptno 20
    Empno Ename
    3-----------C
    4-----------D
    5-----------E
    Deptno 30
    Empno Ename
    6-----------F
    7-----------G
    Can we do it throgh sql report in sqlplus.
    Thanks
    Edited by: user602329 on Sep 15, 2010 10:18 PM

    Hi,
    In pure SQL, you can get results like that using GROUP BY ROLLUP, and also using UNION. In this case, I suspect UNION would be a lot simpler.
    Using SQL*Plus fucntionality, you could also write a SQL-from-SQL script that writes (and runs) a separate query for each department, the output of which is exactly what you requested.
    I'd try UNION first.
    Write one query to get the rows like
    Deptno 10from your table, using GROUP BY deptno.
    Write another query to get the rows like:
    Empno Enamefrom your table, using GROUP BY deptno to get one such row per department. (It's possible to combine these two queries, but simpler not to.)
    Write another query to get the actual data, such as
    EMPNO  ENAME
    =====  =====
    1      A
    2      B
    3      C
    4      D
    5      E
    6      F
    7      GThen do a UNION of all three queries, with an ORDER BY clause to get them in the right order.
    Each branch of the UNION will need some extra columns, to make the sorting work right. That is, the result set of the UNION will look something like this:
    OUT1   OUT2        EMPNO     DEPTNO     QUERYNO
    Deptno 10               10     1          
    Deptno 20                   20     1
    Deptno 30                   30     1
    EMPNO  ENAME               10     2
    EMPNO  ENAME               10     2
    EMPNO  ENAME               10     2
    1      A        1          10     3
    2      B        2          10     3
    3      C        3          10     3
    4      D        4          10     3
    5      E        5          10     3
    6      F        6          10     3
    7      G        7          10     3If you're going to have text, like 'EMPNO' in the 1st column, but empno is a NUMBER, then you should convert the NUMBERs to VARCAHR2s, using TO_CHAR.
    You probably won't want to display those extra columns, so use the SQL*Plus "COLUMN ... NOPRINT" command to hide them, or do the UNION in a sub-query, and then do the ORDER BY in a super-query, where you can use columns in the ORDER BY clause without putting them in the SELECT clause alsio.
    Edited by: Frank Kulash on Sep 16, 2010 11:02 AM

  • Freeze panes for SQL report in APEX

     

    Hi,
    The right solution for this problem was, I resized the report region:
    Edit Region->Attributes->Region Attributes->style="width:400px"
    This resolved the issue.
    Thanks for all your suggestions.

  • Using :APP_ID in the sql query in apex

    Hi All,
    I am facing problem while using :APP_ID in the query for populating the Select list in apex.
    can any one suggest me how to use :APP_ID in the query. It is working fine in URL making.... in the javascript codes.
    And one more thing please put up the list of Global variable, Environment Variables in apex. like :APP_USER, :APP_ID
    Thanks in Advance,
    Santhosh Tirunahari

    Hello Santhosh,
    An example using APP_ID:
    select WORKSPACE, APPLICATION_ID, APPLICATION_NAME, LIST_NAME
    from APEX_APPLICATION_LIST_ENTRIES
    where APPLICATION_ID =:APP_IDGreetings,
    Roel
    http://roelhartman.blogspot.com/
    You can reward this reply by marking it as either Helpful or Correct ;-)

  • Refresh SQL Report Apex 4

    Hello everyone,
    On one of my pages i have 2 reports. An interactive Report and a SQL Report.(APEX 4.0)
    I don't know why Apex doesn't support 2 Interactive Reports on the same page.
    I need to refresh this reports on certain moments.Using a Dynamic Action i managed to refresh the Interactive Report, but not the SQL Report.
    I notice that in the SQL Report i have no "Enable Partial Page Refresh" checkbox...Is there any way to refresh a SQL Report via Dynamic Actions ?
    Thank you!
    Kind Regards,
    Cearnau Dan

    Hi Cearnau,
    Try this:
    Report Footer:
    &lt;script type="text/javascript">
        // Set report id
        $s('P1_REPORT_ID','#REGION_STATIC_ID#'.substr(1));
        // old version
        // $x('P1_REPORT_ID').value = '#REGION_STATIC_ID#'.substr(1);
    &lt;/script>
    HTML Header:
    &lt;script type="text/javascript">
    function fnc_updateReport(){
        // Report refresh
       $a_report($x('P1_REPORT_ID').value,'1','10','100');
    &lt;/script>Of course updating the Report with a dynamic action would work as well! :)
    Edited by: Tobias Arnhold on Oct 18, 2010 4:47 PM

Maybe you are looking for