Implicit validation only work when the InputField has changed

Hi all,
we're trying to implement implicit validation.
When we define a DDIC type with minLenght 5 the inputfield is not automatically checked if the mapped value has the lenght of 5. The inputfield is only checked if the user changes it.
Is there a trick archieving implicit validation even if the user didn't change any inputfield?
Best regards,
Christian

Hi Christian,
obviously my last answer was lost (i can't see it). SDN is little bit tricky these days. I repost it here:
Hi Christian,
no, it works as expected. Create a value node "TestNode" with an value attribute Name5 in the context. Name5's type is a SimpleType base string with MaxLength = 32, MinLength = 5. Add a supplyFunction to TestNode. Then insert the following code into the supply function (adapt the view name of course):
StringBuffer sb = new StringBuffer();
IWDAttributeInfo name5Info = node.getNodeInfo().getAttribute(IPrivateDTView.ITestNodeElement.NAME5);
ISimpleType name5Type = name5Info.getSimpleType();
for (int ix = 0; ix < 10; ix++) {
  IPrivateDTView.ITestNodeElement el = node.createTestNodeElement();
  node.addElement(el);
  el.setName5(sb.toString());
  sb.append('A');
/* Checking */
for (int ix = 0; ix < 10; ix++) {
  IPrivateDTView.ITestNodeElement el = node.getTestNodeElementAt(ix);
  try {
    name5Type.checkValid(el.getName5());
  } catch (DdCheckException e) {
    wdComponentAPI.getMessageManager().reportInvalidContextAttributeException(
      el,
      name5Info,
      "Hoppla, zu kurz: " + e.getMessage(),
      false);
You'll get 5 error lines displayed by message manager for the strings with 0..4 characters.
Hmmm? Please check, if this works for you too.
Best regards
Stefan
PS: If this answer appears multiple times, ignore it, since i'm currently getting exceptions posting it

Similar Messages

  • Why does Do Not Disturb only work when the iPhone is locked?

    I've been wanting for awhile now a way to easily turn off all notification alerts and incoming calls while keeping cellular data and wi-fi on so I can use my phone in peace without gimping my wireless connections, and even though iOS 6 as a whole seems awesome to me, I'm disappointed Do Not Disturb only works when the iPhone is locked.

    Was just wondering if other people felt the same way I do and start a discussion about it so maybe that with more people talking about it, Apple would pay attention to it more. People complaining about how calls and alerts were lighting up their screen at night seems to be some inspiration to why Apple added Do Not Disturb in the first place. Didn't know I was doing anything in violation of the Terms of Use so sorry about that.

  • TS1381 The X key only works when the shift key is depressed

    The X key only works when the shift key is depressed.  can only type capital

    I have this same issue with the Letter L.  I can ony type it with a captiaL L.  The Lowercase L does not work in Safari, but works in other programs.
    This suggestion did not work for me.

  • Speakers only work when the headphones are plugged in

    I have an HP Pavilion dv6-6163cl.  I purchased it about 1 year ago.  I use windows 7 and have not altered anything.  My internal speakers stopped working about a month ago.  I uninstalled the IDT audio driver and reinstalled it with the updated driver.  I ran troubleshoot and it said they are working properly. 
    I noticed that if I plug in headphones or external speakers into the headphone jack, then the internal speakers do work and turn on.  This is backwards.  The internal speakers should work when nothing is plugged into the headphone jacks.  There is no setting in sound settings or driver settings to fix this.
    I never used headphones or plugged anything in to the headphone jacks, so I'm not sure what changed.  How do I fix this?

    Hello cgoldberg11,
    Take a look at this link, which has troubleshooting steps that should help you resolve this issue.  Please let me know if this helps.
    Good luck!
    ↙-----------How do I give Kudos?| How do I mark a post as Solved? ----------------↓

  • Is it possible that AirDrop to Macbook from an iPhone 6+ only works when the Bluetooth pane is open?

    Yeah - the title contains the main question :-)
    I got files pushed from myiPhone 6+ with iOS 8.1.2 to OS X Yosemite with newest updates on an MacBook Pro 13" mid 2012. But the iPhone only found the mac when the bluetooth system settings page is open. The source app on the iPhone was WhatsApp.
    ...and I just saw that the handoff icon from Safari appears in my doc now (why not earlier)?
    Sounds crazy to me. Is this known?
    - Devices are not paired (they were paired once)
    - are in the same WLAN (devices are allowed to connect to each other on my FritzBox 7270 v2)
    - are near to each other
    - AirDrop is enabled and set to everyone
    - the iPhone was restored from my previous iPhone backup and got a settings reset to try to fix some problems in older iOS8 versions
    - the MacBook is running since I bought it in September 2012.
    Thanks for your answers.

    Mike blessing wrote:
    You mean if I change the password, he will never spy on me again?
    There is no way i can answer that, there area a million ways one person can spy on another in this day and age.
    However if you were to wipe the phone and  set it up as new  plus change all your associated Apple passwords to ones your ex can;t guess, then I can say he couldnt 't tracking you through the phone. Wiping and reinitializing it would be the same as getting a new one so I don;t think you need to go through that expense.
    However assuming this post is real and you are experiencing the situation you describe you need to contact the authorities. There is no way anyone here can know the true seriousness of the situation and to be giving advice on this issue is wrong. We could be causing you to fell a false sense of safety. Because of that this will be my last post here.
    So please do what I recommended to the phone and then seek out the proper help.
    good luck
    regards

  • USB ports only work when the device is connected at start up

    I have a dv5-1110em laptop which I have upgraded to Windows 7.
    If i connect a USB device before I start the machine then it works fine as long as I do not unplug it.
    If I unplug a device and then need to use it again I have to restart the laptop.
    If there are no devices plugged in at start then the ports will not work with any device.
    I have installed the new BIOS.
    I have uninstalled the USB ports and then re installed them.
    I have been searching for an answer to this for months and found nothing that solves my problem.
    Any suggestions would be greatly appreciated..
    Thanks

    I'm having the same problem.  Installed windows 7 professional over windows 7 home preminu.
    Only see USB device if it's plugged in at startup.

  • My trackpad only works when the battery of my macbook is less of 30%

    idk what is goiing on, i installed mavericks and my macbook stared to fail, i cant even see much of the aplications icons or folders :/ what should i do?

    Swollen batteries sometimes cause the trackpad to malfunction.
    Your appointment at the genius Bar at an Apple Store is FREE, in warranty or out, and you are under no obligation to have them do any work for a fee.
    These guys put their hands on these machines all day every day, and they are good at Power problems and Physical problems.

  • FYI: Push only works when the apps are open (in the background)

    Hi fellows,
    I have made a rather annoying discovery. Emails are being pushed, provided the app runs in the background. In Mobile Me times this was not necessary.
    I think you should know that before wasting your time.
    Cheers,
    Phillip

    Close All Open Apps... Sign Out of your Account... Perform a Reset... Try again...
    Reset  ( No Data will be Lost )
    Press and Hold the Sleep/Wake Button and the Home Button at the Same Time...
    Wait for the Apple logo to Appear...
    Usually takes about 15 - 20 Seconds... ( But can take Longer...)
    Release the Buttons...

  • Pivot Table, "Insert Page Break After Each Item" Setting Only Works for the First Item Change

    I have a flattened pivot table generated from Powerpivot and I would like to insert a page break for each change in the row item.
    When I use the pivot table Field Settings>Insert Page Break After Each Item, Excel inserts the first page break then returns to normal pagination for the rest of the output.
    Is there another setting required to maintain the page breaks after the item change?
    Thanks.

    We are experiencing the same problem. Did you ever find a solution?

  • My home button doesn't work and the password has changed itself

    my home button doesn't work and same how my password changed on it's own so wha do I do ?

    Place the iPod in recovery mode using one of these programs and then restore via iTunes:
    For PC
    RecBoot: Easy Way to Put iPhone into Recovery Mode
    If necessary:
    Download QTMLClient.dll & iTunesMobileDevice.dll for RecBoot
    For MAC or PC       
    The Firmware Umbrella - TinyUmbrella

  • Oracle Text Index  - Trailing Search when the String has spaces

    Hi Am trying to use CONTAINS to tune a trailing LIKE search.  But it's not working when the string has spaces in between them
    For e.g in say if table person has column name which has following values
    JOHN
    FRED JOHNSON
    JOHN ROBERTS
    select * from person where name like 'JOHN%'
    Above query will give JOHN and JOHN ROBERTS. If i use CONTAINS As below
    select * from person where CONTAINS(name,'JOHN%',1) > 0
    It brings back all three records. If i remove spaces in column itself, its working bit if i try to remove spaces in Query, i am getting a Text error as i have Text index only on the name column.  I would like to know is it possible to use CONTAINS but get same result set on trailing search as how a normal LIKE will do.
    Below is how i did Index creation
    create index txt_idx1 on person (name)
    indextype is ctxsys.context
    parameters('DATASTORE ctxsys.default_datastore');

    You could use some method, like a multi_column_datastore or user_datastore to append some specific starting characters, then include those in your search, as shown below.
    SCOTT@orcl12c> CREATE TABLE person
      2    (name  VARCHAR2(60))
      3  /
    Table created.
    SCOTT@orcl12c> INSERT ALL
      2  INTO person VALUES ('JOHN')
      3  INTO person VALUES ('FRED JOHNSON')
      4  INTO person VALUES ('JOHN ROBERTS')
      5  SELECT * FROM DUAL
      6  /
    3 rows created.
    SCOTT@orcl12c> BEGIN
      2    CTX_DDL.CREATE_PREFERENCE ('test_ds', 'MULTI_COLUMN_DATASTORE');
      3    CTX_DDL.SET_ATTRIBUTE ('test_ds', 'COLUMNS', '''start ''||name||'' end'' name');
      4  END;
      5  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> create index txt_idx1 on person (name)
      2  indextype is ctxsys.context
      3  parameters('DATASTORE test_ds')
      4  /
    Index created.
    SCOTT@orcl12c> select * from person where CONTAINS(name,'start JOHN%',1) > 0
      2  /
    NAME
    JOHN
    JOHN ROBERTS
    2 rows selected.
    SCOTT@orcl12c>

  • Torch 9800 touch screen only works when slid open.

    Hello everyone, this is my 1st post but I've been lurking the forum for some time. I'm running a Torch 9800 on AT&T right now on v6.0.0.600
    This is what's happened with my phone: as the subject notes, my touch screen only seems to work when I slide open the phone.
    What I've tried so far that doesn't work: rolling back software, rolling the software forward again, hard resets, soft resets, adjusting intervals for the touch screen.
    The weird part is that I saw an older thread that had the exact opposite problem(touch screen only worked when the phone was slid closed). I have a level/ruler app for my phone and it's showing that the phone knows when it's tilted/angle/orientation. I've also closed the phone, opened it slightly (about the width of my thumb) and it stays horizontally oriented + I'm able to use the touch keyboard that way.
    Anybody have a suggestion as to what I can try next to fix this? I haven't gone so far as to just go and get a 9810 yet, but i'm considering it.

    Thanks for the post.
    Has it in anyway fallen or pressed hard at any point? It could be the belt, which would just need you to go with it to a certified repair center and get it secured.
    Twitter: @IAmBenGiey | Click " Like " if you want to Thank someone.
    If Problem Resolves mark the post(s) as " Solution ", so that other can make use of it.
    Try my apps:
    The Ultimate Currency Converter and T2G - BloGFeed

  • Upgrading to Mavericks wrecked my MacBook Pro & now it only works when external hard drive is plugged in

    So I tried to upgrade to Mavericks today and it failed (same error as in this post which seemed to be a common problem). It wouldn't let me repair the disk, and after trying all sorts I rebooted my computer in recovery mode - it wouldn't let me reinstall Lion because the hard drive was apparently locked and I could see no way around this. So I decided to restore from a Time Machine backup on an external hard drive and that worked okay, except my MacBook now only works when the external hard drive is connected. If I remove the external hard drive, I'm back to square one as it still won't let me reinstall Lion as the HD is locked!
    I have no idea what's going on. HELP!

    The startup drive is failing, or there is some other internal hardware fault.
    Make a "Genius" appointment at an Apple Store, or go to another authorized service provider.
    If privacy is a concern, erase the data partition(s) with the option to write zeros* (do this only if you have at least two complete, independent backups, and you know how to restore to an empty drive from any of them.) Don’t erase the recovery partition, if present.
    Keeping your confidential data secure during hardware repair
    Apple also recommends that you deauthorize a device in the iTunes Store before having it serviced.
    *An SSD doesn't need to be zeroed.

  • 'On open' only works in the same folder?

    I'm running an 'On open' script but it only works when the folder to be processed that placed onto the AS is in the same folder.
    Is there a workaround?

    I'm not familiar with ImageMagick, but there are a couple of issues with your script.
    1) The on open handler takes the files dropped on the application as it's arguments, but you are using the Finder's currently selected items.
    2) File paths that might contain spaces should be quoted, or your shell script will break when it tries to do something with the space delimited items.
    If you are just trying to create a text string that contains all of the (selected or dropped) items, something like the following should work (I just used a dialog to show what the shell script would be - you should test before using mogrify on original files):
    Finder selection:
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #FFDDFF;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    set upath to ""
    tell application "Finder" to repeat with f in (get selection)
    set chosenfile to quoted form of POSIX path of (f as text)
    set upath to upath & chosenfile & space
    end repeat
    display dialog "do shell script " & "/opt/local/bin/mogrify -format jpg " & upath & "*.psd"
    beep 2
    </pre>
    on open handler:
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #FFDDFF;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    on open TheItems
    set upath to ""
    repeat with f in TheItems
    set chosenfile to quoted form of POSIX path of (f as text)
    set upath to upath & chosenfile & space
    end repeat
    display dialog "do shell script " & "/opt/local/bin/mogrify -format jpg " & upath & "*.psd"
    beep 2
    end open
    </pre>

  • How do you exit a game from full screen mode when the game has crashed?

    Hey there
    There has seriously got to be a better way of exiting a crashed game than just turning the power off.
    I sometimes play Sims 3 on my mac, and we all know that Sims 3 is the most poorly coded game out there, so it crashes a lot. I don't understand how you can get out of the full screen without switching the machine off the wrong way.
    I have tried every single keyboard command people say to exit full screen mode, but they don't work when the game has crashed! In fact pressed every single button on the keyboard to try and exit, but nothing works.
    On Windows it's so simple, you press the start button on the keyboard, but on a mac it doesnt work.
    So any help to what i can do?
    Thanks

    Force quit just the game itself.
    Command + option + esc
    It's like control + alt + delete on Windows.

Maybe you are looking for