Forums

HDU- A Service Desk User Community :: Forums :: Service Desk r11.X Support :: General r11.x
 
<< Previous thread | Next thread >>
Change password at first login
Moderators: Admin, 4uTech CEO
Author Post
The BOSS
Thu Feb 04 2010, 12:19AM
Registered Member #3918
Joined: Thu Jul 17 2008, 12:36AM
Posts: 177

Dear Dons!,

am using r12.1. am working to acheive that when a employee login into servicedesk at first time, we should enforce them to change their password by a popup followed with opening a form to change their password. Note that am using PIN authentication with contact_num.

Now what i have done so far is

1.create acustom field "zcount" in cnt of WSP. It created a filed in usp_contact table

2.added the code in welcome_banner.htmpl

<PDM_IF "$cst.zcount" == "1">
alert('Please change your Password');
window.open( "http://www.google.com");
</PDM_IF>

Note that i updated zcount of a contact with '1' in usp_contact in SQL manually by executing update query.

It is working. Now i want to know how to open a customized form which i have, instead of [link]

And also i want to increment the zcount whenever the welcome_banner.htmpl loads.

Kindly help me this with your suggestions....

Many thanks in advance.

Regards,
Saran.


Time once lost is lost forever........
Back to top
The BOSS
Tue Feb 09 2010, 11:58PM
Registered Member #3918
Joined: Thu Jul 17 2008, 12:36AM
Posts: 177
HI all,

Can anybody help me on this.........

Regards,
Saran


Time once lost is lost forever........
Back to top
The BOSS
Sat Feb 13 2010, 01:03AM
Registered Member #3918
Joined: Thu Jul 17 2008, 12:36AM
Posts: 177
I tried in some other way that i tried to increment the zcount from home.htmpl. it is incrementing in home.htmpl itself fine by giving this code.

var zcnt;
var zcnt1;
zcnt = $cst.zcount;
zcnt1 = zcnt + 1;

<script LANGUAGE="JavaScript">
document.write(zcnt1);
</SCRIPT>

It shows 2 if zcount manually updated with 1.

But Now i want a javascript to UPDATE the value into sql. So that the zcount will be increamented on every home page loads.

Kindly help me with javascript to update the zcount on cnt at every load of home page.

Thanks and regards,
Saran


Time once lost is lost forever........
Back to top
The BOSS
Wed Feb 17 2010, 02:18AM
Registered Member #3918
Joined: Thu Jul 17 2008, 12:36AM
Posts: 177

After a big struggle, i have done that now i am able to increment the zcount in usp_contact at sql side on every login of each users. But it is not updated into htmpl page instantly. ie. The zcount column is not synchronized with the attribute at htmpl page instantly. The synchronization requires Service restart. ie. If i restart the service it takes the current value.

Pls give any suggestion to synchronize the usp_contact in sql with home htmpl page instantly.

Thanks in advance.

Regards,
Saravana


Time once lost is lost forever........
Back to top
 

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System

This site is not affiliated with CA. All trademarks are © their respective owners. All other content is © HelpDeskUsers.com and 4uTechnologies, Inc.
4uTechnologies, Inc. reserves the right to content contained within this site.
{THEMEDISCLAIMER}