Custom attribute editor changes in activating Contributor mode is not the Save"" button.

We wrote a custom with two boxes attribute editor and save the two values in a single field. The part of the user interface of its works very well. But the problem we have is when you change a value of these custom attributes for an asset in contributor 'Save' mode is not getting activated as expected. To save the values of this custom attribute Editor, must modify any other attribute of asset values and then save the assets to save the values of the modified attributes.  Please find the code for the item below

<%@ taglib prefix="cs" uri="futuretense_cs/ftcs1_0.tld"
%><%@ taglib prefix="ics" uri="futuretense_cs/ics.tld"
%>
<cs:ftcs>
<ics:setvar name="doDefaultDisplay" value="no"/>
<tr>
    <ics:callelement element="OpenMarket/Gator/FlexibleAssets/Common/DisplayAttributeName"/>
    <td></td>
    <td>
  <select name="Integers" id="Integers" onChange="javascript:saveChanges()" dojoType="fw.dijit.UISimpleSelect" showErrors="false" clearButton="true" size="1">
  <option value="1">1</option>
  <option value="2">2</option>
  <option value="3">3</option>
  <option value="4">4</option>
  <option value="5">5</option>
  <option value="6">6</option>
  </select>
  <select name="Units" id="Units" onChange="javascript:saveChanges()" dojoType="fw.dijit.UISimpleSelect" showErrors="false" clearButton="true" size="1">
  <option value="days">Days</option>
  <option value="hours">Hours</option>
  <option value="mins">Mins<option>
  </select>
     
    </td>
</tr>
<input type="hidden" id="IntegerUnitsValue" name='<%=ics.GetVar("cs_SingleInputName")%>' value='<%=ics.GetVar("Integers")+"-"+ics.GetVar("Units")%>'/>
 <ics:if condition='<%="true".equals(ics.GetVar("RequiredAttr"))%>'>
  <ics:then>
  <ics:setvar name="RequireInfo" value='<%="*" + ics.GetVar("cs_SingleInputName") + "*" + ics.GetVar("currentAttrName") + "*ReqTrue*" + ics.GetVar("AttrType") + "*text!" %>'/>
  </ics:then>
  <ics:else>
  <ics:setvar name="RequireInfo" value='<%="*" + ics.GetVar("cs_SingleInputName") + "*" + ics.GetVar("currentAttrName") + "*ReqFalse*" + ics.GetVar("AttrType") + "*text!" %>'/>
  </ics:else>
  </ics:if>
   <%
        String value = ics.GetVar("ContentDetails:" +ics.GetVar("cs_SingleInputName"));
        value = value!=null?value:"";
  String[] integerunits=new String[2];
  if(value.length()>0 && value.indexOf("-")>0){
  integerunits=value.split("-");
   %>
  <script language="JavaScript">
  var interunitsSize=<%=integerunits.length%>;
  var integerValue="<%=integerunits[0]%>";
  var unitValue="<%=integerunits[1]%>";

  var integersObj = document.getElementById('Integers');
  var unitsObj = document.getElementById('Units');
  for(i=0;i<integersObj.options.length;i++){
  if(integersObj.options[i].value==integerValue){
  integersObj.options[i].selected=true;
  }
  }
  for(i=0;i<unitsObj.options.length;i++){
  if(unitsObj.options[i].value==unitValue){
  unitsObj.options[i].selected=true;
  }
  }
  function saveChanges(){
  var IntegerUnitsValue=document.getElementById("IntegerUnitsValue");
  var integersObj = document.getElementById('Integers');
  var unitsObj = document.getElementById('Units');
   IntegerUnitsValue.value=integersObj.options[integersObj.selectedIndex].value+"-"+unitsObj.options[unitsObj.selectedIndex].value;
   }
  </script>
  <%}%>
 </cs:ftcs>


Found the answer to this issue of support. I need to include "setTabDirty();" in the javascript function.

Tags: Fusion Middleware

Similar Questions

  • When I turn on my computer, it gets stuck on the ultra-portable gigabyte 3 screen and custom which leave me there 2 hours still no luck the only button that works are TAB rebooting too

    Original title: stuck

    When I turn on my computer, it gets stuck on ultra-portable gigabyte 3 screen and custom wide movement which I gave 2 hours still no luck the only button that works are TAB restart too it can someone help please

    Follow these steps:

    Step 1: Start the computer in safe mode and check if the problem persists.

    A description of the options to start in Windows XP Mode

    http://support.Microsoft.com/kb/315222

    Step 2: If the problem does not still in safe mode, perform a clean boot to see if there is a software conflict as the clean boot helps eliminate software conflicts.

    How to configure Windows XP to start in a "clean boot" State

    http://support.Microsoft.com/kb/310353

    Note: After completing the steps in the clean boot troubleshooting, follow the section How to configure Windows to use a Normal startup state of the link to return the computer to a Normal startupmode.

    After the clean boot used to resolve the problem, you can follow these steps to configure Windows XP to start normally.

    (a) click Start, run.

    (b) type msconfigand click OK.

    (c) the System Configuration Utility dialog box appears.

    (d) click the general tab, click Normal startup - load all services and device drivers and then click OK.

    (e) when you are prompted, click on restart to restart the computer.

  • Muse and preview mode are not the same

    Hello

    I have a problem with Adobe Muse. The site I am building isn't properly in preview. Below you can see a screenshot of the website in design mode.

    1.png

    Now, with the option "show an overview of the site in the browser" Web site looks like this:

    2.png

    As you can see, the menu is much lower than in the Muse. But when I use the ' Preview in the browser page ' option, the preview is correct:

    3.png

    I tried a lot of things, but I can't do things. Does anyone know how to fix this?

    EDIT: Also, other elements such as text and rectangles are not previewed in the place where they should be. Very frustrating. Someone at - it Adobe, that can help?

    Thank you

    Floris

    Note: the frontpage is a slide show of hero, which explains different background pictures.

    Menu was defined as a 'Footer' element in the Control Strip. Solved.

  • Why is Firefox now activating DO NOT the back button and not automatically showing the current web address in the bar? When did she become good conduct for a browser?

    When I installed Firefox 4, these 2 functions went. of course, I can now right click on the arrow to the left and choose a page to go back to. But most of the time I just want to go back to page 1. Why should I change my behavior just for a new version of Firefox?

    Even with the bar URL web address. Why do I now by force, click the icon to the left to display the current URL? It is used to do this automatically? How can this be a security features do NOT show the URL of the current web page?

    Please change these features in a new version of Firefox...

    You have McAfee SiteAdvisor?

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions of the origin of the problem (switch to the DEFAULT theme: Tools > Modules > appearance/themes).

  • How to change your password in thunderbird email - NOT the master password

    I went to my service provider internet and changed my e-mail password. However Thunderbird does not accept my changed password. I don't HAVE a "master" password Help.

    [email protected]

    Rename or delete these two files - signons3.txt and signons.sqlite - in the profile folder, restart TB and see if you can now enter your new password.

    http://KB.mozillazine.org/Password_Manager#troubleshooting

    Help/troubleshooting Information, click view the folder to open the profile folder, exit TB, rename or delete files, restart TB.

    It might be useful to access the account via webmail comes to confirm that the new password works.

  • How to return to the view card when an application is in full screen mode without using the Launcher button

    Is it possible to return to the map view when you are using the full screen and more it Launcher button? This will bring this button quick exit!

    Hello and thank you for using the HP webOS Help Forums!

    The Center button is not required to enter the map view. In any position (landscape or portrait) you can slide your finger from the bottom to the top of the page, but just make sure that you start in the black area around the screen. It is a subtle and quick movement and may require some getting used to.

    I hope this helps

  • Retrieves a custom attribute and store it in a workflow attribute?

    Hello.

    Maybe I'm confused on this subject, but from the looks of it, I can't take the custom attribute that is retrieved using

    com.vmware.library.vc.customattribute.getCustomField)

    and assign it to an attribute of workflow for use later, or even check the value.

    From the looks of the workflow, it records only the value.

    Is it possible to natively in vRO?

    Thank you!

    Anoop

    Are you trying to retrieve the custom attribute using the workflow "toget the attribute custom" (in the folder library/vCenter/Custom attributes )?

    If so, then Yes, this workflow only saves the retrieved attribute and does not return as an output parameter. You have the following options:

    • Write your own workflow to help "get the attribute custom" as a starting point. You can duplicate, then add a new parameter of type string and set it to the value of customAttributeValue.
    • Directly call the com.vmware.library.vc.customattribute.getCustomField () action in your script code and use its return value of string.
  • How to create a dynamic custom attribute?

    I would like to create a custom attribute of type 'Host' that would dynamically update listing the number of guests on each host.  It would be same information on every host on the summary, General Section tab, Virtual Machines.

    It would be extremely useful, I'd be able to say to an ice cream which was underused host without having to check each host.

    This should be solved with a script.

    If this is in the wrong community then please move.

    I use VC 2.5 update 4 with ESX 3.5 update 3.

    Thanks in advance for any help with this.

    jfatheree

    Attached is the script, part of the code was mutilated by the forum.

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

    William Lam

    VMware vExpert 2009

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    repository scripts vGhetto

    http://Twitter.com/lamw

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

  • How to set custom attributes of Div in Adobe Edge?

    Hi all!

    I wonder if it is possible, staying in Adobe Edge animate, set custom attributes of a Div.

    For example, for the framework of the "Impress.js" presentation, we get this code:

    < div id = "large" class = 'step' data-x = '3500' data-y '2100' data-rotate = "180" data = "6" >

    < p > < b > Mar show grew up < /b > < span class = "thoughts" > idea </span > < / p >

    < / div >

    Thus, in EA, we can call a Div (but what kind of Div? A rectangle? A text box empty?) with the 'big', we can also add the shape to the 'step' of class user interface, but we cannot - as far as I know - insert custom attributes.

    Perhaps with Jquery 'setAttribute'?

    Thank you very much!


    Davide

    In my opinion, what they added or 'set' dynamically, as you might have guessed.

    This is an old thread on the same topic.

    Darrell

  • Change the VM with custom attributes defined in a CSV file

    Hi all

    I'm doing something that I think should be simple (but this is the first time I used powercli and am not a good code writer), but I find it hard to tell.

    I created 2 custom attributes (owner and owner of the SSG system) in vCenter for my virtual machines.  I have a list of vm names csv and their associates "owners".  I would use powercli to read the csv file and connect to the VC server and the 'owners' of entry in the appropriate field.

    I borrowed com code from various places on the internet and these forums but I can't seem to make it all work.  I managed at least to read the information in the csv file and is displayed on the screen of my laptop.  What I can't do is get 3 columns in the csv file to be recognized as variables (unless there is some default variables I don't know) I can put in the game-Annotation lines.

    The code I have is:

    # Input range, includes all IBD VM names that are registered.
    $data = import-Csv "C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI\scripts\vmowners1.csv"-Header ('Hostname', 'Owner', 'SSG owner')
    # $data | Get-Member
    Write-Output $data
    # Loop over all the VMS in vCenter
    ForEach ($row in $data)
    {
    # Create variables for the current virtual and its 'Contact' and 'Description' computer that are custom attribute fields.  Also create a $note string to use Set-VM-Description
    $hostname = get-VM-name $vmname;
    # $contact = $vm | Get-Annotation CustomAttribute - user;
    # $description = $vm | Get-Annotation - CustomAttribute Description;
    # $note = $contact.name + ":'t" + $contact.value + "' not n" + $description.name + ":'t" + $description.value;
    Set Annotation - entity $hostname - CustomAttribute "Business system owner" - value $SSG_owner
    Set Annotation - entity $hostname - CustomAttribute "SSG system owner" - value $system_owner
    # Set - VM - VM $vm - $note Description - confirm: $false;
    }

    The result, I get on my screen is:

    PowerCLI C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI\scripts >.\setvmownership.ps1

    Owner of the company that owns SSG host name

    --------                                              --------------                                       ---------

    ABPPROXY-00-AH

    ACE-01-AH hung Laallmmi hung Laallmmi

    Get - VM: could not validate the argument on the parameter 'name '. The argument is null or empty. Provide an argument that is not null or empty, and then try the AGM of the order

    in.

    To C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI\scripts\setvmownership.ps1:13 char: 29

    + $hostname = get-VM-name < < < < $vmname;

    + CategoryInfo: InvalidData: (:)) [Get - VM], ParameterBindingValidationException)

    + FullyQualifiedErrorId: ParameterArgumentValidationError, VMware.VimAutomation.ViCore.Cmdlets.Commands.GetVM

    Set Annotation: Impossible to validate the argument on the parameter "entity". The argument is null. Supply a non-null argument, and try the command again.

    C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI\scripts\setvmownership.ps1:17 char: 23

    + Set-Annotation - entity < < < < $hostname - CustomAttribute "Business system owner" - value $SSG_owner

    + CategoryInfo: InvalidData: (:)) [game-Annotation], ParameterBindingValidationException)

    + FullyQualifiedErrorId: ParameterArgumentValidationError, VMware.VimAutomation.ViCore.Cmdlets.Commands.SetAnnotation

    Set Annotation: Impossible to validate the argument on the parameter "entity". The argument is null. Supply a non-null argument, and try the command again.

    C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI\scripts\setvmownership.ps1:18 char: 23

    + Set-Annotation - entity < < < < $hostname - CustomAttribute "SSG system owner" - value $system_owner

    + CategoryInfo: InvalidData: (:)) [game-Annotation], ParameterBindingValidationException)

    + FullyQualifiedErrorId: ParameterArgumentValidationError, VMware.VimAutomation.ViCore.Cmdlets.Commands.SetAnnotation

    Get - VM: could not validate the argument on the parameter 'name '. The argument is null or empty. Provide an argument that is not null or empty, and then try the AGM of the order

    in.

    To C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI\scripts\setvmownership.ps1:13 char: 29

    + $hostname = get-VM-name < < < < $vmname;

    + CategoryInfo: InvalidData: (:)) [Get - VM], ParameterBindingValidationException)

    + FullyQualifiedErrorId: ParameterArgumentValidationError, VMware.VimAutomation.ViCore.Cmdlets.Commands.GetVM

    Set Annotation: Impossible to validate the argument on the parameter "entity". The argument is null. Supply a non-null argument, and try the command again.

    C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI\scripts\setvmownership.ps1:17 char: 23

    + Set-Annotation - entity < < < < $hostname - CustomAttribute "Business system owner" - value $SSG_owner

    + CategoryInfo: InvalidData: (:)) [game-Annotation], ParameterBindingValidationException)

    + FullyQualifiedErrorId: ParameterArgumentValidationError, VMware.VimAutomation.ViCore.Cmdlets.Commands.SetAnnotation

    Set Annotation: Impossible to validate the argument on the parameter "entity". The argument is null. Supply a non-null argument, and try the command again.

    C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI\scripts\setvmownership.ps1:18 char: 23

    + Set-Annotation - entity < < < < $hostname - CustomAttribute "SSG system owner" - value $system_owner

    + CategoryInfo: InvalidData: (:)) [game-Annotation], ParameterBindingValidationException)

    + FullyQualifiedErrorId: ParameterArgumentValidationError, VMware.VimAutomation.ViCore.Cmdlets.Commands.SetAnnotation

    The CSV file looks like this (but continues for about 500 VMS):

    I go with the option import-csv because that said something that I read in my troubleshooting efforts would empty columns and error I received and that import-csv correctly would intrepret in empty columns.

    hostname, business_owner, system_owner,

    ABPPROXY-00-AH,

    ACE-01-AH, James Laallmmi, James Laallmmi,

    acrodev-00-ah, tflessa, Bruce Hastings,.

    ACT1DDB00AH, Bill Mancini, Mike Bruni,

    ACT1TDB00AH, Bill Mancini, Mike Bruni,

    What should I do to be able to get this script to work? I don't know that it is related to messages "argument is null." that we see in the output.

    Thank you

    Dan

    Hello, dscottimw-

    You were on the right track.  There were a couple of things to change to make it work as you want:

    1. either remove the "-header" part of the Import-Csv line or delete the actual header of the CSV itself - these are elements in conflict (the "-Header" param names of the columns in the CSV and assumes that the CSV file has already no header row)
    2. you need to access the properties of the $row variable in the ForEach loop - not only call the names of the CSV column headers (this is why you may receive errors on things 'null' - whether you use variables that have no value)

    Try this:

    # Input array, includes all VM names from DCI that are registered.$arrVMsInfo = Import-Csv "C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\scripts\vmowners1.csv"#Write-Output $data
    
    ## loop through all VMs listed in the CSV, setting custom attrib values for eachForEach ($row in $arrVMsInfo) {    ## get the VM for this row    $vmThisOne = Get-VM -Name $row.hostname    Set-Annotation -Entity $vmThisOne -CustomAttribute "Business System Owner" -Value $row.business_owner    Set-Annotation -Entity $vmThisOne -CustomAttribute "SSG System Owner" -Value $row.system_owner} ## end foreach
    

    And, to give it a shot without actually play the game on annotations, to make sure things go as you like, you could add a - WhatIf to each line in Set-Annotation in the ForEach loop.

    Which works better for you?

  • Change after the addition of custom attribute

    Hello

    I use OIM R2 PS1 and the commissioning of OUD user via the connector.

    Depending on the condition, I added a new custom attribute "HomePhone". However, the value of attribute for this attribute is only pushed for the newly created user. For a user (prior to adding the custom attribute), the attribute values runs not more than on the side of the OUD.

    Is there a planner that I need to run?

    Thank you, John

    Hello

    I'm sure that you have not finished the second part of the extension of connector - "Configurations to achieve synchronization app downstream." However, you mentioned that you don't see a problem with the new user, however if you update the value of the attribute, it does not flow down to OUD, as older users.

    Please go through the link: extend the functionality of the connector

    The steps would be - creating new tasks within the definition of processes, mapping, etc..

    Thank you.

  • Writing javascript code to a box that when activated, it removes the read-only attribute in another area and allows a number against the default calculation that occur.

    I have an order entry form that calculates a sum of $ calculate markup by a formula in the section rating field simplified in the field on the tab properties.  The field of markup is set to read-only.  I also have a configuration like a checkbox.  If the user selects the check box, I need this field of markup to become editable (remove the read-only attribute) to allow a number to be entered in the field.  I guess I'd also need programmatically delete the calculation in the simplified field notation when the box has been activated.  I think I need a custom java script to trigger on mouse enter?  I could also use some help setting java script.  Someone has it all done something similar?

    Thanks in advance.

    You can no longer use the method of the "simple field notation" If you change the field in certain situations. The following script assumes that you just want to add two fields and use 25% of this amount as your markup, unless the box named "CheckBox" is checked, then the field will become editable and you can enter what you want:

    // get the state of the "CheckBox" - modify the field name to match your form
    var cb = this.getField("CheckBox");
    
    if (cb.value == "Off") {
        // Checkbox is unchecked, so perform the calculation and make sure the field is read-only
        event.target.readonly = true;
         // simple calculation - you need to modify this
        var result = (Number(this.getField("Field1").value) + Number(this.getField("Field2").value)) * 0.25;
        event.value = result;
    }
    else {
        // Checkbox is checked, so do not modify the value, set the field to read/write and let the user enter anything they want.
        event.target.readonly = false;
    }
    
  • LDAP Sync does not work on custom attributes

    Gurus,

    I installed and configured OIM 11 g release 2. During configuration of IOM, I activated ldapsync to OID.

    Created a custom attribute in the OID and also on OIM. But when I change this attribute to IOM, this change won't OID and vice versa. There are no errors in the logs.

    Please throw some light on this.

    Everything by creating a custom to IOM, attribute entitle you the label, name... At the same time, there will be an option to provide the ldap attribute name. You must provide the name of the attribute that you created in the OID here. Then only ldap sync works on custom attributes. without specifying a ldap attribute name, ldap sync wiill does not work.

    Give it a try and post your results here.

  • Default Gmail in Compact mode, regardless of the changes in the settings. Clues?

    I deleted the cache and responsible for Gmail in other browsers OK.

    In ff Gmail reduced to compact view.

    I also had the same problem with Firefox 16.0.1 and restarted the browser in safe mode. In safe mode, the problem was gone and I was able to change the display density in Gmail. It seems that the offending plugin was Adblock Plus as when I started the browser with plugins active and disabled Adblock Plus, the problem was solved as well. Only two plugins I have installed are VideoDownload Helper and Adblock Plus.

  • cRIO is unable to enter active mode, because of the ethercat slave

    I have a (CS27 of HBM) ethercat slave connected to a cRIO 9068. If I right click on the device HBM under the EthercatMaster and go to 'Device status online' I put first the State of the HBM "Operational Pre", "Operational security" and then "operational." The CX27 indicates the operational stae with a LED.

    But when I try to put the cRIO in "active" Mode I get the error message:

    -The analytical engine NOR could not be changed to active mode, because one or several devices to find could not access the operational mode.

    The problem is finally solved.

    The problem has been layout of different synchronization between the HBM and cRIO (801 vs 802) Manager.

    Thanks to HBM to provide a firmware update to take in charge the provision used by OR!

Maybe you are looking for

  • Question about trial battery bluetooth

    Just fine, I bought a Bluetooth dongle for my pc that uses the Toshiba Bluetooth stack v5.10.08. Now I m having a lot of drama with a driver on Vista so I'm the new v5.10.12 of drivers and it works great until the time runs out and he won t work more

  • Lexmark 5470 does not print

    I have a lexmark 5470 printer connected to my laptop. I had to go through a crapload of things to communicate with my laptop. But now he can communicate, and when I try to print something it works, except that nothing is on paper, I'm trying to print

  • Windows 7 shows more files in the properties that are in the folder!

    I just got a machine with Windows 7 64-bit.  Previously, I was using Vista.   After moving the files from my external backup drive, I found a little annoyance.  When, I copied a folder from outside with 8 files it contains, show up on the windows mac

  • Windows 7 disc need to install

    My hard drive died. I don't have a recovery disk. How to get a Windows 7 installation disc? I have the product key. Thank you.

  • More space required for the automatic signature column after the email

    I believe there should be more space for the automatic signature after the email because it is easy for the receiver to know all the details of the sender for example name, designation, company name, address of the company, business logo, fixed line