Why validate optional items

Hi,
I have created a form with some items on it. Behind one of those items is a LOV. Selecting of items is as expected. However: when I try to save the record it gives me an error.
I found out that in the PRE-INSERT trigger of the block with the LOV-item, a designer generated check is done if the foreign key exists in the referenced table (CGFK$VALD_FK_ON_INS). Suprisingly it also checks for optional items (which aren't even in the FK, hence why bother to check them). This means that, when an optional item is NULL, the validation check fails since it does something like this:
SELECT L_DEF.ID DEF_ID
FROM DEFINITIONS L_DEF
WHERE P_ITEM = L_DEF.ITEM
AND P_DESCRIPTION = L_DEF.DESCRIPTION
AND P_L_DEF_DEF_ID = L_DEF.ID
Am I doing something wrong???

Harm,
not sure but my suggestion is to ask in the Designer forum or to remove this code. I guess that this must be configurable in Designer but don't know Designer enough to help you here.
Frank

Similar Messages

  • Any existing function to validate an item when other item has been changed?

    Any existing function to validate an item when another item has been changed? Because these 2 fields are related. When one filed is changed, the other one should be blank and let the user to input again. I am using oracle custom.pll library.
    Any ideas?
    Amy

    Hi Vikram,
    Thanks for posting your issue,
    You can switch of alerts and set E-Mail Notification to Yes under your Workflow Tasks list > Settings > Advanced Settings. By doing so user specified in AssignedTo will receive e-mail notification when task is created and if task ownership is not changed
    during your workflow this will be the only mail sent by system.
    Since you are already using SharePoint designer you also have option to include Send an Email action in your workflow (after task is created). This option is better if you want to send some specific info to user.
    Also, browse the below mentioned URLs to create workflow step by step
    http://sharepointsolutions.com/sharepoint-help/blog/2010/03/create-a-detailed-custom-task-notification-with-a-sharepoint-designer-workflow/
    http://sharepoint-community.net/forum/topics/configure-email-notification-for-discussion-board-activity
    I hope this is helpful to you, mark it as Helpful.
    If this works, Please mark it as Answered.
    Regards,
    Dharmendra Singh (MCPD-EA | MCTS)
    Blog : http://sharepoint-community.net/profile/DharmendraSingh

  • Check/Validate Line item Amount against Credit Balance of Customer in FBL5N

    Hi ,
    I need to Check/Validate Line item Amount BSEG -WRBTR (Screen 301, Prg. SAPMF05A ) in F-02 against Credit Balance of Customer in FBL5N.If amount entered in F-02 with posting key 01 and same company code is greater than total credit balance with customer ,then i need to pop up error message.
    I have tried this with GGB0 using my own exit incl & including ZRGGBR000 in neccesay customization.Still not working.
    Pls suggest a solutiion for this
    Regds,
    abhee
    Edited by: abheesawant on Jul 29, 2010 6:59 AM

    HI,
    To trigger user exit form pool (ZRGGBR000) you need to do setting in OB28 and activate it.
    Regards,
    Sri

  • Why copy option from recent call numbers is not working on ios7 [recent call logs in phone]?

    why copy option from recent call numbers is not working on ios7 [recent call logs in phone]?

    Here is a copy of my expressions and a copy of my data. The expressions match up going from left to right
    Code.CalcPTD2(Lookupset(FORMAT(Fields!REALDATE.Value,"Long Date"),FORMAT(Fields!CallbackDate.Value,"Long Date"),Fields!DailyHours.Value,"DataSet4"))
    sum(Code.CalcPTD2(Lookupset(FORMAT(Fields!REALDATE.Value,"Long Date"),FORMAT(Fields!CallbackDate.Value,"Long Date"),Fields!DailyHours.Value,"DataSet4")))
    count(Code.CalcPTD2(Lookupset(FORMAT(Fields!REALDATE.Value,"Long Date"),FORMAT(Fields!CallbackDate.Value,"Long Date"),Fields!DailyHours.Value,"DataSet4")))
    PUBLIC SHARED FUNCTION CalcPTD2(LookupArray AS OBJECT) AS INTEGER
         DIM i,Total AS INTEGER
         Total = 0
         FOR i = 0 to UBOUND(LookupArray)
               Total = Total + CINT(LookupArray(i))
         NEXT i
     NumberTimes  =   NumberTimes +1
    RETURN  Total
    END FUNCTION

  • Hi, why wifi option dosnt seen in personal hotspot in ios5

    hi, why wifi option dosnt seen in personal hotspot in ios5

    This worked for me on iPhone 5, iOS 8.1.2.
    For some reason I need to turn the personal hotspot off twice, maybe because my iPad was connected.
    When I turned the Personal Hotspot on with WiFi off I was prompted whether I wanted to turn WiFi on or just use BlueTooth or USB.
    It's good to have both options. In a public place I'd prefer Bluetooth. In my office where I'm streaming to a BlueTooth speaker I prefer WifFi. Phone can't handle streaming and hotspot if hotspot data usage is too high.

  • How to select a drop down option item while using logic:iterate?

    I am using the following peice of code -
    {color:#808080}+String countrySelected = (String)request.getAttribute("country");+
    +....+
    +<logic:iterate id="countryVO" name="countryList" type="com.sa.biz.vo.airport.CountryVO">+
    +<%+
    +if (countrySelected != null){+
    String countrySel = countryVO.getCountryCode().toString();
    String selected = (countrySel.equalsIgnoreCase(countrySelected)) ? " " "Selected" : " ";+
    +%>+
    +<option value="<%=countryVO.getCountryCode()%>*<%=selected%>*"><bean:write property="countryName" name="countryVO"/></option>+
    +<%+
    +}+
    +%>+{color}
    {color:#808080}+</logic:iterate>+
    {color}{color:#000000}The drop down is a list of country names (value - country code, display text - country name) which gets populated from the database. I need to ensure that the countrySelected is the menu item which gets selected in the drop down.
    The expected option item is not rendered as selected when i run this code? Please help!!{color}

    <option value="<%=countryVO.getCountryCode()%>" <%=selected%>>Apply the above change which should help you out on the same. :)
    REGARDS,
    RaHuL

  • Why are some items on the purchased list duplicated

    Why are some items on the purchased list duplicated

    Perhaps you are repeatedly checking for available updates while downloads are in progress. This can sometimes cause more than one copy to be added to the download queue.
    tt2

  • Why is hide items in the cloud grayed out?

    hi. can anybody answer this question? Why is hide items in the cloud grayed out?

    Press the escape (esc) key to exit full-screen mode.

  • How to validate editbox item

    hi everybody...
    i have  a form with eidt box(uid 23) i want to check whether entered value is numeric or alphanumeric or alpha....
    i want to make it fix so that i should be able to enter only numeric values.....
    how to check this condition????

    Shenaz,
    This thread looks to be a repeat of this thread ...
    Re: how to validate editbox item
    Please only post your question once.
    Eddy

  • Updation of option classes and option item in already created model

    Let us say
    Model A
    Option class A1
    Option item a11
    Option item a12
    Option class A2
    Option item a11
    Option item a22
    We are selling this product to a customer with service warranty attached for a year.
    Then in a weeks time you are adding or deleting an option class/ option item.
    Will it affect the product already sold to the customer while returning for service.
    Also, the models are not created in BOM, these are Rule Based Models with out BOM
    Is there any revision no. we can assign to the changes done?
    Regards,
    Pavithara R
    Edited by: Pavithara Rathinavel on Feb 9, 2012 3:38 AM

    Typically, it is better to end-date components in ATO / option class than deleting them.
    In your case, even if you delete them, the configuration is already present on the sales order and the component is already present on the * number BOM. So you should be ok.
    It is just that if you were to copy that old sales order, you may get validation errors because the old component is not valid anymore.
    Hope this helps,
    Sandeep Gandhi

  • When I create an event on my mac ical then sync to my iphone, I cannot later edit the event via my iphone. I used to be able to do this before. Can someone please tell me why this option does not exist anymore? I have iphone 3Gs and can't use iCloud.

    When I create an event on my mac ical then sync to my iphone, I cannot later edit the event via my iphone. I used to be able to do this before. Can someone please tell me why this option does not exist anymore? I have iphone 3Gs and can't use iCloud due to older running system on my macbook pro.

    Lyndsay237 wrote:
    This device does not have a sim card in it. Could this be the reason or am I missing something when I am trying to update.
    Yes. You can't update or restore any GSM iPhone without a valid sim card installed in the phone. The sim card need not be activated, but it must be valid & present. If you want to update, you need to get a sim card.

  • Validate open item when creating payment advice

    Dear Experts..
    pls tell me how we can validate open item when creating payment advice ? the purposes is if some document number already included in first payment advice than we cannot included in second/other payment advice..
    thank you,
    sasmito

    Hi Steven
    I am using JHs 11.1.1.3.35
    I kind of solved this problem using the expression #{row.bindings.Code.inputValue == null} for disabled property of the button. This worked for me because the code attribute is filled automatically by the database after committing the new row.
    Now my question is that is there any solution for the case in which there is no such an attribute (I mean the code attribute mentioned above)?
    Thanks

  • HT3207 My Energy Saver section of system preferences does not show the option to choose between energy saver or higher performance. I'd like to maximize my performance... any idea how to do that or why the option isn't hsowing up?

    My Energy Saver section of system preferences does not show the option to choose between energy saver or higher performance. I'd like to maximize my performance... any idea how to do that or why the option isn't showing up?

    Mac video card performance

  • Why don't items I put in the trash appear in the trash?

    Sometimes items it put in the trash don't appear in the trash, although they are there.  This often happens when I manually delete podcasts from iTunes, or drag an item such as a PDF from my downloads folder to the trash.  The dock icon remains in it's "empty" state and bring up the trash finder window also shows that it is empty.  If I restart my MacBook however, the items appear in the trash and are able to be deleted.  Odd.

    Berkshire_Yorkie wrote:
    I a first time Mac-user and running MAC OS Lion so there's a lot that isn't familiar to me and I'm towards the bottom of a fairly steep learning curve.  I'm having a similar problem - I'm importing pictures to iPhoto and I've deleted a couple of them but they don't appear in my Trash folder (which is on my Dock).  Now it's possible that I'm being a bit dumb and missing something very obvious but I've read through this article and I don't see how it addresses the issue.
    I'd really be grateful if some-one could explain to me in plain English why I can't see deleted files in my Trash folder and how I can rememdy that.
    Thank you,
    For photos deleted from iPhoto, you need to empty the iPhoto trash under file while the iPhoto App is open.
    pete

  • Why -jar option used to install a software which is in executable jar file?

    Hi all,
    i have a query, i have a generic installer which is used to install the oracle weblogic 10.3 software in unix platform(i.e., which is in .jar extension) which is executable jar file.
    To install this software which have to use -jar option to install
    java -jar net_server<version>_generic.jar
    my question that why we use -jar option to install or to extract the software
    can any one clarify my doubt...
    thanks in advance
    abhi
    Edited by: sumanth_abhi on Jan 27, 2009 11:50 PM

    According to the Jar Guide (http://java.sun.com/j2se/1.4.2/docs/guide/jar/jarGuide.html)
    Executable Jar Files
    On Microsoft Windows systems, the Java 2 Runtime Environment's installation program will register a default association for Jar files so that double-clicking a Jar file on the desktop will automatically run it with javaw -jar. Dependent extensions bundled with the application will also be loaded automatically. This feature makes the end-user runtime environment easier to use on Microsoft Windows systems.
    The Solaris 2.6 kernel has already been extended to recognize the special "magic" number that identifies a Jar file, and to invoke java -jar on such a Jar file as if it were a native Solaris executable. A application packaged in a Jar file can thus be executed directly from the command line or by clicking an icon on the CDE desktop.
    Despite that every JAR file can be executed as a program if and only if the META-INF/Manifest.mf contains the Main-Class tag. This done through java -jar jarfile.jar
    --olaf                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Maybe you are looking for