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
using beforeShowForm
24/07/2010
18:07
Avatar
Reg
Calgary, Canada
Member
Members
Forum Posts: 92
Member Since:
06/06/2008
sp_UserOfflineSmall Offline

I am using version 3.7; my code used to work in version 3.4 and I cannot figure out what has changed to make it not work now.

THe problem is in Form Editing; when the form to add a record is created I use beforeShowForm to set default values on the fields. I have an alert in the beforeShowForm event so I know it is firing, but none of the default values are set correctly when the form appears.

So either the commands I use are no longer the right ones, or something is changing them afterwards. A snippet from my code shows here:

    beforeShowForm : function (formid) {
        alert("in beforeShowForm") ;
        $("#effective",formid).val("2010/07/24");
        $("#status",formid).val("Active");
        $("#transaction",formid).val("Salary Change");
        $("#reason",formid).val("");
        $("#position",formid).val("Vice President");
        $("#empgroup",formid).val("Professional");
 

Anyone see what I am doing wrong?

Thanks

Reg

Later... One of the benefits of turning your problem over to someone else to consider and suggest fixes for is that it relieves the stress and frees your mind to figure out the problem for yourself. The disadvantage is that now your inability to grasp the concepts is made embarrassingly public.

I now relaize (I think I am correct) that this is probably part of the new api issue, but I am unable to find anything specifically related to setting the value of a form field like this in the discussion (or examples) of the new api.

Has anyone figured this out? Can anyone provide an example of the correct syntax?

THanks

Reg

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
59 Guest(s)

Currently Browsing this Page:
1 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