Collecting temporal attribute in Web Determinations

I have a number attribute (the number of employees) that varies over time, and I've set up some temporal logic to draw inferences from this value.
I'd like to collect this attribute in a Web Determinations interview but don't know how to. Is there a native way to accomplish this? Alternatively, is there a way to do this using entity instances (for example, by setting up an entity called "the time period" and then mapping the time periods to the "number of employees" timeline)?
In short, what's the standard way to handle this situation?
Thanks for your help.

Brilliant! I just had to add another parameter (the start date) to the TemporalFromStartDate function. So my rule is: the size of the employer's workforce = TemporalFromStartDate(the time periods, the time period’s start date, the number of employees during the time period)
As for the business problem I'm addressing, the legislation, in relevant part, reads: "'Employer' means...[a]ny employing unit...which...for some portion of a day in each of 20 different calendar weeks, whether or not such weeks were consecutive, in either the current or the preceding calendar year, employed...10 or more individuals...[]." K.S.A. 44-703(h) (2009), available at http://www.kslegislature.org/legsrv-statutes/index.do.
A couple of other items for you: First, I tried using the TemporalFromRange function as described in the OPM help. Upon compiling, I got an error message that said, "Internal compiler error: unknown attribute 'TemporalFromRange(timeperiods,p24,p25,b11)'." Notice the "b11"? The compiler is interpreting my number attribute (number of employees) as a boolean.
Also, I'm having trouble opening OPM's help files in the Chrome browser.
Thanks!

Similar Messages

  • Can we conditionally rename the "Submit" as "Next" in web determinations?

    Hi,
    We are using web determinations for data entry and we have multiple screens for multiple entities. Is it possible to rename the submit buttons in the first and intermediate screens as "Next" and only have the last "Submit" button named/displayed as "Submit".
    Thanks!
    Antara

    The first question here is "what is the +last+ screen".
    Generally, the last screen will change depending on what answers have been provided. This is because Web Determinations is clever, and stops asking questions when it knows the answers to all the goals on the summary screen (or it runs out of questions).
    You can force a particular last screen to always be displayed if you either:
    (a) Define a flow with a mandatory screen at the end of the interview, and use that flow as the goal, or
    (b) Have a summary screen goal that depends on a specific piece of data collected on a screen that is last in your screen order.
    If you have done one of these, then you can achieve what you want by:
    (1) Making the change Jasmine suggests to change the default Submit button text to "Next" AND
    (2) Edit the Web Determinations classes/templates/controls/ButtonControl.vm template to conditionally render the "submit" buttonClass with the value of "Submit", when it is being rendered in the context of the final question screen. You could do this for example by checking for #if ( {screen.getId().equals("<screenidgoeshere>"} ).
    Davin Fifield

  • Error while deploying web-determinations in 10gR3 & weblogic 11g

    Hi,
    I am installing OPA 10.0.1 for configuring Siebel connector, for this on Linux I am deploying web-determinations & determination-server on 10gR3.
    I was able to successfully deploy determination-server and I am facing error while deploying web-determinations
    I am facing below error when accessing web-determinations URL after deploying in 10gR3 ( 10.1.3.3 ).
    ===================
    500 Internal Server Error
    Servlet error: An exception occurred. The current application deployment descriptors do not allow for including it in this response. Please consult the application log for details
    ===================
    No error is being logged in while application logs.
    I also tried deploying in weblogic 11g (10.3.1) and I have below error ,
    ===================
    [HTTP:101216]Servlet: "WebDeterminationsServlet" failed to preload on startup in Web application: "web-determinations.war". com.oracle.determinations.interview.engine.exceptions.EngineConfigurationException: No rulebase directory specified at com.oracle.determinations.interview.engine.local.FileRulebaseService.<init>(FileRulebaseService.java:49) at com.oracle.determinations.interview.engine.local.LocalInterviewEngine.initialise(LocalInterviewEngine.java:91) at com.oracle.determinations.interview.engine.local.LocalInterviewEngine.<init>(LocalInterviewEngine.java:34) at com.oracle.determinations.interview.engine.InterviewEngineFactory.createInstance(InterviewEngineFactory.java:19) at com.oracle.determinations.web.platform.servlet.WebDeterminationsServletContext.init(WebDeterminationsServletContext.java:163) at com.oracle.determinations.web.platform.servlet.WebDeterminationsServletContext.<init>(WebDeterminationsServletContext.java:91) at com.oracle.determinations.web.platform.servlet.WebDeterminationsServlet.init(WebDeterminationsServlet.java:51) at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:283) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64) at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58) at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48) at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:521) at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1913) at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1887) at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1805) at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3041) at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1374) at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:452) at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37) at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60) at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200) at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117) at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37) at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60) at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27) at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:629) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37) at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:206) at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:40) at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161) at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79) at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:140) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:106) at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323) at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844) at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253) at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440) at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:181) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:12) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:67) at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    =====================
    Pls let us know any configuration needs to be done.
    Pls advise.

    Hey Suni,
    It appears that there is a section missing out of the current installation guide for Web Determinations. The reason you're getting that error is because you are deploying to application to WebLogic which doesn't expand the war by default so you need to configure the rulebase loader. Before you add proceed with the steps in the install guide you need to:
    # Unpack the web-determinations.war file
    # Copy the rulebases you wish to install to <webroot>/WEB-INF/classes/rulebases
    # Edit the following setting in the application.properties file (<webroot>/WEB-INF/classes/configuration):
    load.rulebase.from.classpath =true
    rulebase.path                    =rulebases# Repack the war file
    # Proceed with the installation steps as set out in the installation guide
    I'll have the installation guide fixed and updated as soon as possible.
    Thanks,
    Kristy

  • Connecting Web Determinations 10.1.0.27 to a DMS

    We are planning to connect Oracle Web Determinations to a document management system. This document management system uses a web service to connect with other systems. Our application already generates a PDF, and we want to save this PDF in a specific folder and then call the webservice to add the document to the Document Management System.
    What would be the best way to implement this?

    There is a particular adapter that is responsible for outputing the results of an Interview from Web Determinations. This is the Data Adapter (see "Data Adaptor Plugin Overview" in the "Oracle Policy Automation Developer Help"). A Data Adapter is exercised when a user clicks on the Save button in Web Determinations.
    Out of the box the default data adapter just saves the data to an XML file locally.
    Essentially you need to implement a custom Data Adapter that will save the interview in a format that your DMS can interpret.
    For example the OPA Connector for Siebel has a Data Adapter which sends the results of an Interview to Siebel via a web service.

  • Reference for working with a data collection retreived from a Web Service

    Does anyone have a good resource / example of working with multi row data collections returned from a web service call?
    In addition to the basic return of x data rows, I will also be getting parent child collections. For example,
    for each Customer row, 0 or more Customer Invoices
    I have found many guides the relate to single values being retrieved by the web service, but I have not found any that refer to data collections.
    Best regards,
    Thomas

    That can all certainly be done with a 13" MBP.
    You'd want to get a USB hub, preferably USB 3.0 to plug in your optical drive, keyboard and mouse.
    For your external monitor you can use a Mini DisplayPort adapter to DVI or HDMI (or if it's a retina MBP use the HDMI out).
    For your ethernet, it will plug right into the non-retina. If you get the retina, you'd need a Thunderbolt to Ethernet adapter (faster) or a USB to ethernet adapter (slower).

  • Build and run Rules with Jdev Integrated Web Determination Server

    Hi
    I created the rule using Oracle Policy Modeling (OPM). Then built and deployed with Embedded Tomcat web determination server. Successfully done it.
    Now I have to run the same rule under Jdeveloper Integrated Server. As I know, current version of OPM doesn't support any external server other than Tomcat. In that case I have to copy the output from OPM to JDev Integrated server manually.
    Let me know the server location where I have to copy the rule from OPM to Jdev Server.
    Thanks
    Dev

    There are a couple of ways of deploying a new rulebase into OPA running on weblogic.
    These can be found in the documentation in the Oracle Policy Automation Developer's Guide (http://docs.oracle.com/html/E38272_01/toc.htm)
    1. The first way is to redploy the OPA runtime .war (web-determinations or determinations-server) when a new rulebase is built. These war files are created in the releases directory of the OPM project. When a new release is built the rulebase is embedded in the .war file
    2. The second way is to re-deploy the rulebase only. The rulebase is called <project name>.zip and is found in the output directory of the OPM project.
    To use the second approach in weblogic you must configure the OPA runtimes to use an external directory. See the Manage rulebases and application.properties sections of the Oracle Policy Automation Developer's Guide.
    Then decide if you want to 'hot-swap' (deploy immediately after copying a new rulebase to this directory. If you do not use hot swapping, you will have to restart the web application when you deploy a new version.
    Cheers
    Frank
    Edited by: frank.hampshire on Dec 13, 2012 11:35 AM

  • Error installing web-determinations 10.1.0.27 on WLS 10.3.3

    I have ammended the application.properties with the following
    load.rulebase.from.classpath =true
    rulebase.path               =rulebasesThe web-determinations seems to deploy without error but when I start the application I get the following error
    Message icon - Error [HTTP:101216]Servlet: "WebDeterminationsServlet" failed to preload on startup in Web application: "web-determinations.war". com.oracle.determinations.web.platform.exceptions.WebDeterminationsException: Could not initialise Velocity Templating Engine at com.oracle.determinations.web.platform.templatingengine.VelocityTemplatingEngine.<init>(VelocityTemplatingEngine.java:97) at com.oracle.determinations.web.platform.servlet.WebDeterminationsServletContext.init(WebDeterminationsServletContext.java:176) at com.oracle.determinations.web.platform.servlet.WebDeterminationsServletContext.<init>(WebDeterminationsServletContext.java:104) at com.oracle.determinations.web.platform.servlet.WebDeterminationsServlet.init(WebDeterminationsServlet.java:51) at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:283) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64) at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58) at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48) at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:539) at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1976) at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1950) at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1869) at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3126) at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1512) at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:486) at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41) at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119) at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200) at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247) at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41) at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119) at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27) at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:1267) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41) at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:409) at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:43) at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161) at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79) at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116) at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323) at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844) at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253) at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440) at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68) at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173) Caused by: java.lang.ClassNotFoundException: org.apache.velocity.runtime.log.Log4JLogChute at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:169) at org.apache.velocity.runtime.log.LogManager.createLogSystem(LogManager.java:123) at org.apache.velocity.runtime.RuntimeInstance.initializeLogger(RuntimeInstance.java:553) at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:226) at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:461) at org.apache.velocity.app.VelocityEngine.init(VelocityEngine.java:106) at com.oracle.determinations.web.platform.templatingengine.VelocityTemplatingEngine.<init>(VelocityTemplatingEngine.java:95) ... 45 more
    has anyone installed this configuration, have I missed something?
    cheers
    James

    JDT wrote:
    Now if you want to add rules what you can do to make life easier is to install a directory in the classpath, e.g. set the classpath to /u01/oracle/opa. To do this edit the commEnv.sh (linux) and add the directory to the classpath.
    On the OS create a new directory rulesbase and add your rules in there.
    To see the rules you need stop and start the web-determination app in the weblogic console.
    cheers
    JamesI create a "rulebase" directory. This is the directory we set in the class path? Sorry for the stupid question.
    Thanks.
    -muktech
    Edited by: muktech on May 25, 2010 2:30 PM
    Edited by: muktech on May 25, 2010 2:31 PM

  • Instantiate Oracle Web Determinations

    Dear all,
    My question is straight forward: Is it possible to instantiate Oracle Web Determinations with the data from a What-If Analysis document or the CSV-files generated from this document on a local computer? The reason I ask this question, is that it would be nice to show a preview of the rule base, using Oracle Web Determinations, including the data set the rule base will be dependend on. I can perform both test cases and what-if analysis but these both come without screens. As may become clear from my question, I would like to make a preview with screens.

    Test cases from a what-if spreadsheet can be exported to a regression test script: http://docs.oracle.com/html/E48373_01/toc.htm#Analysis/Conduct_what-if_analysis_using_Excel.htm#Export2
    And a test case from a regression test script can be loaded into Web Determinations. So, yes, in this way a test case from a what-if can be loaded into Web Determinations.
    Loading test cases from regression tester into Web Determinations:
    Open the relevant regression test case
    Click 'export' in the top-right corner.
    Save the test case
    Run the debugger with screens (OPM Build menu | Build and Debug - With screens)
    From within the Debugger, click the Import button in the top-right, browse to the test case you just saved, select it and Open.
    From the Web Determinations tab of the Debugger, click the refresh button (little button in the top-left with two arrows going in a circle)
    If you want to load the test case in Web Determinations while it is running outside of OPM, save the test case in the data folder of the Web Determinations Release folder (..\(your project name)\Release\web-determinations\data\(your project name)\your-saved-test-case-goes-here). Then when you run Web Determinations you will see the test case when clicking the Load button.
    Also, keep in mind that you can play with scenarios with screens in the Debugger in OPM. You don’t have to deploy to an external browser to do this, and you don't have to import from elsewhere. Just make sure to select ‘With screens’ when going to ‘Build and Debug’.
    Cheers,
    Jasmine

  • OPA web determinations & POST method?

    Hi,
    we are using OPA web determinations in our Siebel project.
    We use this Symbolic URL to communicate with OPA Application:
    http://localhost:9083/web-determinations/startsession/da-DK?user=[UserID]&caseID=,[UserID],[ObjectID],DUBU
    The SSO Disposition is IFrame and FreePopup command is used for this Symbolic URL, which works good, but we have an issue that the last popup window is shown, when we open the link.
    Basically the last pick applet or MVG applet is opened together with the OPA link. This is because "IFrame" disposition is not supported for "FreePopup". That's why we see popup applet opening up along with Symbolic URL popup.
    We need to use "Form Redirect" SSO Disposition to resolve the above problem.
    But when using "Form Redirect" SSO Disposition with OPA URL we see an error which appears because OPA application could not handle POST method, but only a GET method.
    How can I modify OPA to handle POST method?
    Thanks

    To my knowledge the integration between OPA and Siebel relies on the HTTP GET method, and cannot be modified to use POST.

  • Using Document Generator in Web Determinations

    I am currently looking for a tutorial in order to use the web determinations standard document generator.
    My attempts to generate documents are unsuccessful and the OPM help does unfortunately not answer all my questions.
    Could anyone help me ?
    Thanks to all.

    Have a look at Document Generator Plugin Overview in the runtime help. We don't have a tutorial that I know of, so that information is about the best there is.

  • Storing collection of values in Web Dynpro

    Hi,
    I have 2 views(View1,View2)
    I have rows of 2 dropdowns in a table in View1. I select each of these drop downs in multiple rows and go to view 2. In View2 i need to retrieve all the values from View1. How will i retrieve these values?
    Is there any collection kind of thing in Web dynpro??
    Any help
    regards,
    Sujesh

    Hi,
       Let's say you have a context structure as this:
    -Root
    --TableProperties
    ---Column1(value attribute bound to your 1st dropdown)
    ---Column2(value attribute bound to your 2nd dropdown)
       Have a context node structure as
    -Root
    --DataNode
    ---Value1(value attribute, String)
    ---Value2(value attribute, String)
    Map this to the component controller's context with the same structure.
    In the onSelect eventhandler, write something like this:
    IPrivate<view name>.IDataNodeElement elem = (IPrivateSDNCompView.IDataNodeElement)wdContext.nodeDataNode().getElementAt(wdContext.nodeTableProperties().getLeadSelection());
    if(elem != null){
    elem.setValue1(wdContext.nodeTableProperties().currentTablePropertiesElement().getColumn1());
    elem.setValue2(wdContext.nodeTableProperties().currentTablePropertiesElement().getColumn2());
    else{
    IPrivate<view name>.IDataNodeElement ele = wdContext.nodeDataNode().createDataNodeElement();
    elem.setValue1(wdContext.nodeTableProperties().currentTablePropertiesElement().getColumn1());
    elem.setValue2(wdContext.nodeTableProperties().currentTablePropertiesElement().getColumn2());
    wdContext.nodeDataNode().addElement(ele);
    Add component controller as required controller in view2.
    Now from view2, you can access it as
    wdThis.wdGet<component name>Controller().wdGetContext().nodeDataNode();
    Regards,
    Satyajit.
    Message was edited by: Satyajit Chakraborty

  • XML Schema Collection (SQL Server 2012): Complex Schema Collection with Attribute - Should xs or xsd be used in the coding?

    Hi all,
    I just got a copy of the book "Pro SQL Server 2008 XML" written by Michael Coles (published by Apress) and try to learn the XML Schema Collection in my SQL Server 2012 Management Studio (SSMS2012). I studied Chapter 4 XML Collection of the book
    and executed the following code of Listing 4-8 Complex Schema with Attribute:
    -- Pro SQL Server 2008 XML by Michael Coles (Apress)
    -- Listing04-08.sql Complex XML Schema with Attribute
    -- shcColes04-08.sql saved in C:\\Documents\XML_SQL_Server2008_code_Coles_Apress
    -- 6 April 2015 8:00 PM
    CREATE XML SCHEMA COLLECTION dbo.ComplexTestSchemaCollection_attribute
    AS
    N'<?xml version="1.0"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="item">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="name" />
    <xs:element name="color" />
    <xs:group ref="id-price" />
    <xs:group ref="size-group" />
    </xs:sequence>
    <xs:attribute name="id" />
    <xs:attribute name="number" />
    </xs:complexType>
    </xs:element>
    <xs:group name="id-price">
    <xs:choice>
    <xs:element name="list-price" />
    <xs:element name="standard-cost" />
    </xs:choice>
    </xs:group>
    <xs:group name="size-group">
    <xs:sequence>
    <xs:element name="size" />
    <xs:element name="unit-of-measure" />
    </xs:sequence>
    </xs:group>
    </xs:schema>';
    GO
    DECLARE @x XML (dbo.ComplexTestSchemaCollection_attribute);
    SET @x = N'<?xml version="1.0"?>
    <item id="749" number="BK-R93R-62">
    <name>Road-150 Red, 62</name>
    <color>Red</color>
    <list-price>3578.27</list-price>
    <size>62</size>
    <unit-of-measure>CM</unit-of-measure>
    </item>';
    SELECT @x;
    GO
    DROP XML SCHEMA COLLECTION dbo.ComplexTestSchemaCollection_attribute;
    It worked nicely. But, I just found out the coding that was downloaded from the website of Apress and I just executed was different from the coding of Listing 4-8 listed in the book: all the <xs: ....> and </xs: ..> in my SSMS2012 are
    listed as <xsd:...> and </xsd:...> respectively in the book!!??  The same thing happens in the Listing 4-3 Simple XML Schema, Listing 4-5 XML Schema and Valid XML Document with Comple Type Definition, Listion 4-6 XML Schema and XML
    Document Document with Complex Type Using <sequence> and <choice>, and Listing 4-7 Complex XML Schema and XML Document with Model Group Definition (I executed last week) too.  I wonder: should xs or xsd be used in the XML
    Schema Collection of SSMS2012?  Please kindly help,  clarify this matter and explain the diffirence of using xs and xsd for me.
    Thanks in advance,
    Scott Chang   

    Hi Scott,
    Using xs or xsd depends on how you declare the namespace prefix.
      <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:element name="item">
    I've posted a very good link in your last question, just in case you might have missed it, please see the below link.
    Understanding XML Namespaces
    In an XML document we use a namespace prefix to qualify the local names of both elements and attributes . A prefix is really just an abbreviation for the namespace identifier (URI), which is typically quite long. The prefix is first mapped to a namespace
    identifier through a namespace declaration. The syntax for a namespace declaration is:
    xmlns:<prefix>='<namespace identifier>'
    If you have any question, feel free to let me know.
    Eric Zhang
    TechNet Community Support

  • Unable to see Target Groups, Profile Sets, Attributes, Attributes in Web UI

    Hi Experts
    We  upgraded  from CRM 5.0 TO New CRM 7.0
    In segmentation,under normal segmentation on WEB UI could not see the Attribute lists,profile sets,Segments etc on the Graphical Modeler(Segmentation Builder)
    We can see the same in backend GUI under Segmentation Builder (CRMD_MKTSEG)
    Do we need to do any settings or configuration to view the same
    Thanks
    Raj
    Edited by: RA_225 on Dec 7, 2009 5:42 PM
    Edited by: RA_225 on Dec 7, 2009 6:13 PM

    Raj
    I am tempted to say java client issue.  I say this because SAP support had the same issue with our system to resolve another issue and I believe they had to check local java settings.  Also check what version of IE you are running.
    Perhaps open a message to SAP to obtain java settings required to run segment builder applet as well as browser settings.
    Chris

  • Shared attribute in *-web-site.xml

    What exactly does setting the shared attribute of a web-application in *-web-site.xml to "true" accomplish as far as sessions are concerned?
    Even if the session object data may not be shared, should I not get the same session id for two web-applications that have shared="true" set for them in the *-web-site.xml file?
    Also, why is the string returned from HttpServletRequest.getRequestedSessionId()
    so much longer than that returned from HttpSession.getId() in iAS 9.0.3? Shouldn't they be the same if the session is active? In 9.0.3 standalone OC4J, the two method calls return the same string when the session is active. Why is there a difference between iAS 9.0.3 and standalone OC4J 9.0.3?

    Sumit -
    The shared attribute is something that was inherited from the Orion codebase when OC4J was originally created.
    There is a description of the shared attribute on the Orion documentation site.
    http://www.orionserver.com/docs/web-site.xml.html
    I don't know how this behavior functions on OC4J today since we have done a lot of work to implement an AJP protocol listener within OC4J to allow it to sit nicely behind Apache, and we've implemented some new security managers to support JAAS.
    -steve-

  • Attribute in web dynpro context of type binary?

    I'm in the process of creating an ADOBE PDF based form in web dynpro.  I'm using a step by step guide and it's asking me to create an attribute In the context root to hold the PDFsource.  I'm suppose to enter the type as BINARY but it does not exist as a valid type? 
    Any suggestions?

    Hi Indrajitha,
    Create attribute of type char1 and bind the property CHECKED with that.
    Regards,
    Farooq

Maybe you are looking for

  • EDI inbound error message

    Hi While processing the inbound DELINS Idoc, i am getting the error message Vendor number & has not been saved for customer &. Could you please guide me to do the necessary configuration to avoid this error. Thanks in Advance Regards Shaju

  • Invoking sample processes errors

    Hi, I am having trouble invoking some of the sample processes delivered with the application. For instance, the Dynamic Document Generation example and even the very simple looking Variable Logger example throw an endpoint invocation error when I try

  • Ipad 2 802.1X PEAP Authentication problem (With profile from IPCU)

    Hi! I'm in the processes of setting up a new wireless network for a costumer. A little info about the hardware: Cisco WLC 5508 Cisco AP 2602i Cisco ISE - radius server ipads gen 4 (iOS 6) EAP-TLS (windows machines) and PEAP (Other stuff, ipads, andri

  • Adobe Forms --Amount field Problem

    Hello All, I have one clarification.I have one field called amount.Its value is taken as 0.00 from the table. I have to make it as blank.I have made it as blank to that field in display pattern properties by setting as * in adobe designer. This is su

  • How can I make Firefox look like the new updated toolbar?

    I installed Firefox 4 on a new computer running Windows XP, but I still have the old look and layout of Firefox. I want to use the new look with the all in one drop down menu bar. This is a fresh install of Firefox 4 with no previous version installe