Hi Pedro, If the form is not closing when you click the Close button, it's probably because you have declared the variable containing the form structure as a local variable; I mentioned this before - the point is that any interactions with the form have to be recorded in the CDS.log as a SKILL expression - so in essence when you interact with the form it generates a SKILL expression to complete the task. If the variable containing the form (as specified by the ?name argument to the hiCreateAppForm function) is not visible from the scope in which you are interacting the form (i.e. where you call hiDisplayForm from) then it will all go horribly wrong. So the best thing is to make the form variable global (i.e. don't put it in the let()). I don't understand what you mean by "block the user to enter some characters in the text box". If you're saying that you want to disallow certain characters, then perhaps you want to specify a ?modifyCallback on the field which is a SKILL function that is called whenever there is a change in the field, but before it's displayed - so you can use this to modify what is actually entered. As for examples, there are lots on this form, and lots on support.cadence.com including the Resources->SKILL Information on the support site which has some code libraries to help you get started. Regards, Andrew.
↧