How to validate the field "Reason for change" in the commercial indications using JavaScript?

How to validate the field "reason for change" in the commercial directions Summary tab using JavaScript?

Current version of PLM4P: v6.1.1.5.2

Please help me to validate the fields using JavaScript.

Thank you

Nefertari

Developed using some of the Javascript predefined functions that we offer, it's just JavaScript and jQuery.

But here is an example.

(Use Internet Explorer F12 developer tools to find the IDS of the fields to work with.)

$(document).ready(function() { 

    if (UI_Ext_isSpecInEditMode && UI_Ext_HasWorkflowBehavior('1005'))
    {
       //normally, we can use jquery to retrieve elements ($('#ifOfInput).val()), but it seems to fail when the id and the name attributes are the same. so we just use javascript document.getElementById instead.
       var reasonForChange = document.getElementById('ctl01$SpecSummaryctl1$ctlCollapsibleContentContainer$ctl00$txtChangeReason')

       if (reasonForChange != null) { 

            if (reasonForChange.value == null || reasonForChange.value.length == 0) {
                 UI_Ext_MarkFieldAsRequired('ctl01_SpecSummaryctl1_ctlCollapsibleContentContainer_ctl00_lblSpecSummaryReasonforChange');
                 alert('Reason For Change is required');
            }
       }
    }
}); 

However, not the user registration or workflow specification. If you were to do this, you must remove record them and workflow buttons and links, and this probably isn't the best practice. On the contrary, you would write validation server that would give you this error message if they try to save/workflow. (So most customers do not use Extensions of the user interface for this type of validation).

Kind regards

Ron

Tags: Oracle Applications

Similar Questions

  • How to get the Blackberry ID using javascript for Webworks App?

    Hi all

    I have developed a web application using Blackberry webworks SDK and emulator Ripple... Here, I need to get the Blackberry device ID using javascript... Please me... Thanks in advance...

    With respect,

    Marimuthu_P

    HM... There is a sample to get the PIN with javascript.

    https://developer.BlackBerry.com/HTML5/APIs/BlackBerry.identity.html#.UUID

  • How to hide the textfield element using javascript

    I point textfield and I want to hide it using javascript...

    can you help me please?

    Hello

    I checked his works well for me.

    Go to DISPLAY ATTRIBUTES and change the direction of cursor to DO NOT FOCUS CURSOR

    then check...

    Let me know incase of any concerns.

    See you soon,.
    Shan...

  • How to display the context menu using javascript in application of apex

    Hi all

    y at - it someone who has set up a context menu using javascript in its request for apex. We may be able to open other pages I need when clicking on items in the context menu.

    Please answer as soon as possible. I will be very grateful to you all.

    Published by: user12259335 on November 23, 2009 01:18

    Hello
    Sorry, you are right, I don't send you all the :), but I have a request - could you just give me your email address to send you the code.
    Tahnks

  • How to make the new display using Javascript

    Based on a given condition, I want to change what nodes are visible in a given view and then save it as a new view.

    var viewIndex = 0;

    pageIndex var = 0;

    A3D var = this.getAnnots3D (pageIndex) [0];

    var aRuntime is a3d. context3D.Runtime;

    Duquette var = a3d.context3D.scene;

    var aView is aRuntime.getView (viewIndex);.

    var i = 0;

    for (i = 0; i < aScene.nodes.count; i ++) {}

    var aNode = aScene.nodes.getByIndex (i);

    If (... check...) {

    aNode.visible = false;

    }

    }

    ... How to save this change to the visible nodes to a new view? ...

    Interactively, I can go to view > > manage views... > > new view > > Ok

    I can't find anything in the documentation or search the Internet on how to do it programmatically.

    The short answer is you can't.

    However, you pouvez add a list field or down the page or create a menu in the 3D runtime which will display a list of named views as "views" you "Save" through your code. If I did that, I would use a hidden field containing a JSON string that stores the original name of the view and the changes that your code performs. Then when one of these "views" is selected, obtained in the initial display and then review the terms that you have captured in your if statement.

    These, of course, would not appear in the model tree, but would be visible in your list box.

    J-

  • How can we display - hide or enable - disable the Captivate objects using javascript?

    How can one show - hide or enable - disable or change the color of the Captivate objects using javascript?

    All ideas, actually I want to avoid Advance Action assisted drop programming and want to do the actions of text encoding.

    You can show/hide and activate using the following syntax.

    CP. Show ("obj." + i)

    CP. Hide ("obj." + i)

    CP. Enable ("obj." + i)

    CP. Disable ("obj." + i)

  • How to generate the password encoded using agent in ODI?

    Hello

    I've created a scenario and I plan to them. Now, I want to create an autonomous agent to run this scenario. To do this, I update odiparams.bat file where I am mentioning the details of the repository. I want to generate the encoded password repository connection using batch processing utility officer. After you type following command at the command prompt in windows xp:
    agent to encode the password
    Failure of the sound connection password invalid username error display.

    What should do? How to generate the password encoded using batch agent utility?

    Thank you
    Shrinivas

    Published by: Shrinivas Dayma on 13 Aug 2011 02:03

    Hi Shrinivas,

    This command is for ODI 10 g.

    For 11g,.

    Encode

    Thank you
    Guru

  • I can see the webcam on my Dell Latitude D630 laptop, but cannot make it work on Skype... This isn't seeit. How to activate the webcam to use?

    I can see the webcam on my Dell Latitude D630 laptop, but cannot make it work on Skype... This isn't seeit. How to activate the webcam to use?

    Hello markward4905

    You should be able to download the drivers from the website of the manufacturer of your web cam.

    This forum post is my own opinion and does not necessarily reflect the opinion or the opinion of Microsoft, its employees or other MVPS.

    John Barnett MVP: Windows XP Expert associated with: Windows Expert - consumer:www.winuser.co.uk | vistasupport.mvps.org | xphelpandsupport.mvps.org | www.silversurfer-Guide.com

  • How to create the user account using the command?

    How to create the user account using the command?

    Open cmd as administrator, and then type the following commands one after the other

    NET user / add program mypassword
    net localgroup administrators program / add
    net share concfg * C:------/ grant: program, complete
    This will create a user account with the name "Program" and the password "MonMotpasse".

    You can create the user name and password of your choice.
  • How to call the java function with javascript setting in mobile adf?

    How to call the java function with javascript setting in mobile adf?

    The ADF Mobile utility container API can be used from JavaScript or Java.

    Application container API - 11 g Release 2 (11.1.2.4.0)

  • I am reorganizing the attribute value using javascript. see code below

    Hi all

    I am reorganizing the attribute value using javascript. see code below and suggest me

    EX: id = "to THE:1" reorganize to id = "to THE:2"

    myDoc var = app.activeDocument;

    var myGlueCodePath = app.filePath + "/ Scripts/XML rules/glue code.jsx";

    var myFile = File (myGlueCodePath);

    app.doScript (myFile);

    If (app.documents.length! = 0) {}

    var myRuleSet = new Array)

    new findObjAttribute ("//auq")

    );

    {with (MyDoc)}

    var elements = xmlElements;

    __processRuleSet (Elements.Item (0), myRuleSet);

    }

    }

    else {}

    Alert ("you have no open documents!");

    Exit();

    }

    function findObjAttribute() {}

    myIdName = "findObjAttribute";

    This.XPath = ("[/ / auq[@id]");

    This.Apply = function (myElement, myRuleProcessor)

    {

    elmName = myElement var .markupTag .name;

    {with (MyElement)}

    try {}

    var myAttName = myElement .xmlAttributes .itemByName ("id") .value;

    SS var = myAttName.replace(/[A-Z]+\:/,""); "

    var SSS = ss - 1;

    myAttName = myAttName.replace(/[0-9]/,sss)

    $.writeln (myAttName);

    } catch (e) {};

    }

    }

    }

    Your code re - order the value correctly, but you don't have the update attribute in the element.

    Try this,

    myAttName = myAttName.replace(/[0-9]/,sss);

    myElement.xmlAttributes.itemByName("id").value = myAttName;

  • How to validate required fields XSD by validating the BPEL activity?

    Hi all

    Is anyone aware of how to validate only requires activity validate using XSD fields. When I'm trying to validate, validation activity is taken all the input fields its not taken specific fields. Someone suggest me how to do this.

    Thanks in advance.

    Thank you

    Hari

    Hello

    I have no experience with Schematron. But I don't have an example of a xlt:

    http://xmlns.Darwin-it.nl/CDM/XSD/v1/CBM/ADarwinProjectExample"/ >

    http://xmlns.Darwin-it.nl/CDM/XSD/v1/CBM/ADarwinProjectExample"/ >

    ?>

    "xmlns:XP20 ="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"

    "xmlns:bpws ="http://schemas.xmlsoap.org/ws/2003/03/business-process/"

    "xmlns:BPEL ="http://docs.oasis-open.org/wsbpel/2.0/process/executable"

    "xmlns:loc ="http://xmlns.darwin-it.nl/CDM/xsd/V1/CDT/Locatie"

    "" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance"

    "xmlns:BPM ="http://xmlns.oracle.com/bpmn20/extensions"

    "xmlns:ORA ="http://schemas.oracle.com/xpath/extension"

    "xmlns:dwnzvpm ="http://xmlns.darwin-it.nl/CDM/xsd/V1/CBM/ADarwinProjectExample"

    "xmlns:socket ="http://www.oracle.com/XSL/Transform/java/oracle.tip.adapter.socket.ProtocolTranslator"

    xmlns:svnid = "" $Id: ADarwinProjectExampleCBM.xsd 148 14:55:49Z 2013-07-$23 ""

    "xmlns:mhdr ="http://www.oracle.com/XSL/Transform/java/oracle.tip.mediator.service.common.functions.MediatorExtnFunction"

    "xmlns:oraext ="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"

    "xmlns:DVM ="http://www.oracle.com/XSL/Transform/java/oracle.tip.dvm.LookupValue"

    "xmlns:HWF ="http://xmlns.oracle.com/bpel/workflow/xpath"

    "xmlns: med ="http://schemas.oracle.com/mediator/xpath"" xmlns: xsl = "http://www.w3.org/1999/XSL/Transform"

    xmlns:IDs ="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"xmlns:version = "1.0.a"

    "xmlns:XDK ="http://schemas.oracle.com/bpel/extension/xpath/function/xdk"

    "xmlns:XREF ="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"

    "container ="http://www.w3.org/2001/XMLSchema"

    "xmlns:Dom ="http://xmlns.darwin-it.nl/CDM/xsd/V1/CDD/Basis/Domeinen"

    "xmlns:BPMN ="http://schemas.oracle.com/bpm/xpath"

    "xmlns:jdz ="http://xmlns.darwin-it.nl/CDM/xsd/V1/COT/SomeCase"

    "xmlns:bas ="http://xmlns.darwin-it.nl/CDM/xsd/V1/CDD/Basis/Basis"

    "xmlns:BCT ="http://xmlns.darwin-it.nl/CDM/xsd/V1/CDT/Bericht"

    "xmlns:LDAP ="http://schemas.oracle.com/xpath/extension/ldap"

    exclude-result-prefixes = "xsi xsl loc dwnzvpm svnid psn version ns0 ns1 xsd dom jdz low bct ns2 xp20 APO bpel bpm ora socket mhdr oraext dvm hwf med xdk Xref bpmn ldap ID" >

    CDM

    ADarwinProjectExampleReqCBS

    1

    ADarwinProjectExample

    FUNCERROR

    Select = "' / dwnzvpm:aDarwinProjectExampleRequestCBM / dwnzvpm:businessData / dwnzvpm:informatieverzoekNatuurlijkPersoon" / > "

    Select = "' / dwnzvpm:aDarwinProjectExampleRequestCBM / dwnzvpm:businessData / dwnzvpm:informatieverzoekNietNatuurlijkPersoon" / > "

    Select = "' / dwnzvpm:aDarwinProjectExampleRequestCBM / dwnzvpm:businessData / dwnzvpm:informatieverzoekNatuurlijkPersoon / dwnzvpm:adres" / > "

    Select = "' / dwnzvpm:aDarwinProjectExampleRequestCBM / dwnzvpm:businessData / dwnzvpm:informatieverzoekNietNatuurlijkPersoon / dwnzvpm:adres" / > "

    DWN-00005

    An application must be made for a natural or non-natural person.

    Validation error

    DWN-00006

    A Dutch address cannot be questioned based on a cityname, but only based on a citycode.

    Validation error

    I think that it is fairly easy to add additional semantic checks.

    Kind regards
    Martian

  • How to validate the field LOV?

    Dear members,

    I have an OFA Page in which there are two fields i.e., F1 and F2.
    I created two lov ' Lov1 and Lov2. Lov2 is a dependent lov Lov1-based.

    Lov1 attached to F1.
    Lov2 attached to F2.

    When Iam by entering values in the F1 or F2 which do not appear in their respective lov, no error is encountered. IAM able to save these values as well.

    Any one can you please tell me how to validate fields lov, my requirement is whenever I get a wrong value that isn't in the lov, I want to display an error message.

    I tried selecting the value 'Yes' for the property "use for Validation" in lovmappings, and there is still no use. "

    Thanks in advance.

    Best regards
    Arun D. Reddy

    Try the following steps:

    What we need to do is the following.

    1. create a formValue field in the form.
    2. in the LOV create a mapping, with return element as the ID of the created formValue field.
    3. also for this map, together 'use for Validation' = yes.

    It works like a charm now and the user cannot enter invalid values.

    Thank you
    -Anil
    http://oracleanil.blogspot.com/

  • How to group by field derived for the field value below?

    Hi all

    I class field with the name of CLASS_FLD data item, I want to group by on left(CLASS_FLD,2).

    How to write him group by for the left(class_FLD,2) of expression above?

    I used earlier messages based on the syntax below but I am unable to make the Group

    <? for-each - group: row; xdoxslt:left(./CLASS_FLD,2)? > <? type: xdoxslt:left (current-group () / CLASS_FLD, 2); ' ascending '; data-type = "text"? >

    Thank you and best regards,

    1157496 wrote:

    Give me the syntax for the first group of lines BY expression counts.

    and also how the syntax would be if he is Businessunit group then group by expression (left(account,2)

    Mean you nested groups, first group BUSINESSUNIT and then other group ACCOUNT

    If yes then the internal group based on the ACCOUNT, we could watch as below

    for-each - Group: Current - Group (); xdoxslt:Left(./Account,2)? >

    For example

    . . . .

  • How to emulate the dialogue by using fields and pop-up screen

    Hi - I wanted to create a Popup screen that has similar abilities to the default value of dialogue - have a few buttons at the bottom of the screen and a main text field does not change. When the text is long, I want the same behavior as in the dialog box - to be able to scroll the text while seeing the arrows on the right, and at the same time I want the user to see the button at the bottom and be able to click on it.

    I tried using LabelField as RichTextField, but I failed to reproduce this behavior. If anyone has any ideas, I would be very grateful.

    Thank you

    Dan.

    When you view the PopupScreen (onDisplay() for the support of 4.2, onUiEngineAttached() a newer version) ask your 'default' setFocus() button.

    If you want to scroll through the text, but still see the buttons and I was one of them, you'll have to work harder: add your text field to a VerticalFieldManager (VERTICAL_SCROLL) and navigationMovement().  The Interior who call you can decide when and how much to scroll the text and use VerticalFieldManager.setVerticalScroll () followed by invalidate() program to scroll the NON_FOCUSABLE field.

Maybe you are looking for