Queries with multiple schemas in XML Publiser Enterprise
We are looking at XML Publisher Enterprise for a non-Oracle application. We have several reports that use queries where we join tables from more than one schema. Will this be a problem with XML Publisher Enterprise? I have not found any documentation on this.
Hi, you can FOR XML PATH for a finer degree of control over your XML. Use the @ symbol to create attributes. Here's a simple example:
DECLARE @t TABLE ( rowId INT IDENTITY PRIMARY KEY, [address] VARCHAR(50), city VARCHAR(30), floor INT, suite INT, doorType VARCHAR(20) )
INSERT INTO @t VALUES
( '123 Fake St', 'Springfield', 10, 512, 'Metal' )
SELECT
[address] AS "Address",
city AS City,
[floor] AS "Location/@Floor",
suite AS "Location/@Suite",
doorType AS "Location/@DoorType"
FROM @t
FOR XML PATH ('Company'), ROOT ('Companies'), ELEMENTS;
Similar Messages
-
Help With Multiple Schemas In Multiple Environments
Dear Oracle Forum:
We have a bit of controversy around the office and I was hoping we could get some expert input to get us on the right track.
For the purposes of this discussion, we have two machines, development and production. Currently, on each machine, we have one database with multiple schemas, say, one for sales data and another for inventory. The sales data has maybe 200 tables and the inventory has another 50. About 12 times a year, once a month, we have a release and move code from dev to prod. The database is accessed by several hundred Pro*C and Pro*Cobol programs for online transaction processing.
The problem comes up when we need to have multiple development environments. If I need to work on something for May that requires the customer address field to be 50 characters and somebody else is working on something for July that requires the customer address field to be 100 characters, we can’t both function in the same schema. We have a method of configuring running programs to attach to a given schema/database. Currently, everything connects to the same place. We were told that we should not have the programs running as the owners of the schemas for some reason so we set up additional users. The SALES schema is accessed with the connect string: SALES_USER/[email protected]. (I don’t know where we got dot world from but that is not the current discussion.)
One of the guys said that we should have 12 copies of the database running, which is kind of painful to think about in my opinion. Oracle is not a lightweight product and there are any number of ancillary processes that would have to be duplicated 12 times.
My recommendation is that we have 12 schemas each for sales and inventory with 12 users each to access them. We would have something like JAN_SALES_USER, FEB_SALES_USER, etc. Each user would have synonyms set up for each of the tables it is interested in. When my program connects as MAY_SALES_USER, I could select from the customer table and I would get my 50 character address field. When the other user connects as JUL_SALES_USER, he would get his 100 character address field. Both of us would not know anything different.
Another idea that came up is to have a logon trigger that would set the current schema for that user to the appropriate base schema. When JUL_SALES_USER logs in, the current schema would be set to JUL_SALES, etc. This would simplify things by allowing us to avoid having something like 2400 synonyms to maintain (which could be automated without too much difficulty) but it would complicate things by requiring a trigger.
There are probably other ways to go about this we have not considered as yet. Any input you can give will be appreciated.
Regards,
/Bob BryanHans Forbrich wrote:
I'd rather see you with 12 schemas than with 12 databases. Unless you have lots of CPUs to spare ... and lots of cash to pay for those extra CPU licenses.
Then again, I'd take it one step further and ask to investigate the base design. There should be little reason to change the schema based on time. Indeed, from what little I know of your app, I'd have to ask whether adding a 'date' column and appropriate views or properly coded SQL statements might simplify things. Interesting. If we were to have one big Customer table with views for each month, how would we handle the case where the May people have to see 50 character address and July have to see a 100 character address field. I guess we could have MAY_ADDRESS VARCHAR2(50) and JULY_ADDRESS VARCHAR2(100) and take care to make sure that people connecting as May can only see the May columns, etc. This is simpler than multiple schemas?
I may have overly simplified things in my effort to get something down that would not require too much explanation. The big thing is that multiple people are doing development and they have to be independent of each other. If we were to drop a column for July, the May people will have trouble compiling if we don’t keep things separate. It is not a case of making the data available. The data in development is something we cook up to allow us to test. The other part is the code we compile now will be released to production one of these times. In production, there is only a need for one database.
We are moving from another database product where multiple databases are effectively different sets of files. We have lots of disk space so multiple databases were no problem. Oracle is such a powerful product; I can’t believe there is not some way to set up something similar. -
JAXB / XML Project with Multiple Schemas
So, I am wondering how I can accomplish the following:
1) I am using Toplink 10.1.3.1.
2) I have a project that deals with many varieties of XML files.
3) Each XML file will have its own xsd.
4) I want to be able to generate the JAXB objects for each file type into different packages.
5) I want to be able to create a jaxb object based on the package name. Can I just add the different projects to the session.xml file? If so, how?
I know that you can do this with other JAXB implementations. Just curious what the deal is with Toplink? Seems that I can only have one schema per project. I then can only have one session.xml file. Using the JAXBConext to create a new instance, I am not allowed to specify an additional session.xml file.
Thoughts? Opinions? Suggestions!!!
Thanks,
BradWOk. Looks like I need to create a session.xml file that has multiple sessions based on the package name. Yeah!
Now everyone knows... :)
BradW -
Validating with multiple schemas
I am setting the schama attribute as follow:
String schemaSource = "C:\\Documents and Settings\\ayache\\My Documents\\C5 XML\\schema\\searhRequest.xsd";
String JAXP_SCHEMA_SOURCE = "http://java.sun.com/xml/jaxp/properties/schemaSource";
builderFactory.setAttribute(JAXP_SCHEMA_SOURCE, new File(schemaSource));searchRequest.xsd contains include statement: it referes to another schema. When i try to validate the xml document using the scheam above error is thrown stating that the elements that are defined in the second schema(BookingProfile.xsd) are not recognised or can't be resolved.
Is there a way to set multiple schemas?
Your help is much appreciated.I figured out my problem in case anyone else is having trouble..
In the xml document that you need to refer to:
xmlns:xsd="http://www.w3.org/2000/10/XMLSchema-instance that is the namespace
supported by xerces 1.3.1.
Whew!
"Karen Schaper" <[email protected]> wrote:
>
Has anyone been successful at validating xml with a Schema running weblogic
6.1
sp2?
Here is a snippet of code...
SAXParserFactory objFactory = SAXParserFactory.newInstance();
objFactory.setValidating("true");
objFactory.setNamespaceAware("true");
objFactory.setFeature("http://apache.org/xml/features/validation/schema",
"true");
objXMLInputParser.parse(new InputSource(new StringReader(XMLDocument)),
A_HANDLER);
When my xml code runs through the parser I get an error for each element
saying
the element type is not declared in the dtd or schema.
Since weblogic 6.1 runs with 1.3.1 Xerces parser. Does it support xml
validation
with a Schema. From what I've read it seems that it does.
Any help or insight would be appreciated.
Thanks
Karen -
One application with Multiple schemas- common application frame work
Hi All,
I am trying setup a common application frame work in apex. Please help me.
How to achieve this.
Creation of one application attached to different schemas at run time. So that my application maintaince is going to be easy instated of creating copies of same application.
More details:
1. I have one application with 100 pages pointing to a schema dev_common in one workspace APP_COMMON. I have 50 schemas with same structure of dev_common schema with different set of data ( because of large amount of data).
So I want to create one application attached to different schemas.
2. And another thing is I have 100 users, the user can work on 1 or multiple schemas ( I mean same application with different schemas attached)
Any help much appreciated.
Thanks,Thank you for the reply.
>> b) I think you have to give access rights for the dev_common and app_common to all users.
Dev_common schema is a kind of placeholder. I have 50 schemas same as dev_common because of different business requirements but the front end is same for all 50 schemas. How can we create one application used for 50 schemas instead of creating 50 applications and 50 workspaces.
Please help me. -
How to develope application with multiple schema
Hi,
In my application, there is 3 schema, forms are from different schema, but the database is one. How should I manage it, When i open the form with different schema I am not getting the expected result,
I am using Oracle 10g Forms & Database
Thanks in advance
Rizlyhi,
what database-user is the user connected with, when executing the forms ? Is it one of the three schemaowners or has each logical user his own database-user?
About your db-objects:
I would create 3 roles, one for each schema, and grant the needed privileges for one schema to the according role
Example:
CREATE ROLE RL_SCHEMA1;
GRANT SELECT, INSERT, UPDATE, DELETE ON SCHEMA1.TABLE RO RL_SCHEMA1;
...Then you can grant the roles to the databaseuser you are connected with at runtime.
If you use named users (each logical user has it's own database-user) then you assign each user only those roles he needs. -
Oracle troubles with multiple schemas in same database
We have several different users set up with individual schemas in the
same Oracle database. We run into trouble when more than one user tries
to use Kodo in their local schema. Things go fine for User A, but when
the User B tries to run the schematool on their own Oracle schema, they
get this nonsense:
javax.jdo.JDOFatalDataStoreException: An error occurred while connecting
to the data store.
NestedThrowables:
com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper: [SQL=SELECT
DISTINCT JDO_SCHEMA_METADATAX.CLASSNAMEX FROM JDO_SCHEMA_METADATAX]
ORA-00942: table or view does not exist
at
com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.<init>(SchemaTool.java:99)
at
com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.main(SchemaTool.java:1114)
at
com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.main(SchemaTool.java:1083)
at
com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.main(SchemaTool.java:1073)
at
com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.main(SchemaTool.java:1064)
If the User A drops all the tables from their schema, then things go
fine for User B ... but then User A will have the same problem when they
try to run the schematool.
It is our suspicion that Kodo is actually selecting the metadata all of
the tables in **everybody's** schemas, and thus erroneously thinking
that jdo_schema_medatax already exists. It really ought to restrict
itself to the schema it's actually connected to.
If our theory is correct, it would explain why Kodo is so incredibly,
horribly, painfully slow to connect to our Oracle database -- we have
dozens of schemas in there, many of which have hundreds of tables.
Is 2.3.0 addressing this problem?
PaulPaul,
Are you using the 'schema-name' system preference setting for each user?
Oracle's mechanism for selecting database metadata requires that the
appropriate schema name be explicitly when more than one schemas are used.
See the database setup section of our documentation for more information.
-Patrick
On 7/3/02 3:50 PM, "Paul Cantrell" <[email protected]> wrote:
We have several different users set up with individual schemas in the
same Oracle database. We run into trouble when more than one user tries
to use Kodo in their local schema. Things go fine for User A, but when
the User B tries to run the schematool on their own Oracle schema, they
get this nonsense:
javax.jdo.JDOFatalDataStoreException: An error occurred while connecting
to the data store.
NestedThrowables:
com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper: [SQL=SELECT
DISTINCT JDO_SCHEMA_METADATAX.CLASSNAMEX FROM JDO_SCHEMA_METADATAX]
ORA-00942: table or view does not exist
at
com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.<init>(SchemaTool.java:99)
at
com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.main(SchemaTool.java:1114)
at
com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.main(SchemaTool.java:1083)
at
com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.main(SchemaTool.java:1073)
at
com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.main(SchemaTool.java:1064)
If the User A drops all the tables from their schema, then things go
fine for User B ... but then User A will have the same problem when they
try to run the schematool.
It is our suspicion that Kodo is actually selecting the metadata all of
the tables in **everybody's** schemas, and thus erroneously thinking
that jdo_schema_medatax already exists. It really ought to restrict
itself to the schema it's actually connected to.
If our theory is correct, it would explain why Kodo is so incredibly,
horribly, painfully slow to connect to our Oracle database -- we have
dozens of schemas in there, many of which have hundreds of tables.
Is 2.3.0 addressing this problem?
Paul
Patrick Linskey [email protected]
SolarMetric Inc. http://www.solarmetric.com -
Multiple Queries with Multiple Prompts
Hi,
I created a WEBI that consist of two queries. Both query is the same except the currency value in the prompt.
Query 1: Currency is MYR
Query 2: Currency is USD.
I have both Query1.NetSales and Query2.Netsales in the same report. I am able to get the report to show correct figure by running the query one by one and fill in the currency separately.
But when I run all queries or refresh all data, it only show one prompt and both queries will run based on the currency in the prompt (either MYR or USD). In the infoview, I can only able to fill in values for one prompt.
Anyone could please advise how can the report handle multiple prompts?Thanks, but my report still doesn't show the correct figure.
My Universe is generated by the SAP BW query. The prompt is auto generated base on the condition filter in the universe which is including the currency and country.
I had added the currency in the query filter for both query:
Query1: LovCurrency: Prompt "MY Currency:"
Query2: LovCurrency: Prompt "US Currency:"
when I run all the queries, I am able to see the above 2 newly created filter in the prompt. I had filled in MY Currency with "MYR" and US Currency with "USD". and I select Malaysia as country.
Both Query1.NetSales and Query2.NetSales in the report appear the same value and it's in MYR currency. The figure is automatically calculate base on the country default currency. If I choose multiple countries in the prompt, I will get unknown number.
My question is that, why is my currency in query filter does not take effect and overwrite the default currency. -
How to use one application with multiple schema without copying application?
Hi,
Previously we are using oracle forms and by that we can manage by using a set of folders containing fmx and use different schema/database for different customers. so the source code comes from one individual file but used for different database users.
is it possible to do this without copying application in apex?
reason is because if applications are copied for each customer, and in a situation where a page has a bug, the developer must correct multiple pages across all the application. This would not be appropriate to manage.
could this be done in apex? or is there any other approach?Hi,
An application is tied to its parsing schema, so it is not possible to have one code base which you can then point to different schemas. I have seen some threads relating to dynamically setting the parsing schema, but I don't think it has worked to well, and would not be a supported configuration by Oracle.
The normal way to do this is to have one schema and for each entity where it is logical you will have an extra key which is the customer id. I mention where it is logical, because not every entity needs its own data defined by customer. Some data will be common across all customers, such as lookup data and some entities will comprise child entities by which the data separation will be implied by the parent. You can then use Oracle's Virtual Private Database feature to implement a seperate view of the data through the application, based most likely on the customer who is logged on.
Hope this helps.
Regards
Andre -
Problem with multiple tiles-defs.xmls in struts
Hi,
I am using struts1.3.I have two struts-config.xml files in my application.I am adding those files in web.xml.
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>
org.apache.struts.action.ActionServlet
</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/first-struts-config.xml,/WEB-INF/settings-struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>convertNull</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>chainConfig</param-name>
<param-value>
org/apache/struts/tiles/chain-config.xml
</param-value>
</init-param>
</servlet>Each struts-config.xml file have seperate tiles-defs.xml .I am adding those files like the following
first-struts-config.xml
<plug-in className="org.apache.struts.tiles.TilesPlugin">
<set-property property="definitions-config" value="/WEB-INF/first-tiles-defs.xml" />
<!-- Set Module-awareness to true -->
<set-property property="moduleAware" value="true" />
</plug-in>settings-struts-config.xml
<plug-in className="org.apache.struts.tiles.TilesPlugin">
<set-property property="definitions-config" value="/WEB-INF/settingst-tiles-defs.xml" />
<!-- Set Module-awareness to true -->
<set-property property="moduleAware" value="true" />
</plug-in>I am getting one error
javax.servlet.ServletException: Path .settings.users does not start with a "/" character..settings.users definition is specified in settingst-tiles-defs.xml.
If i want to pick the definitions which are there in first-tiles-defs.xml ,then it is working fine.
Is there any idea for this problem?
Regards
kondalTry a forum/mailinglist devoted to struts. There´s one at their own homepage over there at apache.org.
-
Logging in with multiple CC accounts, personal and enterprise
I need to be logged in to two CC accounts with two different email addresses at once, one is my preexisting personal and the other is a new enterprise.
One is used for Typekit only (personal) and one is used for programs (enterprise). Despite me using Typekit this is not a Typekit issue regardless of what Adobe support says, it is a login issue with the CC manager software although anybody with whom I chat (I cannot get someone on the phone) cannot see how that is the case and tries to pass off the issue to Typekit support.
I need access to both at all times. I was initially told by an Adobe chat rep that since the apps do not need a constant connection to the Internet to work (offline grace period) I could login to my enterprise, establish the license, log out, work as normal, and only need to log in to establish a license before the grace period ends. That I learned is not the case. Although it seems like a logical solution since if the program does not need to be connected to the Adobe servers it should not need to be logged in at all.
I thought for a brief period of time that I resolved the issue. Yesterday I was on on with both accounts for a while by logging in to my CC manager with my personal and into the application with my enterprise. but when I turned on my computer today I was logged into my CC manager with my enterprise account and all my fonts were missing when I logged back in correctly to my CC manager I was no longer logged into my programs.
This would be less of a hassle on a regular basis if it kicked me out of the Enterprise in the applications and I only had to log back into one account on a regular basis, not two.
I either need to connect my enterprise so that I can be logged in with my personal, install the CC manager twice, or make it so my applications do not need to be constantly connected online.
I also tried and failed changing my enterprise email to match my personal one, which needs to be the controlling account.
Please if anybody has found a solution to this problem let me know. Thanks in advance.Joshua,
I do see your point of wanting to have a separate account for your kits that you created.
You are not able to have two version of the Creative Cloud application manager installed on the computer.
When you sign out of your Educational subscription and sign in with your Typekit Adobe ID, it is a different profile as you know.
Switching back and forth could of caused corrupt data for the Creative Cloud app with signing out as it would remove fonts synced with Typekit.
Removing the OPM.DB file will help reset the CC app manager and you should see your fonts when you log in with your Educational CC subscription.
You can still log in to the Adobe Typekit Webpage with your Gmail Adobe ID, while being logged in to the CC app manager with your Educational subscription. That is thru a web session
When you sign out of the CC app manager for the Educational paid subscription, you deactivate the software session. You would be prompted to sign in to use the software when launched. That is why you are not able to use the software while being signed with your Gmail Adobe ID. It is not associated with the subscription. Can you try adding the fonts that you need from the Gmail ID to the EDU subscription? You should be able to add the kits and have the same fonts for both accounts. I know you mention that you want to keep the accounts separate, as I was thinking that would be less frustrating for you.
Thanks
Scott -
Working with multiple faces-config.xml files
I would organize the menu definitions of my application in different faces-config.xml files. I would also put the label in different properties files.
The SRDemo application uses a unique properties file for the menu used in the el expression from the faces-config.xml.
Is it possible to have the same approach with not only one faces-config.xml file but has many faces-config.xml i want for my application.
If yes does the binding name to be different or may be the same for each file ?We still have a litlle problem we don't find the reason. May be you can help us.
The second menu level never appear in the menu list. The menu list appear as empty.
The menu bar seem to be correct. We put twice the same model tree to be sure it was working well. Both menu appears. It is correct.
Here is our faces-config-menu-flexsystem.xml file
<?xml version="1.0" encoding="windows-1252"?>
<!DOCTYPE faces-config PUBLIC
"-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
"http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
<faces-config xmlns="http://java.sun.com/JSF/Configuration">
<managed-bean>
<description>Create menu item for flex system management</description>
<managed-bean-name>menu_menuitem_FlexSystem_Create</managed-bean-name>
<managed-bean-class>flex.view.util.MenuItem</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
<managed-property>
<property-name>label</property-name>
<value>#{resources['menu.FlexSystem.menuItem.create']}</value>
</managed-property>
<managed-property>
<property-name>viewId</property-name>
<null-value/>
</managed-property>
<managed-property>
<property-name>outcome</property-name>
<value>linkToCreateNewFlexSystem</value>
</managed-property>
</managed-bean>
<managed-bean>
<description>Manage menu item for flex system management</description>
<managed-bean-name>menu_menuitem_FlexSystem_Manage</managed-bean-name>
<managed-bean-class>flex.view.util.MenuItem</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
<managed-property>
<property-name>label</property-name>
<value>#{resources['menu.FlexSystem.menuItem.manage']}</value>
</managed-property>
<managed-property>
<property-name>viewId</property-name>
<value>\FlexHome.jspx</value>
</managed-property>
<managed-property>
<property-name>outcome</property-name>
<value>linkToManageFlexSystem</value>
</managed-property>
</managed-bean>
<managed-bean>
<description>Root menu item for flex system management</description>
<managed-bean-name>menu_menuitem_FlexSystem_Root</managed-bean-name>
<managed-bean-class>flex.view.util.MenuItem</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
<managed-property>
<property-name>children</property-name>
<list-entries>
<value-class>flex.view.util.MenuItem</value-class>
<value>#{menu_menuitem_FlexSystem_Create}</value>
<value>#{menu_menuitem_FlexSystem_Manage}</value>
</list-entries>
</managed-property>
<managed-property>
<property-name>label</property-name>
<value>#{resources['menu.FlexSystem.menuItem.root']}</value>
</managed-property>
</managed-bean>
<application>
<message-bundle>flex.view.resources.MenuFlexSystemProperties</message-bundle>
<locale-config>
<supported-locale>fr_CH</supported-locale>
</locale-config>
</application>
<managed-bean>
<managed-bean-name>resources</managed-bean-name>
<managed-bean-class>flex.view.util.ResourceAdapter</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
<navigation-rule>
<from-view-id>/FlexHome.jspx</from-view-id>
<navigation-case>
<from-outcome>linkToCreateNewFlexSystem</from-outcome>
<to-view-id>/CreateNewFlexSystem.jspx</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/FlexHome.jspx</from-view-id>
<navigation-case>
<from-outcome>linkToManageFlexSystem</from-outcome>
<to-view-id>/ManageFlexSystem.jspx</to-view-id>
</navigation-case>
</navigation-rule>
<managed-bean>
<managed-bean-name>menu_FlexSystem</managed-bean-name>
<managed-bean-class>flex.view.util.MenuTreeModelAdapter</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
<managed-property>
<property-name>childProperty</property-name>
<value>children</value>
</managed-property>
<managed-property>
<property-name>listInstance</property-name>
<list-entries>
<value-class>flex.view.util.MenuItem</value-class>
<value>#{menu_menuitem_FlexSystem_Root}</value>
<value>#{menu_menuitem_FlexSystem_Root}</value>
</list-entries>
</managed-property>
</managed-bean>
<managed-bean>
<managed-bean-name>menuModel</managed-bean-name>
<managed-bean-class>flex.view.util.MenuModelAdapter</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
<managed-property>
<property-name>viewIdProperty</property-name>
<value>viewId</value>
</managed-property>
<managed-property>
<property-name>instance</property-name>
<value>#{menu_FlexSystem.model}</value>
</managed-property>
</managed-bean>
</faces-config> -
Oracle Portal w/ Multiple Schemas
I posted this in the Architecture forums, but it looks like this forum may be better or yield more results for what I'm looking for.
We are just about to launch a Portal initiatve and are looking for best practices for implementing a single instance of Oracle Portal that interacts with multiple schemas. Has anyone here done this or know where I can find this type of info? I have a few questions about how this works, how scalable it is, how security is handled, yada yada yada. --Kind Regards, Derek.Hi jlubbers. Thanks for your reply.
After some additional disucssions with our DBAs, I think I may have left a misleading post in respect to schemas. Our company acts as an application service provider to some degree. The way the databases are setup, each of our client agencies have their data stored completely separately from other agencies. The table structures are almost exactly identical (and can be considered identical for the scope of this discussion) and will never be merged together.
We want to leverage Oracle Portal as much as we can while also getting as much reuse as we can. Each time we get data from the database, we want the datasource to be dynamic based on the usergroup.
One constraint that we have is that the physical database connection must be connected as the user that's logged into the portal, so I think we have to do some type of User Proxy, but we're not 100% sure how to do that and what that means for all of our java applications.
I'll check out your other posts and see if there is anything in there that may help. Thanks for taking the time. --Derek -
Forms pulling Multiple Records from an XML Schema and XML data files - Adobe LiveCycle Designer
I built a form in Adobe LiveCycle with an xml schema and data file. The problem is with how the form renders the xml data file.
I have a statement element that consists of about 6 fields (statementID, statementName, statementAddress, statementCountry, statementZip, statementDate, etc) of data in the schema that allows for multiple iterations - so one xml data file can contain multiple statements. These fields allow for null values.
But here's the problem: When any of the statements - say statement 2 of 6 - has a null value in one of the fields, if the xml data file doesn't have a placeholder
(example of placeholder: <statementName type="String"/> )in the xml for that field, my form pulls the field value from the NEXT statement.
This corrupts all the rest of the statement records, as this field is shifted up for all the rest.
I know that in the past I haven't needed a placeholder when a field was null. But I'm wondering if when the data allows for multiple records the xml data file needs to generate the placeholder. And where is the problem? In the Schema? The xml data file? My form? And the 64-thousand-dollar question: How to fix it?If your <statement> element is the one that repeats, it should be bound to a subform with the binding string of something like $.statement[*]. Then in that subform should be your fields and they should have bindings of $.statementID, $.statementName, $.statementAddress, etc.
Kyle -
Biztalk schema exposing as WCF service with multiple operations
Hi,
I am working on a design pattern to expose the BizTalk schema as a WCF service and thought of taking expert’s advice. I have a single schema with 30 different nodes and each one is a different message type. For this 30 message types we need to expose WCF
endpoints to customer for consuming from their application.
When I exposed this schema as WCF service, a single receive location got created in BizTalk application and in IIS there is one .svc file. I defined 30 operations for this while exposing the endpoint with wizard.
Currently I came up with the below 2 approaches but I did not like them as there is more redundancy
Create 30 different orchestrations and each orchestration subscribes to Message Box direct binding with message type as filter.
Create a single orchestration that binds to single receive location( this location got created by wizard..) and access the operation/message type in the expression shape. Based on this value create 30 IF conditions for each message type. For this the
single orchestration receive shape should have a message type of xml document and then access the type. Is it possible?
I don’t like the above approaches as it is very difficult to maintain and also difficult to add for any new message type.
Does anyone has good ideas for doing this?
Thanks
JB"Canonical Schemas" are used where multiple source messages need to be addressed by a SINGLE Operation !!!
Every operation anyway translates to a separate process. Forget that we're dealing with BizTalk for a minute, when you're writing plain we services, you introduce new service contracts (operations) when you deal with different data contracts. To come back,
in BizTalk your data contracts are your schemas. So when you have multiple schemas, each requiring different processing then you need different orchestrations.
Let us for a minute assume you've defined a single service schema (very possible with a service header and a service details where the service data contract could differ). Now you use this schema to expose ONE service endpoint (good till now). In that service
you're suggesting to ADD decisions (something like a switch statement where you'll do 'x' set of activities is the message is of 'x' type and so on... How is this sustainable? Every time you introduce an new operation, you'll have to tear down and redeploy
the new orchestration which will affect all other operations. During the introduction of ONE op you may touch other parts of the orchestration (multiple branches in a parallel shape anyways make the orchestration very unwieldy from a code management/support
standpoint) and introduce errors in existing ops.
Regards.
Maybe you are looking for
-
I have a status of completed and a date field in the dataset. The date field is either empty or contains a date. All 2015 dates are holding dates. So how can I limit the report to only pull completed status with an empty date or a holding date? I hav
-
Tecra M3: black screen on start, vertical lines on external monitor
Hi all, I've been searching a lot on the Internet for a solution to this specific problem I have but could not find a thread with exactly the same problem.I have a Toshiba Tecra M3 with WinXp SP 3. Two weeks ago I encountered problems with starting u
-
Secure wireless and generic ldap
Hi All, I'm looking into setting up a secure wireless network and can't seem to find a good fit with environment we have. Environment: WLC's ACS 4.1 Generic ldap 95% of laptops use built in Windows XP(SP3) configuration tool. I can get everything wor
-
IOS 7 - Change message bubble color?, IOS 7 - Change message bubble color?
I'm guessing we still can't change the message bubble colors? It was just annoying before. Now it is a necessity. The vivid green/white on a white background just makes it hard to see/read for SMS messages...I can go as far as saying that it hurts
-
Compatiability to run Windows on New Intel Macs
Is it the plan for new Intel Macs to be able to run Windows-based programs without having to run emulation programs like VPC?