Jump to content
uniGUI Discussion Forums
rhennink

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

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();');

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×