How to initialize org in a view definition?

Hi,
I am creating a custom view which uses Oracle standard function in the condition of the view definition. The function requires org intialization to provide the correct data. The view needs to be accessed in other DB instance via DB link.
So how should the org be initialized so that the view returns the correct data when accessed from the remote data base using the DB link?
Thanks!
Darshini

Hi Darshini,
ok, then the question is: where is your data, in which instance?
I see two options:
1) Your report runs on the primevera DB but your data resides in the APPS DB and you have a DB link between the two instances. Assuming the DB link is "PRIM_TO_EBS" you could create the view on the primevera instance like this:
select po_header_id
from po_distributions_all@PRIM_TO_EBS pod
where (apps.po_intg_document_funds_grp.get_active_encumbrance_func@PRIM_TO_EBS
('PO',
pod.po_distribution_id
) = 0 I do not really know what the procedure/function fnd_client_info.set_org_context() does, but would be curious to know if your view above returns data if you do a:
... fnd_client_info.set_org_context pkg@PRIM_TO_EBS(...) upfront?!
But I guess this will create some session variable that will probably get lost when you finish the function and go to the View. But you can give it a try.
2) second approach that I see:
Copy the data to the reporting instance via some scheduled jobs or so. This way you could copy the data after this operating unit / org id was initialized. The pure out put of the data without the APPS security model anymore.
Another thing: You can check out in the discoverer forum, there are some guys that know much more about the APPS security model and how to get reports working with this.
Another idea: Do you really need this function apps.po_intg_document_funds_grp.get_active_encumbrance_func() ? Maybe you can design your report based on just tables? We have reports on Purchasing data as well, and we did not use any built-in apps functions like this to get what we need.
regards,
David.

Similar Messages

  • How to initialize org in a custom form in R12 upgrade

    Hi,
    We are migrating a custom form from 11i to R12. But the form and LOVs in the fields dont return any values in R12. The custom views attached to these LOVs, return values in toad when the org is set. We think that the issue is that the org is not initialized in the form.
    Can anyone help on how to resolve this?
    Would it help if we used "MO_GLOBAL.SET_POLICY_CONTEXT('S',fnd_global.ORG_ID);" in the when new form instance trigger in the form.
    Thanks

    Use following code in when-new-form- instance form level trigger
    FND_ORG.CHOOSE_ORG;
    :PARAMETER.ORG_ID:=FND_PROFILE.VALUE('org_id');
    then insert following in pre-insert block level trigger
    :ORG_ID := :PARAMETER.ORG_ID;

  • Initialize Org Units on PNPCE Org Structure selection

    Hi All
    In the selection screen of programs where PNP or PNPCE logical database is used, the Org Units can be selected from the Org Structure.
    Can anyone tell me how to initialize Org Units values into the org structure screen

    Hi..
    I hope this may help you...
    select-options: s_orgeh for p0001-orgeh.
    *--  pre-populate top-level org units to process
      s_orgeh-sign = 'I'.
      s_orgeh-option = 'EQ'.
      s_orgeh-low = 'xxxxxxx'.   
      append s_orgeh.
      s_orgeh-low = 'xxxxxxx'.   
      append s_orgeh.
    Thank you

  • How to view definition of a view in the database

    Hi !
    I want to see the definition of a view that has already been created in the database. Incidently I misplaced its script. How can I see the definition since when I go to all_views table, it shows text as long datatype aand can't be displayed in sql*plus nor am I able to insert it into a new table as it gives error..."illegal use of Long datatype "
    Any help will be welcome..
    Regards,
    Shobhit

    at the sqlplus prompt,
    set long 50000
    Then you should be able to see the entire view definition at the sqlplus prompt.
    You should not perform any dml operations in system level tables like all_views, dba_views etc.
    -Ashutosh
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by shobhit kumar:
    Hi !
    I want to see the definition of a view that has already been created in the database. Incidently I misplaced its script. How can I see the definition since when I go to all_views table, it shows text as long datatype aand can't be displayed in sql*plus nor am I able to insert it into a new table as it gives error..."illegal use of Long datatype "
    Any help will be welcome..
    Regards,
    Shobhit<HR></BLOCKQUOTE>
    null

  • How to export view definitions

    I'm having following issue:
    I have created my own view definitions in Endeca Studio, via View Manager UI, and export them by following the recommendations found at https://wikis.oracle.com/display/endecainformationdiscovery/Export+View+Configuration.
    Such recommendations are to create a graph that connects to Endeca Data Store and saves all view configuration in the required format for the LoadViewDefinitions graph.
    Actually, I was able to create the graph and run it. After that, the xml file with the view definitions was created.
    However, when I tried to run the LoadViewDefinitions graph, to import the definitions of the xml file to other data store, the following error came out:
    Interpreter runtime exception in function substring on line 5 column 26 - 'String index out of range: -161'
    By looking at the xml file and comparing it with other xml files, I could see that it contains only one long line with all the code, and I think this is the cause of the import failure.
    Could anyone help me with this?
    Thanks

    Hi,
    Not sure if I understood when you said to delete that white space from xml file. The thing is that the xml file contains only one long line with all code, like this:
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><listEntitiesResponse xmlns="http://www.endeca.com/endeca-server/sconfig/1/0"><semanticEntity key="LandedCost" displayName="LandedCost"><definition>DEFINE LandedCost AS SELECT...
    While other files that work are like this:
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
    <listEntitiesResponse xmlns="http://www.endeca.com/endeca-server/sconfig/1/0">
    <semanticEntity key="LandedCost" displayName="LandedCost">
    <definition>
    DEFINE LandedCost AS SELECT ...
    What should I do with the one that does not work? Which white space are you referring to?
    Thanks

  • Portal: custom i-view definition (transaction) how to hide command box

    Dear Sirs,
    we are trying to define a transaction i-view (displaying a SRM transaction)
    in portal but hiding the command box.
    The i-view has been defined under portal content \..\iview\GUI\
    We have tested some values in "Parameters Forwarded to Transaction" in I-VIEW definition,
    like...
    noheaderOkCode = 1
    WEBGUI_SIMPLE_TOOLBAR  = hide, no etc..
    listed in other threads
    but whitout any effect.
    Is this a possible feature and what are the correct values ?
    From SRM side we have tested the transaction in SE93 in both modes, EWT and normal.

    Sorry but we have any result with these values
    ~NOHEADEROKCODE = 1 or
    ~WEBGUI_SIMPLE_TOOLBAR = 0
    In the "Parameter forwarded to transaction" in the iview definition from portal.
    The command box appears in any case.
    Whe should remove also the "menu" button.

  • Bc4j view definition not found

    Within the doDML method in my PatientImpl class, I have implemented this snippet of code to insert a record into the TransactionLog entity after an insert into the Patient entity.
    DBTransaction trans = getDBTransaction();
    TransactionLogViewImpl txnLogView =
    (TransactionLogViewImpl)trans.createViewObject(
    " hmdclinical.customactiondemo.model.bc4j.TransactionLogView ");
    TransactionLogViewRowImpl row =
    (TransactionLogViewRowImpl) txnLogView.createRow();
    row.setAction('TEST');
    txnLogView.insertRow(row);
    txnLogView.remove();However, the error returned is "JBO-25002: Definition hmdclinical.customactiondemo.model.bc4j.TransactionLogView of type View Definition not found".
    What am I doing wrong ? My View object is called TransactionLogView and my business components package is hmdclinical.customactiondemo.model.bc4j ??
    Help ?
    Also - is it possible to perform the insert and then requery the same row to check for data in other columns on the table had that been populated by a trigger as the result on the insert performed by my business rule code ?? If i make the attribute refresh after update can I do a
    row.setAttribute
    view.insertRow(row)
    row.getAttribute ??
    How else would I get the values back from the row just inserted ??
    Thanks,
    Brent

    Please ignore the first part of my question - stupid typo that i always make !
    But the second part....
    Also - is it possible to perform the insert and then requery the same row to check for data in other columns on the table had that been populated by a trigger as the result on the insert performed by my business rule code ?? If i make the attribute refresh after update can I do a
    row.setAttribute
    view.insertRow(row)
    row.getAttribute ??
    How else would I get the values back from the row just inserted ??
    Can someone help me with this ?
    Thanks,
    Brent

  • Oracle.jbo.NoDefException: JBO-25002 : View Definition Not Found

    Hi
    While Running a page i am getting the following exception:
    The error says View Definition not found:
    I have checked whether file exists in the same path or not, Checked whether it is assigned to application module.
    But everything is working fine in Development instance but i dont know why this error is coming in another instance.
    Can any body help me on this.
    Below is the stack trace when i am trying to run:
    oracle.apps.fnd.framework.OAException: oracle.jbo.NoDefException: JBO-25002: Definition mycomp.oracle.apps.fnd.server.ReseqRequestsVO of type View Definition not found
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1223)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1408)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2680)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1683)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:509)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:430)
         at oa_html._OA._jspService(_OA.java:84)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:595)
    ## Detail 0 ##
    oracle.apps.fnd.framework.OAException: oracle.jbo.NoDefException: JBO-25002: Definition mycomp.oracle.apps.fnd.server.ReseqRequestsVO of type View Definition not found
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:865)
         at oracle.apps.fnd.framework.OAException.wrapperInvocationTargetException(OAException.java:988)
         at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:211)
         at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:153)
         at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:750)
         at mycomp.oracle.apps.fnd.webui.ConcRequestsCO.getResequenceRows(ConcRequestsCO.java:839)
         at mycomp.oracle.apps.fnd.webui.ConcRequestsCO.processFormRequest(ConcRequestsCO.java:333)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:810)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1159)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2676)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1683)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:509)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:430)
         at oa_html._OA._jspService(_OA.java:84)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:595)
    oracle.apps.fnd.framework.OAException: oracle.jbo.NoDefException: JBO-25002: Definition mycomp.oracle.apps.fnd.server.ReseqRequestsVO of type View Definition not found
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:865)
         at oracle.apps.fnd.framework.OAException.wrapperInvocationTargetException(OAException.java:988)
         at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:211)
         at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:153)
         at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:750)
         at mycomp.oracle.apps.fnd.webui.ConcRequestsCO.getResequenceRows(ConcRequestsCO.java:839)
         at mycomp.oracle.apps.fnd.webui.ConcRequestsCO.processFormRequest(ConcRequestsCO.java:333)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:810)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1159)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2676)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1683)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:509)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:430)
         at oa_html._OA._jspService(_OA.java:84)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:595)
    Thanks in Advance
    Hari

    Hi,
    This error is not related to AM, it find the view in AM that is why it is giving error. The only reason is it is not bale to find xml file of view in specified path under $JAVA_TOP, please check.
    Regards,
    Reetesh Sharma

  • How to create dynamic panel tree view?

    Hello,
         I can create dynamic pallete panel without any problems (from sdk/paneltreeview) , but i can't when it's a panel tree view (from sdk/paneltreeview). I don't know how to initialize it.  Can i call IID_ITREEVIEWWIDGETMGR's impl directly in ActionComponent to create panel widget? and how?
    Thanks in advance.

    solved by self

  • ORDER BY in view definitions

    ORDER BY was not allowed in view definitions in 7.3.4. It is allowed in 8.1.6 but I have not seen any documentation to say when or why it was introduced.
    There is an old rule that a select statement does not guarantee the order of rows without an order by. Does this mean that this rule is no longer strictly true, ie the order IS guaranteed if selecting from a view which itself contains an order by ?
    If the order of rows in this case is NOT guaranteed, then why allow an order by in the view definition?
    This was brought to my notice by other writers to this forum who have pointed out that
    (if the view does indeed guarantee the order of rows), then the pseudo column ROWNUM at last becomes useful for applying sequence numbers to queried rows if an in-line view with an order by is used. ROWNUM used to be of limited use because it was assigned before the order by.

    SriDHAR,
    Please don't take offense. My comment was not aimed at you. When I wrote the post, I was expressing some cumulative frustration at various things about these forums, including the unpredictable performance of the search feature, lack of forum monitoring, and a series of recent posts on this topic, not just this thread, that included various correct and incorrect responses and repetition of the question and starting of new threads on the same topic by the same people, even after correct responses were given, and requests for things like a "guarantee" even after "various people have suggested that technique". What I had in mind, when I wrote the portion of the post that you quoted, was some of the various responses that constituted nothing more than repetition of the question as if hadn't already been posed and answered. I certainly don't fault you or anyone else for responding with an answer. Perhaps hearing it from one more person one more time or explained in a slightly different way will make a difference. I certainly did not mean to imply that my explanation was any better than yours. I was merely expressing frustration at my prior efforts having gone to waste, since people are apparently unable to sufficiently refine the search criteria and wade through the duplicate topics to find it and similar efforts by many of us on various topics.
    I encourage those who ask questions to search for the answers first themselves, both in the on-line documentation, where the master index search seems to work very well, and in the forums, where the search mechanism seems to work sporadically. I know I have seen some others post similar suggestions and unfortunately they are frequently not well-received, although sometimes that may be due to how the suggestion was phrased.
    On some other forums, the discussions are monitored by multiple moderators or system operators who quickly remove duplicate posts, move posts to the correct forums, provide links to previous discussions on the same topic, and guide new users as to how to use the forums. The end result is that the forums are a lot less cluttered with repetitive stuff, which makes reading, searching, and everything easier and faster. Unfortunately, we don't seem to have that on this forum. I have heard that the monitoring of these forums by Oracle personnel is voluntary. I have noticed that same Oracle personnel, like Robert Pang, routinely respond to certain topics, like utl_smtp, and Goeff Lee seems to have adopted the Objects forum. A long time ago, Rick Post did a good job of monitoring this SQL and PL/SQL forum, but he vanished long ago. That was before the new forum format. So, as far as I know, we don't currently seem to have a monitor for this forum. I noticed that, for a while, the Forumm Administrator tried to monitor the Feedback forums, but was overwhelmed, and said "I give up" and appears to have quit deleting or moving off-topic posts, and rarely even responds to on-topic ones anymore. The longer it goes unchecked, the worse it gets.
    I have seen some other forums, where, lacking official moderation, groups of frequent responders have taken it upon themselves to do what they can. Obviously, we can't delete duplicates or move things to the correct forums, and requests for moderators to do this has fallen on deaf ears, but we can point out duplicates and suggest searching documentation and previous posts. I would be interested in hearing what everyone else thinks we should do. Should we try to act as monitors ourselves? Or should we simply ignore duplicates and not respond? Or should we provide links to prior posts? Or should we respond to everything anew? Eventually, the forums just get so cluttered that, regardless of original plan, things go unanswered, simply due to too many posts and too little time. Or do we need to inundate the feedback suggestions forum with requests for better search functions and monitoring. I know several have already been posted. I figured that once a suggestion was made, they didn't need to see duplicates, but maybe I was wrong. Maybe they need to hear it from all of us. What does everyone else think? I have been biting my tongue for a long time.
    Barbara

  • Views - SELECT from VIEW and SELECT from the query inside view definition returning different results

    Hi,
    I am facing this weird issue. Any help would be appriciated.
    I have view with the following definition:
    CREATE VIEW [marketing].[OpenedMails]
    AS
    SELECT
    ID_EmailAddress, 
    ID_Date_Opened, 
    ID_Contact, 
    ID_MailSendJobs,
    COUNT(ID_OpenedMails) AS OpenCount,
    CASE
    WHEN ROW_NUMBER() OVER (PARTITION BY CAST(ID_EmailAddress AS VARCHAR(10)) + ' ' + CAST(ID_MailSendJobs AS VARCHAR(10)) ORDER BY ID_Date_Opened) = 1 THEN 1 
    ELSE 0 
    END
    AS UniqueOpenCount
    FROM            
    dbo.Fact_OpenedMails
    where ID_Contact = 382340
    GROUP BY ID_EmailAddress, ID_Date_Opened, ID_Contact, ID_MailSendJobs;
    order by ID_MailSendJobs 
    When I run the the select statement in the view definition I get combination of both 1 and 0 for the 'UniqueOpenCount' column.
    But when I run the select from the view itself using the following query:
    SELECT [ID_EmailAddress]
          ,[ID_Date_Opened]
          ,[ID_Contact]
          ,[ID_MailSendJobs]
          ,[OpenCount]
          ,[UniqueOpenCount]
      FROM [marketing].[OpenedMails]
    I get equal amount of rows but only 0 values for the 'UniqueOpenCount' column which seems to be very weird to me. Why is this happening ? Can anyone help regarding how to solve this ??
    Result from the select inside view definition:
    Result from the select query directly from the view:
    Thanks in advance.
    Vivek Kamath

    Please post DDL, so that people do not have to guess what the keys, constraints, Declarative Referential Integrity, data types, etc. in your schema are. Learn how to follow ISO-11179 data element naming conventions and formatting rules. You failed. Temporal
    data should use ISO-8601 formats – you failed again. Code should be in Standard SQL AS much AS possible and not local dialect. 
    This is minimal polite behavior on SQL forums. 
    Things like “ID_Date_Opened” are wrong. The affixes “id” and “date” are called attribute properties in ISO-11179 and data modeling. Since a date is a unit of measurement on a temporal scale, it cannot be an identifier by definition. My guess is this would be
    “open_date” if it were done right. And the only display format in ANSI/ISO Standard SQL is ISO-8601 (yyyy-mm-dd)
    An email address of -1?? Email addresses are VARCHAR(256), not numeric. There is no reason to cast them AS string!
    Your vague “mail_send_jobs” is plural, but columns hold scalars and cannot be plural by definition. The partition cause can hold a list of columns: 
    WHEN ROW_NUMBER() 
         OVER (PARTITION BY email_address, mail_send_job 
                   ORDER BY open_date)
         = 1 
    THEN 1 ELSE 0 END 
    This still makes no sense, but the syntax is better. You do not understand how ROW_NUMBER() works. 
    Would you like to try again with proper Netiquette? 
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • H:inputText ; How To initialize value Property from back/bean method?

    Hello Guys at Sun Forums.
    I am a newbie at using JSF. and I'm having a bit of a Problem.
    I don't know how to initialize the value property of a h:inputText from a method inside a backing bean that returns a String data type.
    My Method inside the Backing bean is this:
    public String getLastDate()
            Connection con = null;
            Statement stmt = null;
            ResultSet rs = null;
            Date DateCapt = null;
            String DateConv= null;
            try{
                Class.forName("com.sybase.jdbc2.jdbc.SybDrive").newInstance();
                con = DriverManager.getConnection("jdbc:sybase:Tds:localhost/BAN_PRO_SNP", "xxxx", "xxxx");
                if(!con.isClosed()){
                    stmt = con.createStatement();
                    stmt.executeQuery ("SELECT TOP 1 CONVERT(VARCHAR(10), fec_parametro, 103) fec_parametro FROM snp_sei_parametros" +
                    "     WHERE cod_parametro = 'FECHA'" +
                    "     ORDER BY fec_parametro DESC");
                    rs = stmt.getResultSet();
                    while (rs.next())
                                DateCapt = rs.getDate("fec_parametro");
                rs.close();  
                stmt.close(); 
            catch (Exception ex)
                        System.out.println("COULD NOT LOAD THE DRIVER!!!!");
                        System.out.println(ex);
                    DateConv = String.valueOf(DateCapt).toString();
        return DateConv;
    }As you can see the Method returns a String data type, and all I want to know is how put that returned String as the initial value of a h:inputText. when the jsf-jsp page loads.
    Please Help Me.

    You should be able to do
       <h:inputText value="#{bean.lastDate}"/>Where 'bean' is the managed bean name containing
    the method getLastDate().
    When the view is rendered, the getter (getLastDate())
    will be called to display whatever value is returned.

  • JBO-25004: Definition name  for type View Definition is invalid

    HI,
    The following error is facing by the customer who are access iReceivables functions externally.
    Kindly help us to resolve this .
    Thanks
    Logout
    Error Page
    Exception Details.
    oracle.apps.fnd.framework.OAException: oracle.jbo.InvalidDefNameException: JBO-25004: Definition name for type View Definition is invalid
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1223)
         at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2946)
         at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2743)
         at oa_html._OA._jspService(_OA.java:101)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    oracle.apps.fnd.framework.OAException: oracle.jbo.InvalidDefNameException: JBO-25004: Definition name for type View Definition is invalid
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1145)
         at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2946)
         at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2743)
         at oa_html._OA._jspService(_OA.java:101)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:534)
    oracle.apps.fnd.framework.OAException: oracle.jbo.InvalidDefNameException: JBO-25004: Definition name for type View Definition is invalid
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1145)
         at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2946)
         at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2743)
         at oa_html._OA._jspService(_OA.java:101)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:534)

    Hi,
    all it says is that a View Object referenced from the application does not exist. However, this is an Oracle Applications environment you are reporting the problem for and thus should be filed on one of the OAFramework forums here on OTN
    Frank

  • Help with a Custom JSP - Select Box (entry view definition).

    I'm in no way an expert in HTML so please bear with me. We have quite a large list of Job Titles that we use on multiple forms and I wanted to use a custom jsp so I only have to update our title list once if we add/remove titles at our organization. I created a simple select box with all our titles and put them on the Vibe server under the custom jsp folder. The select box shows up on the entry form definition no problem... I just don't know how to make it show up on the entry view definition. The code is obviously pretty basic:
    <html>
    <select name ="Title">
    <option value ="Title1">Title1</option>
    <option value ="Title2">Title2</option>
    <option value ="Title3">Title3</option>
    <option value="Title4">Title4</option>
    </select>
    </html>
    What do I need to do in order for it to show up on the entry view definition side of things? Could anyone with html and/or Vibe knowledge please chime in? I'd really appreciate it.

    Try the following custom JSP, it works fine in my environment.
    Construction is a s I said before: while in edit mode (add or modify) it appears as Select Box, otherwise gives the value only.
    Regards, Darek
    <%@ include file="/WEB-INF/jsp/definition_elements/init.jsp" %>
    <c:choose>
    <c:when test='${ssOperation == "add_folder_entry" || ssOperation=="modify_folder_entry"}'>
    ${property_caption}<br>
    <select name="${property_name}">
    <option value="opt1">title1 1</option>
    <option value="opt2">title 2</option>
    <option value="opt3">title 3</option>
    <option value="opt4">title 4</option>
    </select>
    </c:when>
    <c:otherwise>
    ${ssDefinitionEntry.customAttributes[property_name]}
    </c:otherwise>
    </c:choose>

  • Load view definitions to Endeca data store

    Hello All,
    Though I was able to export the view definitions it gave following error while importing
    "substring on line 5 column 26 - 'String index out of range: -161' "
    I tried the loadviewdefinitions graph of quickstart project and it came up with same error. I also deleted the definition of base view from xml but it error persists.
    Thanks

    Please see the updated wiki post for how to import view configuration in the format provided by the export view configuration design pattern:
    https://wikis.oracle.com/display/endecainformationdiscovery/Import+View+Configuration
    - Ryan

Maybe you are looking for

  • Can not launch swing application from Java Web Start 1.6.0_37

    I have a dynamic generated jnlp file from a serlvet. When I used Java Web Start to start the swing application, it failed. The exception showed com.sun.deploy.net.FailedDownloadException: Unable to load resource: http://xxxx.xx.com:9080/dilpipweb/Tes

  • How to I get my printer setup

    How do I get my wireless printer setup to my iPad?

  • Listing songs: how to include comments in printouts

    Hi All, I have version 6.0.1 (3) and a printout contains "Name Time Album Artist". Is there a way to add another column, my comments, to this? Thanks Miklos

  • Japanese input - keyboard layout

    i am fairly new mac user. i bought this imac in May and set it up, so that i can type in japanese. it was working fine until last weekend. usually, i just use english keyboard layout to type in japanse (type "sushi" to get sushi in japanese), but now

  • Anyone else having problems with Mail after installing Mountain Lion?

    Since upgrading to mountain lion, I have had a number of problems with Mail.  At the moment, it is predominantly when my desktop imac goes to sleep overnight. In the morning, it will not receive mail. The app will not close, so I force quit it.  Tryi