How to set an mandatory field to non-mandatory.

Hi,
In my form, I will need to set a field to mandatory in certian condition and then set it to not mandatory under different condition.
I know how to set it to mandatory: field.mandatory = "error"
Can someone let me know how to reset the field to not mandatory.
Thanks,
Laura

You can try:
     field.mandatory = "disabled";
Thanks
Srini

Similar Messages

  • How to set the data fields column wide at sqlplus

    Dear Sir/Madam
    I would like to know how to set the data fields column wide at sqlplus
    Thanks
    Francis

    see
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/ch6.htm#sthref1131
    and the FORMAT clause of the COLUMN command in
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/ch12013.htm#BACHCABF

  • How to set Full Crawl Schedule as None via Powershell command

    How to set Full Crawl Schedule as None via Powershell command

    $ssa = "Search Service Application"
    $contentSource = Get-SPEnterpriseSearchCrawlContentSource -SearchApplication $ssa -Identity "Local SharePoint Sites"
    $contentSource.IncrementalCrawlSchedule = $null
    $contentSource.FullCrawlSchedule = $null
    $contentSource.Update()
    Basically you set Schedule to Null.
    Amit

  • How to Set Position Cursor Option to Non key fields in Table Maintenance .

    Hi,
    I have created a Ztable and i am using table maintenance for that table. In TMG ,by default  we have position cursor option to key fields only . User wants that position cursor option for non key fields also. Please help me out of this issue .
    How to provide Position Cursor option to Non key fields.
    Thanks & Regards,
    Prasad.

    Hi Nabheet,
    I tried using TYPE S DISPLAY LIKE E and am setting vim_abort_saving as X and sy-subrc as 4. However, this is also not enabling the fields. In this case, the first 2 fields - key fields are getting enabled but not the required ones. The above snapshot is for the same.
    lv_date1 = table1-date1.
       lv_date2 = table1-date2.
       lv_diff = lv_date2 - lv_date1.
       IF lv_diff LT 0.
         CLEAR: lv_err_msg.
         lv_err_msg = text-005.
         MESSAGE lv_err_msg TYPE 'S' DISPLAY LIKE  lc_e.
         vim_abort_saving = lc_x.
         sy-subrc = 4.

  • How to set ApplIndentityData header field in JMS adapter

    Hi Guys ,
        I have one requirement for update the field in SAP JMS header. I am using transport protocol for IBM Websphere MQ in JMS adapter.
    While sending data to IBM Websphere MQ Queue via JMS Adapter, need to set the field called ApplIndentityData with the appropriate value which is populate to a MQHRF2 header of a message.
    So, regarding that where will do it? Means JMS receiver adapter or IBM MQ level. If JMS receiver adapter, I think using ASMA, So please guide me how to set this filed value in JMS adapter or share any document you have.
    Thanks & regards
    Vijaykumar S

    Hi RejaSekar,
           I reffered your blog and did the below settings in JMS module and ASMA settings. 
    1) Changed the mode for u201CJMS-Complaintu201D instead of u201CWebsphere MQ(non JMS)u201D
    2) Additional JMS message properties tab created below property name and java type.
           LocalName    --> String
           Partname      -->  String
    3) In module parameter tab added the below module name and key
        AF_Modules/DynamicConfigurationBean   -->  LocalEnterpriseBean  -->  RFH2HEADER
    4) Under parameter Tab
         RFH2HEADER       -->   key.0      -->     insert http://sap.com/XI/System/JMS  DCJMSMessageProperty0
         RFH2HEADER       -->   key.1      -->     insert http://sap.com/XI/System/JMS  DCJMSMessageProperty0
         RFH2HEADER      -->  value.0    -->    LocalName
         RFH2HEADER      -->  value.1    -->    PartnerName
    Kindly check the above settings whether this is correct or wrong. If anything wrong please let me know what we need to change JMS receiver adapter.
    Actually my requirement is need to set these parameters and set the value to that parameters and pass in to /usr folder of a WebsphereMQ message.
    Kindly check and help me out.
    Thanks & regards
    Vijayakumar S

  • [AS][INDCC] How to set Color Conversion field to No Color Conversion when creating PDF Export preset

    How can i set Color Conversion field in Export to PDF dialog to No Color Conversion when creating PDF Export preset? i have done a bit of searching and have found where it has been recommended to set effective pdf destination profile to use no profile but it doesn't seem to be producting the expected results.

    Yes, it seems that i had to make the change after creation, not while creating the preset. thank you.
    tell application "Adobe InDesign CC"
         set newPreset to make new PDF export preset with properties ¬
              {name:"preset name", standards compliance:none, acrobat compatibility:acrobat 7}
         tell newPreset to set PDF color space to unchanged color space
    end tell

  • HOW TO SET A RAW FIELD

    Hi,
    I'd like to know how I can set a RAW field with the correspondent '10' value (for '10' i mean the byte value of '00000101').
    Is there a manner to do this at low level, without cast ?
    Thanks and best regards,
    Neil

    The string 00000101 generally represents the binary value of 5 so I am unsure of exactly what you want but maybe the following will help:
    UT1 > set echo on
    UT1 > col dumped format a30
    UT1 > drop table example;
    Table dropped.
    UT1 > create table example (fld1 varchar2(10), fld2 raw(02));
    Table created.
    UT1 > insert into example values ('Row 1',hextoraw('05'));
    1 row created.
    UT1 > insert into example values ('Row 2',hextoraw('0A'));
    1 row created.
    UT1 > select fld1, fld2, dump(fld2,16) as dumped from example;
    FLD1 FLD2 DUMPED
    Row 1 05 Typ=23 Len=1: 5
    Row 2 0A Typ=23 Len=1: a
    Being that on a big endian machine the 8 bits of a byte are 0 - 7 numbered left to right and on a little endian machine the bits are 0 - 7 right to left this may be where the confusion in your post is coming from. On my system the Oracle functions appear to follow big endian set and display patterns but I suspect that the physical byte settings match. You would need to test this by dumping the raw data on the target platform. The only difference this makes is the character value you would choose to get the bit pattern you want.
    The dbms_raw package provides varchar2 to raw and back conversion functions.
    HTH -- Mark D Powell --

  • How to set a payload field value only once for multiple instances selected?

    The user needs to set a payload field value and then he can approve the task so the task can continue through the process, that's fine when the user selects one instance and sets the value in the task details section and then clicks the approve button, but how do we achieve the same behavior in a multiple way?, I mean the user can select multiple tasks in the workspace (in this case the details task page is not available and instead the following label appear "Multiple tasks selected") then if the user clicks the Actions drop down -> APPROVE he only gets the message "your request was processed successfully", so how can the user modify the payload field value only once for all the selected tasks so when he clicks APPROVE the value is populated in all the instances selected.
    Thanks,
    Carlos.

    In the action which displays the edit page just set the form idx value before displaying the jsp.

  • How to set the 'Lot' field in Batch Pending (Product) Lots as 'Optional'

    We are now Upgrading FROM 11.5.10.2 To r12.1.3.
    The 'Lot' field under Batch material Details -> Pending Product Lots is mandatory, Which is very bad for us.
    Our Current (11i) business process for creating Product lots, is to 1st allocate the 'Lot', and later on allocate and complete the 'Sublots' within this lot.
    The equivalent process in r12 should be: 1st allocate the 'Parent Lot', and later on allocate and complete the 'lots' within this Parent lot.
    Question: Is there any way to set the 'Lot' field to be optional?
    Thanks,
    Eran.

    Hi
    No this is not possible, since Parent lot is a subset of Lot in R12. Once you choose your item as LOT, then it is not possible to make as Optional.
    Try to raise an SR for this, Oracle may provide some workaround for the same.
    Rgds
    Raj
    NTTData India

  • How to set the expires field to stop caching of pages

    I want to set the expires fields of the HTML data on pages delivered by weblogic, so caching servers(ie ISA) and clients dont cache the my pages. How do I do this?
    Thanks for any help

    I guess that's the NI Domain (NI Security Login) user name. Check out Tools->Security->Login in LV main menu.

  • How to set a BCS field in document library via PowerShell?

    Hi,
    In my  doclib there's a BCS field named "CUSTOMERS3". When I set it as:
    $item["CUSTOMERS3"]="BADO"
    I see the text "BADO" in "View All Properties". But if I click on "Edit Item" button in the toolbar I see the proper picker empty. How should I set my BCS field correctly via PS?

    Hi,
    According to your post, a problem occurred when you set an External Content Type field using PowerShell.
    Here is a similar thread for you to take a look at:
    Updating an “external content type” field on an SPList using PowerShell
    http://stackoverflow.com/questions/8402655/updating-an-external-content-type-field-on-an-splist-using-powershell
    Best Regards
    Dennis Guo
    TechNet Community Support

  • How to set a form field focus

    Is there a simple way to set a form field focus... so basically on load the field focus is set to a specific field?  I know how to write it in javascript but was wondering if there is a simple way to basically select the field and click a button or two and get the same result?  thanks.

    The script for that is extremely small and very simple.
    In all hosety, it would probably take longer to edit it through the DW interface than by hand.
    Add this after your form and change the bold areas to the name of the form and the name of the input you want to have focus on...
    <script type="text/javascript" language="JavaScript">
    document.forms['myform'].elements['mytextfield'].focus();
    </script>
    Those two things are the only items that will ever change.

  • How to set a string field with people picker control group

    Hi Guys
    I have a problem with a form list, when I need to set a string field with de content of people picker control that have more than one "user".
    Is there any way to put in string a list of user like the people picker control shows in a form?
    The really problem is I don't know how to read an array of user in a formula rule.
    any example or idea should be appreciated.
    tnks.

    Hi ,
    Please try out in following way :
            /// <summary>
            /// Set value to people picket control
            /// </summary>
            /// <param name="key"></param>
            /// <param name="ppl"></param>
            /// <param name="item"></param>
            private void SetDatatoPeopleEditor(string key, PeopleEditor ppl, SPListItem item)
                try
                    if (item[key] != null)
                        string users = string.Empty;
                        SPFieldUserValueCollection userCol = new SPFieldUserValueCollection(web, item[item.Fields.GetField(key).Id].ToString());
                        foreach (SPFieldUserValue usrItm in userCol)
                            users += usrItm.User.ToString() + ",";
                        ppl.CommaSeparatedAccounts = users.Remove(users.LastIndexOf(","), 1);
                catch (Exception ex)
                    lblErrorMessage.Text = ex.Message;
    private SPUser GetAccountName(PeopleEditor accountPE)
                SPUser user = null;
                string strAccountName = String.Empty;
                try
                    for (int i = 0; i < accountPE.ResolvedEntities.Count; i++)
                        PickerEntity objEntity = (PickerEntity)accountPE.ResolvedEntities[i];
                        user = web.AllUsers[objEntity.Key];
                    return user;
                catch (Exception ex)
                return user;
    It works for me .

  • How to set focus on field having data type other than character(eg. NUMC)

    Hello all,
    I have developed one screen having table control inside. In table control suppose if numeric type field is blank(eg. Employee number of data type NUMC), system should throw error message and should put cursor focus on that perticular filed. In the same table control for fields of data type 'CHAR',  I have done this using 'SET CURSOR FIELD' .
    Please, suggest me how to set cursor focus on the fileds of data type other that character(eg. NUMC)

    Have you tried it?  SET CURSOR FIELD ... works fine for type 'N' fields in a table control.  The restriction is 'character-type' and 'flat'.  Type 'N' (or NUMC-like) fields are both.

  • How to set a key field in a local provider for BW workspace

    Hi Experts,
    I've created a local provider through BOBJ analysis for excel / Workspace designer in a BW workspace. However, all the dimensions by default are not having the key field enabled and I'm not able to enable the key field through BW workspace. Also I see the Fact Index Without Key is enabled by default in technical settings, which is not allowing me to select "Fact Index with Key" either. When I go to edit mode, it says "Analytic Index XXX can only be changed in workspace designer". I even tried to go into workspace designer and by selecting the necessary local provider, I coudn't find an option under Local Provider->Reload Provider->Reload (With Changes)->Choose File->Edit Columns to enable the key field(s) for the dimensions.
    Can you please help to locate how to enable the key field for dimensions in local provider.
    Thank you in advance.
    Regards,
    Karthik

    There's nothing to solve. If Reader (XI only) is used only PDF files can be selected. This is how it's supposed to work (although I agree it's silly and should be changed).

Maybe you are looking for

  • Scheduling Agreement with Delivery Orders

    Hi, When i create (LZM)scheduling agreement(Qty 10) with Delivery orders, when i create deklivery schedule ie Date                Qty 25.10.2008      1 26.10.2008      1 27.10.2008      1 in MD04 for that particular material i can see only requiremen

  • On/off Button and brightness buttons don't work in the Apple Cinema Display

    I write you because I bought a new apple cinema display 20" a month ago and I have problems with the on and off button and the brightness buttons. Thew work sometimes. I think that te problem is windows XP but I am not sure. My graphics card is a ATI

  • Resume Download - Safari

    Hello, I'm using Safari 2.0.4 (419.3) and I'm wondering if it's possible for the download manager within Safari to resume downloads without completely restarting them. What has been happening recently during large file transfers (800MB for a game dem

  • 10.3.9 has been rock solid so why update to 10.4.6

    Recently have been trouble shoting a relatives mac mini with 10.4.6 and have not been very impressed with Tiger.(mini seemed to struggle with 10.4.6 on board) Wigets were fun to play around with but did not seem that essential. The improved spot ligh

  • BIEE Basic Installation

    Does basic installion of BIEE allow you to connect to Oracle database without going through odbc?