How can we make disable a Field of a FORM at run-time?

Hi to everybody,
I want to know that how can we make a filed DISABLE at runtime <whenever we run a FORM>.
I know about SET-ITEM-INSTANCE-PROPERTY but don't know how to use it,
please make it clear.
I will be gratefull to all of you
Thanking you in advance.

There's no property values for enabled or disabled in SET_ITEM_INSTANCE_PROPERTY.
Instead what you can do is set INSERT_ALLOWED, UPDATE_ALLOWED and NAVIGABLE to FALSE which basically what a disabled item behaves like.
Regards,
Tony

Similar Messages

  • How can i make PO number field as a mandatery in sales order

    Hi Friends,
    can any one help me for the following requirement
    how can i make PO number field as a mandatery in sales order
    Thanks
    Nitchel

    Hi
    You have to include the "Purchase Order" field in the Incompletion list.
    Purchase order field is a Header data in the Sales order.
    So you have to create an Incompletion Procedure for Sales document Header.
    There include the field "Purchase order" field, assign the "Status group" to it.
    You may activate the error/warning check box.
    Assign the Incompletion Procedure to your Sales document type.
    Go to Sales document type VOV8 and activate the "Incompletion message" field so that without entering PO number you can not proceed.
    Now whenever you will create an order (using the order type where you have assigned the procedure), you have to fill up the PO field or else you can proceed.

  • How can I map the composite_dn name with a composite in run time

    Hi All,
    I want to craete a report on number of total business and system faults with the help of Information Publisher in OEM 12c Cloud Control. I am fetching data from the table composite_instance_fault present in SOAINFRA schema. Below os my SQL statement:-
    select error_category,count(error_category) from prefix_SOAINFRA.composite_instance_fault where composite_dn=??EMIP_BIND_TARGET_GUID?? group by error_category
    Now I want to know that how can I map the composite_dn name with a composite in run time. When we fetch data from the repository we used to map target in rumtime by using ??EMIP_BIND_TARGET_GUID?? but here as I am not fetching data from repository, how can I map target in run time.
    On executing the above SQL statement its returing an empty table without any data.
    Please guide!!
    Thanks in Advance!!

    Hi,
    try something like this.
    Mike
    Attachments:
    Unbenannt 5_LV80.vi ‏12 KB

  • How can i make a search field in my app using applescript?

    I am making an app and i would like to learn how can i add a search field, that will search the content of a window. BTW i am using xcode and applescript

    Like pretty much all of the Cocoa documentation you will need to convert from Objective-C, but take a look at the Search Fields documentation.

  • How can I validate a date field in Portal Forms

    I have a date field in portal forms that I want to perform validation on to make sure it's in the proper format before being accepted (mm/dd/yyyy). How can I validate against that field?

    Hi Ben,
    I took the time to test and revise. This is code that will validate a date entry (format MM/DD/YYYY). Just paste this in the "Before the start of the form..." window of the Additional PL/SQL code section of the form. Then add validateDate(); into the onBlur event window of the field in question. Replace the CYCLE_END_DATE with the field name in question.
    HTP.P('
    <SCRIPT LANGUAGE=javascript>
    function validateDate() {
    var ddObj;
    var mmObj;
    var yyObj;
    var day;
    var mon;
    var year;
    var field_val;
    var field_name;
    for (var j=0; j < document.forms[0].elements.length; j++) {
    field_name = document.forms[0].elements[j].name;
    field_val = document.forms[0].elements[j].value;
    if (field_name.substring(field_name.indexOf(''DEFAULT.'') + 8, field_name.lastIndexOf(''.01'')) == ''CYCLE_END_DATE'') {
    var delimPos = field_val.search(/\//i);
    if (delimPos < 0)
    alert(''Invalid date entry! Please enter in MM/DD/YYYY format. '' +
    ''e.g, Dec 21, 2003 would be entered as 12/21/2003'');
    else
    if (field_val.length != 10)
    alert(''Invalid date entry! Please Please enter in MM/DD/YYYY format. '' +
    ''e.g, Jan 1, 2003 would be entered as 01/01/2003'');
    else {
    month = field_val.substring(0, field_val.indexOf(''/''));
    day = field_val.substring(field_val.indexOf(''/'') + 1, field_val.lastIndexOf(''/''));
    year = field_val.substring(field_val.lastIndexOf(''/'') + 1, 10);
    /* Need to subtract 1 from value because in Javascript, January begins with 0
    and ends with 11 for December */
    month = month - 1;
    ddObj = new Date(year, month, day);
    mmObj = new Date(year, month, day);
    yyObj = new Date(year, month, day);
    if (ddObj.getDate(ddObj.setDate(day)) != day)
    alert(''Invalid day!'');
    if (mmObj.getMonth(mmObj.setMonth(month)) != month)
    alert(''Invalid month!'');
    if (mmObj.getYear(mmObj.setYear(year)) != year)
    alert(''Invalid year!'');
    </SCRIPT>
    ');

  • How can I make Business area field optional in MIRO

    Hi,
    whyle posting invoice the system is asking business area as required input.
    I don't want to put business area.
    Is there any way to avoid this ?
    I don't want to change, spro settings.
    How can I avoid business area in MIRO?
    waiting for your input..
    Thank you,
    Marella.

    check the GL accounts field status variant attached to the Invoice posting.
    also check in PO whether u have the BA field filled up. in case u r using BA accounting then that value shld be there..... as u said u dont want to put BA as field in miro , that means u r not using BA thing... so u can always maintain all the FSV of GL for BA as optional/supressed...

  • How can i make a text field expand

    I have over 7 paragraphs that im inserting into atext field (even if i had type)
    The expand textbox merely keeps going horizontally not vertically. How can i stop it going horizontally and go down the page and on the next page if it needs it.
    PLEASE PLEASE

    Hi,
    Try by checking expand to fit in height(it is present under layout palette of designer)and checl "allow multiple lines" under object palette and save the form as "dynamic pdf" and check.
    Regards,
    Sangeetha.

  • How can I make the comments field appear when the operator is debugging a test?

    When a test is being written the comments field is being utilized for information relating to what the test is doing and how to solve certain problems that arise. It is basically a quick place for the technician to look at when they are attempting to debug a board. However it appears when you view the sequence files these are off to the right side of the screen but when running the debug engine and the technician sets a break point then these comments are no longer visible to the user off to the right of the screen. Is there any way to have it include the comment in the data displayed when tracing through a test step by step. The technician can double click on each step but it would be alot mor
    e user friendly and timly if these could be displayed just to the right of the execution flow column.

    Hello John,
    I assume you are talking about the sequence editor. Unfortunately, there is currently no way to view the comments associated with a step inside of the execution display window (i.e during run-time). If you are using the operator interface, then you may extract the comment associated with a step and post a custom UI message that contains this information. The operator interface can then be modified to respond to this UIMessage and update its display accordingly.
    To post a UIMessage with this data, you must first obtain a PropertyObject reference to the step you are trying to extract the comment from. Then use the "Comment" property of the PropertyObject class to obtain the comment value.
    Unfortunately, the Sequence Editor discards all custo
    m UIMessages, and you will have no way of viewing the comment using the above method.
    Hope this helps.

  • How can I make a Required Field give a text window if not completed?

    My question is simple but I cannot find any way to do this. I need to set a field on a form I created to do 1 of 2 things:
    1. Not allow you to save the Document until the required text box has information added to it
    and or
    2. Have a window's style prompt or text box appear and say "THIS FIELD NEEDS TO BE COMPLETED BEFOR CONTINUING"
    I have been told this isn’t hard to do but I have poured many man hours into this personally and have come to the conclusion I am possibly border line retarded or just do not comprehend how to complete this task. If this needs to be done in Java Script I would need a very good walk through or at least pointed to an idiot proof tutorial that I can read and complete this task.
    Any and all help would be appreciated.
    Thank You,
    PTM

    thanks for the help again,
    its still not working, I have the following:
    insert is set to yes
    update is set to NO
    update if null only is set to NO
    Lock record is set to NO.
    I tried setting insert to No, but when the user reaches the form its says "field is protected against update."
    what I want ?
    when the user reaches the form, the user has to perform a Ctrl - L to populate the list of values.
    After the user selects from the list of values, I want the field to be un-editable in the text field.
    thanks,

  • How can we make one view field value to be copied to other field of the the

    Hi   
       I am new  in CRM2007 I have enhanced sap component & enhanced SAP View but I wanted the field value of the enhanced view to be mapped to the field value of the same view which is added from EEWB
    Pls tell me if the added new field can be made as Dropdown list box without fixed values & Design Layer customizing I mean to say through coding can we made the input field as Dropdown
    Appreciate any help in advance
    Thanks
    Neel

    Hi,
    You can write your own ligic in GET_V_<FIELD> method. Select the values which needs to be displayed in the drop down list based on your own condition. Some sample code is given below:
    METHOD get_v_zzverksomr.
      DATA: lt_ddlb           TYPE bsp_wd_dropdown_table,
              ls_ddlb           TYPE bsp_wd_dropdown_line,
              lv_display_only   TYPE string,
              gr_ddlb_verksomr  type ref to CL_CRM_UIU_DDLB,
              ls_verksomr_values  TYPE LINE OF vrm_values.
        SELECT verksomr verksomrtxt FROM zkb_verks
           INTO TABLE lt_ddlb.
        IF sy-subrc EQ 0.
          INSERT INITIAL LINE INTO lt_ddlb INDEX 1.
        ENDIF.
      IF gr_ddlb_verksomr IS NOT BOUND.
        FREE gr_ddlb_verksomr.
        CREATE OBJECT gr_ddlb_verksomr
          EXPORTING
            iv_source_type = 'T'.
        LOOP AT gt_verksomr_values INTO ls_verksomr_values.
          ls_ddlb-key   = ls_verksomr_values-key.
          ls_ddlb-value = ls_verksomr_values-text.
          APPEND ls_ddlb TO lt_ddlb.
        ENDLOOP.
        gr_ddlb_verksomr->set_selection_table( it_selection_table = lt_ddlb ).
      ENDIF.
      rv_valuehelp_descriptor = gr_ddlb_verksomr.
    ENDMETHOD.
    Thanks
    Swagatika

  • How can i access remote front panel in RT with LabVIEW run time engine in client PC

    Hi to all,
    I have developed the RT application with cRIO 9075 integrated chassis. And i have access its remote front panel in client PC. Now i want to access the remote panel in the client PC without having LabVIEW runtime engine. If i connect the remote panel with that client, it shows only the vi border. i doesn't downloads the  front panel.
    How Can i access its remote front panel without LabVIEW runtime engine in the client PC?

    You cannot view a remote front panel without the LabVIEW runtime - the LabVIEW runtime is what makes the remote front panel possible.  What you will want to do instead is likely create a Web Service that you can access from a remote PC without requiring the LabVIEW runtime.  However, this will require you to develop a web-based HTML or similar UI to interact with the VIs running on your system - NI hasn't yet created a way to export a LabVIEW front panel as an HTML'ish page.  
    -Danny

  • How can i set dynamic properties in HTTP Binding adapter  at run time

    Hi,
    I am trying to put dynamic properties in HTTP Binding adapter at run time. I am able to Set endpointURI, UserName and Password dynamically using below code.
    Is it possible to set Version , Retry Count, timeout, authentication type at run time.
    below is code for setting endpointURI, UserName and Password dynamically.
    <invoke name="HttpInvoke" bpelx:invokeAsDetail="no"
    partnerLink="SACS_Http_Adapter"
    portType="ns1:Request_Response_ptt" operation="Request-Response"
    inputVariable="HttpInvoke_Request-Response_InputVariable"
    outputVariable="HttpInvoke_Request-Response_OutputVariable">
    <bpelx:toProperties>
    <bpelx:toProperty name="endpointURI" variable="inputVariable"
    part="payload" query="@endpoint"/>
    <bpelx:toProperty name="javax.xml.ws.security.auth.username"
    variable="inputVariable" part="payload"
    query="@username"/>
    <bpelx:toProperty name="javax.xml.ws.security.auth.password"
    variable="inputVariable" part="payload"
    query="@password"/>
    </bpelx:toProperties>
    </invoke>
    Thanks,
    Siva
    Edited by: 929920 on Apr 25, 2012 7:45 AM

    Hi Bastain,
    Assuming your using the Batch Process Model, you can programatically insert a new SN into the correct parameter in the postUUT callback sequence.
    This sequence has access to the UUT.SerialNumber parameter so you can use a File Global to pass the SN from the main sequence to the postUUT callback. 
    Here is an example of what I mean. 
    Adam
    Attachments:
    set SN within Main Sequence.seq ‏80 KB

  • How can i make recon account field editable

    Hi,
    Can you help how to make the recon account field of a customer editable?
    Thank you.
    Rachelle

    Hi Rachel,
    Use T.code OB20.double click on create customer,double clcik on company code data,double click on account management,make the reconciliation account as optional entry and save.
    Make ur changes and if u want to restore the changes,follow the same procedure again.
    Thanks
    Aravind

  • How can I make the newest version of iTunes for Windows run faster?

    I know I'm not the only one when I say that iTunes is by far one of the slowest programs on my computer.  I'm running Windows 7 and running the most recent version of iTunes for Windows.  Does anyone have some tips to make it run faster and smoother?  I have Genius and Ping disabled, but I'm not quite sure what else I can do.

    The newest version of iTunes should install if you are runnig 10.7.
    Do you get any error messages?
    Allan

  • How can I make a button on the PDF form invisible?

    Hi all.
    I added a submit button to my PDF form but I do not want it to print on the form or appear when the form is e-mailed?
    Is there a way to make it invisible before I print or e-mail the document?
    If this is not possible, is there a way to add the submit button along with the javascript that needs to run when the PDF is opened?
    Thanks!

    Set the button's properties to "Visible but doesn't print"

Maybe you are looking for