CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Show EventFrame in code

by zsleo » 19 Mar 2015 19:48

I successfully locate to a specific event in a scheduler and call SchedulerInitSchedulerFrame but cannot get the EventFrame to display.

How do I in code force the EventFrame of an event to display?

TIA
zsleo
 
Posts: 776
Joined: 03 Feb 2013 03:33

by Alexander Bulei » 20 Mar 2015 15:23

Hi zsleo,

What do you mean? show the edit form of event via code?

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by zsleo » 20 Mar 2015 19:30

When you click a schedule event item a frame if assigned is displayed.

How in code do I trigger/force that frame to be displayed?

Regards
zsleo
 
Posts: 776
Joined: 03 Feb 2013 03:33

by Alexander Bulei » 24 Mar 2015 17:36

Hi zsleo,

But when?

OnLoad, onClick....?

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by zsleo » 24 Mar 2015 17:45

from a button on a form I want to locate to specific scheduler item event and then in code display the frame.
zsleo
 
Posts: 776
Joined: 03 Feb 2013 03:33

by Alexander Bulei » 24 Mar 2015 17:57

Hi zsleo,

Here you have code to trigger manually:

delphi code
procedure TCGIWJQSchedulerFrame.IWCGJQButton3JQButtonOptionsClick(Sender: TObject; AParams: TStringList);
var
Js: string;
begin
js:= Format('%s("div[data-eventid=''%s'']").click()',[CGJQuery,Scheduler.JQSchedulerOptions.EventItems[0].ID]);
CGAddJavaScriptToAjaxResponse(js);
end;


Note: It will trigger the scheduler frame only when the event will be on current/visible page.

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal


Return to JQScheduler

cron

Who is online

Users browsing this forum: No registered users and 4 guests

Contact Us.