Jump to content

Opposite of AddJs (instead of setting data, reading data )


rhennink

Recommended Posts

Hi,

 

I'm now using this in Delphi-COde to set the activeview of a Calendar component.

 

    UniSession.AddJS(calCalendar.JSName + '.setActiveView(0);');

 

Wat is the oppositie to read the Activeiew (function is called GetActiveView)

 

    xxxxxxJS(calCalendar.JSName + '.getActiveView();');

Link to comment
Share on other sites

Wat is the oppositie to read the Activeiew (function is called GetActiveView)
 
    xxxxxxJS(calCalendar.JSName + '.getActiveView();');

 

 

Hi,

 

You can use viewchange function for this, and use OnAjaxEvent

 

UniCalendarPanel1 -> ClientEvents -> ExtEvents -> function viewchange:

function viewchange(sender, view, info, eOpts)
{
    ajaxRequest(sender, '_viewchange', ['xtype='+view.xtype]);
}

Best regards.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...