This is a migrated thread and some comments may be shown as answers.

How Can check Custom attribute value on OnClientAppointmentContextMenu

1 Answer 40 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Chandan Kumar
Top achievements
Rank 1
Chandan Kumar asked on 22 Jun 2010, 05:41 AM
Hello Sir
How Can check Custom attribute value on OnClientAppointmentContextMenu.

like


if i get subject then i write

function

 

OnClientAppointmentContextMenu(sender, args) {

 

alert(

 

"Appointment context menu: " + args.get_appointment().get_subject());

 

 

 

}


same as if i have Custom attribute  name StatusId then how can i get it its value.

when i write 

function OnClientAppointmentContextMenu(sender, args) {

 

alert(

 

"Appointment context menu: " + args.get_appointment().get_statusid());

 

 

 

}

its shows error..
So pls help me.

Thanks
Chandan

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 23 Jun 2010, 09:52 AM
Hello Chandan,

Have you tried the following approach?

client code:
 
    function OnClientAppointmentContextMenu(sender, args) { 
        var app = args.get_appointment(); 
        var attValue = app.get_attributes().getAttribute('statusID'); 
    } 


-Shinu.
Tags
Scheduler
Asked by
Chandan Kumar
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or