Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 175888

Password style field is not getting displayed properly in form

$
0
0

Hi,

I have a table with 2 fields userid (userinfo.userid) and password.

I am creating  a form for the above table. I added a grid with a userid field and a password method field with passwordstyle set to YES. Instead of showing password in dots (password style) , the password is shown in text.

Could some one help out what went wrong

 

FormRun method:

void writeTable()

{

    SMCpersonalizationUsers_ds.write();

}

here is the password method code: 

DataSource method: (this is the password method)

//BP deviation documented

edit Password password(boolean set, SMCPersonalizationUsers _SMCPerForms, Password _password)

{

if(set)

    {

if(!SMCPersonalizationUsers.RecId)

            element.writeTable();

        _SMCPerForms.Password = Cryptography::encrypt(savepassword, int2str(any2int(_SMCPerForms.RecId)));

    }

return _SMCPerForms.Password;

}

 

 

password string control --> validate method

Boolean validate()

{

boolean ret;

    ret = super();

    savepassword = this.text();

if (Cryptography::encrypt(savepassword, int2str(any2int(sMCPersonalizationUsers.RecId))) == sMCPersonalizationUsers.Password)

    {

        Box::stop("Password already in use");

        this.setFocus();

returnfalse;

    } 

return ret;

}

 

Thanks,

Lakshmi


Viewing all articles
Browse latest Browse all 175888

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>