XML editor integration with OFA for several display objects
Dear all,
I have a problem in the integration of XML with the OAF Page.
I'm generating the xml using the XMLNode class tags. And I was succeed for object a point of view. But now I am faced with the question with two display objects (which is not dependent on each other).
Are there any entries you its urgent.
Thanks in advance,
Kind regards
Anil Kumar
Dear all,
I found the solution for this... Please find the Code.
The controller code:
If (pageContext.getParameter ("generateRpt")! = null)
{
String po_number = (String) pageContext.getTransactionValue ("PO_NUM");
System.out.println ("The PO number s i-" + po_number);
Serializable params [] = {fromDate, to this day, docNo, pendingType, reqNo, po_number}; //
Class paramType [] =
{String.class, String.class, String.class, String.class,
String.Class, String.Class}; //
DataObject sessionDictionary = pageContext.getNamedDataObject("_SessionParameters");
HttpServletResponse response = (HttpServletResponse) sessionDictionary.selectValue (null,
"HttpServletResponse");
Try
{
System.out.println ("Inisde generate button step 2");
ServletOutputStream os = response.getOutputStream ();
If (ReportFormat1! = null &!) ReportFormat1.equals(""))
{
If (ReportFormat1.equals ('PDF'))
{
System.out.println ("Inisde generate button step 3");
contentDisposition = "attachment; filename = quote Report.pdf";
response.setHeader ("Content-Disposition", contentDisposition);
response.setContentType("application/pdf");
BT = TemplateHelper.OUTPUT_TYPE_PDF;
}
If (ReportFormat1.equals ("XLS"))
{
System.out.println ("Inisde generate button step 4");
contentDisposition = "attachment; filename = quote Report.xls";
response.setHeader ("Content-Disposition", contentDisposition);
response.setContentType("application/vnd.ms-excel");
BT = TemplateHelper.OUTPUT_TYPE_EXCEL;
}
}
ByteArrayOutputStream OutputStream = new ByteArrayOutputStream();
Byte = bufutf'
outputStream.write (bufutf); XMLNode xmlNode [] = new XMLNode [10]; xmlNode = (XMLNode []) am.invokeMethod ("executeReportPO", params, paramType); System.out.println ("IN CO"); xmlNode [1] .print (outputStream); xmlNode [2] .print (outputStream); Byte = bufutf1'
outputStream.write (bufutf1);
System.out.println ("Testying-" + outputStream.toString ());
ByteArrayInputStream InputStream = new ByteArrayInputStream (outputStream.toByteArray ());
ByteArrayOutputStream fileData = new ByteArrayOutputStream();
TemplateHelper.processTemplate (((OADBTransactionImpl) pageContext.getApplicationModule (webBean) .getOADBTransaction ()) .getAppsContext (),)
APP_NAME, TEMPLATE_CODE,
((OADBTransactionImpl) pageContext.getApplicationModule (webBean) .getOADBTransaction ()) .getUserLocale () .getLanguage ();
((OADBTransactionImpl) pageContext.getApplicationModule (webBean) .getOADBTransaction ()) .getUserLocale () .getCountry ();
inputStream, bt, null, fileData);
System.out.println ("inside the template code");
Byte [] b = fileData.toByteArray ();
response.setContentLength (b.length);
OS. Write (b, 0, b.length);
OS. Flush();
OS. Close();
System.out.println ("inside the model code1");
}
catch (System.Exception e)
{
throw new OAException (e.getMessage ());
}
}
GOT the Code:
public XMLNode [] executeReportPO (String fromDate, String to date,
String docNo, String pendingType,
String reqNo, String ponum)
{
System.out.println ("Generate Inisde AM step 1 button" + ponum);
ByteArrayOutputStream OutputStream = new ByteArrayOutputStream();
ItemPendingPoVOImpl vo = getItemPendingPoVO1();
Vo1 PoDetailVOImpl = getPoDetailVO1();
Try
{
vo.setWhereClauseParams (null);
vo.setWhereClauseParam (0, docNo);
vo.setWhereClauseParam (1, reqNo);
vo.setWhereClauseParam (2, fromDate);
vo.setWhereClauseParam (3 so far);
vo.setWhereClauseParam (4, pendingType);
vo.executeQuery ();
System.out.println ("Request"- + vo.getQuery ());
String whereconditionpo = "PONO ='" + ponum + "'";
VO1.setWhereClause (whereconditionpo);
VO1. ExecuteQuery();
System.out.println ("query 2--->" + vo1.getQuery ());
System.out.println ("Inisde generate button step 2 in AM");
} catch (System.Exception e)
{
throw new OAException (e.getMessage ());
}
s int = vo.getRowCount ();
System.out.println ("number of rows affected" + s);
XMLNode NodeList = new XMLNode [] [10];
Try
{
NodeList [1] = ((XMLNode) vo.writeXML (4, XMLInterface.XML_OPT_ALL_ROWS));
((XMLNode) vo.writeXML (4,)
XMLInterface.XML_OPT_ALL_ROWS)) .print (outputStream);
System.out.println (OutputStream.ToString ());
System.out.println ("Inisde generate button step 1");
NodeList [2] = ((XMLNode) vo1.writeXML (4, XMLInterface.XML_OPT_ALL_ROWS));
((XMLNode) vo1.writeXML (4,)
XMLInterface.XML_OPT_ALL_ROWS)) .print (outputStream);
System.out.println (OutputStream.ToString ());
return NodeList;
} catch (System.Exception e)
{
throw new OAException (e.getMessage ());
}
}
Kind regards
Anil Kumar Pasupala
Tags: Oracle Applications
Similar Questions
-
XML editor of Page OFA report output
Hello
I created a button on a page of the OFA and called the report XML editor program when this button is clicked. Competing demand ran when check from display requests. When I click on viewout, the pdf document opened with the option, open, save, cancel. But it is not coming in the OFA page. When debugging the code, the url is null.
Please see the code below.
OADBTransactionImpl oadbtransactionimpl = (OADBTransactionImpl) paramOAPageContext.getRootApplicationModule () .getOADBTransaction ();
String s1 = oadbtransactionimpl.getAppsContext () .getEnvStore () .getEnv ("TWO_TASK");
System.out.println ("s1 =" + s1);
String s2 = oadbtransactionimpl.getAppsContext () .getEnvStore () .getEnv ("GWYUID");
System.out.println ("s2 =" + s2);
String s3 = "START: 1: = fnd_webfile.get_url (fnd_webfile.request_out,: 2: 3: 4, 2); end; « ;
CallableStatement callablestatement = paramOAPageContext.getApplicationModule (paramOAWebBean) .getOADBTransaction () .createCallableStatement (s3, 1);
System.out.println ("s3 =" + s3);
If (requestId! = 0)
{
Try
{
Number = new Number (requestId);
callablestatement.registerOutParameter (1: 12);
callablestatement.setInt (2, number.intValue ());
callablestatement.setString (3, s2);
callablestatement.setString (4, s1);
CallableStatement.Execute ();
String s4 = callablestatement.getString (1);
System.out.println ("before S4 if statement");
If (s4 == null: s4.equals(""))
throw new RuntimeException();
System.out.println ("URL is null");
System.out.println ("print ouput url-" + s4);
throw OAException.wrapperException (exception);
oadbtransactionimpl.putValue ("OutputURL", s4);
System.out.println ("print ouput url-" + s4);
}Look at the links given by AJ.
Basically what you will do is create a data definition and to assign a data model. Create a template (text) and assign it to your definition of data. You will use the XML editor Java API classes to pass parameters to your data model and extract the XML data. Then you will use this in conjunction with your document and the region of integration OFA model to present the final result to the user.
All these things are in the documentation of the XML editor and the Javadocs.
-
Calculation of the sum of a column on a XML editor RTF with NULL values
Hello
I have a problem to get the sum of a column in XML editor RTF, if one of the lines has a null value.
say, I have 4 columns and values
CASES1:
NULL, NULL, 4, NULL
Sum, I expect is: 4
CASE2:
NULL, NULL, NULL, NULL
I'm waiting for is a null
Is there a way to do this?
Thank you
AnitaTry this
AMT's column
-
How to enable notification of change of value with DSC for several variables
Hello
I would like to request a notification with DSC for two shared variables value saved for change events. In the example attached, it is no problem to do it for only a variable. But I have no idea how to do to achieve for that variable.
Any ideas?
Matthias
Hi Matthias,
You can implement it as you can see in the attached example.
Best regards
Mencef -
Hi all,
I'm new with ofa and AM mi to VO that I use to find the information that is displayed to the user on a region of the query, after the user has pressed the button go demand CO AM tho load VO both use this information to display in a popup region to display and update. the main problem is the closing of popup region it send a shipment to the server one appears the error "View object may not be correctly initialized during update."
The main page and the pop-up window uses the same AM, the initM2mVo() and initTavleVo() are called by processRequest of the main PG CO, the popup dosen´t have a CO.
This AM using PG main and in the region of popup
package tasc.oracle.apps.tasc.m2m.imei.server; import oracle.apps.fnd.framework.OAViewObject; import oracle.apps.fnd.framework.server.OAApplicationModuleImpl; import oracle.apps.fnd.framework.server.OAViewObjectImpl; import oracle.jbo.Row; import oracle.jbo.ViewObject; // --------------------------------------------------------------------- // --- File generated by Oracle ADF Business Components Design Time. // --- Custom code may be added to this class. // --- Warning: Do not modify method signatures of generated methods. // --------------------------------------------------------------------- public class ActualizarImeiAMImpl extends OAApplicationModuleImpl { /**This is the default constructor (do not remove) */ public ActualizarImeiAMImpl() { } /*******************************USE FOR CUSTOM CODE****************************/ /******************************************************************************/ /** * Inicializa el vo a través del cual se ejecutara la actualización del IMEI. * @param taskNumber */ public void loadImeiVo(String taskNumber) { OAViewObject voTableQry = getTableQryVO1(); if (voTableQry != null) { voTableQry.reset(); voTableQry.setWhereClause(null); voTableQry.setWhereClauseParams(null); voTableQry.setWhereClause("TASK_NUMBER = :1"); voTableQry.setWhereClauseParam(0, taskNumber); voTableQry.executeQuery(); if (voTableQry.hasNext()) { voTableQry.next(); String idActuacion = (String)voTableQry.getCurrentRow().getAttribute("IdActuacion"); String dsM2m = (String)voTableQry.getCurrentRow().getAttribute("DsM2m"); String imei = (String)voTableQry.getCurrentRow().getAttribute("Imei"); if (idActuacion != null) { OAViewObjectImpl m2mVo = (OAViewObjectImpl)this.getTascTransEqInstM2mVO1(); m2mVo.reset(); if (!m2mVo.isPreparedForExecution()) { m2mVo.setMaxFetchSize(0); m2mVo.executeQuery(); } m2mVo.setWhereClause(null); m2mVo.setWhereClauseParams(null); m2mVo.setWhereClause("ID_ACTUACION = :1 AND DS_M2M = :2 AND IMEI = :3 "); m2mVo.setWhereClauseParam(0, idActuacion); m2mVo.setWhereClauseParam(1, dsM2m); m2mVo.setWhereClauseParam(2, imei); m2mVo.executeQuery(); if(m2mVo.hasNext()){ m2mVo.next(); } } } } } /** * Carga los valores disponibles de IMEI según el taskNumber al cual pertenezca * el IMEI seleccionado. */ public void loadImeiValuesList(String taskNumber) { ViewObject viewobject = this.getImeiListVO1(); OAViewObject voTableQry = getTableQryVO1(); if (voTableQry != null && voTableQry.getCurrentRow() != null) { String imeiType = (String)voTableQry.getCurrentRow().getAttribute("Attribute17"); if (viewobject != null & imeiType != null) { viewobject.setWhereClause(null); viewobject.setWhereClauseParams(null); viewobject.setWhereClause("TASK_NUMBER = :1 AND ATTRIBUTE17 = :2"); viewobject.setWhereClauseParam(0, taskNumber); viewobject.setWhereClauseParam(1, imeiType); viewobject.executeQuery(); } } } /*******************************USE FOR CUSTOM CODE****************************/ /******************************************************************************/ /**Container's getter for TableVO1 */ public OAViewObjectImpl getTableVO1() { return (OAViewObjectImpl)findViewObject("TableVO1"); } /**Sample main for debugging Business Components code using the tester. */ public static void main(String[] args) { /* package name */ /* Configuration Name */launchTester("tasc.oracle.apps.tasc.m2m.imei.server", "ActualizarImeiAMLocal"); } /**Container's getter for TascTransEqInstM2mVO1 */ public OAViewObjectImpl getTascTransEqInstM2mVO1() { return (OAViewObjectImpl)findViewObject("TascTransEqInstM2mVO1"); } /**Container's getter for ImeiListVO1 */ public OAViewObjectImpl getImeiListVO1() { return (OAViewObjectImpl)findViewObject("ImeiListVO1"); } /**Container's getter for TableQryVO1 */ public OAViewObjectImpl getTableQryVO1() { return (OAViewObjectImpl)findViewObject("TableQryVO1"); } }
It's the CO of the main PG
/*===========================================================================+ | Copyright (c) 2001, 2005 Oracle Corporation, Redwood Shores, CA, USA | | All rights reserved. | +===========================================================================+ | HISTORY | +===========================================================================*/ package tasc.oracle.apps.tasc.m2m.imei.webui; import java.io.Serializable; import oracle.apps.fnd.common.VersionInfo; import oracle.apps.fnd.framework.OAApplicationModule; import oracle.apps.fnd.framework.webui.OAControllerImpl; import oracle.apps.fnd.framework.webui.OAPageContext; import oracle.apps.fnd.framework.webui.TransactionUnitHelper; import oracle.apps.fnd.framework.webui.beans.OAWebBean; import oracle.apps.fnd.framework.webui.beans.layout.OAQueryBean; /** * Controller for ... */ public class ActualizarImeiCO extends OAControllerImpl { public static final String RCS_ID = "$Header$"; public static final boolean RCS_ID_RECORDED = VersionInfo.recordClassVersion(RCS_ID, "%packagename%"); /** * Layout and page setup logic for a region. * @param pageContext the current OA page context * @param webBean the web bean corresponding to the region */ public void processRequest(OAPageContext pageContext, OAWebBean webBean) { super.processRequest(pageContext, webBean); //get the handle to AM Attached to our Simple Page Region MainRegionRN //The page is passed as parameter to this method, hence we can get handle //to the AM quite easily OAApplicationModule am = pageContext.getApplicationModule(webBean); //verifica si la transaccion de creacion esta activa todavia if (TransactionUnitHelper.isTransactionUnitInProgress(pageContext,"ActualizarImeiM2m", false)) { // deshace cambios y finaliza Txn am.invokeMethod("rollback"); TransactionUnitHelper.endTransactionUnit(pageContext, "ActualizarImeiM2m"); } } /** * Procedure to handle form submissions for form elements in * a region. * @param pageContext the current OA page context * @param webBean the web bean corresponding to the region */ public void processFormRequest(OAPageContext pageContext, OAWebBean webBean) { super.processFormRequest(pageContext, webBean); //get the handle to AM Attached to our Simple Page Region MainRegionRN //The page is passed as parameter to this method, hence we can get handle //to the AM quite easily OAApplicationModule am = pageContext.getApplicationModule(webBean); //Detección del botón go de la región de query. this.queryButonGO(pageContext, webBean, am); this.updateImei(pageContext, am); } /** * Detección del botón go de la región de query * @param pageContext * @param webBean * @param am */ public void queryButonGO(OAPageContext pageContext, OAWebBean webBean, OAApplicationModule am) { OAQueryBean queryBean = (OAQueryBean)webBean.findIndexedChildRecursive("QueryRN"); String idGo = queryBean.getGoButtonName(); if (pageContext.getParameter(idGo) != null) { String tareaId = pageContext.getParameter("TaskNumberLovInput"); //Inicializa el vo a través del cual se ejecutara la actualización del IMEI. Serializable[] parameters2 = { tareaId }; Class[] paramTypes2 = { String.class }; am.invokeMethod("loadImeiVo", parameters2, paramTypes2); //Carga los valores disponibles de IMEI según el taskNumber al cual pertenezca el IMEI seleccionado. Serializable[] parameters = { tareaId }; Class[] paramTypes = { String.class }; am.invokeMethod("loadImeiValuesList", parameters, paramTypes); } } public void updateImei(OAPageContext pageContext, OAApplicationModule am){ if (pageContext.getParameter("ActualizarImei") != null){ String imei = pageContext.getParameter("ImeiPopup"); //TODO...... } } }
Thank you all.
I thing I got the problem.
I have the following configuration:
- A Home Page and external RN which is call as popup in the homepage
- 2 VO, java code queries, one to capture information that is used to query the VO 2 that I use to update the information in the pop-up window.
- 01:00, this is the card only in the main Page. (Initially, I had mapped to AM even external RN as the main PG, but I take it off).
The solution was to remove the mapping of the AOS of the outer region and in the messageimput of the whole of the outer region of the instance of the view and the view attribute manually in this field (http://screencast.com/t/uDTALEedCh do not use the Wizard) that one instantiation am AM, so the problem, it seems that was that defining an AM in the outer region create a new instance , causing that he cannot see the information I manually load in the t by request it them.
in this case there is no need to use the following code, because the lines are responsibility of the query information in the java code, it must only be made when inserting a new line.
public void initM2mVo(){ //get a handle to the View Object that we wish to initialize OAViewObject vo = (OAViewObject)this.getTascTransEqInstM2mVO1(); if (!vo.isPreparedForExecution()) { vo.setMaxFetchSize(0); vo.executeQuery(); } //Create a blank Row Row row = vo.createRow(); //Attach that blank row to the VO. Data will be fed into this row, when the user types into the fields vo.insertRow(row); //Set the status of the blank row to initialized. This tells OA Framework that record is blank and must not be included in DML //Operations until changes are made to its underlying VO [via screen fields] row.setNewRowState(Row.STATUS_INITIALIZED); }
-
ExecuteWithParameter with lie on many display objects
I thought I knew how to do this, but it has been a month or two and can't seem to get the syntax right. I'd appreciate some advice on this.
I use jdev 11 to create a basic using ADF Faces page. In the model, I have three separate only reading display objects based on queries in SQL Developer, I created. I have also two tables of choice for use in LOVs to display the names of the identifications. In one of the views, I added two LOVs for columns ID I have a list of choice over which displays the name, id Tech
All three views have the same variable named liaison -: TechID
What I want is to have a unique selection box that displays the name of Tech column that returns the ID of TechID. When the user clicks on the ExecuteWithParms, all three points of view must be updated and re-interviewed by the new value to link and display the results. To see this work, I have worked with readonly tables, but hope eventually to use graphics for the three points of view.
This is the general provision that I am trying to achieve.
Select a choice (list of Tech worth display name, as well as the return of the ID value)
ExecuteWithParams button. Currently have table1, table2, table2 in the field of the partialtriggers.
Table1:
ViewObject1 which has a link named: TechID
Table2
ViewObject2 which has a link named: TechID
Table 3
ViewObject3 which has a link named: TechID
It seems it should be easy to install. Is it possible declarative, or I need code. If I need code, can I get some advice?
Is there an example that has something similar I can gleen how?
Thank you, KenI don't think it can be done declarative. You must use a code on the line.
The problem is that you can only bind a method call to a button. Now you have some ways to go.
1. use three buttons (easy, but not your use case)
2. use a clove of support where you put an action listener in the button and call the three methods in the t from here
3. Add a method in your application module that accept a parameter, then bind it to the button. This method runs the query on each of the yourI will exclude the first solution. Which of the other two is the best for your use case you have to decide. If you have always updated of the three your I would use the third because it shifts the logic in the model layer and it is easier to maintain.
In the user interface still link you an executeWithParam to the key, the difference is the method resides in the module of the application. In this method, you call the methods of the your like this:
public void updateViews(String techId) { VO1 vo1 = (VO1) this.findViewObject("VO1"); VO2 vo2 = (VO2) this.findViewObject("VO2"); VO3 vo3 = (VO3) this.findViewObject("VO3"); vo1.updatewithParam(techID); vo2.updatewithParam(techID); vo3.updatewithParam(techID); }
In each of the VO, you have a method
public void updatewithParam(String techID) { setNamedQueryParameter("techID", techId); executeQuery(); }
That should do it.
Timo
-
Does anyone has created integration with MSCRM for the opening of the campaign?
I had stock in MSCRM (selling Stadium/qualification selection) which take place in a sales representative trigger entry into stage mid or end campaign Eloqua. Does anyone do this?
Hello Marilyn,.
I double checked with our technical team and our cloud connectors Eloqua-MSCRM (part of 4Bridge) will allow you to update Stadium sales or rating you want (like many other things). These cloud connectors can be run both in a Web of campaign or a Builder program. Some customers have used in education campaigns to create activities for representatives which is somewhat similar to your goal teensy.
We have a variety of cloud in our category Microsoft CRM connectors a few of them are: Create Contact / Create lead / create account / create campaign response / update lead / Update Contact / create task.
Through the 4Bridge it possible to connect to Eloqua LCO, Contacts, accounts, etc.Note that we now have the dynamic integration of 4Bridge working for MSCRM 2013 premises and MSCRM On-Demand.
Best! -Mark LeVell
-
I need VPN gateway to gateway with NAT for several subnets, RV082
I have a pair of RV082 routers and I would like to configure a gateway to gateway VPN tunnel, as described in a book, "How to configure a VPN tunnel that routes all traffic to the remote gateway," (name of file Small_business_router_tunnel_Branch_to_Main.doc). I followed this recipe book and found that my while the main office has internet connectivity, the branch subnet is not an internet connection.
Routing behaves as advertised, where all traffic goes to the seat. However, the 192.168.1.0 subnet in the branch receives no internet connectivity. I read in other posts that the main router will provide only NAT for the local subnet, not the Management Office subnet. Is it possible to configure the RV082 router to provide NAT for all subnets?
If this is not the case, what product Cisco will provide connectivity VPN Tunnel as well as the NAT for all subnets? The RV082 can be used as part of the final solution or are my RV082s a wasted expense?
Here is the configuration that I had put in place, (real IP and IKE keys are false).
Bridge to bridge
Remote Head Office
Add a new Tunnel
No de tunnel 1 2
Name of the tunnel:, n1 n1-2122012_n2-1282012-2122012_n2-1282012
Interface: WAN1 WAN1
Enable : yes yes
--------------------------------------------------------------------------------
Configuration of local groups
Type of local security gateway: IP only IP only
IP address: 10.10.10.123 10.10.10.50
Local security group type: subnet subnet
IP address: 192.168.1.0 0.0.0.0
Subnet mask: 255.255.255.0 0.0.0.0
--------------------------------------------------------------------------------
Configuration of the remote control groups
Remote security gateway type: IP only IP only
IP address: 65.182.226.50 67.22.242.123
Security remote control unit Type: subnet subnet
IP address: 0.0.0.0 192.168.1.0
Subnet mask: 0.0.0.0 255.255.255.0
--------------------------------------------------------------------------------
IPSec configuration
Input mode: IKE with preshared key IKE with preshared key
Group of the phase 1 of DH: Group 5 - 1536 bit group 5 - 1536 bit
Encryption of the phase 1: of THE
The phase 1 authentication: MD5 MD5
Step 1 time in HIS life: 2800 2800 seconds
Perfect Forward Secrecy: Yes Yes
Group of the phase 2 DH: Group 5 - 1536 bit group 5 - 1536 bit
Encryption of the phase 2: of THE
Phase 2 of authentication: MD5 MD5
Time of the phase 2 of HIS life: 3600 seconds 3600 seconds
Preshared key: MyKey MYKey
Minimum complexity of pre-shared key: Enable Yes Enable
--------------------------------------------------------------------------------
If you are running 4.x firmware on your RV082, you must add an additional Allow access rule for the Branch Office subnet (considered one of the multiple subnets in the main office) may have access to the internet. Note the firmware version has more details about it.
http://www.Cisco.com/en/us/docs/routers/CSBR/rv0xx/release/rv0xx_rn_v4-1-1-01.PDF
-
Using the account with pivot for several columns
create table TEST_CASETBL (ID, NUM, TYPE, CREATED_BY, CREATED_DT) that choose
1, 1-1, CO, ABC, sysdate-10 of all the DOUBLE select union
2, 1-1, EO, ABC, sysdate-10 of all the DOUBLE select union
3, 1-2, CO, ABC, sysdate-10 of all the DOUBLE select union
4, 1-2, UPD, ABC, sysdate-10 of all the DOUBLE select union
5, 1-3, CO, XYZ, sysdate-10 of all the DOUBLE select union
6, 1-3, EO, XYZ, sysdate-10 of all the DOUBLE select union
7, 1-4, CO, XYZ, sysdate-10 of all the DOUBLE select union
8, 1-4, NT, XYZ, sysdate-10 of all the DOUBLE select union
9, 1-5, EO, XYZ, sysdate-10 of all the DOUBLE select union
10, 1-5, NT, XYZ, 10 sysdate from DUAL;
I want to calculate number of NUM, County of different values in the 'TYPE' column based on the CREATED_BY column
Expected result:
CREATED_BY Count (NUM) Count (CO) Count (EO) Count (s) Count (UPD)
ABC 2(which means 1-1,1-2) 2 1 0 1
XYZ 3(which means 1-3,1-4,1-5) 2 2 2 0
Please provide your suggestions to solve the SQL query form
Thank you
Hello
Melissacharlier-Oracle wrote:
create table TEST_CASETBL (ID, NUM, TYPE, CREATED_BY, CREATED_DT) that choose
1, 1-1, CO, ABC, sysdate-10 of all the DOUBLE select union
2, 1-1, EO, ABC, sysdate-10 of all the DOUBLE select union
3, 1-2, CO, ABC, sysdate-10 of all the DOUBLE select union
4, 1-2, UPD, ABC, sysdate-10 of all the DOUBLE select union
5, 1-3, CO, XYZ, sysdate-10 of all the DOUBLE select union
6, 1-3, EO, XYZ, sysdate-10 of all the DOUBLE select union
7, 1-4, CO, XYZ, sysdate-10 of all the DOUBLE select union
8, 1-4, NT, XYZ, sysdate-10 of all the DOUBLE select union
9, 1-5, EO, XYZ, sysdate-10 of all the DOUBLE select union
10, 1-5, NT, XYZ, 10 sysdate from DUAL;
I want to calculate number of NUM, County of different values in the 'TYPE' column based on the CREATED_BY column
Expected result:
CREATED_BY Count (NUM) Count (CO) Count (EO) Count (s) Count (UPD)
ABC 2(which means 1-1,1-2) 2 1 0 1
XYZ 3(which means 1-3,1-4,1-5) 2 2 2 0
Please provide your suggestions to solve the SQL query form
Thank you
This CREATE TABLE statement works when try you it? Do you need single quotes around string literals?
You may want something like:
WITH data_to_pivot AS
(
SELECT created_by, type
COUNT (DISTINCT num) over (PARTITION BY created_by) AS count_num
OF test_casetbl
)
SELECT *.
OF data_to_pivot
PIVOT (COUNT (*)
TO indicate the ("CO" AS count_co
'EO' AS count_eo
'NT' AS count_nt
'UPD' AS count_upd
)
)
ORDER BY created_by
;
-
Substitute for a display object create() operation
Hi all
I use JDeveloper 11 g release 2.
I want to change the value for the attribute companycode of the EmployeesVO seamlessly to a bean of support and a create() by button operation.
Any help will be much appreciated.
Thanks in advance!
BilalYou can use the createWithParams method.
Check out this blog dealing with roughly the same:
http://andrejusb.blogspot.com/2011/02/createwithparams-operation-for-Oracle.htmlThank you
Nini -
Linking with many display objects, then 2
Hello
Is it possible to create a link with several display objects then 2. There are two objects in view I want to put a link with a common master view object. is this possible? If Yes please tell me how to do it.
-Thank you
Hello, Uthman.
As suggested by Ibtisam Zafar and 1000723 user, you can do with two links associated with the same master VO.
I think that what's missing to make adds master and two details in the page (steps 5 and 6).
For example, if we have a MasterVO as a master, the FirstDetailVO and the SecondDetailVO as a detail:
1. create a link to display based on MasterVO and associated with FirstDetailVO via the idMaster field, named FirstDetailMasterVL.
2. create a link to display based on MasterVO and associated with SecondDetailVO via the idMaster field, named SecondDetailMasterVL.
3. in "Module-> Application data model", adds MasterVO (MasterVO1). Then, add FirstDetailMasterVL (FirstDetailVO1) and SecondDetailMasterVL inside MasterVO1.
4. in the control of data, you can see MasterVO and inside, you will see FirstDetailVO1 and SecondDetailVO1.
5. in the ViewController project, you can insert in the page "FirstDetailVO1" as a master-detail.
6. to insert SecondDetailVO detail, you can add it as a table or a form. You insert SecondDetailVO as a master detail.
You can see how the two details are updated as you navigate through the lines of MasterVO1.
RFH.
-
With INSERT for FDM memory problem
All-
We have configured FDM to run a script of integration in our instance EBS at the import stage. It worked fine for awhile, then we started to run out of memory on the server FDM. At the suggestion of the Oracle, we stopped through a record set for add and update the values of strWorkTableName and instead, he began to use INSERT INTO. I admit, I never needed to use the INSERT INTO how to do, so I can miss something bery base.
Our integration script:
I can run the SQL less line insertion in my SQL Developer and it works fine. When I run the script in its entirety in the FDM, we get the following:Function SQLIntegration2(strLoc, lngCatKey, dblPerKey, strWorkTableName) '------------------------------------------------------------------ 'Oracle Hyperion FDM IMPORT Integration Script: ' 'Created By: karks 'Date Created: 2011-10-26 13:05:18 ' 'Purpose: ' '------------------------------------------------------------------ Dim strSQL 'SQL string Dim lngPartitionKey Dim strConn 'Connection string to the source data Set cnSS = CreateObject("ADODB.Connection") lngPartitionKey = RES.PlngLocKey strConn= "File Name=C:\Users\karksadm\Desktop\NewConnection.udl;" cnSS.open strConn strSQL = "Insert Into " & strWorkTableName & " (PartitionKey, CatKey, PeriodKey, DataView, Amount , Account, Entity, ICP, UD1, UD2, UD3, UD4) " strSQL = strSQL & "SELECT " & lngPartitionKey & ", " & lngCatKey & ", TO_DATE (TO_DATE ('30/12/1899','dd/mm/yyyy')+" & dblPerKey & "), 'YTD', EBS.YTD_BALANCE, EBS.ACCOUNT, EBS.SEGMENT1, EBS.SEGMENT5, EBS.SEGMENT4, EBS.SEGMENT5, '[None]', EBS.CURRENCY_CODE FROM " strSQL = strSQL & "(Select D.NAME, A.CODE_COMBINATION_ID, D.NAME LEDGER_NAME, A.ACTUAL_FLAG, C.PERIOD_YEAR, TO_CHAR (C.START_DATE, 'MON-YY') AS PERIOD, B.SEGMENT1, (B.SEGMENT2 || B.SEGMENT3) As ACCOUNT, B.SEGMENT4, B.SEGMENT5, A.CURRENCY_CODE, " strSQL = strSQL & "(SUM (A.BEGIN_BALANCE_DR) + SUM (A.PERIOD_NET_DR) - SUM (A.BEGIN_BALANCE_CR) - SUM (A.PERIOD_NET_CR)) As YTD_BALANCE " strSQL = strSQL & "FROM GL.GL_BALANCES A, GL.GL_CODE_COMBINATIONS B, GL.GL_PERIODS C, GL.GL_LEDGERS D " strSQL = strSQL & "WHERE 1 = 1 And A.LEDGER_ID = D.LEDGER_ID And A.PERIOD_NUM = C.PERIOD_NUM And C.PERIOD_YEAR = A.PERIOD_YEAR " strSQL = strSQL & "And A.CODE_COMBINATION_ID = B.CODE_COMBINATION_ID And B.SUMMARY_FLAG = 'N' AND C.PERIOD_SET_NAME = D.PERIOD_SET_NAME " strSQL = strSQL & "And (B.SEGMENT1 = 001 And A.CURRENCY_CODE = 'USD' And D.LEDGER_ID = 2022) " strSQL = strSQL & "And C.END_DATE = TO_DATE (TO_DATE ('30/12/1899','dd/mm/yyyy')+" & dblPerKey & ") " strSQL = strSQL & "And B.CHART_OF_ACCOUNTS_ID = D.CHART_OF_ACCOUNTS_ID And A.ACTUAL_FLAG = 'A' " strSQL = strSQL & "And ((A.BEGIN_BALANCE_DR) + (A.PERIOD_NET_DR) - ((A.BEGIN_BALANCE_CR) + (A.PERIOD_NET_CR))) <> 0 " strSQL = strSQL & "GROUP BY A.CODE_COMBINATION_ID, D.NAME, A.CURRENCY_CODE, TO_CHAR (C.START_DATE,'MON-YY'), C.PERIOD_YEAR, A.ACTUAL_FLAG, B.SEGMENT1, (B.SEGMENT2 || B.SEGMENT3), B.SEGMENT4, B.SEGMENT5 " strSQL = strSQL & "ORDER BY B.SEGMENT4) EBS" DW.DataManipulation.fExecuteDML(strSQL) 'Give success message RES.PlngActionType = 2 RES.PstrActionValue = "SQL Import successful!" 'Assign Return value SQLIntegration2 = True cnSS.close Set cnSS = Nothing End Function
* Start the journal entry for the Runtime Error FDM [2012-01-23 11:37:30] *.
-------------------------------------------------------------
ERROR:
Code...-2147217865
Description... ORA-00942: table or view does not exist
Insert Into tWibison72564424799 (PartitionKey, CatKey, PeriodKey, DataView, amount, account, entity, PKI, UD1, UD2, UD3, UD4) 772 SELECT, 28, TO_DATE (TO_DATE (' N December 30, 1899 ', not dd/mm/yyyy ') + 40724), YTD', EBS. YTD_BALANCE, EBS. ACCOUNT, EBS. SEGMENT1, EBS. SEGMENT5, EBS. SEGMENT4, EBS. SEGMENT5, N "[None]", EBS. Currency_code OF (Select D.NAME, A.CODE_COMBINATION_ID, LEDGER_NAME, A.ACTUAL_FLAG, C.PERIOD_YEAR, TO_CHAR D.NAME (C.START_DATE, no MON-YY') AS the PERIOD, B.SEGMENT1, (B.SEGMENT2 |)) B.SEGMENT3) as ACCOUNT, B.SEGMENT4, B.SEGMENT5, A.CURRENCY_CODE, (SUM (A.BEGIN_BALANCE_DR) + SUM (A.PERIOD_NET_DR) - SUM (A.BEGIN_BALANCE_CR) - SUM (A.PERIOD_NET_CR)) as GL.GL_BALANCES YTD_BALANCE, GL.GL_CODE_COMBINATIONS B, GL.GL_PERIODS C, GL.GL_LEDGERS D, WHERE 1 = 1 and A.LEDGER_ID = D.LEDGER_ID And A.PERIOD_NUM = C.PERIOD_NUM And C.PERIOD_YEAR = A.PERIOD_YEAR And A.CODE_COMBINATION_ ID = B.CODE_COMBINATION_ID and B.SUMMARY_FLAG = do no AND C.PERIOD_SET_NAME = D.PERIOD_SET_NAME and (B.SEGMENT1 = 001 and A.CURRENCY_CODE 'n' USD =' and D.LEDGER_ID = 2022) and C.END_DATE = TO_DATE (TO_DATE (' N December 30, 1899 ', not dd/mm/yyyy ') + 40724) and B.CHART_OF_ACCOUNTS_ID = D.CHART_OF_ACCOUNTS_ID and A.ACTUAL_FLAG = ' and ((A.BEGIN_BALANCE_DR) + (A.PERIOD_NET_DR) - ((A.BEGIN_BALANCE_CR) + (A.PERIOD_)) NET_ CR))) <>0 GROUP BY D.NAME, A.CURRENCY_CODE, A.CODE_COMBINATION_ID, TO_CHAR (C.START_DATE, no MON-YY'), C.PERIOD_YEAR, A.ACTUAL_FLAG, B.SEGMENT1, (B.SEGMENT2 |) B.SEGMENT3), B.SEGMENT4, B.SEGMENT5 ORDER BY B.SEGMENT4) EBS
Process... clsDataManipulation.fExecuteDML
The component... upsWDataWindowDM
Version.......................................... 1112
Thread........................................... 4424
IDENTIFICATION:
User............................................. ibisons
Name of the computer... HOU-HYSDEV02
App Name......................................... SWNFDMRC
Client App....................................... WebClient
CONNECTION:
Provider......................................... ORAOLEDB. ORACLE
Database server...
Name of the database... FDMDEV
Trust connect... Fake
Connect status... Open connection
GLOBALS:
Location......................................... EBSINTEGRATION
Location ID... 772
Location Seg... 25
Category......................................... EBS2
ID of the category... 28
Period... - June - 2011
Period ID........................................ 30/06/2011
POV Local........................................ Fake
Language......................................... 1033
User Level....................................... 1
All Partitions... True
Is Auditor....................................... Fake
* Start the journal entry for the Runtime Error FDM [2012-01-23 11:37:31] *.
-------------------------------------------------------------
ERROR:
Code...-2147217865
Description... Data access error.
Online: 33
Process... clsImpProcessMgr.fExecuteImpScript
The component... upsWObjectsDM
Version.......................................... 1112
Thread........................................... 4424
IDENTIFICATION:
User............................................. ibisons
Name of the computer... HOU-HYSDEV02
App Name......................................... SWNFDMRC
Client App....................................... WebClient
CONNECTION:
Provider......................................... ORAOLEDB. ORACLE
Database server...
Name of the database... FDMDEV
Trust connect... Fake
Connect status... Open connection
GLOBALS:
Location......................................... EBSINTEGRATION
Location ID... 772
Location Seg... 25
Category......................................... EBS2
ID of the category... 28
Period... - June - 2011
Period ID........................................ 30/06/2011
POV Local........................................ Fake
Language......................................... 1033
User Level....................................... 1
All Partitions... True
Is Auditor....................................... Fake
* Start the journal entry for the Runtime Error FDM [2012-01-23 11:37:31] *.
-------------------------------------------------------------
ERROR:
Code...-2147217865
Description... Data access error.
Online: 33
Process... clsImpProcessMgr.fLoadAndProcessFile
The component... upsWObjectsDM
Version.......................................... 1112
Thread........................................... 4424
IDENTIFICATION:
User............................................. ibisons
Name of the computer... HOU-HYSDEV02
App Name......................................... SWNFDMRC
Client App....................................... WebClient
CONNECTION:
Provider......................................... ORAOLEDB. ORACLE
Database server...
Name of the database... FDMDEV
Trust connect... Fake
Connect status... Open connection
GLOBALS:
Location......................................... EBSINTEGRATION
Location ID... 772
Location Seg... 25
Category......................................... EBS2
ID of the category... 28
Period... - June - 2011
Period ID........................................ 30/06/2011
POV Local........................................ Fake
Language......................................... 1033
User Level....................................... 1
All Partitions... True
Is Auditor....................................... Fake
I really think that the problem is that I am not tell the script where to find the Oracle tables to. I left the code wherever we use the UDL to call for the opening of the Recordset, but since we do away with the Recordset how let FDM knows where to find the Oracle tables?
Thanks in advance - I've been struggling with this for several days.
Thank you,
SarahDid you build a database for the GL data link? These paintings GL.GL_BALANCES A, GL.GL_CODE_COMBINATIONS B, GL.GL_PERIODS C, GL.GL_LEDGERS D are not part of the FDM and I do not see how treat you your education cnSS.open strConn sSQL binder.
-
ADF BC to SQL Server connection with variable set to View object
Hello world
I develop a BPM Application using Oracle BPM 11.1.1.5.0 and JDeveloper 11.1.1.5.0
Following the thread of the link below, since it is a new topic, I decided to open a new thread.
what I try to do is to get a record from a database and show to the user on the initiator of the UI using ADF BC and not the database adapter.
I have worked with ADF BC and display objects to get all the lines and show them to the user in a table.
However, when I try to run the same query in the parameterized shape just return a single line, I hit a wall.
In short, my problem is like this:
I have an Application Module which has an entity object and a display object.
My database is SQL Server 2008.
When I try to create a new read only view object to return a single line I face the problem.
The query that I have in the section my display object query is like this:
which works very well.select * from dbo.Employee where EmployeeCode= 99
However when I set a variable input_code, linking for example and change the query as follows it won't validate.
He just telling meselect * from dbo.Employee where EmployeeCode= :input_code
>
incorrect syntax near ': '.
>
I don't know if this has to do with my Oracle DB is not or I'm doing something wrong.
Can someone help me with this you problem?
Thanks in advanceThe problem is that you are using 'Oracle named' style for the binding of parameter in the SQL statement. However, this style of binding is specific Oracle. You must use "Positional JDBC" style of binding with MS SQL Server:
select * from dbo.Employee where EmployeeCode= ?
(The style of binding is specified in the query to the dialog box Definition VO Editor pane).
If you specify the positional style of binding "JDBC", another field called 'Linking the Positions' will appear in the definitions pane variables bind VO. You will be able to specify it is the position of the particular parameter in the binding variable VO query bound to. (the position of the bond index is 0-based).
Dimitar
-
question about cacheAsBitmap and pixelSnapping of display objects
In my flash file, I have essentially a container movieclip that contains all the content of the site. This container and then always is positioned in the center of the stage. I'm not exactly keen on the fact that the edges of the content, based on the dimensions of the stage, sometimes blurred because the content is not snapping to the nearest pixel.
Well, I looked into cacheAsBitmap and am still a little confused. What is the only way to activate pixelsnapping for a display object (for example a movieclip) arising from the use cacheAsBitmap?
And if this is the case, even should I use on the container? In no case is there a lot of vector complex, so I would be hurt performance if I used it? Caching a bitmap for my entire fair site representation seems fairly intensive memory. I'm far from base? Is there somewhere else I should be looking?
If things seem fuzzy on the edges, this is your code of positioning... Use Math.floor or round or ceil to position on whole pixels:
95 / 2 = 47.5
Math.Floor (95 / 2) = 47
-
5.6.3 (EBS) editor XML can be integrated with APEX?
On the following document, Publisher 5.6.2 XMP supports no integration with APEX. Can I know 5.6.3? What is the product being an add-on with EBS causing the supporting integration (i.e., 5.6.3 even is not taken in charge)?
http://www.Oracle.com/technology/products/database/application_express/HTML/configure_printing.html
Thank you
RownaldAPEX integrates with the standalone version of BI Publisher. It was not a component of server with the standalone 5.6.3. The integration is based on the editor providing a servlet for APEX contact, 5.6.3 do not have that.
If you're talking 5.6.3 under EBS then I guess you could build a servlet on the mid-tier that calls the API conversion of BEEP - it would all be a custom job.The integration of the APEX needs 10.1.3.2 BEEP to work with out of the box.
Concerning
Tim
Maybe you are looking for
-
How to return to the classic user interface?
I used the UI classic (this VERY old interface) with Firefox 28.0a1 nightly. My last update was November 10, 2013. Then I updated my nightly today and all of a sudden, after the reboot, my UI changed for the worse. Surely enough, it didn't look like
-
I can't put the icons of bookmarks?
Can I change the icons on the bookmarks?I changed computers and exported and then imported my favorites, and all the icons disappeared.Some came back when I went to these sites, but most is stuck as the icon of the white page.Can I change them myself
-
How to set the resolution to a VI (NOR-IMAQdx)?
Hello. I can set the resolution very well with the video Mode able & Automation Explorer, but I will in my VI as well. I found the property node named 'vidéo Mode' and the problem is that I don't really know, what I have to write in it? I want to red
-
HP Photosmart D110: removal of tenacious document printing queue
In the queue of my printer printing a document that do not print and refuses to be deleted there. Other documents in the queue (before & after) were easy to remove, but it said "Delete" for a day and a half now, without be deleted. This is why I ca
-
E6420 - Bios A07 - false positive diagnosis - Lcd Cable
Hello world! I found a weird bug with update bios A07 on the E6420 (i5 - 2520 m). The utility disgnostics report "error Lcd 2000-0415. When I return to A06, the problem disappear. Anyone can repeat this mistake? I had opened a case to replace my lcd