XSLTForms revalidate model instances

2012-12-14
2012-12-21
  • Hasan Abbas

    Hasan Abbas - 2012-12-14

    Hi all,

    We have picked XSLTForms for one of our projects  in which mostly we have static forms one or more on one page when loaded.

    One requirement that i have is that i have 3 models each having one or more instances in each model on the form.

    On submission i need to validate model 1 - instance  , model 2- instance and if both are valid then i need to copy the model 1-instance and model 2 intance in model 3 instance so that it can be submitted to the server.

    I tried using the xf:revalidate and xforms-valid and xforms-invalid events,

    Regards,
    Hasan..

     
  • Hasan Abbas

    Hasan Abbas - 2012-12-14

    I have no luck in issuing xf:revalidate on save trigger… Can anybody help with piece of code.

    Best-Hasan

     
  • Alain Couthures

    Alain Couthures - 2012-12-21

    You should try to call this function: is-valid(nodeset?)

    For example, is-valid(instance('i1')) should return true if instance "i1" is valid.

    -Alain

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks