The 1C:Enterprise developers forum

#1
People who like this: 0 Yes / 0 No
Active user
Rating: 3
Joined: Sep 2, 2013
Company:

Hello,

I have some questions:

1. Is there a calendar chart/scheduler that looks like google calendar? We're using one provided with the 1C demo, but our client doesn't like the horizontal layout. (Google calendar is vertical)

2. If not, is there a way to insert a link (with a parameter) in the HTML, that would open a form of specific object? Normally I would have to provide the Key parameter with Reference - is it possible in HTML? If yes, then I think I can possibly create a calendar preview in HTML.

Looking forward to any tips and hints! :)
(Or maybe gantt chart can be edited to be vertical?)

 
#2
People who like this: 0 Yes / 0 No
Active user
Rating: 3
Joined: Sep 2, 2013
Company:

Is there a calendar chart like this?
I think it should be a standard in any enterprise product...

 
#3
People who like this: 0 Yes / 0 No
Timofey Bugaevsky
Guest

Joined:
Company:

Hello, Joanna!

You can attach a handler to OnClick event in your HTML document and open any form that you need using 1C:Script for that.

You can find examples of using the HTML document field for opening forms in the Guide data processor of Managed application demo.

 
#4
People who like this: 0 Yes / 0 No
Active user
Rating: 3
Joined: Sep 2, 2013
Company:

Hello;

Than you very much for response :)

However when I click the link that's supposed to open a guide, there's something missing:

Code
{DataProcessor.Guide.Form.GuideForm.Form(17)}: 
Error in (GetHTMLDocument)
   RootElement = DataProcessors.Guide.GetTemplate("HomePage").GetHTMLDocument();
File not found


Inside that Template there is some kind of complicated link.
Code
<BASE href="v8config://a3a9949e-f1f0-4b3a-821f-a85a9fb2fb3c/mdobject/id09299f02-68f4-439b-810d-ed097d9b0487/8eb4fad1-1fa6-403e-970f-2c12dbb43e23">


Maybe the source is missing? How can I fix that?

The good thing is that I can see how the onclick event is handled.
Maybe I can open form with a "Key" parameter?
I'm planning to generate HTML on the fly based on items fr om Catalog. In this case I can attach unique ID e.g. to the "rel" attribute of a link. Or somewh ere else. Do you have any suggestions?

Edited: Joanna Light - Oct 09, 2014 04:59 AM (typos)
 
#5
People who like this: 1 Yes / 0 No
Timofey Bugaevsky
Guest

Joined:
Company:

I'm sorry, Joanna, we will check this issue.

Right now try the data processor, that I have attached to this message.

The complicated links that you mentioned are links to help pages.
You need examples where links like v8:OpenForm=Document.GoodsReceipt.ObjectForm are used. For example in Managed Forms section of the Configuration Guide click GoodsReceipt link.

 
#6
People who like this: 0 Yes / 0 No
Active user
Rating: 3
Joined: Sep 2, 2013
Company:

Thank you very much, I'll check it out :)

 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)