There is a method in FormUtil called testObject that you pass (session, "User", "accountNameYouWantToCheck")
It will return the string "true" if found.
There also is a method testUser, which does the same thing, you just pass in (session, "accountNameYouWantToCheck")
Here is an express example of testUser:
<defun name="userExistsInWaveset">
<defarg name="generatedAccountID"/>
<eq>
<s>true</s>
<invoke name="testUser" class="com.waveset.ui.FormUtil">
<ref>:display.session</ref>
<ref>generatedAccountID</ref>
</invoke>
</eq>
</defun>
No comments:
Post a Comment