Jump to content

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


Recommended Posts

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

Posted
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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...