Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Change dynamically the msg message delete
12/09/2012
11:24
Avatar
Philippe
New Member
Members
Forum Posts: 2
Member Since:
12/09/2012
sp_UserOfflineSmall Offline

Hi all,

I want to change dynamically the msg message displayed when the user confirm the deletion. I want that this message contains the value of a javascript variable (window.var1). Is there a way to do this ? Maybe by modifying the msg value in beforeShowForm ?

Thanks for your help.

Philippe

16/10/2012
10:47
Avatar
ppr
France
Member
Members
Forum Posts: 13
Member Since:
17/02/2009
sp_UserOfflineSmall Offline

Hi Philippe,

Yes you can do it in the beforeShowForm event.

This is an example I use in my "users administration module":

beforeShowForm:function(form) {
            
                ret = $("#list").getRowData($("#list").jqGrid('getGridParam','selrow'));
                $("td.delmsg",form).html("Souhaitez-vous supprimer l'utilisateur<br><br><b>"+ret.matricule+': '+ret.nom+" "+ret.pren+"</b> ?");
            
            },

The confirmation delete message box will appear now on 3 lines (with user information in bold policy) like below. If the current record was John doe user:

Souhaitez-vous supprimer l'utilisateur

1234567: DOE John ?

Best regards

Phil

16/10/2012
11:25
Avatar
Philippe
New Member
Members
Forum Posts: 2
Member Since:
12/09/2012
sp_UserOfflineSmall Offline

Hi Phil,

Thanks a lot. It works great.

Best regards.

Philippe

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
37 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information