Temporal attribute collection in determinations of Web

I have a number (the number of employees) attribute that varies over time, and I've set up a temporal logic to draw the consequences of this value.

I would like to collect this attribute in an interview of determinations Web but don't know how. Is there a native way to achieve this? If not, is it possible to do this by using the entity instances (for example, by putting in place of an entity called "period of time" and that maps then the periods of time in the timeline "number of employees")?

In short, what is the standard way to handle this situation?

Thanks for your help.

Looks like you used the TemporalFromRange() on a line by itself. In this context she would expect that TemporalFromRange to return a Boolean value (ie. a condition) which explains why he has tried to turn this last parameter to a Boolean value.

Make sure you have an attribute to store the result in, for example:

the number of employees = TemporalFromRange(the time periods, the time period start date, the time period end date, the number of employees during the time period)

Not sure about Chrome, I use Chrome exclusively for viewing using the OPM. Where are you open to? I noticed that it was very slow opening of the Oracle site (so much so I thought that it worked), the local copy has been much faster.

Tags: Oracle Applications

Similar Questions

  • Error in the determination of Web save the session

    Hi all

    We get the error "Unable to save" immediately after clicking on the "Save" link in the pop-up Web determination. We had data from siebel to OPA as IO and the output of the execution of the rule appears correctly in the window of WD.

    We must perform certain actions in siebel side (we customized the WF 'Policy of automation Save Session IO Post') then we are by clicking on the link 'Save' to save the session to Siebel. But the backup of session (policy of automation Save Session IO) workflows are not called when we save only the error is displayed. It seems it is getting error when calling the web service inbound. We checked the logfile WD as follows:


    2012-05-17 15:32:22, 987 INFO [STDOUT] * GETLISTOPTIONS INICIO
    2012-05-17 15:32:22, 989 INFO [STDOUT] * ATTRIBUTE: optionLes
    2012-05-17 15:32:22, 991 INFO [STDOUT] 8242687 [http - 10.92.5.3 - 8280-2] ERROR com.oracle.determinations.interview.engine.screens.LocalControlFactory - list provider returned the error: /C:\config_tiposvalores.xml
    java.lang.RuntimeException: /C:\config_tiposvalores.xml
    at com.oracle.determinations.interview.engine.userplugins.DerbyListProvider.getListOptions(DerbyListProvider.java:120)
    at com.oracle.determinations.interview.engine.screens.LocalControlFactory.initInputControl(LocalControlFactory.java:191)
    at com.oracle.determinations.interview.engine.screens.LocalControlFactory.createAndInitControlInstance(LocalControlFactory.java:156)
    at com.oracle.determinations.interview.engine.screens.LocalScreen.init(LocalScreen.java:135)
    to com.oracle.determinations.interview.engine.screens.LocalScreen. < init > (LocalScreen.java:40)
    at com.oracle.determinations.interview.engine.screens.LocalSessionScreenService.createScreenInstance(LocalSessionScreenService.java:299)
    at com.oracle.determinations.interview.engine.screens.LocalSessionScreenService.getScreen(LocalSessionScreenService.java:112)
    at com.oracle.determinations.web.platform.controller.ScreenController.getScreenInstance(ScreenController.java:274)
    at com.oracle.determinations.web.platform.controller.ScreenController.renderScreen(ScreenController.java:112)
    at com.oracle.determinations.web.platform.controller.actions.InvestigateAction.getResource(InvestigateAction.java:53)
    at com.oracle.determinations.web.platform.servlet.WebDeterminationsServlet.doGet(WebDeterminationsServlet.java:80)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at com.oracle.determinations.web.platform.util.CharsetFilter.doFilter(CharsetFilter.java:46)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
    at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
    at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
    at org.apache.coyote.http11.Http11Protocol$ Http11ConnectionHandler.process (Http11Protocol.java:598)
    to org.apache.tomcat.util.net.JIoEndpoint$ Worker.run (JIoEndpoint.java:447)
    at java.lang.Thread.run(Thread.java:662)
    2012-05-17 15:32:27, 401 INFO [STDOUT] 8247098 [http - 10.92.5.3 - 8280-1]


    ERROR com.oracle.determinations.web.siebel.SiebelIOClient - <? XML version = "1.0" encoding = "UTF-8"? > < SOAP - ENV:Envelope xmlns:SOAP - ENV = "http://schemas.xmlsoap.org/soap/envelope/" > < SOAP - ENV:Body > < SOAP - ENV:Fault > < faultcode > SOAP - ENV:Client < / faultcode > < faultstring > entry provided is not well formed or does not contain the expected data. (SBL-EAI-00137) < / faultstring > < details > < siebelf:siebdetail = "http://www.siebel.com/ws/fault" xmlns:siebelf > < siebelf:logfilename > EAIObjMgr_enu_0014_14680077.log < / siebelf:logfilename > < siebelf:errorstack > < siebelf:error > < siebelf:errorcode > SBL-EAI-00137 < / siebelf:errorcode > < siebelf:errorsymbol > IDS_EAI_WS_BAD_XML_DOCUMENT < / siebelf:errorsymbol > < siebelf : errormsg > entry provided is not well-formed or does not contain the expected data. (SBL-EAI-00137) < / siebelf:errormsg > < / siebelf:error > < siebelf:error > < siebelf:errorcode > SBL-EAI-00247 < / siebelf:errorcode > < siebelf:errorsymbol > IDS_XMLCNV_ERR_FTLPARSE < / siebelf:errorsymbol > < siebelf:errormsg > fatal error in the XML parser at line 1, column 29147: scheduled end of the tag & apos; AttributeValue & apos;(SBL-EAI-00247) < / siebelf:errormsg > < / siebelf:error > < / siebelf:errorstack > < / siebelf:siebdetail > < / details > < / SOAP - ENV:Fault > < / SOAP - ENV:Body > < / SOAP - ENV:Envelope >


    note of lease we changed the data type of the fields in the object of the integration component Boolean integration (which are sent to the Siebel OPA) from DTYPE_BOOL to DTYPE_TEXT as in OPM, we could not test the Boolean values. Can we check what values for the OPA to siebel themselves? (before the backup session WFs are called)

    A quick response will be a great help.

    Thanks in advance!

    The trace of the pile here, it seems that there is an error in the XML passed to Siebel. Is it possible for you to raise an incident with the support of oracle about this? It will make it easier to solve.

    Alternatively, if you look in the newspapers on the side of siebel, you should be able to verify the XML passed to Siebel during recording session. Probably easier to see why XML is incorrect. What may be a little harder to answer, this is what is causing the XML passed to Siebel to be bad.

  • Determinations of web OPA shows white screen when you use the data model

    Hello

    I use Oracle Policy Modeling 10.5.5.40 on windows 7. I use embedded apache tomcat to test.

    I have started a new project, added a simple rule:

    [b1] the parent is eligible for the benefits of compassion so

    [b2] parent has a child

    I chose 'Build and Run' selected web determinations, work very well.

    When I added a data model, created two entities, parent-child, and the child is contained in the parent as to-many, then ran the project, it won't work any more. The section that says:

    =========

    is absent.

    I also tried to open an example of "MembershipDemo" that comes with OPM, same problem.

    Any ideas how can I fix?

    Thank you very much

    Looks like you have probably changed the Boolean value "the parent is eligible for compassionate care benefits" from the global to the parent. This means that is no longer a goal because it is a single Boolean value that can be determined, it is now a Boolean value for each parent in the rule template.

    The goal that presents itself as the first screen in your interview display all the high-level objectives - that is, all objectives at the global level.

    Some possible solutions to get a goal for your interview may are:

    1. If you try to determine cbb for 1 single parent, then you probably shouldn't introduce a parent entity, use the global as a parent

    2 introduce a global "all determined the eligibility of the BCC of parents" trying to see if "the parent is eligible for compassionate care benefits" is known to all parents

    3 decide which is the highest level (s) for your interview and to introduce these Boolean values to the global level.

  • Report of decision Siebel Viewer: Incompatible with determinations of Web window

    Hello

    We will have a problem when the content in the Siebel decision Report Viewer window Web determinations. (Siebel 8.2.2.4 v / v 10.4.4.1006 plug)

    The main examples are:

    1. Some visible condition lines in WD are missing from the Viewer.
      • Sometimes it's 'see above for proof' lines, but not always.
    2. Substituting Text does not work in the Viewer (in WD, it will say "John Smith"; in Siebel "1-F3D83X").

    We checked engine of integration - the transaction log that these differences are present in the XML file (i.e. If it is not a Siebel rendering problem).

    There are no known limitations to the consistency of records of decision (WD vs Siebel Viewer window)?

    Thank you

    -Patrick

    Patrick,

    There are some differences in the way that Web determinations rendering of records of decision of Siebel. This is necessary because determinations Web has access to more information, while Siebel decision report is a XML report of decision the XML transformation.

    If the information to display is not in the XML report decision you can consider changing the XSLT transformation that makes the record of decision.

    See the installation instructions for the location of the XSLT.

    See you soon

    Frank

  • Passage of CS 5.5 Master Collection CS 6 Design &amp; Web Premium

    Last year, I bought a downloadable version of CS5.5 Master Collection and install it on Mac 2. I recently bought CS6 Design and Web Premium.

    Should I uninstall all CS5.5 products before installing CS6? I can then go back and install the CS5.5 Master products that I need that are not in the CS6 Design Premium? After that I enabled CS6 on a Mac, then download and use immediately on the second Mac?

    Also, that insurance woes, have permission to download CS Master Collection 5.5 indefinitely, since I buy it?

    Thanks for your advice!

    -Steve

    You can, but do not uninstall any part of cs5.5

    You can install and activate your apps cs5.5 on two computers at the same time.

    You can install and activate your apps cs6 on two computers at the same time.

    and Yes, from today you can dl cs5.5 mc (and dp cs6, as well) indefinitely.  but, it would be prudent to keep your own copies of cs5.5 installation files both cs6, so you are not subject to future changes.

  • Collections of objects from Web Service

    So I was hoping that someone could help me with this. I have a service running web server that returns a collection of objects as a result of research product side. I can databind the event.result to the web service in a datagrid control and look at the contents of the collection of objects. What I want to do is to fill objects inside flex off the coast of the product return collection.

    A trace of event.result reveals
    [object Object], [object Object]
    [object Object], [object Object], [object Object], [object Object], [object Object]

    1. is there an equivlent to a .net class Collections.ObjectModel.Collection in flex?
    2. How can I navigate through the results of the event.result to fill a collection of these objects as a collection or the collection arraycollection in flex?


    Thank you to check this point, help me if you can!
    -Ryan

    Figured this out,

    trace (event.result [0].) ProductName);

    Ventilation: event.result [ArrayPossition]. ObjectProperty

  • What tools do you use to determine the Web sites that your customers are looking for?

    We all know and understand what talking about travel buyers.  Various research estimated that up to 90% of the search is taking place for most online and before a prospect decides to talk to a sales representative.  A session of the CEB Dreamforce I attended to referenced that the average prospect is looking for 10 different sources of information guide their decision to buy and the seller's Web site is just a trust least. (I'm paraphrasing from memory, so don't be too hard on me if something is disabled) It would be useful to know if any of you use tools that help to discover some of these other websites which is underway in addition to our own.  Would love to know what works.  Thank you!

    Hi Joseph, you will have problems on this one.  You used to be able to make a number of cough... cough... not strictly beyond the means of the Council.

    In the old days, you can use techniques such as SpyJAX, etc. for this - but they don't work anymore

    I had a friend that I had used to work with who has worked on a way to push this information automatically in an another marketing automation platform (although you could have done in Eloqua) and adds it to their lead, scoring model.

    While on the surface it looked like a really cool idea actually it didn't really prove anything - I digress...

    As you quoted the Dreamforce event you attended at the prospect of average search 10 different sources, I think I see what you're trying to identify, you want to know which party 3 different sites of your potential customers are searching on and then find a way to help guide a favorable outcome regarding your product through their research.

    First off you should check out some of these Tools to listen to social media.  Here those are all free, but you get others who will analyze linkedin, forums, etc.  Check out mentions of your competitors brand names and products too.

    Now you have a list of the various sources that are using your competitors, you now have your target.

    You now have your ammo.  You must develop a program of customer awareness.  Which is exploit your product advocates, these are current customers, who are very credible, extremely knowledgeable and love your product for its features.  There are a number of tools out there, that you can use for this.  One of the guys eloqua former albums, Mark organ, developed a software that will help you do just that.  Its platform is called influitive.  I have been an advocate of product before on this platform and believe me, it's the company.  I would probably spend at least one hour per week responding to the challenges posted for me.

    For example the company in question had a few targets in the groups they knew prospects would ask "which platform is better, X or Y?  I would join this group, they would give me a few points and then they would issue me any time challenges that this type of issue has come.  Because I had very deep knowledge on both platforms, I could give an answer that is hinged at the question of the person.  I was a 3rd party source, not a salesman saying "I work for company X and my product is the best, call me my details are...» ", this meant that I had a much greater impact in my opinion.

    Enter the power of Eloqua.  You get your defenders of a link to your Web site and give them their own unique query string.  All you need to do is pull a report from query string at the end of the month and voila, you not only what you were originally looking for, but your own clientele that contribute to your marketing effort.

    I hope this helps...

  • Liquid: How to check if a collection contains elements of web application and display the custom message

    It's my code, but it does not work:


    {module_webapps id = "28860" filter = 'all' resultsPerPage = '20' hideEmptyMessage = 'false' template = "" collection = "seeWinners" "}

    {% for article on seeWinners.items-%}

    {% If items.seeWinners ==""-%}

    < p > winning number yet, come back again < /p >

    {endif %}

    {% endfor}

    Please can someone tell me what is the problem?

    Thank you.

    No need for the loop.

    Just get the length of the array.

    {module_webapps id = "28860" filter = 'all' resultsPerPage = '20' hideEmptyMessage = 'false' template = "" collection = "seeWinners" "}

    {% If seeWinners.items | size == 0-%}

    No winners yet, check again

    {endif %}

    Later edit: and if you are already in the loop, you have the length of the array loop with: {{forloop.length}}

  • Verbose Garbage Collection to determine the size of the heap

    I want to configure weblogic server. In the article of http://download.oracle.com/docs/cd/E14571_01/web.1111/e13814/jvm_tuning.htm#i1131863
    I find the following scripts. Where should I add the following command?

    ============================================================================

    % java-ms32m-mx200m - verbosegc - classpath $CLASSPATH
    -Dweblogic.name=%server_name%-Dbea.home="C:\Oracle\Middleware".
    -Dweblogic.Management.username=%WLS_USER%
    -Dweblogic.Management.password=%WLS_PW%
    -Dweblogic.Management.Server=%ADMIN_URL%
    -Dweblogic.ProductionModeEnabled=%STARTMODE%
    -Djava.Security.policy="%WL_HOME%\server\lib\weblogic.policy"weblogic. Server > > FichierJournal.txt 2 > & 1

    Hey YOU,.

    Everything what is written below is actually a single line... There is no new line in there:

    JAVA_HOME\bin\java.exe-ms1024m-mx1024m-Xverbosegc:file=C:/MyGCLogDir/GC.log - classpath $CLASSPATH-Dweblogic.Name=%SERVER_NAME%-Dbea.home="C:\Oracle\Middleware"-Dweblogic.management.username=%WLS_USER%-Dweblogic.management.password=%WLS_PW%-Dweblogic.management.server=%ADMIN_URL%-Dweblogic. " ProductionModeEnabled=%STARTMODE%-Djava.security.policy="%WL_HOME%\server\lib\weblogic.policy"weblogic. Server > FichierJournal.txt

    Above is a single line... .no line break... Make sure that each JAVA_OPTION is separated by a single space. Please leave these spaces as it is... Just remove the triggered the line of your Script

    If you use Notepad... .so please open "startServers.cmd" in Notepad, then (MENU Edition)---> WordWrap (disable)
    .
    .
    Thank you
    Jay SenSharma

  • Is there anyway to save the output of the OPA in XML if we use Oracle Web determinations

    Team,

    Can you please help on the scenario below.

    We use clouds OPA August version 12.2. We develop the application assistant job using determinations OPA Web to capture trade information and the information of the Agency cross.

    Instead of the page summary integrated OPA, we plan to create the PHP to capture from the OPA interview Assistant business page.

    Is there a way to capture the output of the OPA in XML format to send it to the contents of PHP page?

    If someone falls on this scenario, please share your entries with small example.

    Appreciate your help.

    Thank you

    Vivek

    Managers of custom control are documented here library of Documentation Oracle policy Automation.

    The Manager of your custom control will get an HTTP POST request with several parameters which will be takeover-session. The value of this parameter is a URL string coded something like this:

    opa-session=%3C%3Fxml+version%3D%221.0%22+%3F%3E%3Csession-data+xmlns%3D%22http%3A%2F%2Foracle.com%2Fdeterminations%2Fengine%2Fsessiondata%2F10.2%22%3E%3Centity+id%3D%22global%22%3E%3Cinstance+id%3D%22global%22%3E%3Cattribute+id%3D%22nearest_city%22+type%3D%22text%22+inferred%3D%22false%22%3E%3Cunknown-val%2F%3E%3C%2Fattribute%3E%3Cattribute+id%3D%22gps_coords%22+type%3D%22text%22+inferred%3D%22false%22%3E%3Cunknown-val%2F%3E%3C%2Fattribute%3E%3Cattribute+id%3D%22number_vehicles%22+type%3D%22text%22+inferred%3D%22false%22%3E%3Cunknown-val%2F%3E%3C%2Fattribute%3E%3C%2Finstance%3E%3C%2Fentity%3E%3C%2Fsession-data%3E

    and when decoded will be:

    http://Oracle.com/determinations/engine/sessiondata/10.2">

    You can analyze using some PHP for the analysis of the structures of XML.

  • Web determinations 10.1.0.27 to a DMS connection

    We intend to connect to Oracle Web determinations to a records management system. This document management system uses a web service to connect with other systems. Our application has already generates a PDF file, and we want to save this PDF file 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 given map which is responsible for posting the results of an interview of determinations of Web. It's the data adapter (see "Data adapter Plugin Overview" in the "Oracle policy Automation Developer Help"). A data adapter is exercised when a user clicks on the button Save in the determination of Web.

    Out of the box the default data adapter saves only the data to a local XML file.

    Essentially, you have to implement a custom data adapter that will save the interview in a format that can interpret your DMS.

    For example, the connector of the OPA for Siebel has a data adapter that sends the results of an interview to Siebel through a web service.

  • Determinations of pre Seed Web with data from Siebel

    Hello

    I am currently working on a VINE with Siebel PS 8.2 and OPA 10.2 with the OPA Siebel connector.
    The connector is in collaboration with the AdminSmoke and custom modules.

    But what I want is pre seed the custom with Siebel data modules.
    The documentation on the connector is not sufficient.

    Kind regards
    Bert

    The AdminSmokeTest for determinations of Web is an example of how begin before and there is also a tutorial.

  • Impossible to destroy the attribute to the backend

    Hello world

    I created a screen with multiple checkbox options (10 boxes) and the screen has two navigation buttons-back & Continue.When I select say 3 boxes and press to continue, I have some options wrt to three boxes selected on the previous page. But when I press Back and uncheck the 2/3 and proceed to continue, I'm still able to see the Info for attributes (checkboxes) selected two prev. Essentially on the deselection of the check box, and then tap on continue, Oracle backend Session should destroy them IE turn the value true to false, but that didn't happen in my case.please help! I can't understand why this feature suddenly stopped working.

    Thank you very much

    Hi Angie,.

    You must now save button when you press the button "return" this not respondent determinations OPA Web server you go one step backward that is because the browser loads the page in the cache.

    However ODS records what page you're so let's say you have a screen of flow 1-> display 2-> and 3 of the screen.

    If you press back to display 2 you will go on screen 1 and press on continue on display 1 will take you to screen 3 instead of 2 as a server has already registered screen you were on the screen 2.

  • Update product, JSON, price, product attribute combinations

    So I'll try to update my total price in the module works great tempate when someone chooses a new attribute of product in a drop-down list. I was on the right track, but I'm stuck now. Brand new to all this so sorry in advance if it's something really simple.

    So in my model of module of great product, I have a Javascript function as follows:

    "< script type =" text/javascript"src="Scripts/jquery-1.8.3.min.js "> < / script >

    < script >

    function updateprice (myoptionid) {}

    var originalpricedollarsign = "{tag_totalprice}";

    var originalprice = originalpricedollarsign.replace (/ \ $/ g, ");

    var jsonattributes = JSON.parse ('{tag_attributes_json}');

    var addprice = jsonattributes.options [myoptionid] .price;

    var newprice = parseFloat (originalprice) + parseFloat (addprice);

    document.getElementById('lbltotalprice').innerHTML = "price Total:"+ newprice;»

    }

    < /script >

    I also have a label, rather than use {tag_totalprice}, as follows:

    < class li = 'price' > < strong > < label id = "lbltotalprice" > Total price: $< / label > < / strong > < /li >

    The {tag_attributes} tag place much of the html on the page formatting. I want the drop-down list created by my tag_attributes tag to call my onchange function above. There is no default onChange event in {tag_attributes}. Then I dynamically change the {tag_attributes} tag to add an event onChange as follows:

    < script >

    var myattributes = "{tag_attributes}";

    var modifyattributes = myattributes.replace (/ \ < select / g,' < select onChange = "updateprice (this.value);) » ');

    document. Write (modifyattributes);

    < /script >

    More funny, everything works perfectly. I can choose the attribute and displays the updated price. Everything seems fine. However, this is where I hit a snag.  I also groupings of products, displayed using {tag_groupings}. When I select a new product in the dropdown product group, all of the page becomes white/white, and all that is shown is the attributes drop downbox. If I comment on the "document.write (modifyattributes);" above, it goes back to normal. Basically, I lose the whole page except for the attributes drop-down which is be re-written.

    I literally just don't know where to go from here. I hope it's something easy and it's just my lack of knowledge that is what actually appears so difficult.

    Any advice is greatly appreciated!

    Thank you all!

    Mark

    OK, so let me start by saying that I have never developed a Web site or used before BC when I figured this out awhile back. That being said, it's probably not 'best practices' or the most effective, but it works.

    In addition, my template code is big enough, so I took these code snippets to show you. I tried to make it fully contained, but I may have missed a bit of code here and there. I hope that this will put you on the right track. So, basically, in your individual product - model of large module, you'll want to do something like that. I contains the code, then I'll explain a little bit about it.

    First of all here some of the functions you will need are available:


    var newhtml = html.replace ("' select required ', 'select id ="selectattrib"required");
    myElement.innerHTML = newhtml;
    var myElement02 = document.getElementById ('selectattrib');
    myElement02.addEventListener ('change', function () {updateprice (baseprice)}, false);
    }
    // **************************************
    // **************************************
    The updateprice function is called from the event listener we added in the fixattributes function. This function is called each time a user
    selects a new product attribute. It determines the basic price, and then adds the additional price of the attribute at the base, giving you
    your updated prices. I then a label that I update with the new price, so it is displayed to the user. I took a lot of extra code
    by this function, which performs different things, but you can see that I have a myimage variable. If you have a separate image of your attribute, you can
    Use this variable to update the image displayed to the user. For example, if the product is a shirt and there are two attributes, red and blue.
    You can have displayed appropriate color shirt as they choose in the drop-down list.

    function updateprice (baseprice)
    {
    var myElement03 = document.getElementById ('selectattrib');
    var Id_option = myElement03.options [myElement03.selectedIndex] .value;
    var myElementlblprice = document.getElementById ('lbltotalprice');
    var jsonattributes = JSON.parse ('{tag_attributes_json}');
    var addprice = jsonattributes.options [optionid] .price;
    var newprice = parseFloat (baseprice) + parseFloat (addprice);
    myElementlblprice.value = "price: $" + newprice.toFixed (2);
    var myimage = jsonattributes.options [optionid] .image;
    }
    // **************************************
    // **************************************
    Setprice function was just a simple update the label displaying the price. The new price is passed as a parameter, and the label is updated.

    function setprice (newpriceDS)
    {
    var myElementlblprice = document.getElementById ('lbltotalprice');
    Var newpriceDS.replace = NouveauPrix (/ \ $/ g, ");
    Var newprice.replace = NouveauPrix (/ a, / g, ");
    var newprice = Number (newprice) .toFixed (2);
    myElementlblprice.value = "price: $" + NouveauPrix;
    }
    // **************************************

    Towards the end of the loading of the page, you just need basic Javascript to call the fixattributes function. Some of my products have attributes
    and some are not, so I first check if all the attributes exist before going forward.

    I hope that's enough to help you get started. If you have any questions, please let me know...

    Thank you
    Mark

  • How to give the default value for an attribute in the OPA

    Hello

    I need a default attribute boolean to true at the beginning of the session of the OPA. I need to use it to control the visibility on some pages.

    Can someone please throw light on how to best implement this?

    Thank you.

    You have a few options (as always with the OPA!)

    If you use determinations of Web and that you have defined your own screens, then the easiest way is to define a default in the screen - you can either do a default static or dynamic based on an attribute is proved by a default rule.

    If you want a value by default when you debug without using screens, so you're better off just writing a rule to set the default value. It's kinda interesting with a Boolean value as you do not need to tell the value of the attribute OPA - it is inherent in the name of the attribute. For example, if you had a conclusion "control is visible" (with no = "true" or whatever it is) it would be set to 'control is visible' to 'true '. Set it to false, you simply need to type "control is not visible" - which actually (thanks to OPA assuming a 'subsidiary conclusion') defines "control is visible" to "false".

    You can then replace it in the debugger of via a screen issue (if you force the question).

    I don't know how it would work with server of determinations if you had a default value proved by a rule, but has also provided a value in the data - maybe someone else can clarify if the rule takes precedence over the input data? My usual approach is to try locally in OPM and see (using something like SOAPUI to integrate with the determinations OPA server web service). If that's the best way to implement this course (or indeed if using a default value of visibility control screen is best practice) is difficult for me to say - I am a relative beginner!

    Hope that helps a little...

Maybe you are looking for