Required Attribute - Make it Dynamic without using Constraints

Hello All
We have a requirement to make a selection of attributes required at a certain stage in the Quote Process.
We can achieve this using a linked item and constraints but we have a high number of the attributes.
Is there a feature or a solution that we can think of that can achieve this like.
Example:
We have an attribute and we would like it be be optional when the Quote is 5 days from Created date. But after the the 10th day the attrbute is required.
This could be achieved with a linked item and also a constraint. But can we do this with another solution.
Thanks
Ting

You could achieve this in two ways..
1. Using 'Required' Field User Property
Setting this property to TRUE, made the field mandatory while saving the record by evaluating the expression..
Create a calculated field with following value
Calculate Field Name : Calc
Calculated field value: IIf((Today() - [Created]) >= 5, 'Y', 'N') and see..
2. Scripting..
if (this.GetFieldValue("Calc") == "Y")
TheApplication().RaiseErrorText("Field is a mandatory field");
}

Similar Messages

  • How to create a viewobject dynamically without using wizard

    Hi,
    I am Using jDEV 11G, i need to create a viewobject dynamically without using wizard, without binding from any entity.
    Actually my intention is to make a grid like in .Net, when a user want to create a new row in RichTable without using DB.
    just like shopping cart.
    i have done thsi code:
    ViewObjectImpl view=new ViewObjectImpl();
    view.addDynamicAttributeWithType("Att1","String",null);
    view.addDynamicAttributeWithType("Att2","String",null);
    view.addDynamicAttributeWithType("Att2","String",null);
    Row rw=view.createRow();
    rw.setAttribute("Att1","First1");
    rw.setAttribute("Att2","First2");
    rw.setAttribute("Att2","First3");
    view.insertRow(rw);
    I have a RichTable , i need bind this viewobject into that.
    Edited by: vipin k raghav on Mar 10, 2009 11:39 PM

    Hi Vipin,
    You can create the view object with rows populated at run time.
    [http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/bcquerying.htm#CEGCGFCA]
    For reference of how to create an empty rwo at run time on button click
    [http://kohlivikram.blogspot.com/2008/10/add-new-row-in-adf-table-on-button.html]
    ~Vikram

  • Can i make Thread safe without using synchronised keyword in java

    Hi all,
    please tell me code and concept that we can make Thread safe without using synchronised keyword in java programming.
    regards
    Mohan kumar

    There's a series of new features in Java 5.0 (JDK 1.5.0) to address things like concurrency.
    See: http://java.sun.com/j2se/1.5.0/docs/guide/concurrency/overview.html
    -Alexis

  • Get the message attribute values in Orchestration without using property promotion

    I have the following schema :
    Now I want to get the values of FName,LName in orchestration without using any property promotion ?
    Prakash

    There are also multiple ways of creating the Xpath:
    - Full path with namespaces - Rahul Madaan showed this one
    - Full path without namespaces:
    FName = xpath(InputMessage, "string(/*[local-name()='Root']/*[local-name()='IntField'])");
    I think this method is handy if you have multiple schemas with similar structure  but the namespace
    changes. This is also easier to read and less prone to errors if there are any changes.
    If you for example wanted the node #3, then it would be
    FName = xpath(InputMessage, "string(/*[local-name()='Root']/*[local-name()='IntField'][3]/*[local-name()='IntSubField'])");
    - Jump directly to the field/node you need (this one works for at least xml elements):
     xpath(InputMessage, "string(//*[local-name()='IntField'])");
    I find this useful when picking up key-values from the message, that can be available only once.
    All the examples above are for elements. Since you are picking up value from an attribute, the actual structure
    is
    varFName = xpath(InputMessage,"string(/*[local-name()='StudentDetails']/*[local-name()='Student']/@*[local-name()='FName'])");
    And to learn the rest of the possibilities of Xpath, like count, different types, more detailed selections
    of the correct Node (Like example, I want only the one where FNAME = 'MyFName')  You can try something like: http://social.technet.microsoft.com/wiki/contents/articles/6944.biztalk-orchestrations-xpath-survival-guide.aspx
    Also get DanSharp XmlViewer. It will help you quite a bit when fine tuning the xpaths.

  • Make a dynamic menu using JSP or Javascript

    Hi ,
    I am trying to make a dynamic menu that is using data retrieved from database in the form of a list.
    I have a javascript to make a tree structure menu, but i need to iterate through the list i am reciveing from the database to make the tree structure. here is the code :-
    <Please reply ASAP as my deadline is near>
    <Note:- in javascript to make static menu ul tag is used to make the parent node and li tag is use to make the child node>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <SCRIPT LANGUAGE="JavaScript" SRC="mktree.js"></SCRIPT>
    <LINK REL="stylesheet" HREF="mktree.css">
    </head>
    <body>
    <%@ page import = "java.util.ArrayList, java.util.Iterator, java.util.List, \WEB-INF\classes\DO_JSP.class,
    \WEB-INF\classes\Url_Name.class, java.util.Comparator, java.util.TreeSet, \WEB-INF\classes\MyComp.class" %>
    <%
         class Url_Name {
         String linkName;
         String linkUrl;
         int order;
         * @return the order
         public int getOrder() {
              return order;
         * @param order the order to set
         public void setOrder(int order) {
              this.order = order;
         * @return the linkName
         public String getLinkName() {
              return linkName;
         * @param linkName the linkName to set
         public void setLinkName(String linkName) {
              this.linkName = linkName;
         * @return the linkUrl
         public String getLinkUrl() {
              return linkUrl;
         * @param linkUrl the linkUrl to set
         public void setLinkUrl(String linkUrl) {
              this.linkUrl = linkUrl;
    class MyComp implements Comparator{
         public int compare(Object a, Object b){
              return (((Url_Name)a).getOrder() - ((Url_Name)b).getOrder());
         class DO_JSP
         int parentId;
         String parentName;
         TreeSet linkList;
         Url_Name tempurl;
         * @return the linkList
         DO_JSP(){
              linkList = new TreeSet(new MyComp());
         public TreeSet getLinkList() {
              return linkList;
         * @param linkList the linkList to set
         public void setLinkList(String linkName, String linkUrl, int order) {
              tempurl = new Url_Name();
              tempurl.setLinkName(linkName);
              tempurl.setLinkUrl(linkUrl);
              tempurl.setOrder(order);
              this.linkList.add(tempurl);
         * @return the parentName
         public String getParentName() {
              return parentName;
         * @param parentName the parentName to set
         public void setParentName(String parentName) {
              this.parentName = parentName;
         * @return the parentId
         public int getParentId() {
              return parentId;
         * @param parentId the parentId to set
         public void setParentId(int parentId) {
              this.parentId = parentId;
    %>
    <%
              List listdojsp =new ArrayList();
              listdojsp = (List)session.getAttribute("JspListName");
              Iterator it = listdojsp.iterator();
              do
    %>
              <%
              DO_JSP tempdojsp = (DO_JSP)it.next();
              String Parent = tempdojsp.getParentName();
              %>
              <ul class="mktree">     
              <li> Parent </li>
                   <ul>
              <%
              Iterator ittemp = tempdojsp.getLinkList().iterator();
                   do
                        Url_Name tempurlname = new Url_Name();
                        tempurlname = (Url_Name)ittemp.next();
                        String link = tempurlname.getLinkName();
              %>
                        <li>link</li>
              <%
                   }while(ittemp.hasNext());
              %>
                   </ul>
                   </ul>          
              <%     
              }while(it.hasNext());
              %>
    </body>
    </html>

    Hi ,
    I am trying to make a dynamic menu that is using data
    retrieved from database in the form of a list.
    I have a javascript to make a tree structure menu,
    but i need to iterate through the list i am reciveing
    from the database to make the tree structure. here is
    the code :- Hi, do you have a question? This is more of a "Look what I wrote" sort of post, and you don't seem to be asking for any specific advice. Please tell us what problem you're having, or the error message you're receiving.
    Brian

  • How can I make local calls without using a country code when it's in my Contacts?

    The phone numbers in my Contacts all contain country codes because I do a lot of travelling.
    An example of this might be:
    +1 (229) 123-4567
    +44 (0)12 345 6789
    +31 (0)10 2345 6789
    I have an unlocked phone so when I travel, I usually pick up a local SIM and use that to make calls.
    The problem I have is that when I am abroad and select a phone number from my contact list it doesn' work. For example, if I select a contact with the number:
    +31 (0)10 2345 6789
    A voice-recording comes on saying that the number I had dialed was incorrect.
    But when I dial the number manually:
    010 2345 6789
    It works.
    In the US I do not have this problem because for some reason, the phone knows whether the +1 is needed or not. I'm sure if it uses it at all when you're in the US. When I dial internationally from within the US, the number dialing works fine.
    So this problem only occurs when I'm dialing locally in the country I'm in while travelling outside the US.
    Anyone have any idea of why this is happening and more importantly, what I need to do to fix this? I would hate to have go and change all my contact numbers and get rid of the country codes. If I ever have to call those numbers internationally, I'll need to manually add the country code back in.
    Very annoying!
    Advice anyone?

    If you include a country number, you have to drop the initial 0 from the area code. eg +31 10 2345 6789 instead of +31 (0)10 2345 6789

  • Requirements to Make a Windows PC Use the iMac?

    Hi. There are many that have great graphics, tweakable (mod and such) games on the PC now; until extreme gaming GPU grade thunderbolt external boxes come, If you want to assemble a very powerful Windows 7 64-bit but minimal (no case, no drive, it may just be integrated onto/into the table) PC and use the iMac with it's nice LED LCD as your monitor to max out the games' resolution so you can see the graphics in all its glory while your Apple Wireless Keyboard and mouse (nothing intense, it's more for the graphics) to relax and explore the game after a hard day's work with option to use 3D glasses (the depth/3D will done by the card and software for sure) to make the games even more immersive and thus more relaxing- what hardware and software would you need?
    Thank you.
    Gbu.

    2011 ThunderBolt iMac only accept other ThunderBolt Macs as source.
    The Intensity Extreme http://www.blackmagic-design.com/uk/products/intensity/ might be helpful once it is released.
    For the 2009 and 2010 27" iMacs there is the Kanex XD http://www.kanexlive.com/xd but it is not compatible with ThunderBolt iMacs as Kanex states in their Product FAQs.
    Plus it maxes out with 720p input with the iMacs.
    Stefan

  • HT5085 so one song can be only up to 200mb , most of my music consists of continuous mixes that are up to 2 hrs long  I'm assuming none of those would be available on cloud  how can I make them available without using phone memory

    does a two hr continuous mix count as one song and will it even be uploaded to icloud?

    does a two hr continuous mix count as one song and will it even be uploaded to icloud?

  • Question on Required Attribute Behavior

    I am having difficulty understanding what the correct behavior of a "required attribute" should be. Im using 9ifs.
    Using the Java API, I created a new content type derived from DOCUMENT, named it CLASSIFIED_DOCUMENT, associated a new file extension "cla" with it, and created a new required attribute called "Security_Level". From ifsmgr, I can see the new type and see that Security_Level
    is a required attribute. When I upload a file with the "cla" extension from the Viewer, it is entered into the database and correctly associated with the CLASSIFIED_DOCUMENT content type. So far so good.
    However, I have not supplied a value for the required attribute, and nothing complains that the Security_Level field is null. It seems to me that IFS should not allow the item to be entered into the database without this required attribute having a value, or perhaps a dialog box should pop up which forces one to enter values for required attributes before the instance of CLASSIFIED_DOCUMENT is entered into the database. Lacking that, an invalid instance is silently slipped into the DB...
    So on to my specific questions:
    How does one enter required attribute data when uploading using the Viewer?
    Shouldn't IFS be complaining when a CLASSIFIED_DOCUMENT is uploaded without Security_Level being set?
    Will required attribute constraints also be "ignored" when performing a programmatic file creation
    (similar to the "Hello World" example) of an instance of CLASSIFIED_DOCUMENT?
    Do I need to do other things when creating a required attribute using Java that will actually cause the attribute to be, well, REQUIRED?
    Is there a RTFM answer to this, and if so, can some kind soul please point me to the correct FM to R? I have the Developer's Guide and the IFS javadocs. The Guide has good examples but is woefully inadequate if you want to do something different from the examples. The jovadocs are of course good reference material but have nothing in the way of "application notes". I have looked at the
    example code and it suffers from the same shortfall as the Guide: if you want to do something different from what is in the example code, you're on your own!
    Is there a document that I should be reading but have missed?
    Thank you,
    Jeff Rininger

    Hi Jeff -
    Thanks for the feedback.
    REQUIRED attributes are exactly what you describe: they are a way to ensure an attribute has a non-null value when a new object is created or when that attribute is updated in an existing object.
    From an API perspective, in creating a new object, that value can be supplied in three ways: explicitly by setting an attribute in the LibraryObjectDefinition, through a VALUEDEFAULT on the attribute, or (advanced topic) through custom server extensibility code.
    One thing to keep in mind: REQUIRED checks are (intentionally) not performed in administration mode. You might want to try creating an object as a non-admin user. That should cause the check to be performed.
    David Pitfield
    Oracle

  • How can I reference the parent, without using _parent or _root?

    I cannot use the following in my ActionScript due to conflicts with the host application:
    _level0
    _root
    _parent references
    On a pop-up box I have a close button with an absolute reference:
    closeBtn.onRelease = function  () {
    unloadMovie("_level0.Page_1.holderBox");
    Is there another way to make this work without using _level0 or _parent?
    I've read that it is possible to use a global variable on the main timeline and ref that, but cannot get that to work.

    You may need to try a few different approaches (that's what I would be doing), but you may be able to just target the holder directly using the global variable, and not have to include the Page_1 reference with it....
    //frame 1:
    _global.mcVar = null;
    // later on...
    _level0.Page_1.imgholder.image0_0.boxS.onRelease = function() {
    createEmptyMovieClip("holderBox",getNextHighestDepth());
    holderBox.attachMovie("boxSound", "boxSound_mc", 0);
    _global.mcVar = holderBox;
    If that doesn't work, try moving it to after wherever holderBox gets added into Page_1 and include Page_1 in the assignment like I showed earlier.

  • How to create a domain without using the root user in Sunone Server

    Hi,
    I am having one requirement to create a domain without using root user in sunone application server 8.1. Does any body know the solution?
    Message was edited by:
    SPBP

    Hi,
    If you are using file-based installation, you can install as non-root user and create domains as usual. You can use asadmin command available at <AS_INSTALL>/bin to do this.
    ex: ./asadmin create-domain domaindir /tmp/justfortest adminport 4850 --adminuser admin domain_nonroot_test
    Did you face any problem doing this in non-root. Unless you have write permissions in domaindir, you won't be facing any problem.
    Hope this clarifies your question.
    Thanks,
    -Balaji.

  • How to Freeze Table/Column Header "without using additional scrollbars" ?

    hi people,
    I am hoping someone can help me here. I have a large table and would like to freeze the first row. Scrolling down the table "_*using the existing scrollbars*_" in the browser while ensuring the header rows are still visible (like Excel when you freeze panes). If you scroll to the right the header rows should stay frozen and not follow.
    I know there are other threads which talk about freezing table/column header, but my requirement is to have it "without using additional scrollbar".
    Thanks in advance,
    RAKESH

    Hi,
    there is no default key for this. You will have to code your own JavaScript for this. Also, I am not sure you want the column to be selected but a field in the column for the row you are in - correct ?
    Frank

  • Required Attribute For mx:TextInput

    Hi All,
    I need to set required="true" attribute to
    <mx:TextInput/> .
    But as per the docs, there is no such attribute for this
    component.
    The <mx:FormItem/> has the required Attribute, but i am
    not using the Forms , but a simple TextInput and it should be
    entered mandatory by the User.
    Any Idea's how to set required="true" for
    <mx:TextInput/>
    Regards,
    Madan N

    Hi ,
    below is the code to display the TextInput
    <mx:GridRow>
    <mx:GridItem width="110"><mx:Label text="Name"
    width="100" fontWeight="bold"/></mx:GridItem>
    <mx:GridItem><mx:TextInput width="100" id="name"
    tabIndex="1"/></mx:GridItem>
    <mx:GridItem width="110"><mx:Label text="SurName"
    width="100" fontWeight="bold"/></mx:GridItem>
    <mx:GridItem><mx:TextInput width="100" id="surname"
    tabIndex="2"/></mx:GridItem>
    </mx:GridRow>
    I need to show up the TextInputs as required and a tooltip
    saying this field is required as that showsup when using
    <mx:FormItem/>
    Madan N

  • Application of Patch without using Adpatch

    Hi ,
    I have a requirement to apply the patch without using adpatch utility and i have c,d,g driver files(no 'u' drivers).
    is this possible by simply executing the the driver files under command prompt??
    i am attching the contents one of the files from each type.
    c driver
    begin aru bug_13101
    characterset us7ascii
    begin bug xxz 13101
    begin prereqs
    end prereqs
    begin actions
    # creating tables,synonyms,sequences
    copy xxz patch/115/sql jifxxzct.sql 115.4
    copy xxz patch/115/sql xxzdbgsq.sql 115.0
    end actions
    end bug xxz 13101
    end aru bug_13101
    d driver
    begin aru bug_13101
    compatible release 11.5.0
    compatible parallel always
    begin bug xxz 13101
    begin prereqs
    end prereqs
    begin actions
    # creating tables,synonyms,sequences
    sql xxz patch/115/sql jifxxzct.sql none none none sqlplus_single &phase=tab
    sql xxz patch/115/sql xxzdbgsq.sql none none none sqlplus_single &phase=seq
    end actions
    end bug xxz 13101
    end aru bug_13101
    g driver
    begin aru bug_14201
    characterset us7ascii
    begin bug xxz 14201
    begin actions
    # Library
    genfpll xxz resource JIFCUSTO.pll
    end actions
    end bug xxz 14201
    end aru bug_14201
    regards,
    Rakesh

    I want to know whether we can apply the patch using c/d/g driver without using adpatch.The c/d/g drivers are just like the u driver and should be applied using adpatch only (cannot be applied manually or from the command prompt!).
    If there are any additional manual steps mentioned in the patch README file, then you have to implement it too.
    Thanks,
    Hussein

  • Need Dynamic attributes for XI adapter to use in Dynamic Configuration ..!!

    Hi Friends,
    We are planning send message to different receivers through XI adapter by using Dynamic Configuration.
    Can anyone please tell me what are the dynamic attributes used for XI adapter.
    In my scenario, I want to pass the Service Number and Path prefix of XI adpater dynamically by using sender ID from Idoc payload.
    I know how to use the dynamic configuration UDF in message mapping. But I don't know the dynamic attributes which we can pass to Service Number and Path prefix of XI adpater.
    Kindly suggest ..
    Thanks
    Deepthi.

    Hi Sourabh,
    >> You need to set these attributes explicitly in the adapter configuration..
    Can you please elaborate on this like how to implement this? Do we need to use any module configuration in the adapter?
    We will use XI adapter only while sending the data directly from IE without using any feautures of AE (like adapters, modules etc). It is like directly sending data from ABAP stack without using J2EE stack. That is the reason we can't use any Modules in XI adpater and it is in disabled by default.
    When I checked in SXMB_MONI.. as you said details are found in
    - <SAP:Attribute>
      <SAP:Name>host</SAP:Name>
      <SAP:Value>10.190.25.16</SAP:Value>
      </SAP:Attribute>
    - <SAP:Attribute>
      <SAP:Name>httpDestination</SAP:Name>
      <SAP:Value />
      </SAP:Attribute>
    - <SAP:Attribute>
      <SAP:Name>path</SAP:Name>
      <SAP:Value>/rcvA/receiver</SAP:Value>
      </SAP:Attribute>
    - <SAP:Attribute>
      <SAP:Name>port</SAP:Name>
      <SAP:Value>8210</SAP:Value>
      </SAP:Attribute>
    XI adapter uses mainly three parameters Host, Port and Path.
    I want to pass any two of these values dynamically to achieve my solution. Can you please suggest your solution how we can implement it.
    -Deepthi.

Maybe you are looking for

  • How do i copy and paste selected rows from numbers to another numbers worksheet

    I have asked this question before, but it sounds as if numbers did not have the update at that time.  I have pasted a spreadsheet from excel into numbers.  I would now like to take selected rows, for example, row 5, row 9, row 22, row 27, etc, copy t

  • Operating System Authentication in Windows

    Hi gururs, How to turn on Operating System Authentication in NQSConfig.ini file? I could not find it in the documentation. Thanks Laszlo

  • How do i convert it to beans?

    <html> <%@ page import="java.sql.*"%> <head> <title>You can access the following mobile functions</title> </head> <body> <table border="1" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" width="100%"> <tr> <td width="100%"> <p align="center"><b

  • Business Account shipping addresses for international partners

    I have a business paypal account, and I upgraded it from my personal account so that I could use it for my business now. I'm a general partner and the company's US agent. However, my other partner lives in Turkey and so he obviously has an address in

  • Combine two  adobe forms

    Hi Gurus, Can we combine  two adobe forms (non interactive) if they have same interface? Please let me know if you have a solution Thanks in advance