Could you please explain the task? Do you want to start 1C:Enterprise with a parameter? Or open a form with a parameter? Or emulate a REST web service to process a single request? Or use 1C to generate static content for web site?
Rating:
27
Joined: Apr 5, 2012
Company: 1TÇ Şirketi - Merv Bilgi İşlem Otomasyonu Yazılım Ltd. Şti.
Hi Timofey
Task may be explained like that: I have the Call Center. When the phone ring, some programms can create query string. The stable part of query string is adjustable, for example "http://testdomain.com.tr/phonenumber=". And the data writen after sign "=" is variable that transferred by http protocol. Task is; to get the variable (phone number) and in 1C:Enterprise platform form to open the relative custumer informations.
How to get relative customer information not problem. Thing that I don't know, how to get the variable transferred by http protocol.
I have some alternatives about how to choise this task. I see you are expert in 1C:Enterprise system, which alternatives can you suggest?
So you need to open a form of some catalog by code, for example.
In managed application module use the following:
Code
Procedure OnStart(Cancel)
If Not IsBlankString(LaunchParameter) Then
Notify("OpenCounterparty", TrimAll(LaunchParameter));
EndIf;
EndProcedure
Then subscribe the event, for example in data processor form that is placed on the desktop:
Code
&AtClient
Procedure NotificationProcessing(EventName, Parameter, Source)
If EventName = "OpenCounterparty" Then
// your code here
Activate();
EndIf;
EndProcedure