You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Login form in VBCS

edited Nov 16, 2017 8:00AM in Visual Builder 12 comments

Summary

Login form in VBCS

Content

Hi, i'm looking to create an login page in vbcs. I've business object that has username and password stored. Now in my login page i have two fields username and password and login button. In button action i have entered js code in which username and password are hardcoded.

("if($SampletableEntityDetailArchetypeRecord.getValue('username')=='cloud.admin'

   && $SampletableEntityDetailArchetypeRecord.getValue('password')=='cloud')

{

  resolve($SampletableEntityDetailArchetypeRecord);

}

else{

  reject("Error");

}"

)

In this code now i want username and password to be derived from my business objects(username and password). if that matches it should navigate to other page.

How do i achieve this??

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!