E passing jQuery amount of an attribute in the model of the virtual machine

I have a requirement in which I need to pass the value of an attribute in the jQuery code is called from the goalcontrol.vm file, that anyone can share the same syntax

Gauruv,

This should be a fairly simple task. As long as you can identify the attribute wished, you should be able to replace it in a Jquery script using speed simple substitution by. All the values that appear on determinations Web pages are available in the context of the speed. Velocity substituted values until the page is rendered, then any substitution will be before the Jquery code execution

For example;

Some Jquery code

...

myval var = ${speed-name};

...

You can see an example in the model of javascript - utlities.vm (./WEB-INF/classes/templates/includes) file where the next substitution is made on line 40

var targetDepth = ${decision-report-by default-depth};

In this case the value ${decision-report-by default-depth} is inserted in the Jquery as the var targetDepth. The Jquery will see this as a simple statement, something like

var targetDepth = 4;

Hope this helps

See you soon

Frank

Tags: Oracle Applications

Similar Questions

  • Type conversion for attribute for the virtual machines...?

    As I capture the name of the entity of the VMS as a string through vCO traps SNMP so I want to map the name of the entity with virtual machines like VC:VirtualMachine which I am not able to do now... Please help me with this...

    Thank you
    Naineyess

    Hi Naineyess,

    We did this by using an Action that expects the name of VM and is responsible for the research and restoration of the VM object:

    Create an action with the following inputs / outputs:

    Entry:

    -Name: vmName

    -Type: string

    Output:

    -Type: VC:VirtualMachine

    Source code:

    if ( vmName == "" ) throw "Missing Parameter: Virtualmachine-Name!";
    
  • Change the amount of vCPU in vCD deletes the virtual machine network connection in vCenter


    It is a problem of crazy that we discovered, and I wanted to know if anyone had seen him.

    First of all, we miss the following software versions:

    vCD: 5.1.1.867405

    vCenter: 5.0.0 Build 913577

    ESXi: 5.0.0 build 1024429

    If you go to vCloud Director and change the material properties of an existing virtual machine (Powered off) any change in the amount of vCPU (to something new), inside of vCenter status of the network will change to the port group Standard (inactive) none.


    Even if, before making the change, the virtual machine is connected to a distributed port group, and works well.

    We now display an SR to VMware, but sometimes it is worth running this by the community to see if other people have already seen or indeed want to test on their deployment.


    Thanks in advance

    We have solved the problem now.

    The reason why that we faced this problem is because we used the wrong order in the API.

    You must ensure that you use the undeploy command when you work with the vCD API otherwise you end up with a disconnected network card.

  • [ADF, JDev12.1.3] How to pass tha value of an attribute of the VO at the request of a field of the VO even LOV?

    Hallo,

    I have a LOV associated FieldB and showed it in the popup LOV, these must be filtered according to the value of FieldA (2 fields belongs to the same TableVO VO).

    The LOV associated FieldB is based on a VO that has a binding variable 'BindCodInstitute '.

    I would like to know how I can assign the vuale of FieldA to the variable binding.

    What expression I have co-debtors variable binding?

    Thank you

    Federico

    also see - https://blogs.oracle.com/aramamoo/entry/how_to_create_multi_level

  • Maximum amount of disks that can be added to a virtual machine?

    Hello

    We are DPM configuration and we need a huge pool of disks and our EVA system allows us only to created a maximum of 2 TB LUN.

    Now, we are at the point were we only had SCSI ID 0:15 left to add a disk.

    What is the limitation of adding disks of virtual machines?

    Thank you

    Erik

    60 is the maximum: 4 * 15 devices SCSI

    SCSI controllers per virtual machine 4

    Devices per SCSI 15 controller

    Devices per virtual machine (Windows) 60

    Devices per virtual machine (Linux) 60

    http://www.VMware.com/PDF/vi3_35/esx_3/r35u2/vi3_35_25_u2_config_max.PDF

    If you found this information useful, please consider awarding points to 'Correct' or 'useful '. Thank you!

  • Error recover attribute customized for Virtual Machine

    Hello

    I created a custom attribute TestAtt for the virtual machines by using the vSphere client. The screenshot of the configuration is attached.

    Now, I need to retrieve this value programmatically in my plugin, I'm developing using c#. Here is the snippet of the same thing. For some reason any below appeal fails by saying that the attribute is not found. Even when I used the DoesCustomizationSpecExists, I'm wrong. I am not getting any exception.

    I'm doing this in the right way?

    CustomProperty CustomizationSpecItem = new CustomizationSpecItem();

    customProperty = VIM_SERVICE. GetCustomizationSpec (SERVICE_CONTENT.customizationSpecManager, "TestAtt");

    Kind regards

    Sudhir

    You use the bad managed object to retrieve the custom fields. The customizationManager is used to deal with the customization of the guestOS using Linux quick Prep or Windows Sysprep.

    You want to use is customFieldManager - this is a vSphere SDK for Perl script that shows you how - addVMCustomField.pl

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

    William Lam

    VMware vExpert 2009,2010

    VMware scripts and resources at: http://www.virtuallyghetto.com/

    Twitter: @lamw

    repository scripts vGhetto

    Introduction to the vMA (tips/tricks)

    Getting started with vSphere SDK for Perl

    VMware Code Central - Scripts/code samples for developers and administrators

    VMware developer community

    If you find this information useful, please give points to "correct" or "useful".

  • Added a Zoom Plugin jQuery and needing help to add attributes to the evolution of the poplet images.

    Hey BC community, I looking for a little help with some jQuery / javascript. Overall, I have a plugin to zoom like forcing me to add a data attribute to the image I want to add the zoom effect on. This isn't a problem, but I poplet images that I've adjusted to fill again the big picture. html() rather than the default light box.  The Zoom plugin I use requires a data attribute to be added to all the images I want to have the ability to zoom attached to. I wrote jQuery that adds the attribute data on the original image which is to fill the big image container, but whenever I change the following poplet image, I lose the zoom effect. I hope that makes sense... lol I'm still a javascript / jquery newby.

    Here is the work currently underway. Figure which may help understand the situation better. Here is the site

    I just want to add zoom to any poplet effect is enabled by adding the attribute data and the new file extension required for the expansion of the resolution. Again, please excuse the bad jQuery / javascript, I'm still learning!

    Here's my jQuery / Javascript.

    New features of Poplet

    /*===================================================*/

    function poplet (e) {}

    e.preventDefault ();

    var imgURL = $(this) .attr ('href');

    $('#largeimage').html ("< img src ="' + imgURL + ' "> '");

    }

    /*=======================================

    MAGNIFY

    =======================================*/

    $(document) .ready (function () {}

    var addedAttr = "data-magnify-src";

    var addedExtension = '-large.jpg ";

    var originalExtension is $('.productLarge #largeimage > img') .attr ('src').slice(0,-4);.

    var combinedExtension = originalExtension + addedExtension;

    $('.productLarge_#largeimage_>_img').attr (addedAttr, combinedExtension);

    });

    $(function() {})

    Poplets

    $('.productPopletsItem_a').removeAttr ('onclick release);

    $('body').on (' click on ', '.productPopletsItem a', poplet);

    });

    Yes I fixed it, got help from some other forums. Thank you!

  • Where to add the transitional attribute at the level of the entities or view level? And where to use {return getTransientAttribute()} in the entity or view?

    Mr President

    JDev 12.2.1.

    Where to add the transitional attribute at the level of the entities or view level?

    And where to use {return getTransientAttribute()} in the entity or view?

    public Number getAmount()  
      {  
        return getTransientAttribute();  
        //return (Number) getAttributeInternal(AMOUNT);  
      }  
    
    

    Concerning

    A difference I could think: place a transient attribute on EO level will make transaction dirty (DBTransaction.isDirty returns true) when the field is changed.

    From a design point of view, I tend to place the transient fields at the level VO, because most of the time they are for the presentation of the data in the user interface.

    Only when the transient fields are involved in DML operations (for example when you call a stored procedure EntityImpl.doDML) I place the transitional area on EO.

  • How to navigate to the next page based on the value returned by the method call inside the action attribute of the command key.

    How to navigate to the next page based on the value returned by the method call inside the action attribute of the command key.

    I use JDeveloper 12.1.2.0.0

    < af:button id = "tt_b2".

    rendered = "#{attrs.nextRendered} '"

    partialSubmit = 'true '.

    action = "#{attrs.backingBean.nextAction} '"

    Text = "next".

    Disabled = "#{attrs.nextDisabled}" / >

    private static final String NEXT_NAVIGATION_ACTION = "controllerContext.currentViewPort.taskFlowContext.trainModel.getNext";

    public String nextAction() {}

    If (validate()) {}

    updateModel();

    Return NEXT_NAVIGATION_ACTION;

    }

    Returns a null value.

    }

    Use case is made for model train, which is being implemented based on this blog: http://javacollectibles.blogspot.co.UK/2014/10/ADF-train-template.html

    We define a generic action following in the model, but the action must be called under certain conditions, based on the question of whether all validation controls had been passed on no.

    You can do this in two ways:

    1 returnValue = (String) ADFUtils.invokeEL("#{controllerContext.currentViewPort.taskFlowContext.trainModel.getNext}");

    return returnValue;

    2.

    public String getNextTrainStop() {}

    String nextStopAction = null;

    ControllerContext controllerContext = ControllerContext.getInstance ();

    ViewPortContext currentViewPortCtx = controllerContext.getCurrentViewPort ();

    TaskFlowContext taskFlowCtx = currentViewPortCtx.getTaskFlowContext ();

    TaskFlowTrainModel taskFlowTrainModel = taskFlowCtx.getTaskFlowTrainModel ();

    TaskFlowTrainStopModel currentStop = taskFlowTrainModel.getCurrentStop ();

    Terminus of TaskFlowTrainStopModel = taskFlowTrainModel.getNextStop (currentStop);

    nextStopAction = nextStop.getOutcome ();

    _logger.fine ("train, next stop:"+ nextStopAction ");

    Return nextStopAction;

    }

  • How to exclude from the SOUL of the rules if the invoice distribution amount is &lt; 0 (i.e. the negative amount) to the existing rule

    How to exclude from the SOUL of the rules if the invoice distribution amount is < 0 (i.e. the negative amount) to the existing rule.

    Requirement: I have an obligation to send the invoice approval group approval specified when the invoice distribution account is 4567 and charge the amount of distribution > 0

    Finished configurations:

    1. Set condition: the string value to using 4567 supplier_invoice_distribution_gl_account attribute
    2. The condition set: SUPPLIER_INVOICE_DISTRIBUTION_AMOUNT is greater than or equal to 0
    3. Definition of new rule setting the terms of the 1st and 2nd stage and also group attached to this rule approval

    Note: Approval is not required is defined for invoices IN. matched in SOUL.

    Test case:

    1. Corresponding invoice with PO (PO amount is 8000)
    2. Amount of invoice header 5000
    3. Distribution account invoice 5568 as well as the amount is 8000
    4. Inserted 4567 distribution and quantity is - 3000

    Behavior of real: system sends the approval of the Bill for approval related group account 4567

    Expected behavior: invoice approval status should be 'Not necessary', since it is a corresponding purchase order invoice and 4567 account amount is < 0

    Kindly let me know how to set the rule to exclude the ve - amount distribution associated with lines

    Hello

    Then set a rule all 3 conditions:

    If attribute SUPPLIER_INVOICE_DISTRIBUTION_PO_MATCHED = No. and the SUPPLIER_INVOICE_DISTRIBUTION_AMOUNT attribute is less than the 0 attribute and supplier_invoice_distribution_account = <> then no permission.

    Concerning

    Yvette

  • How to pass variable from bean to resourceID for the document map?

    Hello experts, I have added WebCenter workflow Microsoft document explore task in my ADF which as a parameter called resourceId.   I want to pass variable bean to this setting, because the content ID (doc name or ID) are determined dynamically.

    When I provide ${"UCM57Server #dDocName:1379596941565_CONTACT_OPTREGI"} as a resource in the expression ID, it works very well.    But samething if I attribute to a bean bean variable and entitlement in the form ${sessionScope.MyBean.docName}, it evaluates the variable bean in the form ${"UCM57Server #dDocName:1379596941565_CONTACT_OPTREGI"} and then below throws the exception:

    [2013-10 - T 02, 14: 34:50.369 - 04:00] [DefaultServer] [WARNING] [WCS-07219] [oracle.webcenter.doclib.internal.view.backing.ContentProvider] [tid: [ASSETS].] [ExecuteThread: '10' for the queue: "(self-adjusting) weblogic.kernel.Default"] [username: anonymous] [ecid: d50192415c689920:-7d97126c:1417a5d6a49: - 8000 - 000000000000008 a, 0] [APP: CreateContactWSProxy] invalid parameter combination: the login name specified by resourceId = ${"UCM57Server #dDocName:1379596941565_CONTACT_OPTREGI"} is not specified in the parameter connectionName = UCM57Server.

    Variable bean is defined as:

    private String Nomdoc = "${" UCM57Server #dDocName:1379596941565_CONTACT_OPTREGI "} ;

    Please give me some advice on how to pass the value to resourceId dynamically via the variable of bean.

    Thank you.

    private String Nomdoc = "UCM57Server #dDocName:1379596941565_CONTACT_OPTREGI";

    Without $ {}

  • Impacts on the performance of the attributes from the features of data model design

    I'm trying to understand the implications of the performance of two possible data model design.

    Here is my structure of the entity:

    Global > person > account > option

    Generally, when running, I instantiated a person, a single accountand five option's .

    There are various amounts determined according to the age of the person who should be assigned to the correct option.

    Here are my two designs:

    Design a

    attributes on the entity of the person :
    age of the person
    its option 1 amount
    its option 2 amount
    its option 3 amount
    its option quantity 4
    its option 5 amount

    attributes on the option endity:
    amount of the option

    support table rules:
    option = amount
    its option 1 amount if the option is number 1
    its option 2 amount if the option number 2
    its option 3 amount if the option number 3
    its 4 option amount if the option is number 4
    its option 5 amount if the option is number 5

    Two design

    attributes on the entity of the person :
    age of the person

    attributes on the entity of the option :
    amount of the option
    of the option option 1 amount
    of the option option 2 amount
    of the option option 3 amount
    of the option quantity 4
    of the option option 5 amount

    support table rules:
    option = amount
    of the option option 1 amount if the option is number 1
    option 2 amount option if the option number 2
    of the option option 3 amount if the option number 3
    the option amount 4 If the option is number 4
    option 5 option amount if the option is number 5

    Given two models, I can see what looks like an advantage for a design that, when running, you have less attributes (6 on retirement member + 1 on each of the 5 options = 11) as two Design (1 on retirement members + 6 on each of the 5 options = 31), but I'm not sure. An advantage to design two might be that the algorithm must do less through the structure of the entity: the table of rules support everything for the amount of the option option.

    Anyway there is a table of rules to determine the amounts:

    Design a
    its option 1 amount =
    2 if age = 10
    5 if age = 11
    7 if age = 12, etc..

    Design two
    of the option option 1 amount =
    2 if age = 10
    5 if age = 11
    7 if age = 12, etc..

    Here, it seems that the one would have to cross over the structure of the entity for the design of two.

    The design will have a better performance with a large amount of rules, or it would make a difference at all?

    Hello!

    In our experience, just think about this kind of stuff if you were dealing with 100's or 1000 instances (usually through ODS). You have a very low number, the differences will be negligible, as you should (in general) go with the solution that is most similar to the material of origin or the understanding of the business user. Also, I guess that's an OWD project? Which may be even better, the inference is performed gradually when new data are added to the modules, rather than in a 'big bang' as ODS.

    It seems that the model 1 is the easiest to understand and explain. I wonder why you have the option at all entity, because it seems to be a relationship to one? If the person cannot have only a single amount of option 1, option 2 amount etc, and there's only ever going to be (up to) 5 options... is this assumption correct? If so, you can keep just like the attributes at the level of the person without the need for bodies. If there are other requirements of an instance of the option then, of course, use them, but given the information here, the option feature doesn't seem to be necessary. It would be the fastest of all :-)

    Whatever it is, that the number of instances is so low, you should have nothing to fear in terms of performance.

    I hope this helps! Write back if you have more info / questions.
    See you soon,.
    Ben

  • XMLNS attribute in the tag wrong

    Hello!

    This XML has been accepted with the xmlns attribute in the wrong tag, but I have to extract its value in any way. How can I do?
      <NFe>
        <infNFe Id="NFe123" versao="2.00" xmlns="http://www.portalfiscal.inf.br/nfe">
        <ide>
          <cUF>00</cUF>
        </ide>
      </infNFe>
    </NFe>
    Thank you!
    Luciana

    You will need to write it as one 'or' but it will be much less efficeint except if you process documents one at a time

    SQL> with MY_XML_SAMPLE  as
      2  (
      3    select XMLTYPE('
      4  
      5      
      6      
      7        00
      8      
      9    
     10  ') as OBJECT_VALUE from dual
     11  )
     12  select t.*
     13    from MY_XML_SAMPLE,
     14         XMLTable
     15         (
     16            xmlnamespaces
     17            (
     18              'http://www.portalfiscal.inf.br/nfe' as "nfe"
     19            ),
     20            '/NFe/nfe:infNFe | /nfe:NFe/nfe:infNFe'
     21            passing OBJECT_VALUE
     22            columns
     23            ID      VARCHAR2(32)   path '@Id',
     24            VERSION NUMBER         path '@versao',
     25            CUF     VARCHAR2(2)    path 'nfe:ide/nfe:cUF'
     26         ) t
     27  /
    
    ID                                  VERSION CU
    -------------------------------- ---------- --
    NFe123                                    2 00
    
    SQL> with MY_XML_SAMPLE  as
      2  (
      3    select XMLTYPE('
      4  
      5      
      6      
      7        00
      8      
      9    
     10  ') as OBJECT_VALUE from dual
     11  )
     12  select t.*
     13    from MY_XML_SAMPLE,
     14         XMLTable
     15         (
     16            xmlnamespaces
     17            (
     18              'http://www.portalfiscal.inf.br/nfe' as "nfe"
     19            ),
     20            '/NFe/nfe:infNFe | /nfe:NFe/nfe:infNFe'
     21            passing OBJECT_VALUE
     22            columns
     23            ID      VARCHAR2(32)   path '@Id',
     24            VERSION NUMBER         path '@versao',
     25            CUF     VARCHAR2(2)    path 'nfe:ide/nfe:cUF'
     26         ) t
     27  /
    
    ID                                  VERSION CU
    -------------------------------- ---------- --
    NFe123                                    2 00
    
    SQL>
    

    Just checked that it works in 10.2.0.4.0 so

    Published by: mdrake on December 3, 2010 08:02

  • Cannot set attribute of the param element value using javascript in setAttribute

    When adding the items param via createFragment the javascript in setAttribute function does not set the "value" attribute It is necessary to set the nodetext to add this attribute to the value of the param element.

    Second, when using the method of the generated html code defines the 'value' to the innerHTML. HTML code resulting in the display by "Inspect the system" looks like this.

    < parameter id = "myID" > myValue < / param >

    Note: [the element close text < / param > is displayed correctly using inspect, but when using file-> SavePageAs the end text is not saved correctly.] I reported this in another question of moz. support FF.]

    function setparamAttrs (parmID, parmVal)
    {

    var gData = document.createDocumentFragment();
    
     var newNode = document.createElement("param");
     var textStr = document.createTextNode(parmVal);
     newNode.appendChild(textStr);
    
     newNode.setAttribute("id", parmID);
     //newNode.setAttribute("value", parmVal);  // this does not work
     //newNode.setAttribute("innerHTML", parmVal);  //this does not work
    
     gData.appendChild(newNode);
     document.body.appendChild(gData);
    

    }

    However, I was able to retrieve the "value", once it has been added using:

    var val = document.getElementById("parm0").value;)

    getAttribute ("value") does not work either.

    Finally, I added the param elements to my HTML code like this.
    < parameter id = "myID" > myValue < / param >. Then I tried to extract the value using document.getElementById("myID").innerHTML. No text has been returned. When I looked at the HTML document with inspect my HTML param element is displayed as < param id = "myID" > myVal. The closing text of the element has not the same when I use SavePageAs which I mentioned previously.

    Yes, this is the correct way to this code and it works for me without any problem.

  • The amount of storage iCloud influences the amount of songs, you can download while being subscribed to iTunes game? Or are considered two different storage plans?

    The amount of storage iCloud influences the amount of songs, you can download while being subscribed to iTunes game? Or are considered two different storage plans?

    Hello

    iTunes game uses no storage iCloud. iTunes game limit is now 100 000 securities.

    Jim

Maybe you are looking for