Test whether named column exists in a  view

hi,
I need a test, for an if..then else clause to tell me whether there is a column named 'family' in a view.
Thanks in advance,
Jon

Hallo,
DECLARE
v_dummy number;
BEGIN
select 1 into v_dummy from dual
where exists (select null from dba_tab_columns
                    where table_name = 'YOUR_VIEW'
                    and column_name = 'FAMILY'
                    and owner = 'YOU');
EXCEPTION
WHEN NO_DATA_FOUND
THEN
   v_dummy:= 0;
END;
IF v_dummy = 1 THEN
dbms_output.put_line('Column exists');
ELSE
dbms_output.put_line('Column doesn't exist');
END IF;
Read about dba(all)_objects here
http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14237/statviews_2005.htm#i1583352
Regards
Dmytro
dbms_output corrected
Message was edited by:
        Dmytro Dekhtyaryuk                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • How to test if a column exists in a table

    Hello,
    Using SQL or PL/SQL how do I test if a column exists in a table. For example,
    if column_aa exists in table_1
    then do this....
    else do that....
    Thank you.

    Set ServerOutput On;
    CREATE Table a_Test (
    Col1 NUMBER
    , Col2 NUMBER )
    DECLARE
    lnCol1 NUMBER ;
    lnCol7 NUMBER ;
    PROCEDURE TestColumn( acColName IN VARCHAR2 )
    IS
    lnColX NUMBER ;
    NoColumnExists EXCEPTION;
    PRAGMA EXCEPTION_INIT(NoColumnExists, -904);
    BEGIN
    EXECUTE IMMEDIATE
    'SELECT Max('|| acColName||') FROM a_Test WHERE RowNum = 0'
    INTO lnColX ;
    DBMS_OUTPUT.Put_Line('Column: '||acColName||' exists.');
    EXCEPTION
    WHEN NoColumnExists THEN
    DBMS_OUTPUT.Put_Line('Column: '||acColName||' NOT exists.');
    WHEN Others THEN
    DBMS_OUTPUT.Put_Line( SqlCode ||' '||SqlErrM );
    END
    BEGIN
    DBMS_OUTPUT.Enable ;
    TestColumn( 'Col1') ;
    TestColumn( 'Col2') ;
    TestColumn( 'Col7') ;
    END
    DROP Table a_Test;

  • How to test whether a table exists in database?

    How can I test whether a table exists in a database before I execute a query? If the table doesn't exist, I want first create a default table with certain name so that I can always display something in JTable.
    Thanks!

    Hi,
    There are tow ways :
    The first one is :
    - load the list of tables of the Database in a Vector for exemple by using methode DatabaseMetaData.getTables () and you can test if the table exist or not in the vector by using methode Vector.contains(Object o).
    The code seems Like that :
    // Loading List Of Tables
    // you need to load the list of tables at the begening of
    // your class
    Vector listOfTables = new Vector();
    try
    rs = yourConnection.getMetaData().getTables();
    while (rs.next())
    listOfTables.addElement(rs.getString(3));
    catch(SQLException exp)
    // When you need to test the existance of table name
    // you add this line
    if(listOfTables.contains(tableName))
    // your code
    The second one :
    try
    //execute your query
    catch
    //Create your default JTable
    I hope that my response can help you!
    Ciaou,
    Anis

  • How to Determine Whether Columns Exist in a Table

    Greetings,
    Because of customizations to our product, certain database table structures vary between different client installations. Hence, in the code, I need to determine whether two columns exist in a certain table, in order to apply some business logic.
    Please suggest a way for me to determine whether two named columns appear in a specific table. In other words, for example, I need to discover whether both columns SAL_GRADE and BONUS appear in the EMP table, or not. Only if both columns are defined, can I apply my business logic.
    Thanks,
    Avi.

    Avi,
    Like this ?
    SQL> declare
      2    l_count number;
      3  begin
      4    select count(*)
      5      into l_count
      6      from user_tab_columns
      7     where table_name = 'EMP'
      8       and column_name in ('SALGRADE','BONUS')
      9    ;
    10    if l_count = 2
    11    then
    12      dbms_output.put_line('Both columns exist, so apply business logic');
    13    else
    14      dbms_output.put_line('One or both columns are missing, so don''t apply business logic');
    15    end if;
    16  end;
    17  /
    One or both columns are missing, so don't apply business logic
    PL/SQL-procedure is geslaagd.Regards,
    Rob.

  • Test whether a layer with a specific name exists?

    Is there a simple way to test whether a layer with a specific name exists?

    Simon Dav wrote:
    - Multiple layer names
    - working only for one layer name
    - can you help me for this, how to get multiple names.
    - layers "Background", "Artwork", "diecut", "size", "sign of panel"
    This should work, as one possible approach:
    var doc = app.activeDocument
    var layersToTargetNameArray = ["Background", "Artwork", "diecut", "size", "sign of panel"];
    for (var i = 0, il = doc.layers.length; i < il; i++) {
        var curLayer = doc.layers[i];
        for (var j = 0, jl = layersToTargetNameArray.length; j < jl; j++) {
            if (curLayer.name == layersToTargetNameArray[j]) {
                // do something if layer name found
                curLayer.visible = false; // basic example
            } else {
                // do something else if layer name not found
    Hope it helps your efforts.
    Please Note: If your question exceeds this working response with further unrelated requirements (non related to this thread) you should start a new thread instead for your question, as proper etiquette.

  • Why the componeng id exists in the view when create a dynmaic table?

    In the first page, i add a command button to create a managed bean containing a UIData component, whose the struture is dynamic in runtime, and then forward to other page to show the UIData:
    JSP code:
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <f:view>
    <body>
    <h:form id="welcomeform">
    <h:commandButton value="jump" action="#{welcomeForm.execute}"/>
    </h:form>
    </body>
    </f:view>JAVA code:
    package com.savage.dynweb;
    import javax.faces.context.FacesContext;
    import javax.faces.el.ValueBinding;
    public class WelcomePage {
    public String execute() {
    DynPage dynPage = new DynPage();
    dynPage.init();
    FacesContext context = FacesContext.getCurrentInstance();
    ValueBinding vb = context.getApplication().createValueBinding("#{requestScope.dynPage}");
    vb.setValue(context, dynPage);
    return "success";
    }faces-config.xml:
    <managed-bean>
    <managed-bean-name>welcomeForm</managed-bean-name>
    <managed-bean-class>com.savage.dynweb.WelcomePage</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <navigation-rule>
    <from-view-id>/pages/test.jsp</from-view-id>
    <navigation-case>
    <from-outcome>success</from-outcome>
    <to-view-id>/pages/dynpage.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>dynpage.jsp code:
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <f:view>
    <body>
    <h:form id="dynform">
    <h:dataTable binding="#{dynPage.dynTable }" var="row" value="#{dynPage.records }"/>
    <h:commandButton value="next" actionListener="#{dynPage.execute}"/>
    </h:form>
    </body>
    </f:view>DynPage.java:
    package com.savage.dynweb;
    import java.util.*;
    import javax.faces.application.Application;
    import javax.faces.component.*;
    import javax.faces.context.FacesContext;
    import javax.faces.el.ValueBinding;
    import javax.faces.event.ActionEvent;
    public class DynPage {
    private UIData dynTable;
    private List<Map<String, String>> records;
    public void init() {
    String[] headers = new String[] {"name", "age", "sex", "birthday"};
    records = new ArrayList<Map<String, String>>(10);
    for(int i = 0; i < 10; i++) {
    Map<String, String> record = new HashMap<String, String>(4);
    record.put("name", "name" + i);
    record.put("age", "age" + i);
    record.put("sex", "sex" + i);
    record.put("birthday", "birthday" + i);
    records.add(record);
    FacesContext.getCurrentInstance().getViewRoot().getChildren().clear();
    Application app = FacesContext.getCurrentInstance().getApplication();
    dynTable = new UIData();
    for(String header : headers) {
    UIColumn column = new UIColumn();
    UIOutput output = new UIOutput();
    ValueBinding vb = app.createValueBinding("#{requestScope.row." + header + "}");
    output.setValueBinding("value", vb);
    UIOutput facet = new UIOutput();
    facet.setValue(header);
    column.setHeader(facet);
    column.getChildren().add(output);
    dynTable.getChildren().add(column);
    public void execute(ActionEvent event) {
    init();
    public UIData getDynTable() {
    return dynTable;
    public void setDynTable(UIData dynTable) {
    this.dynTable = dynTable;
    public List<Map<String, String>> getRecords() {
    return records;
    public void setRecords(List<Map<String, String>> records) {
    this.records = records;
    }face-config.xml:
    <managed-bean>
    <managed-bean-name>dynPage</managed-bean-name>
    <managed-bean-class>com.savage.dynweb.DynPage</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>when I click the next button at the dynpage.jsp, it raised a exception:
    java.lang.IllegalStateException: ******************ID "dynform:_id0:_id4"(means the ID "dynform:id0:_id4" has been existed in the view)��
    com.sun.faces.application.StateManagerImpl.checkIdUniqueness(StateManagerImpl.java:201)
    com.sun.faces.application.StateManagerImpl.checkIdUniqueness(StateManagerImpl.java:204)
    com.sun.faces.application.StateManagerImpl.checkIdUniqueness(StateManagerImpl.java:204)
    com.sun.faces.application.StateManagerImpl.saveSerializedView(StateManagerImpl.java:97)
    com.sun.faces.taglib.jsf_core.ViewTag.doAfterBody(ViewTag.java:189)
    org.apache.jsp.pages.dynpage_jsp._jspx_meth_f_005fview_005f0(dynpage_jsp.java:104)
    org.apache.jsp.pages.dynpage_jsp._jspService(dynpage_jsp.java:67)
    But when i append a code:
    FacesContext.getCurrentInstance().getViewRoot().getChildren().clear();
    in the method:init(), everything is ok, why?
    Can anyone to tell me the why it raise the exception, and why I clear the children of the UIViewRoot, the exception is gone.

    Hi Frank,
    Thank you and it can work.
    public void setLowHighSalaryRangeForDetailEmployeesAccessorViewObject(Number lowSalary,
                                                                              Number highSalary) {
            Row r = getCurrentRow();
            if (r != null) {
                RowSet rs = (RowSet)r.getAttribute("EmpView");
                if (rs != null) {
                    ViewObject accessorVO = rs.getViewObject();
                    accessorVO.setNamedWhereClauseParam("LowSalary", lowSalary);
                    accessorVO.setNamedWhereClauseParam("HighSalary", highSalary);
                executeQuery();
    but I have a quesiton in this way. in code snippet, it is first getting current row of current master VO to determine if update variables value of detail VO. in my case, current row is possibly null after executeQuery() of master VO and  I have to change current row manually like below.
    any idea?
                DCIteratorBinding dc = (DCIteratorBinding)ADFUtil.evaluateEL("#{bindings.SSForecastSourceBlockView1Iterator}");
                ViewObject vo = dc.getViewObject();           
                vo.ensureVariableManager().setVariableValue("DateFrom", dateFrom);
                vo.ensureVariableManager().setVariableValue("DateTo", dateTo);
                vo.ensureVariableManager().setVariableValue("ShiftModeCode", shiftModeC);
                vo.ensureVariableManager().setVariableValue("TerminalCode", terminalCode);
                vo.executeQuery();
                vo.setCurrentRowAtRangeIndex(0);
                ((SSForecastSourceBlockViewImpl)vo).synchornizeAccessorVOVariableValues();

  • How to solve FRM-47023 No Such parameter named P_NAME exists in form

    Hello all,
    When i passing parameters from xxxx to yyyy i got the error message "FRM-47023 No Such parameter named P_NAME exists in form yyyy "..How can i solve this..
    In form xxxx I have one button named "view"..I write the following code in "when-button-pressed trigger" of view button..
    <code>
    DECLARE
    name varchar2(30);
    pl PARAMLIST:=GET_PARAMETER_LIST('PARAM');
    BEGIN
         select employee_first_name into name from employee where employee_id=2010101;
    -- Delete list if existing
    IF NOT ID_NULL(pl) THEN
    DESTROY_PARAMETER_LIST(pl);
    END IF;
    -- Create new
    pl:=CREATE_PARAMETER_LIST('PARAM');
    -- Add parameter for Mode
    ADD_PARAMETER(pl, 'P_name', TEXT_PARAMETER, name);
    -- Now call the second form, giving the parameter-list
    CALL_FORM('PARAM2',NO_HIDE,DO_REPLACE,NO_QUERY_ONLY,pl);
    END;
    <\CODE>
    In form yyyy i do the follwing..
    Add parameter named p_name..
    And in form yyyy I write following code in " New form instance trigger"..
    :block3.name:= :parameter.P_name;
    I run the xxxx form and click the View button shows the above error..
    Plese help me
    Edited by: Balraj on Feb 9, 2011 10:37 PM
    Edited by: Balraj on Feb 9, 2011 10:39 PM

    Hi;
    What is your EBS version?
    Similar error solved by note FRM-47023: No such parameter named G_QUERY_FIND exists in form FNDSCSGN [ID 106963.1]
    Please check note which could helps you
    Regard
    Helios

  • Example Named Column Report Layout?

    Howdy,
    Using APEX 3.1.2, I've successfully setup and tested Apache FOP for a print server. I'm hoping to create a multi-line report layout to emulate the MS Access (of Evil) one this app is replacing, but I'm having trouble getting started.
    It seems that I need to create a Named Column report layout. I've been scouring this forum, the web, and even the new Pro APEX book to find an example of the contents of even the simplest of these XSL-FO files, but I can't find one anywhere. Granted, a little XSL-FO experience would help here, but I can't seem to glean enough from the web to put the pieces together, at least as it applies to APEX. It seems that the examples I do find contain static data, whereas it looks like I should be creating a template form for APEX to populate for passing onto the FOP engine.
    Does anyone have a simple two-column layout they'd be willing to share? Or a good weblink?
    TIA!
    Rich

    Hi Rich,
    This is an example we use in our training:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet xmlns:fox="http://xml.apache.org/fop/extensions" xmlns:fo="http://www.w3.org/1999/XSL/Format" version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:saxon="http://icl.com/saxon" extension-element-prefixes="saxon" >
    <xsl:template match="DOCUMENT">
    <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
    <fo:layout-master-set>
    <fo:simple-page-master master-name="pagemaster1" page-height="845.0pt" page-width="598.0pt" margin-top="10.0pt" margin-left="10.0pt" margin-bottom="10.0pt" margin-right="10.0pt">
    <fo:region-body margin-left="28.0pt" margin-top="28.0pt" margin-bottom="28.0pt" margin-right="28.0pt"/>
    <fo:region-before extent="28.0pt" precedence="true"/>
    <fo:region-after extent="28.0pt" precedence="true"/>
    <fo:region-start extent="28.0pt" precedence="false"/>
    <fo:region-end extent="28.0pt" precedence="false"/>
    </fo:simple-page-master>
    </fo:layout-master-set>
    <fo:page-sequence master-name="pagemaster1" master-reference="pagemaster1">
    <xsl:attribute name="force-page-count">no-force</xsl:attribute>
    <fo:static-content flow-name="xsl-region-before">
    <fo:block-container position="absolute" top="3.0pt" left="357.0pt" height="25.0pt" width="216.0pt">
    <fo:block line-height="14.399999999999999pt" white-space-collapse="false"  linefeed-treatment="preserve"  text-align="start" position="relative" top="3.0pt" left="357.0pt" height="25.0pt" width="216.0pt" color="#000000" font-family="Arial" font-size="12.0pt" font-style="italic">
    <fo:block text-align="left" white-space-collapse="false"  linefeed-treatment="preserve" >
    <fo:inline>
    <xsl:text>Report ran by: </xsl:text></fo:inline>
    <fo:inline>
    <xsl:value-of disable-output-escaping="no" select="USER_NAME"/>
    </fo:inline>
    </fo:block>
    </fo:block>
    </fo:block-container>
    </fo:static-content>
    <fo:static-content flow-name="xsl-region-after"/>
    <fo:static-content flow-name="xsl-region-start"/>
    <fo:static-content flow-name="xsl-region-end"/>
    <fo:flow flow-name="xsl-region-body">
    <fo:block/>
    <fo:block-container position="absolute" top="4pt" left="2pt" height="752.0pt" width="536.0pt" border-width="1.0pt"> <fo:block span="none" white-space-collapse="false" font-family="Helvetica" font-size="12pt" text-align="start" position="relative" top="44pt" left="27pt" height="752.0pt" width="536.0pt"><fo:instream-foreign-object xmlns:xlink="http://www.w3.org/1999/xlink"></fo:instream-foreign-object></fo:block></fo:block-container><fo:block span="none"><!-- GENERATE TABLE START-->
    <fo:table table-layout="fixed">
    <fo:table-column column-width="80.0pt"/>
    <fo:table-column column-width="80.0pt"/>
    <fo:table-column column-width="80.0pt"/>
    <fo:table-column column-width="80.0pt"/>
    <fo:table-body>
    <fo:table-row>
    <fo:table-cell display-align="before" background-color="#cccccc">
    <fo:block line-height="19.2pt" white-space-collapse="false"  linefeed-treatment="preserve"  text-align="start" background-color="#cccccc" color="#000000" font-family="Arial" font-size="16.0pt" font-weight="bold">
    <xsl:text>Ename</xsl:text></fo:block>
    </fo:table-cell>
    <fo:table-cell display-align="before" background-color="#cccccc">
    <fo:block line-height="19.2pt" white-space-collapse="false"  linefeed-treatment="preserve"  text-align="start" background-color="#cccccc" color="#000000" font-family="Arial" font-size="16.0pt" font-weight="bold">
    <xsl:text>Hiredate</xsl:text></fo:block>
    </fo:table-cell>
    <fo:table-cell display-align="before" background-color="#cccccc">
    <fo:block line-height="19.2pt" white-space-collapse="false"  linefeed-treatment="preserve"  text-align="start" background-color="#cccccc" color="#000000" font-family="Arial" font-size="16.0pt" font-weight="bold">
    <xsl:text>Job</xsl:text></fo:block>
    </fo:table-cell>
    <fo:table-cell display-align="before" background-color="#cccccc">
    <fo:block line-height="19.2pt" white-space-collapse="false"  linefeed-treatment="preserve"  text-align="start" background-color="#cccccc" color="#000000" font-family="Arial" font-size="16.0pt" font-weight="bold">
    <xsl:text>Salary</xsl:text></fo:block>
    </fo:table-cell>
    </fo:table-row>
    <fo:table-row>
    <fo:table-cell display-align="before">
    <fo:block line-height="14.5pt" white-space-collapse="false"  linefeed-treatment="preserve"  text-align="start" color="#000000" font-family="Arial" font-size="12.0pt">
    <xsl:value-of disable-output-escaping="no" select="REGION/ROWSET/ROW/ENAME"/>
    </fo:block>
    </fo:table-cell>
    <fo:table-cell display-align="before">
    <fo:block line-height="14.5pt" white-space-collapse="false"  linefeed-treatment="preserve"  text-align="start" color="#000000" font-family="Arial" font-size="12.0pt">
    <xsl:value-of disable-output-escaping="no" select="REGION/ROWSET/ROW/HIREDATE"/>
    </fo:block>
    </fo:table-cell>
    <fo:table-cell display-align="before">
    <fo:block line-height="14.5pt" white-space-collapse="false"  linefeed-treatment="preserve"  text-align="start" color="#000000" font-family="Arial" font-size="12.0pt">
    <xsl:value-of disable-output-escaping="no" select="REGION/ROWSET/ROW/JOB"/>
    </fo:block>
    </fo:table-cell>
    <fo:table-cell display-align="before">
    <fo:block line-height="14.5pt" white-space-collapse="false"  linefeed-treatment="preserve"  text-align="start" color="#000000" font-family="Arial" font-size="12.0pt">
    <xsl:value-of disable-output-escaping="no" select="REGION/ROWSET/ROW/SAL"/>
    </fo:block>
    </fo:table-cell>
    </fo:table-row>
    <fo:table-row>
    <fo:table-cell/><fo:table-cell/><fo:table-cell/><fo:table-cell/></fo:table-row>
    </fo:table-body>
    </fo:table>
    </fo:block></fo:flow>
    </fo:page-sequence>
    </fo:root>
    </xsl:template>
    </xsl:stylesheet>XSL-FO is not the easiest thing to learn ;-) but hopefully the above gives you a headstart.
    Regards,
    Dimitri
    http://dgielis.blogspot.com/
    http://www.apex-evangelists.com/
    http://www.apexblogs.info/

  • How to test BLOB Table Column in BCBrowser??

    Hi,
    My requirement is to upload a file(pdf,doc,jpg, txt) into DB using ADF.
    I use, Jdev 11.1.1.6, Oracle 10g XE.
    For this, I created the following
    1. A table as MyFilesTab(ID Number, FileName Varchar2(80), File BLOB)
    2. An Entity Object MyFilesEO on MyFilesTab.
    3. Generated a default view object: MyFilesVO
    4. Application Module : TestAM with view instance "MyFiles"
    But When I run TestAM, I see MyFiles as an Input textbox. So I cannot able to add a file that will be stored in my Table.
    Please help me out.

    Just to clarify, my previous post is related to title of this thread("How to test BLOB Table Column in BCBrowser??"),
    and not to "My requirement is to upload a file(pdf,doc,jpg, txt) into DB using ADF" 
    Dario

  • How to check whether portal user exists or not using UM API.

    Hi Experts,
    Let us say i need to create an user account "PortalUser",i know how to create an user,setting first name,lastname,password for that.
    but here before creating the portal user, i need to check whether that user exists or not.If user already exists ,then i  need to skip the below for creating the user.
    IUserFactory userFact = UMFactory.getUserFactory();
    IGroupFactory groupFact = UMFactory.getGroupFactory();
    IRoleFactory roleFact = UMFactory.getRoleFactory();
    IUser tuser = userFact.getUserByLogonID("PortalUser");
    IUserMaint newUser = userFact.newUser("PortalUser");
    newUser.setFirstName("PortalUser");
    newUser.setLastName("Test");
    newUser.setEmail("PortalUser.Testatgmaildotcom");
    //Locale PortalLanguage = new Locale(Lang.toLowerCase(), "");
    Locale PortalLang=new Locale("en");
    newUser.setLocale(PortalLang);
    newUser.save();
    newUser.commit();
    IUserAccount userAcc = UMFactory.getUserAccountFactory().newUserAccount("PortalUser", newUser.getUniqueID());
    userAcc.setPassword("test1test$");
    userAcc.save();
    userAcc.commit();     
    Thanks in advance.
    Thanks
    Sony.

    Hi,
    Try this code,
    IUserFactory factory = UMFactory.getUserFactory();
    IUser user = factory.getUserByLogonID(userId);
    lastName = user.getLastName();
    firstName = user.getFirstName();
    refer this pdf,its very helpful
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/events/webinars-nw-rig/using%20the%20user%20management%20api%20with%20ep%20applications%20-%20webinar%20powerpoint.pdf
    Regards,
    Sunaina Reddy T

  • Report Query using a Named Column Report Layout fails to produce PDF

    I am testing FOP and the Shared Component Report Queries query with a Named Column Report Layout. The xsl file was built using Stylus Studio and worked fine with the saved XML data file in Stylus Studio.
    500 Internal Server Error
    500 Internal Server Error
    Servlet error: An exception occurred.
    The current application deployment descriptors do not allow for including it in this response.
    Please consult the application log for details.
    I assume this is a message from FOP. What do I do now?
    tia,
    Sam

    Sam,
    I would suggest to take APEX out of the picture first and see if you can get this to work directly with your FOP solution, i.e. generate the XML data and take your XSL file and then post it directly to the FOP JSP (or whichever rendering engine you use). If this works, the problem might be somewhere in your APEX configuration. If it doesn't work, then the problem is likely in your XSL or XML structure. Here's how you can setup a static HTML page to post your XML and XSL to FOP:
    http://marcsewtz.blogspot.com/2008/06/heres-another-posting-on-pdf-printing.html
    Regards,
    Marc

  • FRM-47023: No such parameter named G_QUERY_FIND Exists and frm-40105 error

    I have a problem in forms FRM-47023: No such parameter named G_QUERY_FIND Exists and frm-40105 error please can any one tel me the reason for this ....G_QUERY_FIND parameter is present in my form.fmb
    it is very urgent

    I have to call the page
    fnd_message.set_string('SRNO'||:xxecms_Related_Objects.SR_NUMBER);
                             fnd_message.show;
                   --          IF m is NULL THEN
         fnd_function.execute(FUNCTION_NAME=>'CSXSRISV',
    OPEN_FLAG=>'Y',
    SESSION_FLAG=>'Y',
    OTHER_PARAMS=>'SR_NO="'||:xxecms_Related_Objects.SR_NUMBER||'"');
    I have to go to the page to view where this sr is created.

  • Named Column FOP Error

    I am trying to generate PDF reports using a named column template.
    APEX 4.1, using the APEX-supplied FOP.war deployed on Glassfish 4.
    I am using a Report Query - Report Layout.
    Whenever I use a generic report template, all works fine.
    When I use a named column report generated with Stylus Studio. I get this error (from the server.log):
    [2014-01-02T19:08:44.375-0500] [glassfish 4.0] [WARNING] [] [javax.enterprise.web] [tid: _ThreadID=23 _ThreadName=http-listener-1(5)] [timeMillis: 1388707724375] [levelValue: 900] [[
      StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
    java.lang.NullPointerException
        at java.io.StringReader.<init>(StringReader.java:50)
        at org.apache.jsp.apex_005ffop_jsp._jspService(apex_005ffop_jsp.java:73)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:411)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:377)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
        at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1682)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:318)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673)
        at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174)
        at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:357)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:260)
        at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:188)
        at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)
        at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)
        at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)
        at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
        at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)
        at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)
        at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)
        at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)
        at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
        at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)
        at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)
        at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
        at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
        at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
        at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)
        at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)
        at java.lang.Thread.run(Thread.java:722)
    In my original template - which worked fine in Stylus Studio - I had XPath for color-coding text based on values, and background-color coding certain rows based on values. I noticed Stylus Studio inserts special characters, including
    I redid the Stylus Studio template, bringing it down to bare-bones, Title and Table.
    Same issue.
    The template is:
    <?xml version="1.0"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:s="http://www.stylusstudio.com/xquery">
         <xsl:template match="/">
             <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
                 <fo:layout-master-set>
                     <fo:simple-page-master master-name="default-page" page-height="8.5in" page-width="11in" margin-left="0.5in" margin-right="0.5in" margin-top="0.5in" margin-bottom="0.5in">
                         <fo:region-body/>
                     </fo:simple-page-master>
                 </fo:layout-master-set>
                 <fo:page-sequence master-reference="default-page">
                     <fo:flow flow-name="xsl-region-body">
                         <fo:block>
                             <fo:block text-align="center">
                                 <fo:block>
                                     <fo:inline font-family="Tahoma">
                                         <xsl:value-of select="/DOCUMENT/TITLE"/>
                                     </fo:inline>
                                 </fo:block>
                                 <fo:block>
                                     <fo:table width="100%" border-style="solid" border-width="1pt" background-repeat="repeat">
                                         <fo:table-column/>
                                         <fo:table-column/>
                                         <fo:table-column/>
                                         <fo:table-column/>
                                         <fo:table-column/>
                                         <fo:table-column/>
                                         <fo:table-column/>
                                         <fo:table-column/>
                                         <fo:table-column/>
                                         <fo:table-column/>
                                         <fo:table-column/>
                                         <fo:table-column/>
                                         <fo:table-column/>
                                         <fo:table-column/>
                                         <fo:table-column/>
                                         <fo:table-column/>
                                         <fo:table-column/>
                                         <fo:table-column/>
                                         <fo:table-body>
                                             <fo:table-row background-color="green">
                                                 <fo:table-cell border-style="solid" border-width="1pt" border-color="gray" padding="2pt" background-repeat="repeat" display-align="center">
                                                     <fo:block font-family="Times New Roman" font-size="9pt" text-align="center" color="#FFFFFF" background-color="#008000">
                                                         <fo:block>
                                                             <xsl:text>Inst Type</xsl:text>
                                                         </fo:block>
                                                     </fo:block>
                                                 </fo:table-cell>
                                                 <fo:table-cell border-style="solid" border-width="1pt" border-color="gray" padding="2pt" background-repeat="repeat" display-align="center">
                                                     <fo:block font-family="Times New Roman" font-size="9pt" color="#FFFFFF" background-color="#008000">
                                                         <fo:block>
                                                             <xsl:text>Test</xsl:text>
                                                         </fo:block>
                                                     </fo:block>
                                                 </fo:table-cell>
                                                 <fo:table-cell border-style="solid" border-width="1pt" border-color="gray" padding="2pt" background-repeat="repeat" display-align="center">
                                                     <fo:block font-family="Times New Roman" font-size="9pt" color="#FFFFFF" background-color="#008000">
                                                         <fo:block>
                                                             <xsl:text>Reagent</xsl:text>
                                                         </fo:block>
                                                     </fo:block>
                                                 </fo:table-cell>
                                                 <fo:table-cell border-style="solid" border-width="1pt" border-color="gray" padding="2pt" background-repeat="repeat" display-align="center">
                                                     <fo:block font-family="Times New Roman" font-size="9pt" color="#FFFFFF" background-color="#008000">
                                                         <fo:block>
                                                             <xsl:text>Units</xsl:text>
                                                         </fo:block>
                                                     </fo:block>
                                                 </fo:table-cell>
                                                 <fo:table-cell border-style="solid" border-width="1pt" border-color="gray" padding="2pt" background-repeat="repeat" display-align="center">
                                                     <fo:block font-family="Times New Roman" font-size="9pt" color="#FFFFFF" background-color="#008000">
                                                         <fo:block>
                                                             <xsl:text>QC Lot</xsl:text>
                                                         </fo:block>
                                                     </fo:block>
                                                 </fo:table-cell>
                                                 <fo:table-cell border-style="solid" border-width="1pt" border-color="gray" padding="2pt" background-repeat="repeat" display-align="center">
                                                     <fo:block font-family="Times New Roman" font-size="9pt" color="#FFFFFF" background-color="#008000">
                                                         <fo:block>
                                                             <xsl:text>Laboratory</xsl:text>
                                                         </fo:block>
                                                     </fo:block>
                                                 </fo:table-cell>
                                                 <fo:table-cell border-style="solid" border-width="1pt" border-color="gray" padding="2pt" background-repeat="repeat" display-align="center">
                                                     <fo:block font-family="Times New Roman" font-size="9pt" color="#FFFFFF" background-color="#008000">
                                                         <fo:block>
                                                             <xsl:text>Inst</xsl:text>
                                                         </fo:block>
                                                     </fo:block>
                                                 </fo:table-cell>
                                                 <fo:table-cell border-style="solid" border-width="1pt" border-color="gray" padding="2pt" background-repeat="repeat" display-align="center">
                                                     <fo:block font-family="Times New Roman" font-size="9pt" color="#FFFFFF" background-color="#008000">
                                                         <fo:block>
                                                             <xsl:text>N</xsl:text>
                                                         </fo:block>
                                                     </fo:block>
                                                 </fo:table-cell>
                                                 <fo:table-cell border-style="solid" border-width="1pt" border-color="gray" padding="2pt" background-repeat="repeat" display-align="center">
                                                     <fo:block font-family="Times New Roman" font-size="9pt" color="#FFFFFF" background-color="#008000">
                                                         <fo:block>
                                                             <xsl:text>Mean</xsl:text>
                                                         </fo:block>
                                                     </fo:block>
                                                 </fo:table-cell>
                                                 <fo:table-cell border-style="solid" border-width="1pt" border-color="gray" padding="2pt" background-repeat="repeat" display-align="center">
                                                     <fo:block font-family="Times New Roman" font-size="9pt" color="#FFFFFF" background-color="#008000">
                                                         <fo:block>
                                                             <xsl:text>SD</xsl:text>
                                                         </fo:block>
                                                     </fo:block>
                                                 </fo:table-cell>
                                                 <fo:table-cell border-style="solid" border-width="1pt" border-color="gray" padding="2pt" background-repeat="repeat" display-align="center">
                                                     <fo:block font-family="Times New Roman" font-size="9pt" color="#FFFFFF" background-color="#008000">
                                                         <fo:block>
                                                             <xsl:text>CV</xsl:text>
                                                         </fo:block>
                                                     </fo:block>
                                                 </fo:table-cell>
                                                 <fo:table-cell border-style="solid" border-width="1pt" border-color="gray" padding="2pt" background-repeat="repeat" display-align="center">
                                                     <fo:block font-family="Times New Roman" font-size="9pt" color="#FFFFFF" background-color="#008000">
                                                         <fo:block>
                                                             <xsl:text>TEa Fixed</xsl:text>
                                                         </fo:block>
                                                     </fo:block>
                                                 </fo:table-cell>
                                                 <fo:table-cell border-style="solid" border-width="1pt" border-color="gray" padding="2pt" background-repeat="repeat" display-align="center">
                                                     <fo:block font-family="Times New Roman" font-size="9pt" color="#FFFFFF" background-color="#008000">
                                                         <fo:block>
                                                             <xsl:text>TEa Pct</xsl:text>
                                                         </fo:block>
                                                     </fo:block>
                                                 </fo:table-cell>
                                                 <fo:table-cell border-style="solid" border-width="1pt" border-color="gray" padding="2pt" background-repeat="repeat" display-align="center">
                                                     <fo:block font-family="Times New Roman" font-size="9pt" color="#FFFFFF" background-color="#008000">
                                                         <fo:block>
                                                             <xsl:text>Peer ean</xsl:text>
                                                         </fo:block>
                                                     </fo:block>
                                                 </fo:table-cell>
                                                 <fo:table-cell border-style="solid" border-width="1pt" border-color="gray" padding="2pt" background-repeat="repeat" display-align="center">
                                                     <fo:block font-family="Times New Roman" font-size="9pt" color="#FFFFFF" background-color="#008000">
                                                         <fo:block>
                                                             <xsl:text>Sigma</xsl:text>
                                                         </fo:block>
                                                     </fo:block>
                                                 </fo:table-cell>
                                                 <fo:table-cell border-style="solid" border-width="1pt" border-color="gray" padding="2pt" background-repeat="repeat" display-align="center">
                                                     <fo:block font-family="Times New Roman" font-size="9pt" color="#FFFFFF" background-color="#008000">
                                                         <fo:block>
                                                             <xsl:text>Sigma w/Bias</xsl:text>
                                                         </fo:block>
                                                     </fo:block>
                                                 </fo:table-cell>
                                                 <fo:table-cell border-style="solid" border-width="1pt" border-color="gray" padding="2pt" background-repeat="repeat" display-align="center">
                                                     <fo:block font-family="Times New Roman" font-size="9pt" color="#FFFFFF" background-color="#008000">
                                                         <fo:block>
                                                             <xsl:text>Grade</xsl:text>
                                                         </fo:block>
                                                     </fo:block>
                                                 </fo:table-cell>
                                                 <fo:table-cell border-style="solid" border-width="1pt" border-color="gray" padding="2pt" background-repeat="repeat" display-align="center">
                                                     <fo:block font-family="Times New Roman" font-size="9pt" color="#FFFFFF" background-color="#008000">
                                                         <fo:block>
                                                             <xsl:text>Grade w/Bias</xsl:text>
                                                         </fo:block>
                                                     </fo:block>
                                                 </fo:table-cell>
                                             </fo:table-row>
                                             <xsl:for-each select="/DOCUMENT/REGION/ROWSET/ROW">
                                                 <xsl:variable name="ROW" select="."/>
                                                 <fo:table-row>
                                                     <fo:table-cell border-style="solid" border-width="1pt" border-color="gray" padding="2pt" background-repeat="repeat" display-align="center">
                                                         <fo:block font-family="Times New Roman" font-size="9pt">
                                                             <fo:block>
                                                                 <xsl:value-of select="INSTRUMENT_NAME"/>
                                                             </fo:block>
                                                         </fo:block>
                                                     </fo:table-cell>
                                                     <fo:table-cell border-style="solid" border-width="1pt" border-color="gray" padding="2pt" background-repeat="repeat" display-align="center">
                                                         <fo:block font-family="Times New Roman" font-size="9pt">
                                                             <fo:block>
                                                                 <xsl:value-of select="TEST_NAME"/>
                                                             </fo:block>
                                                         </fo:block>
                                                     </fo:table-cell>
                                                     <fo:table-cell border-style="solid" border-width="1pt" border-color="gray" padding="2pt" background-repeat="repeat" display-align="center">
                                                         <fo:block font-family="Times New Roman" font-size="9pt">
                                                             <fo:block>
                                                                 <xsl:value-of select="REAGENT"/>
                                                             </fo:block>
                                                         </fo:block>
                                                     </fo:table-cell>
                                                     <fo:table-cell border-style="solid" border-width="1pt" border-color="gray" padding="2pt" background-repeat="repeat" display-align="center">
                                                         <fo:block font-family="Times New Roman" font-size="9pt">
                                                             <fo:block>
                                                                 <xsl:value-of select="UNITS"/>
                                                             </fo:block>
                                                         &l

    Hello Mike,
    Thanks for that but .. I had followed that paper exactly. When it gets to the "...make some fomrattign changes ..." part, the doc is not very specific. While I have yet to prove this out ( I have an APEX Listener, APEX 4.2 instance as well), I believe my template was incorrect no matter which APEX version (4.1 vs 4.2) or using the APEX Listener vs Glassfish deployment - the problem was indeed with my template.
    The main issue blocking PDF generation was the fact that in my template, I did not have column-width's assigned to my <fo:table-column ...> directives.   When I use Stylus Studio, the default post-processor is RenderX.XEP, not Apache FOP.  Apache FOP has more limitations .. or the RenderX post-processing is more advanced, however you want look at it.  Stylus Studio
    Once I got the column-width's defined, I had to go step by step in adding additional features to the template, paying particular attention to Apache FOP documentation and  Known Issues.  Switching the post-processor to Apache FOP in the Stylus Studio Scenario properties helps, but does not catch everything.
    I am plugging along .. my latest learning experience is that the nice XPath that works in Stylus Studio does not directly translate to Apache FOP ...I need to implement same using XSLT. 
    Fun with FOP!
    Back to Mike's point of using the APEX Listener and APEX 4.2 .. if I could, I would, but we cannot upgrade until next year sometime, so I've got to work with what I've got. For kicks, when I have time, I'll compare results between APEX 4.1 APEX-supplied FOP.war and the APEX 4.2 APEX-supplied FOP.war, to see the differences. It's still Apache FOP, so there may be someimprovements, but I sitll expect to need to stick to strict Apache FOP and XLST 1.0, which is clearly stated.

  • How to test whether AIA got integrated with BRM system successfully

    Is there a procedure to test whether AIA got integrated with BRM system successfully.How can i test whether BRM Adapter is able to connect to BRM system.
    Thanks well in advance
    Santosh

    Hi Santhosh,
    I hope you are using AIA 2.0/2.0.1 for Comms and trying to integrate BRM with Siebel.
    1. To check BRM & Siebel integration using AIA. (BRM is the Product master gets synched with Siebel.)
    a) Create a new Product in BRM pricing center(Provide product name, Service type)
    b) Select Event(Single time purchase event)
    c) Provide rating for the product
    d) Commit after product creation(Check in BPEL process, whether all the instances are went through successfully)
    e) Check Siebel Catalog, whether product got synched from BRM
    2. To check whether BRM Adapter connected to BRM,
    a) Login into Oracle Application server
    b) Select OC4J instance, where your AIA is running
    c) Select Applications
    d) In view drop down select "StandAlone Resource Adapters"
    e) Check the status (green or red) in the installed BRM adapter
    If you haven't deployed BRM Adapter read the installation guide to deploy it.
    Regards,
    Ziaur Rahuman

  • Messy RUN_STATUS column values in public view ALL_RT_AUDIT_MAP_RUNS

    Is it true, that there is a bug in view ALL_RT_AUDIT_MAP_RUNS column RUN_STATUS?
    This view is based on table WB_RT_AUDIT. View's column RUN_STATUS is based on tables column named RTA_STATUS.
    Firstly, RTA_STATUS in the table is numeric and RUN_STATUS is computed like this:
    decode (a.rta_status, 'BEGIN', 'RUNNING', 'FAILED', 'FAILURE', 'COMPLETE') as run_status.
    It means, that the result value of RUN_STATUS is always 'COMPLETE'.
    Moreover, table WB_RT_AUDIT column RTA_STATUS shows value 1, when mapping runs without errors and shows 1 also, when mapping fails.
    What is the best indicator from public views or runtime audit tables to show that mapping has completed successfully? Is it return_result or return_code column form view ALL_RT_AUDIT_EXECUTIONS (table WB_RT_AUDIT_EXECUTIONS)?
    Finally, what's the difference between WB_RT_AUDIT_EXECUTIONS and WB_RT_AUDIT. Is it possible to have more than one WB_RT_AUDIT rows for one WB_RT_AUDIT_EXECUTIONS row?
    Thank you,
    -- Trying to upgrade from OWB 9.0.2 to 10.1 :S

    Here is the original procedure. I have since created a procedure which pulls the values from memory using dynamic sql, and this seems to work.
    PROCEDURE CREATE_DW_PROCESS_JOURNAL1(p_business_area IN VARCHAR2,
    p_map_id IN NUMBER) AS
    l_map_name OWBSYS.ALL_RT_AUDIT_MAP_RUNS.MAP_NAME%TYPE := NULL;
    l_yn_flag VARCHAR2(1):= 'N';
    BEGIN
    IF(p_map_id IS NOT NULL) THEN
    --For the audit id passed in open the cursor to get the information available
    INSERT INTO dw_process_journal(id, business_area, map_name, process_start_date, process_finish_date,
    run_status, error_count, inserted_count, updated_count, merged_count, elapsed_seconds, corrected_count,
    map_run_id, execution_audit_id)
    SELECT dw_process_journal_seq.nextval, p_business_area, map_name, start_time, end_time,
    run_status, number_errors, number_records_inserted, number_records_updated, number_records_merged, elapse_time, number_records_corrected,
    map_run_id, execution_audit_id
    FROM owbsys.ALL_RT_AUDIT_MAP_RUNS
    WHERE MAP_RUN_ID =p_audit_id;
    commit;
    END IF; -- p_audit_id
    END CREATE_DW_PROCESS_JOURNAL1;

Maybe you are looking for

  • IPOD NANO 5G

    My Ipod nano5g is not being recognized by itunes. Ps: I have a mac, My Ipod nano5g is not being recognized by itunes. Ps: I have a mac What should I do?

  • Using video and audio signal from a camera connect...

    Why is it not possible and is skype intending to implement the ability to use the video signal form a digital camcorder connected to a tv? A lot of people these days have digital camcorders or digital cameras that produce video signal. Why can't thos

  • How to find the Table in extractor ?

    Hi experts,   I would like to know how to find out the table involved for extraction for a datasource which is being extracted by function module?   In this case i would like to know Table involved in FM BWSM_PM_GET_ORDCST? Thanks in advance arun

  • Costing - what price is being used?

    Hi gurus, I am trying to cost a FERT material, it has only 1 component, a raw materialt with "S" as price control indicator. When i run CK11N for FERT, material is costed without error even if standard price was not maintained. It gets the moving ave

  • SAP Corporate Master Program eligibility criteria and cost of the course

    Hello Everyone, I would like to know the eligibity criteria for SAP corporate master program offered in Germany in all three universities(SCMT,TUM,Heilderburg) and the total cost the course would demand. As I am planning to support my master's by get