BDC Recording - Make a field required

Dear Experts,
We are using a BDC recording to call MIRO and send it to an agent via workflow using a z-table.
The customer wants the baseline date on this recording grey'ed out and the business area field required.
The baseline date is on the "PAYMENT" tab of MIRO and Business Area on the "DEATILS" tab. 
I have created a screen and transaction variant a year ago and assigned it to the t-code, but now with the BDC calling MIRO for the INVOICE Scanning project, these fields can be overwritten and left out.
How can I do it via BDC?
Transnet Freight Rail
Edited by: Annelize Meyer on Mar 17, 2010 1:39 PM

You could create a on-submit pl/sql validation on 'p2_estim_val'. The validation code will return a failure if the value of p2_estim_val is not specified if the value of p2_reason_to_scap_sell is non-null
The validation code could be something as simple as
if not :p2_reason_to_scap_sell is null and :p2_estim_val is null then
   return 'A value is required for p2_estim_val';
end if;varad

Similar Messages

  • SPEL? make REASON field required if user has changed the value in SALARY

    I have a requirement to make REASON field required if user has changed the value in SALARY field. Is it possible using spel? what are my options?

    Karan,
    You can change the Rendered Property through personalization.
    But in your requirement you need to attach the Spell through personalization & extend the existing CO to set the value of the SPELL based upon the condition.
    Note - Refer this thread http://forums.oracle.com/forums/thread.jspa?threadID=2176729&tstart=0. If you have worked on SSHRParams kindly help the user.
    Regards,
    Gyan

  • How to make a field required in OAFramework

    How to make a field required in OAFramework at runtime?? Please explain in detail if possible.
    Thanks
    Kumar

    Get the handle of the bean using the following Code
    <BeanType> bean = <BeanType>webBean.findIndexedChildRecursive("<Id of bean>");
    if(bean!=null && <condition>)
    bean.setRequired(true);
    }

  • Make a field required in Standard page

    Hi All,
    I have a requirement to make a field required based on some codition.So I cannot personalise with "Personalize Page".I am extending the standard page CO.My code is as below:
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    String orgType=pageContext.getParameter("customerType");
    if("ORGANIZATION".equals(orgType)) {
    OAMessageTextInputBean acccntDesc=(OAMessageTextInputBean) webBean.findChildRecursive("AcctDesc");
    acccntDesc.XXXXX }
    Which method has to be placed instead of XXXXX ,to make that field mandatory.
    Please help me.... its very urgent.
    Akshata

    Hi Akshata
    Try this
    "acccntDesc.setRequired("yes");"
    Regards,
    pavan

  • Correct syntax to make a field required

    what is the correct syntax to make a field required
    i assumed it would be like setReadOnly(true); but its not.
    i searched the forum and got only 1 hit that shows leaf.setRequired(UIConstants.REQUIRED_YES); i tried this it didnt work
    i am doing this.
    OAMessageTextInputBean po = (OAMessageTextInputBean)webBean.findIndexedChildRecursive("PurchaseOrder") ;
    po.setRequired(true);
    couldnt find nothing in the manual neither. wheres the mistake in the example.
    cheers
    Edited by: s-man on Oct 15, 2008 1:55 PM

    i did as suggested multiple ways it runs but when create button on page 1 is hit to go to page 2 i get the error page w/ the same error below the code
    any other suggestions or is a problem sticking out.
    i tried these options
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    OAMessageTextInputBean et = (OAMessageTextInputBean)webBean.findIndexedChildRecursive("EtChoice") ;
    et.setRequired("true");
    Or
    OAMessageTextInputBean et = (OAMessageTextInputBean)webBean.findIndexedChildRecursive("EtChoice") ;
    et.setRequired("yes");
    Or
    OAMessageTextInputBean et = (OAMessageTextInputBean)webBean.findIndexedChildRecursive("EtChoice") ;
    et.setRequired("no");
    Error Page
    Exception Details.
    oracle.apps.fnd.framework.OAException: java.lang.ClassCastException
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:888)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:544)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:244)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:920)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1536)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:866)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:833)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:575)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:244)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:363)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:866)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:833)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:575)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:244)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:330)
         at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2121)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1562)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:463)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:384)
         at OA.jspService(OA.jsp:40)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:209)
         at com.evermind.server.http.GetParametersRequestDispatcher.forward(GetParametersRequestDispatcher.java:189)
         at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:199)
         at OA.jspService(OA.jsp:45)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    java.lang.ClassCastException
         at uaboaf.oracle.apps.xxuab.hr.orghierarchy.webui.manageOrgCO.processRequest(manageOrgCO.java:50)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:518)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:244)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:920)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1536)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:866)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:833)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:575)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:244)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:363)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:866)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:833)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:575)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:244)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:330)
         at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2121)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1562)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:463)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:384)
         at OA.jspService(OA.jsp:40)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:209)
         at com.evermind.server.http.GetParametersRequestDispatcher.forward(GetParametersRequestDispatcher.java:189)
         at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:199)
         at OA.jspService(OA.jsp:45)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    java.lang.ClassCastException
         at uaboaf.oracle.apps.xxuab.hr.orghierarchy.webui.manageOrgCO.processRequest(manageOrgCO.java:50)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:518)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:244)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:920)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1536)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:866)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:833)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:575)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:244)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:363)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:866)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:833)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:575)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:244)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:330)
         at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2121)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1562)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:463)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:384)
         at OA.jspService(OA.jsp:40)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:209)
         at com.evermind.server.http.GetParametersRequestDispatcher.forward(GetParametersRequestDispatcher.java:189)
         at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:199)
         at OA.jspService(OA.jsp:45)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)

  • Make a field required on record creation, read only after that

    Hello,
    Does anyone know of a way to make a pick-list field required on record creation, but read-only after that? The other twist to this is that we need to allow this field to also be read-write for all the integration edits, since this field's value could change in the enterprise database.
    Thanks,
    Neal G.

    Hi !
    I think you can add a validation rule for that. Something like :
    IIf(PRE('&lt;YOURFIELD&gt;') IS NULL, &lt;&gt; '', = PRE('&lt;YOURFIELD&gt;'))
    This means that if the previous value of your field is null (it's a creation), so the value must be different than blank. Else, it must be equal to the previous value, so not modified.
    I didn't tested it, but I let you get back to me if it works... or not !
    You'll just have to add a message saying that this field is required on creation and readonly after...
    Hope this will help, feel free to ask more !
    Max

  • How to make metadata fields required when creating folders

    Hello all....
    Related issue with SR 3-6472229431 and SR 3-6471130611.
    We're using DIS 11.1.6 64-bits (2011_11_29 (rev 9756) 11.1.6.97) in a Windows 7 64-bits workstation (with UCM 11.1.1.5 in a Linux machine). The check-in of images to UCM goes fine.
    I'm trying to make some metadata fields required when creating a folder. These fields are required when making a check-in, but not when creating folders.
    Folders_g is enabled. DesktopTag too.
    EDIT: Patch: 14695303 - WCC 11.1.1.5.0 BUNDLE ( MLR 16 ) NOV 6 2012 applied.
    Is it possible?
    Thanks for all.
    Edited by: fgomes on 22/11/2012 03:24

    After reading your response and rereading the original question a bit closer, the metadata prompting feature does not apply to creating new folders, only content.
    Again, though, I think the focus here is in the wrong place. The metadata applied to a folder is intended to be ultimately applied to the content. You can build global rules that fire on submission of content to check if a field has a value, and throw an error if the value is empty.
    If you expect users to create folders (and actually apply any metadata to the actual folder itself), you will be disappointed. Experience shows that users are not interested in that level of detail when creating content, let alone folders. Letting typical users create folders is a bad idea anyway, as they tend to create the same inefficient folder structures they previously created in file shares within Content Server.
    If you need to tightly control folder attributes, you'll be better served by locking down the ability to create new folders. Otherwise you're looking at some type of customization. Keep in mind that you won't be able to customize the right click behavior of DIS. Any changes to DIS would have to be an enhancement request.

  • Make a field required based on input in another field

    So I have researched the forum to answer the question of how to make certain fields in a form required if a value is entered in another designated field, and not required if no value is entered in the designated field.
    For example:
    There is a field titled QTY_paper, and if a value is entered into QTY_paper, then the field PROGRow1 should become required.
    If no value is entered into QTY_paper, then PROGRow1 is not required.
    I've tried both FormCalc and Javascript, but with no results. In FormCalc I added this script as a mouseExit event on QTY_paper:
    if ($.isNull == 0) then
         //Make the budget field Required
         PROGRow1.validate.nullTest = "error";
    endif
    and then I added this script in FormCalc to the mouseExit event on PROGRow1:
    if ($.isNull == 0) then
    $.validate.nullTest = "disabled"
    endif
    This came almost verbatim from another post on the forum, so I'm thinking I'm missing something obvious here... which isn't too odd as I'm still pretty new at adding the scripts. Please help if you can!

    You'd want to combine both scripts on the first field with an if/else statement. And I'd use the Exit event instead of Mouse Exit (not sure if Mouse Exit handles tabbing in and out of fields).
    The first script should have worked, but with the second script you were asking if PROGRow1 was null, not QTY_paper.
    FormCalc:
    if ($.isNull) then
         PROGRow1.validate.nullTest = "error"
    else
         PROGRow1.validate.nullTest = "disabled"
    endif

  • BDC Recording : Longetxt Text Field Problem

    Hi Experts,
    I was recording a BDC with Transaction PFCG. I want to record the LONGTEXT field in description Tab. but it is not. Can anybody tell me that how I can do it or if there is any FM or BAPI  available to update database table for that LONGTEXT?
    Thanks a lot in advance

    Hi Moni,
    * splie the text into line lengths of 132 or less and keep in internal table and put loop and endloop.
    and call the FM save_text..as given below..
    see the example how to SAve long text in BDC..
    *           Fill header work area
    *           Set Language Name, Text Object and ID
              w_thead-tdspras = t_texts-spart.         "Text language.
              w_thead-tdname = t_kunnr-kunnr.      "Customer Number
              w_thead-tdobject = c_kna1.               "Table Name KNA1
              w_thead-tdid = c_pick.                      "Picking Header ex:-'ZPIK'
    * Call the function to save text to the customer
              CALL FUNCTION 'SAVE_TEXT'
                EXPORTING
                  client          = sy-mandt
                  header          = w_thead
                  savemode_direct = 'X'
                TABLES
                  lines           = t_lines
                EXCEPTIONS
                  id              = 1
                  language        = 2
                  name            = 3
                  object          = 4
                  OTHERS          = 5.
              IF sy-subrc = 0.
            endif.
    Regards,
    Prabhudas

  • How to make a field required

    I'm using Adobe LiveCycle 8.0. I just created my first form. There is a few fields I would like to make required. I already have the TAB order the way I need it to be. Here's what I need to happen: If a user starts filling out the form & does not fill in any information in the client ID field, & they hit the TAb key, I want some kind of error to pop up telling them the client ID field is required. Is this possible? Thanks

    You can put the following JavaScript code into the exit event of the Client ID field:
    if (this.rawValue == '' || this.rawValue == null){
    xfa.host.messageBox("The client ID field is required.");
    Just make sure you have selected JavaScript from the Language drop down and not FormCalc. You can also set the field type as 'User Entered - Required' in the 'Value' tab of the 'Object' Palette and insert a message in the 'Empty Message' box. This will then validate on submitting the form and a red border will appear on that field.

  • Is it possible to make a field required when a "sales stage" is chosen?

    Hi all.
    We use certain sales stages for our opportunites.
    The higher ups would like to make it required to choose a "Reason Lost" when the "Sales Stage" "closed/lost" is picked.
    These fields are picklists currently used by everyone. "Sales Stage" is required currently.
    We cannot pull this from Dynamic Layout because it is a field that is not "Opportunity Type" driven.
    Thanks in advance!!

    yes it is possible. In the sales process detail where u have defined the Sales stage. Drill down on the closed/lost sales stage. In this section u will see a section called "Additional Required Fields"
    you can specify the fields you want to make required for that particular sales stage

  • How to make a field required before printing?

    I need to create PDF forms that include numerous required fields. These forms are Word (2013) documents that are converted to PDF. The problem I'm trying to figure out is it sounds like the "required" field option is only enforced when the form is submitted through a web browser. Is there a way to force the user to complete the required fields before printing the form? If it's not possible through Acrobat XI, any suggestions on easiest way or software needed to accomplish this goal?
    I will be using Acrobat XI Pro, but the users will mostly have Adobe Acrobat Reader.

    For that you need to write custom JavaScript to read the fields, and test the required fields to see if they have been completed or not. For many fields one can compare the value to the defaultValue and others may need some special coding for the specific field.
    It is not possible with JavaScript to prevent printing but one can hide or show fields or modify field properties before the PDF is printed.

  • Make one field required based on another field

    I am trying to set a form up, so that when a check box is marked, then the corresponding date field is required.  I set the script language to Javascript and entered this script: 
    if 
    (this.rawValue == "1") (PROPOSALDATE.mandatory = "error")
    However, I get an error message stating "syntax error near toekn '!' on line 1, column 20."  There is no ! in this script, so I don't know what it is talking about.  What am I doing wrong?

    Hi,
    The script that executes if the statement is true should be inside curly brackets. So the following in the click event of the checkbox should work:
    if (this.rawValue == "1")
         PROPOSALDATE.mandatory = "error";
    else
         PROPOSALDATE.mandatory = "disabled";
    The above is Javascript.
    Hope that helps,
    Niall
    Assure Dynamics

  • Vendor Master (XK02) - Missing Screen fields in BDC recording.

    Hi All,
    I have extended IDOC type cremas03 to add some extended fields (sort1 and sort2) which are not in the standard IDOC.  In the exit ZXVSVU04, I plan on doing a call transaction to XK02 to update the required fields.  In my BDC recording, the two fields are not available, but are available when not in BDC both in change and create.   I have also tried recording FK02 and this behaves the same way. Is there a way of having these fields added so they are available in the BDC session?
    Best regards,
    James.

    Hi
    Really strange ...
    What all comes in the last section of the Web page, when you are using BBPMAINTINT transaction in SRM4.0?
    Look carefully, below the email option, there is an option for FTP as well.
    OR
    Is email option is coming as a drop-down list ?
    Hope this will help.
    Please reward suitable points.
    Regards
    - Atul

  • Form Personalization - Make field required based on LOV selection

    Newbie here.
    I am trying to make a field required based on the selection of the LOV that is next to it. Having a heck of a time with it.
    The form i am working on is the Sub Invenntory form that you get to via Organization Items. We want the subinvnetory field to be manditory when subinv is selected from the LOV in the sources tab.
    here is what i have so far:
    CONDITION
    Trigger Event: WHEN-VALIDATE-RECORD
    Trigger Obj: ITEM_SUBINVENTORIES
    Condition: ${item.item_subinventories.SOURCE_TYPE.value} = 3
    Action
    Type: Property
    Object Type: Item
    Target Object: ITEM_SUBINVENTORIES.SOURCE_SUBINVENTORY
    Property Name: REQUIRED
    Value: TRUE
    The problem seems to be that i can't get the field to be required. It shows up yellow but still allows me to save w/ the field being blank.

    I do not know about the particular form that you are trying to personalize, but whenever I have created a condition, it has usually been in the following syntax:
    :BLOCK_NAME.FIELD_NAME = 'VALUE'
    For example, :MTL_SYSTEM_ITEMS.PRIMARY_UNIT_OF_MEASURE_MIR = 'SEAT'
    Yours seems to be very much different from mine, but then again, I am not technical so I cannot comment intelligently on that aspect.
    May be that is the problem.
    Also, once you get it to work, you might want to also add a condition where the field is turned to un-required when the SOURCE_TYPE is NOT 3.

Maybe you are looking for

  • Problem with FileItem of File Upload?

    Hi Everybody, I wrote a mail program using JSP as the front end and Servlet at the backend and inorder to upload the files from the client machine to the server machine i used the FileItem and DiskFileUpload interfaces... But i am getting a problem .

  • Navigation control only with my custom buttons

    I'm using Captivate 4 and I'd like to create an eLearning course that navigation control goes only through the cutom buttons I create. No auto continue to the next slide, etc. I've deleted the full screen invisible button with continue on it, and I d

  • IMovie 6.0.4 locks up with Mavericks

    When I try to split an audio track, iMovoe 6 locks up. It did not do that in the previous OSX, but does so in Mavericks. I know Apple is not supporting iMovie 6HD, but why is this happening and is there any workaround besides not splitting an audio t

  • I need help with NumberFormat moneyFormat

    Hello again. I modified the code a little. What doesn't work now is formating the total of the shop with just two decimals. It doesn�t show the dollar sign and shows like 14 decimals to the right of the decimal point. I guess I should place NumberFor

  • Debit card problems, help please.

    Okay, so i have authorized my debit card with my ipad, and i no longer want this card connected to it, as I had made a previous post about this and i do not have a selection of "none" option , on my ipad 3G but it has it on my ipad 4