Skip to Content
avatar image
Former Member

input validation (in Backend)

Hi Gurus,

following Problem,

i have developed a table with a Inputfield as Tablecell editor (bind it to a contextnode). After input i'd like to check the value in the backend (and raise if necessary a message). But I can't find a action, which tells me, that the user input is finished. Any ideas?

Thanks in advance

Stefan

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Mar 21, 2007 at 11:51 AM

    Hi Stefan,

    You can validate the input by using onEnter action of the inputfield.This action will be triggered when user inputs something and hit the enter key. Thus, you can do whatever and as you like with ur code;-)

    PS : Plz reward points

    Abhinav Sharma

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 21, 2007 at 12:07 PM

    Hai Stefan,

    You have to give values for the inputfield in table. and then you need to submit that data , for that you have to create button or any.

    on that action

    for(int i=0;i<wdContext.nodeTable().size();i++){

    String s=wdContext.nodeTable().getTableElementAt(i).getinputFileldData();

    if(validate(S)){

    //ur message

    }

    regards,

    naga

    }

    Add comment
    10|10000 characters needed characters exceeded