Column values as Page Header

Hi All,
I want to display some column values like Company_Name, Company_Address etc in the Page Header of the report. I am fetching these values from table in the query of my report. Can somebody tell me how I can do that?
I tried placing a repeating frame in upper area of margin in 'Main Section' of report. Source of the frame was Query group. It printed multiple headers on one page.
Waiting for your replies. Thanks in advance.
Regards
Mona

I think your query is return more then one record or u create query as child .
Create a query company name, address etc. as parent and other information as a child query, and link them with link tool.
Example
Q1. Select customer_no,name,address from customer (Parent)
Q2. Select customer_no, invoice_no, amount from invoices (Child)
If u created query like this
Select c.customer_no,c.name,c.address, i.invoice_no, i.amount
from customer c, invoices i
where c.customer_no=i.customer_no;
its return name and address for every record of invoices table.
Qadeer

Similar Messages

  • Could not able to show a scalar value in Page Header/Group Header of the re

    Hi,
    I could not able to show a scalar value in Page Header/Group Header of the report which is returned from Sub-report. But I am able to display it in both Group Footer and Page Footer.
    I used shared variable in formula filed of both main and sub report and both are placed in the main and sub-report.
    Please do needful.
    Thanks & Regards,
    Mani G.S.

    You can only show Shared variables in main report in a location after the subreport has executed.
    If you want to show values in page header or group header you must place subreport in a section above these. This is unlikely to be possible so you will have to live with displaying results in Group/page footer.
    Alternatively you can execute subreport twice, once where subreport is hidden in a section above page/group header and pass summary figure you require and then again where you currently have subreport so you can see details as required.
    Ian

  • How to fetch the tabular form column value into page items

    Hi,
    I have created tabular form. I have set LOV for one column. Here my requirement is when i select the value from lov then it will fetch that value into page item.
    can any help?
    I am using apex 4.1
    Thanks
    vijay

    It's not so easy to make a dynamic action on a tabular form.
    The best thing you can do is to use the javascript API from APEX: http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/javascript_api.htm
    So if you have a tabular form then open your item and make it a column link.
    In the link location select URL.
    Your URL would be something like this
    javascript:$s('P1_PAGE_ITEM', #COLUMN_ID#);doSubmit('COLUMN_ID');The doSubmit is not required but if you don't submit your page then the server would never know about your page item.
    Off course it is possible to submit at a later point. For example you can just use the $s to set the value off an item and afterwards create a button that would submit your page.
    Be aware that if you just set the value off your page item and just link to an other page without submitting or without branching that other page would never know about your page item.
    If you want the server to know the value off a page item you need to submit it's value to the server. The easiest way is just to do the doSubmit() call after you have set your value.
    Hope this helps,
    Regards
    Nico

  • How to reference SQL column value for  page item text field

    greetings,
    I created a simple report based on sql query. the query is select employeeid,salary from emp_tbl. under the report column i see employeeid and salary. I created a page item text field with the source type pl/sql function body. inside this source is simple block.
    begin
    if salary < 10000 then
    return (1);
    else
    return (2);
    end if;
    end;
    from the error i take it that it doesn't understand salary. I have tried bind variable (:salary) , hash marks (#salary#), ampersand (&salary.) but nothing works. Is this even possible?
    thank you,
    mon

    Hi Mon,
    I think you will find that anything you do in Forms, you can achieve in Apex, but you may have to think a little differently. Finding direct equivalents in both environments may not be easy or even possible in some circumstances, but with a little knowledge and thought an equivalent overall business flow can be achieved that is just as efficient.
    For example, in Forms where you have a multi row block based on a table, if you need to add any derived fields then you will add these at the block level. I can see that this is what you are trying to achieve in Apex.
    In Apex this will be more easily achieved by specifying the derived fields as part of the query for the region, and if the derivation of the fields is complex you can use user defined functions. If you require page type items to be displayed such as text boxes, LOV's, radiogroups, datepickers etc then these can be embedded in the query with the use of the Apex API, see the APEX_ITEM supplied package.
    I know this is still very high level, but I hope it helps you on your way in your journey with Apex.
    Regards
    Andre

  • Displaying query columns in page header

    I have a 6i report, breaking on department, which shows the current department code and name in the page header, using a page-level summary column.
    Problem: there are department-level summary data (e.g. totals) that are printed after the detail lines, which sometimes spill over onto a new page; when this happens, the department code on the header of the continuing page is blank.
    Many thanks in advance.
    Andrew Hunter

    You can always use a PL/SQL package variable to store the last name and use srw.set_field() in the format trigger to display the value in the margin. When you execute srw.set_field() you use the PL/SQL package variable if the page summary is null and update the package variable if the page summary contains a value.

  • Problem with Page header width when column is hidded

    Hi All,
    am using SSRS-2008 R2 version.
    i had an issue width Page header width when am hiding column. Please find the below screen shoot for reference.
    Here , there is an audit parameter which contains a and b values respectively.
    If Audit= a then i need to hide the State and City column . So, for that i have written following expression[ =Parameters!Audit.Label="a" ] and its working fine.
    But, if see the screen shoot when columns are hiding then some space is coming in that column which is deviating from Page header width.
    Is there any option to increase the remaining column width when these 2 columns are hidden or is there any way to reduce the page header width according to report columns width. Can you please guide me any one.
    Thanks in advance.
    bala krishna

    Hi bala,
    According to your description, you have a report with a textbox in its page header. You have set some column visibility in tablix based on the parameter selection. Your problem is, when you hide columns, the textbox remains top right in the page header.
    Now you want to make it aligned with the tablix. Right?
    In Reporting Service, we can’t reduce the page header width or increase those remaining columns width based on the parameter selection (or columns visibility). And we can’t keep the tablix always top right because we only have top and left to determine the
    location of a tablix/textbox. For your requirement, it doesn’t have a complete solution to achieve either of your two options. However, we find a workaround for you. In this scenario, we can use two textboxes in page header. Put one in top right. Put the other
    textbox at an appropriate position when columns are hidden. Then put conditional expression into textbox for text displaying based on parameter selection.
    Ps: We don’t set the visibility of textbox because the space of textbox will be removed if it’s hidden, that may make one textbox float moving when the other is hidden.
    We have tested this case with sample data in our local environment. Here are steps and screenshots for you reference:
    1. In our sample report, we set Amt1 column hidden when selecting “a” in parameter. Put expression into textbox.
    A: =IIF(Parameters!ReportParameter1.Value="a","header info","")
    B: =IIF(Parameters!ReportParameter1.Value="b","header info","")
    2. Save and preview. It looks like below:
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou
      

  • Before Header pl/sql process to assign values to page items

    How can i assign values to items on a page based on the data structure returned from a pl/sql procedure within the before header process? I am thinking of executing a pl/sql procedure based on a URL parameter value and then assign values to page items. Is this really possible using Apex 4.0.2? If yes, how can it be done?
    thanks
    Seetharaman

    The question isn't really clear. What kind of "data structure returned from a pl/sql procedure"? Please be much more specific.
    For a PL/SQL data structure such as record containing 2 elements (<tt>x</tt> and <tt>y</tt>) returned as an out parameter from a procedure to be assigned to 2 page items <tt>p1_x</tt> and <tt>p1_y</tt>, all that's required in the Before Header process is something like
    declare
      l_rec rec_type;
    begin
      the_proc(..., p_out => l_rec, ...);
      :p1_x := l_rec.x;
      :p1_y := l_rec.y;
    end;

  • CupsRasterinterpretPPD avait une erreur page header uses unsupported values

    Problem printing from Photoshop and Epson Stylus Pro 7900 you have an explanation?
    What does this error message: current print - "cupsRasterinterpretPPD" was an error = page header uses unsupported values​​.
    thank you for your help

    Update photoshop to the latest version (Help>Update...), that should fix it.

  • Partial Page Rendering - Refresh Column Value

    Hi OAF Gurus,
    I created a create page and followed the tutorial on Partital page Rendering creating a PVO view object and I am able to render the "EmployeeNumber" / "Location" column true OR false based on the value of another feild (Area Monitored).
    The "TypeMonitored" (message choice) has 2 values (Area/Employee). If user selects the "Area" then the "EmployeeNumber" column should be hidden and if the user selects "Employee" then the "Location" column should be hidden. it works fine.
    My problem is if the user has selected "Employee" in the "TypeMonitored" poplist and entered the "EmployeeNumber" and then immediately again if the user selects "Area" from the "TypeMonitored" poplist and enters the "Location" (since the location is now visible to the user) and clicks on the Save then the record is getting saved with both the values. I need to have the column value of "Employee" to be blank in this case.
    Basically need to set/clear the value of EmployeeNumber before saving to the database.
    Any help would be greatlly appreciated. Please let me know if you need further details.
    Thanks,
    Mir
    Here is my AMImpl Code
    ===============
    package lac.oracle.apps.lac.lacempexposure.server;
    import oracle.apps.fnd.framework.server.OAApplicationModuleImpl;
    import oracle.apps.fnd.framework.server.OAViewObjectImpl;
    import oracle.jbo.Row;
    import oracle.apps.fnd.framework.OAViewObject;
    import oracle.jbo.Transaction;
    import oracle.jbo.domain.Number;
    import oracle.apps.fnd.framework.OARow;
    import oracle.apps.fnd.common.MessageToken;
    import oracle.apps.fnd.framework.OAException;
    // --- File generated by Oracle ADF Business Components Design Time.
    // --- Custom code may be added to this class.
    // --- Warning: Do not modify method signatures of generated methods.
    public class LacEmpExposureAMImpl extends OAApplicationModuleImpl {
    /**This is the default constructor (do not remove)
    public LacEmpExposureAMImpl() {
    * Initializes the transient application properties VO.
    public void init()
    System.out.println("Into LACEmpExposureAMImpl.java IN init");
    //System.out.println(LacTypeMonitored);
    OAViewObject appPropsVO = (OAViewObject)findViewObject("LacExpCreatePVO1");
    if (appPropsVO != null)
    // Do not reinitialize the VO unless needed. Note that this method call
    // does not try to query the database for VOs with no SELECT statement
    //and only transient attributes.
    if (appPropsVO.getFetchedRowCount() == 0)
    // Setting the match fetch size to 0 for an in-memory VO
    // prevents it from trying to query rows. Calling
    // executeQuery() ensures that rows aren't lost after
    // a commit in the transaction (BC4J known issue workaround).
    appPropsVO.setMaxFetchSize(0);
    appPropsVO.executeQuery();
    // You must create and insert a row in the VO before you can start
    // setting properties.
    appPropsVO.insertRow(appPropsVO.createRow());
    // Set the primary key value for this single-rwo VO.
    OARow row = (OARow)appPropsVO.first();
    row.setAttribute("RowKey", new Number(1));
    } // Initialize the application properties VO (and the UI) based on the
    // default Type Monitored value set on the underlying object.
    handleTypeMonitoredChangeEvent();
    } // end init()
    * Handles changes of the TypeMonitored poplist to set the
    * application properties VO value for PRR
    public void handleTypeMonitoredChangeEvent()
    // Get the special, single-row application properties and make the
    // first(only) row current.
    OAViewObject vo = (OAViewObject)findViewObject("LacExpCreatePVO1");
    OARow row = (OARow)vo.first();
    // Get the value of the view object attribute with the TypeMonitored code
    OAViewObject LacEmpExposureCreateVO = (OAViewObject)findViewObject("LacEmpExposureVO1");
    OARow LacEmpExposureCreateRow = (OARow)LacEmpExposureCreateVO.getCurrentRow();
    String LacTypeMonitored = (String)LacEmpExposureCreateRow.getAttribute("TypeMonitored");
    System.out.println("Into LACEmpExposureAMImpl.java IN handleTypeMonitoredChangeEvent");
    System.out.println(LacTypeMonitored);
    //row.getAttribute("LocationMonitoredRender");
    //System.out.println(row.getAttribute("LocationMonitoredRender"));
    if (("Personal".equals(LacTypeMonitored)))
    row.setAttribute("LocationMonitoredRender", Boolean.FALSE);
    row.setAttribute("EmployeeNumberRender", Boolean.TRUE);
    row.setAttribute("FullNameRender", Boolean.TRUE);
    else if (("Area".equals(LacTypeMonitored)))
    row.setAttribute("LocationMonitoredRender", Boolean.TRUE);
    row.setAttribute("EmployeeNumberRender", Boolean.FALSE);
    row.setAttribute("FullNameRender", Boolean.FALSE);
    } // handleTypeMonitoredChangeEvent()
    /**Sample main for debugging Business Components code using the tester.
    public static void main(String[] args) {
    launchTester("lac.oracle.apps.lac.lacempexposure.server", /* package name */
    "LacEmpExposureAMLocal" /* Configuration Name */);
    /**Container's getter for LacEmpExposureVO1
    public OAViewObjectImpl getLacEmpExposureVO1() {
    return (OAViewObjectImpl)findViewObject("LacEmpExposureVO1");
    /**Container's getter for EmployeeNamesLovVO1
    public OAViewObjectImpl getEmployeeNamesLovVO1() {
    return (OAViewObjectImpl)findViewObject("EmployeeNamesLovVO1");
    /**Container's getter for MonitoringTypeVO1
    public OAViewObjectImpl getMonitoringTypeVO1() {
    return (OAViewObjectImpl)findViewObject("MonitoringTypeVO1");
    /**Container's getter for LacParameterMonitoredVO1
    public OAViewObjectImpl getLacParameterMonitoredVO1() {
    return (OAViewObjectImpl)findViewObject("LacParameterMonitoredVO1");
    *Creates a new Exposure Record
    public void CreateLacEmpExposure()
    OAViewObject vo = (OAViewObject)getLacEmpExposureVO1();
    //Per the coding standards, this is the proper way to
    //initialize a VO that is used for both inserts and queries.
    //See View Objects in detail in then Developers Guide for
    //additional Information.
    System.out.println("Into LACEmpExposureAMImpl.java IN CreateLacEmpExposure");
    if(!vo.isPreparedForExecution())
    vo.executeQuery();
    Row row = vo.createRow();
    vo.insertRow(row);
    //Required per OA Framework Model Coding Standard M69
    row.setNewRowState(Row.STATUS_INITIALIZED);
    } // end CreateLacEmpExposure
    *Executes a rollback including the database and the middle tier
    public void rollbackLacEmpExposure()
    Transaction txn = getTransaction();
    // This small optimization ensures that we dont persorm a rollback
    // if we don't have to.
    if (txn.isDirty())
    txn.rollback();
    } // end rollbackLacEmpExposure()
    /**Container's getter for LacEmpExposureLOVDataVO1
    public OAViewObjectImpl getLacEmpExposureLOVDataVO1() {
    return (OAViewObjectImpl)findViewObject("LacEmpExposureLOVDataVO1");
    * Commits the transaction
    public void Apply()
    getTransaction().commit();
    } // end apply()
    /**Container's getter for LacExpCreatePVO1
    public OAViewObjectImpl getLacExpCreatePVO1() {
    return (OAViewObjectImpl)findViewObject("LacExpCreatePVO1");
    * Initializes the detail employee query for Update Page.
    public void initDetailsUpdate(String EmployeeNumber,
    String FullName,
    String RecordSeq)
    System.out.println("Into LACEmpExposureAMImpl.java IN initDetailsUpdate");
    System.out.println("LACEmpExposureAMImpl ==> EmployeeNumber in initQueryUpdate is: " + EmployeeNumber);
    System.out.println("LACEmpExposureAMImpl ==> FullName in initQueryUpdate is: " + FullName);
    System.out.println("LACEmpExposureAMImpl ==> RecordSeq in initQueryUpdate is: " + RecordSeq);
    // OAViewObjectImpl vo = getLacEmpExposureVO1();
    LacEmpExposureEditVOImpl vo = (LacEmpExposureEditVOImpl)getLacEmpExposureEditVO1();
    // OAViewObject vo = (OAViewObject)getLacEmpExposureVO1();
    if (vo == null)
    MessageToken[] errTokens = { new MessageToken("OBJECT_NAME", "LacEmpExposureVO1") };
    throw new OAException("AK", "FWK_TBX_OBJECT_NOT_FOUND", errTokens);
    vo.InitQueryUpdate(EmployeeNumber, FullName, RecordSeq);
    Row row=vo.first();
    vo.setCurrentRow(row);
    // Since we're querying a single row with a primary key value, we
    // can use the findByKey method which first checks the BC4J cache,
    // and if it doesn't find a matching row, it will formulate a query using
    // the given key and retrieve it from the database.
    String[] keys = { employeeNumber };
    Row[] rows = vo.findByKey(new Key(keys), 1);
    // You must set the current row, or the Details page won't display any
    // data. When you explicitly query data, you don't have to do this.
    if (rows != null)
    vo.setCurrentRow(rows[0]);
    } // end initDetails()
    /**Container's getter for LacEmpExposureEditVO1
    public LacEmpExposureEditVOImpl getLacEmpExposureEditVO1() {
    return (LacEmpExposureEditVOImpl)findViewObject("LacEmpExposureEditVO1");
    } // end class LacEmpExposureAMImpl

    Hi,
    In your LacTypeMonitored // I assume this will be triggered when you change the poplist value form Employee to Area
    Add a logic to null the Employee value
    if (("Area".equals(LacTypeMonitored)))
    row.setAttribute("LocationMonitoredRender", Boolean.TRUE);
    row.setAttribute("EmployeeNumberRender", Boolean.FALSE);
    row.setAttribute("FullNameRender", Boolean.FALSE);
    //Set the employee attribute to null
    (OARow)LacEmpExposureCreateVO.getCurrentRow().setAttribute("<employeeAttribute >",null);
    Let me know it works.
    Thanks,
    With regards,
    Kali.
    OSSI.

  • Uploading Page Blob to Azure - Storage Exception: Make sure the value of Authorization header is formed correctly

    I am using Microsoft Azure Java SDK for Uploading Page Blobs (Size: 20G/40G). IN mid of Uploading, SDK throws Storage Exception:
    java.io.IOException: null
    at com.microsoft.azure.storage.core.Utility.initIOException(Utility.java:584) ~[classes/:na]
    at com.microsoft.azure.storage.blob.BlobOutputStream$2.call(BlobOutputStream.java:414) ~[classes/:na]
    at com.microsoft.azure.storage.blob.BlobOutputStream$2.call(BlobOutputStream.java:398) ~[classes/:na]
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) ~[na:1.7.0_25]
    at java.util.concurrent.FutureTask.run(FutureTask.java:166) ~[na:1.7.0_25]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) ~[na:1.7.0_25]
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) ~[na:1.7.0_25]
    at java.util.concurrent.FutureTask.run(FutureTask.java:166) ~[na:1.7.0_25]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) ~[na:1.7.0_25]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) ~[na:1.7.0_25]
    at java.lang.Thread.run(Thread.java:724) ~[na:1.7.0_25]
    Caused by: com.microsoft.azure.storage.StorageException: Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.
    at com.microsoft.azure.storage.StorageException.translateException(StorageException.java:162) ~[azure-storage-1.2.0.jar:na]
    at com.microsoft.azure.storage.core.StorageRequest.materializeException(StorageRequest.java:306) ~[azure-storage-1.2.0.jar:na]
    at com.microsoft.azure.storage.core.ExecutionEngine.executeWithRetry(ExecutionEngine.java:178) ~[classes/:na]
    at com.microsoft.azure.storage.blob.CloudPageBlob.putPagesInternal(CloudPageBlob.java:642) ~[classes/:na]
    at com.microsoft.azure.storage.blob.CloudPageBlob.uploadPages(CloudPageBlob.java:971) ~[classes/:na]
    at com.microsoft.azure.storage.blob.BlobOutputStream$2.call(BlobOutputStream.java:402) ~[classes/:na]
    ... 9 common frames omitted
    SDK Version:
    <groupId>com.microsoft.azure</groupId>
    <artifactId>azure-storage</artifactId>
    <version>1.2.0</version>
    Please note this error shows up in the mid of Upload randomly: For example: Transferred bytes: 27325890560 out of total 42949673472 successfully and then fails with Exception pasted above.
    Is there a chance of time drift on a Linux Box causing this issue ? Any other pointers would help.
    Thanks.

    Hi Kriti,
    We believe its a timing issue. Would you be able to refer the following link and check if it helps?
    http://blogs.msdn.com/b/kwill/archive/2013/08/28/http-403-server-failed-to-authenticate-the-request-when-using-shared-access-signatures.aspx
    If not, would you be able to share the fiddler trace for this?
    Regards,
    Malar.

  • How to hide Application page header depending on REQUEST value

    Hi All:
    APEX 4.0
    I have created an APEX application (authentication is public) using Theme 20. This application has Page Header section. Below is the body definition from "One Level Tabs" page template used for this applicaiton.
    <div id="t20PageHeader"">
    <table border="0" cellpadding="0" cellspacing="0" summary="">
    <tr>
    <td id="t20Logo" valign="top">#LOGO#<br />#REGION_POSITION_06#</td>
    <td id="t20HeaderMiddle" valign="top" width="100%">#REGION_POSITION_07#<br /></td>
    <td id="t20NavBar" valign="top">Welcome &APP_USER. #NAVIGATION_BAR#<br />#REGION_POSITION_08#</td>
    </tr>
    </table>
    <div id="t20Tabs" class="tablight">#TAB_CELLS#</div>
    </div>
    <div id="t20BreadCrumbsLeft">#REGION_POSITION_01#</div>
    In our CRM application, we have create an iframe to show this apex application using this URL:
    http://ke4000dev.xxx.com:8040/pls/apex/f?p=BIEXPRESS:1::*CRM*
    As you can see the REQUEST = CRM
    I need implement the following in this APEX:
    If Request = 'CRM' then
    hide Page header
    else
    show Page header
    end if;
    Can you suggest a solution for doing this?
    Basically when this APEX application is displayed in our CRM iframe, we want to get rid of logo (part of page header) to save some space.
    Thanks in advance!
    Edited by: Kevin Zhang on Oct 4, 2012 11:41 AM
    Edited by: Kevin Zhang on Oct 4, 2012 11:59 AM

    Create a Dynamic Action:
    When
    Event: Page Load
    Condition: -No Condition -
    True Actions
    Action: Hide
    Selection Type: jQuery Selector
    Affected Elements: #t20PageHeader
    Condition
    Condition Type: Request = Expression 1
    Expression 1: CRM

  • Custom row-fetch and how to get column values from specific row of report

    Hi -- I have a case where a table's primary key has more than 3 columns. My report on the
    table has links that send the user to a single-row DML form, but of course the automatic
    fetch won't work because 1) I can't set more than 3 item values in the link and 2) the
    auto fetch only handles 2 PK columns.
    1)
    I have written a custom fetch (not sure it's the most elegant, see second question) that is working
    for 3 or few PK columns (it references the 1-3 item values set in the link), but when there are
    more than 3, I don't know how to get the remaining PK column values for the specific row that was
    selected in the report. How can I access that row's report column values? I'll be doing it from the
    form page, not the report page. (I think... unless you have another suggestion.)
    2)
    My custom fetch... I just worked something out on my own, having no idea how this is typically
    done. For each dependent item (database column) in the form, I have a source of PL/SQL
    function that queries the table for the column in question, using the primary key values. It works
    beautifully, though is just a touch slow on my prototype table, which has 21 columns. Is there
    a way to manually construct the fetch statement once for the whole form, and have APEX be smart
    about what items get what
    return values, so that I don't have to write PL/SQL for every item? Because my query data sources
    are sometimes in remote databases, I have to write manual fetch and dml anyway. Just would like
    to streamline the process.
    Thanks,
    Carol

    HI Andy -- Well, I'd love it if this worked, but I'm unsure how to implement it.
    It seems I can't put this process in the results page (the page w/ the link, that has multiple report rows), because the link for the row will completely bypass any after-submit processes, won't it? I've tried this in other conditions; I thought the link went directly to the linked-to page.
    And, from the test of your suggestion that I've tried, it's not working in the form that allows a single row edit. I tried putting this manually-created fetch into a before header process, and it seems to do nothing (even with a hard-coded PK value, just to test it out). In addition, I'm not sure how, from this page, the process could identify the correct PK values from the report page, unless it can know something about the row that was selected by clicking on the link. It could work if all the PK columns in my edit form could be set by the report link, but sometimes I have up to 5 pk columns.
    Maybe part of the problem is something to do with the source type I have for each of the form items. With my first manual fetch process, they were all pl/sql functions. Not sure what would be appropriate if I can somehow do this with a single (page level?) process.
    Maybe I'm making this too hard?
    Thanks,
    Carol

  • Conditional Text and Image based on Excel column values

    Hi,
       I have an excel file which contains data that needs to be imported/merged in an InDesign document. I have converted that file into a CSV... I'm unable to figure out how to create document using Data Merge after evaluating some conditions on data ... Example InDesing document layout is like below and will be repeated for say 200 data rows...
    Heading 1
    Text 1, Text 2
    Text 3
    Image
    Heading 1, Text 1 and Text 2 even Image value will be set after checking some condition like below
    if ( column 'A' == ' ' && column 'B' == '1')
      Set 'Heading 1' == column X
    if ( column 'C' == '0' && file.exist(column C & '.jpg'))
       Set 'Image' == column C & '.jpg'
    Can someone please guide me how to create document when CSV and Images are given based on this scenario? and even if Data Merge is the right solution for this.
    -- Thanks.

    Data merge can only reproduce one layout, so you can't merge 200 rows and then change things unless you do it in separate documents and then combine them. Of course anything you can do via scripting or manually on a regular document you can also do to a merged document after the merge is complete.
    It sounds like this is a multiple-records-per-page scenario. TO do that you set up ONE instance only of what you want to merge, in the upper left position on the page. ID then duplicates EVERYTHING that is on the page as many times as will fit using the spacing parameters you provide. This means you need to be careful with frame sizes so they don't extend beyond where they should, but it also means you can add a no-fill, no-stroke frame as a border or bounding box to make it easier to get a precise size to be used by each record. Frames in merged documents are not threaded from record to record (though there are methods for doing that after the merge, if desired), so deleting a record normally leaves a hole in the page.
    If you have master page items, it's probably best to us the "none" master before the merge, then apply the correct master page after.
    Peter

  • Please Help - SQL Report long column value required in a separate cell

    Hi.
    I need to create a SQL report with the structure like below:
    Country State City Vertical Business Details (detail desc)
    US MA Quincy Healthcare
    This is a detail desc value that needs to displayed in a different cell.
    This is a detail desc value that needs to displayed in a different cell.
    This is a detail desc value that needs to displayed in a different cell.
    This is a detail desc value that needs to displayed in a different cell.
    US MA Braintree IT
    This is a detail desc value that needs to displayed in a different cell.
    This is a detail desc value that needs to displayed in a different cell.
    This is a detail desc value that needs to displayed in a different cell.
    I came through a solution where you can hide/display the long column value in a different cell. But my requirement is that it should be displayed when the page opens and user don;t want to click on a button to see the value. This is mainly for their presentations and printing. so its very annoying for them to click on so many buttons to see the detail desc value for every record. I am new to Java script, Please help

    I'm not sure I understand your requirements--are you showing us 2 lines of data, 7 lines, or 9? Do you want the long detail description on the same row, or underneath it?
    I'm going to go on the assumption that you're showing us two rows, and that the long descriptions in this example happen to be 3-4 lines long, and that you want the long descriptions underneath the details. In which case, I suggest using "named column" templates. They're a lot easier to use than they appear when you first look at them, so bear with me.
    Under "Shared Components", select "Templates", and then click on the yellow Create> button. You're creating a report template, from scratch. On the final page of the wizard, select "Named Column (row template)" for the template type. This will create a rather generic (and useless) template, which you'll have to edit; I don't know why they chose to not send you straight into the editor. When you edit it, you'll see that the only field with a value in it is "Row Template 1", and it's set to:
    <tr><td>#1#</td><td>#2#</td><td>#3#</td><td>#4#</td><td>#5#</td></tr>For meeting your requirements with basic functionality, change it to something along the lines of:
    <tr><td>#COUNTRY#</td><td>#STATE#</td><td>#CITY#</td><td>#VERT#</td></tr>
    <tr><td colspan="4">#DETAILS#</td></tr>Then you'll probably want to put something under Column Heading Template, like:
    <tr><td>Country</td><td>State</td><td>City</td><td>Vertical Business</td></tr>
    <tr><td colspan="4">Details</td></tr>Apply whatever CSS styles you want to it, of course.
    Using the template is straightforward: if your report, chose the template, and make sure your SQL returns values using the column names you specified in your template. Otherwise, you'll see literal "#COUNTRY#" text in your report.
    You can get fancy with these, of course, such as applying different styles to alternating rows, but I'll leave this as good enough to get you started (I hope).
    -David

  • Conditional Suppression Page Header

    My report contains one subreport placed in RFb. The data in the subreport is unrelated to the data in the primary report, so each report requires its own set of column headers. When printed, the subreport requires at least several page. Subreports have no page header section. In my subreport the column headers are placed in the RH section of the subreport, but these headers do not show up after the first page of the subreport. In addition, the headers in the primary report appear in the subreport, though they are inappropriate.
    To workaround this problem I placed the primary report headers into PHa and the subreport headers into PHb, both in the Primary report. I want to use conditional formatting (suppression) to control the appearance of these headers WhilePrintingRecords.
    The objective is to suppress PHb until the SECOND page of the subreport. (The subreport has a title page, so that MUST be the first section on page 1 of the subreport). PHa is suppressed AFTER the primary report is done. The last section in the primary report is RFa (or is it? See below).
    Using Basic syntax I placed the following formula into RFa of the Primary report.
    'Determine last page of Primary report.
    WhilePrintingRecords
    Global nLastPgSec1 As Number
    nLastPgSec1 = PageNumber
    Formula = nLastPgSec1
    However, I have found that the value of nLastPgSec1 increments by one as each page of the subreport is printed. The only way this can occur is if RFa of the primary report is evaluated with each page, even though the subreport is placed in RFb.
    I know this is probably difficult to follow without a visual of the design.
    Can anyone tell me how to control the conditional formatting to accomplish what I need?
    Thanks,
    Art

    After a night's sleep I saw my problem. The solution was to set the value of nLastPgSec1 by placing it in the DETAILS section of the primary report (not a report footer). The formula is:
    WhilePrintingRecords
    Global nLastPgSec1 As Number
    If OnLastRecord Then
       nLastPgSec1 = PageNumber
    End If
    Formula = nLastPgSec1
    Art

Maybe you are looking for